From fcc64b070a4c3cf0af7470ae8587080d336fed73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 15 Jun 2021 20:04:00 +0800 Subject: improve --- script/core/noder.lua | 3 +++ script/core/searcher.lua | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'script/core') 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 -- cgit v1.2.3