summaryrefslogtreecommitdiff
path: root/script/core/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics')
-rw-r--r--script/core/diagnostics/circle-doc-class.lua1
-rw-r--r--script/core/diagnostics/duplicate-doc-class.lua1
-rw-r--r--script/core/diagnostics/duplicate-set-field.lua1
-rw-r--r--script/core/diagnostics/no-implicit-any.lua4
-rw-r--r--script/core/diagnostics/not-yieldable.lua2
-rw-r--r--script/core/diagnostics/type-check.lua2
6 files changed, 4 insertions, 7 deletions
diff --git a/script/core/diagnostics/circle-doc-class.lua b/script/core/diagnostics/circle-doc-class.lua
index 61dc46b4..6bdad1be 100644
--- a/script/core/diagnostics/circle-doc-class.lua
+++ b/script/core/diagnostics/circle-doc-class.lua
@@ -1,5 +1,4 @@
local files = require 'files'
-local searcher = require 'core.searcher'
local lang = require 'language'
local vm = require 'vm'
local guide = require 'parser.guide'
diff --git a/script/core/diagnostics/duplicate-doc-class.lua b/script/core/diagnostics/duplicate-doc-class.lua
index 5114a54f..1a37826b 100644
--- a/script/core/diagnostics/duplicate-doc-class.lua
+++ b/script/core/diagnostics/duplicate-doc-class.lua
@@ -1,5 +1,4 @@
local files = require 'files'
-local searcher = require 'core.searcher'
local lang = require 'language'
local vm = require 'vm'
local guide = require 'parser.guide'
diff --git a/script/core/diagnostics/duplicate-set-field.lua b/script/core/diagnostics/duplicate-set-field.lua
index 492793b1..f8201309 100644
--- a/script/core/diagnostics/duplicate-set-field.lua
+++ b/script/core/diagnostics/duplicate-set-field.lua
@@ -1,5 +1,4 @@
local files = require 'files'
-local searcher = require 'core.searcher'
local lang = require 'language'
local define = require 'proto.define'
local guide = require "parser.guide"
diff --git a/script/core/diagnostics/no-implicit-any.lua b/script/core/diagnostics/no-implicit-any.lua
index 6ff17c81..47f1b997 100644
--- a/script/core/diagnostics/no-implicit-any.lua
+++ b/script/core/diagnostics/no-implicit-any.lua
@@ -1,7 +1,7 @@
local files = require 'files'
local guide = require 'parser.guide'
local lang = require 'language'
-local infer = require 'core.infer'
+local infer = require 'vm.infer'
return function (uri, callback)
local ast = files.getState(uri)
@@ -20,7 +20,7 @@ return function (uri, callback)
and source.type ~= 'tableindex' then
return
end
- if infer.searchAndViewInfers(source) == 'any' then
+ if infer.viewType(source) == 'any' then
callback {
start = source.start,
finish = source.finish,
diff --git a/script/core/diagnostics/not-yieldable.lua b/script/core/diagnostics/not-yieldable.lua
index 5736b1e2..706c83e0 100644
--- a/script/core/diagnostics/not-yieldable.lua
+++ b/script/core/diagnostics/not-yieldable.lua
@@ -3,7 +3,7 @@ local await = require 'await'
local guide = require 'parser.guide'
local vm = require 'vm'
local lang = require 'language'
-local infer = require 'core.infer'
+local infer = require 'vm.infer'
local function isYieldAble(defs, i)
local hasFuncDef
diff --git a/script/core/diagnostics/type-check.lua b/script/core/diagnostics/type-check.lua
index 58574bfa..cbdb40a1 100644
--- a/script/core/diagnostics/type-check.lua
+++ b/script/core/diagnostics/type-check.lua
@@ -1,7 +1,7 @@
local files = require 'files'
local guide = require 'parser.guide'
local vm = require 'vm'
-local infer = require 'core.infer'
+local infer = require 'vm.infer'
local await = require 'await'
local hasVarargs, errType