summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/undefined-field.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/undefined-field.lua')
-rw-r--r--script/core/diagnostics/undefined-field.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/script/core/diagnostics/undefined-field.lua b/script/core/diagnostics/undefined-field.lua
index 025c217a..41fcda48 100644
--- a/script/core/diagnostics/undefined-field.lua
+++ b/script/core/diagnostics/undefined-field.lua
@@ -3,7 +3,6 @@ local vm = require 'vm'
local lang = require 'language'
local guide = require 'parser.guide'
local await = require 'await'
-local infer = require 'vm.infer'
local skipCheckClass = {
['unknown'] = true,
@@ -35,7 +34,7 @@ return function (uri, callback)
local node = src.node
if node then
local ok
- for view in infer.getInfer(node):eachView() do
+ for view in vm.getInfer(node):eachView() do
if not skipCheckClass[view] then
ok = true
break