diff options
Diffstat (limited to 'server-beta/src/searcher/eachRef.lua')
-rw-r--r-- | server-beta/src/searcher/eachRef.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/server-beta/src/searcher/eachRef.lua b/server-beta/src/searcher/eachRef.lua index 6e5703a7..91acb403 100644 --- a/server-beta/src/searcher/eachRef.lua +++ b/server-beta/src/searcher/eachRef.lua @@ -109,6 +109,9 @@ end --- 自己作为函数的参数 local function asArg(searcher, source, callback) local parent = source.parent + if not parent then + return + end if parent.type == 'callargs' then local call = parent.parent local func = call.node @@ -234,6 +237,9 @@ end local function ofLiteral(searcher, source, callback) local parent = source.parent + if not parent then + return + end if parent.type == 'setindex' or parent.type == 'getindex' then ofField(searcher, source, callback) |