summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
Diffstat (limited to 'script/core')
-rw-r--r--script/core/noder.lua3
-rw-r--r--script/core/searcher.lua3
2 files changed, 5 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua
index 428cba26..9bb2b9b5 100644
--- a/script/core/noder.lua
+++ b/script/core/noder.lua
@@ -439,6 +439,9 @@ function m.compileNode(noders, source)
if func.isGeneric then
return
end
+ if source.parent.type ~= 'funcargs' then
+ return
+ end
local setmethod = func.parent
-- guess `self`
if setmethod and ( setmethod.type == 'setmethod'
diff --git a/script/core/searcher.lua b/script/core/searcher.lua
index 52b0b5ea..2b4b4caa 100644
--- a/script/core/searcher.lua
+++ b/script/core/searcher.lua
@@ -6,6 +6,7 @@ local ws = require 'workspace'
local vm = require 'vm.vm'
local globals = require 'vm.globals'
local docs = require 'vm.docs'
+local await = require 'await'
local NONE = {'NONE'}
local LAST = {'LAST'}
@@ -185,7 +186,7 @@ local function crossSearch(status, uri, expect, mode)
return
end
status.lock[uri] = true
- --await.delay()
+ await.delay()
if TRACE then
log.debug('crossSearch', uri, expect)
end