summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-08-12 18:13:19 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-08-12 18:13:19 +0800
commit7eb591ee3586ba2b51460bc96dc95ac510e82409 (patch)
tree95b990ec686bb8569524ff1ac87052cf119ab5b3
parent14dea676e24e3d2ef5ddba0ede98c348d2701c83 (diff)
downloadlua-language-server-7eb591ee3586ba2b51460bc96dc95ac510e82409.zip
暂存
-rw-r--r--script-beta/parser/guide.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/script-beta/parser/guide.lua b/script-beta/parser/guide.lua
index 2a930c79..ac218170 100644
--- a/script-beta/parser/guide.lua
+++ b/script-beta/parser/guide.lua
@@ -1209,6 +1209,17 @@ function m.searchSameFieldsCrossMethod(status, ref, start, queue)
end
end
+function m.checkSameSimpleInCallInSameFile(status, func, args, index)
+ local newStatus = m.status(status)
+ m.searchRefs(newStatus, func, 'def')
+ local results = {}
+ for _, def in ipairs(newStatus.results) do
+ if def.type == 'function' then
+
+ end
+ end
+end
+
function m.checkSameSimpleInCall(status, ref, start, queue, mode)
if not status.interface.call then
return
@@ -1217,6 +1228,7 @@ function m.checkSameSimpleInCall(status, ref, start, queue, mode)
if not func then
return
end
+ local objs = m.checkSameSimpleInCallInSameFile(status, func, args, index)
local objs = status.interface.call(func, args, index)
if not objs then
return