summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2020-12-05 11:02:02 +0800
committer最萌小汐 <sumneko@hotmail.com>2020-12-05 11:02:02 +0800
commit31a4c20b3597cdf07e4b4e3ddbfeb2181a1e1559 (patch)
tree53b880dce6049f7a89d24581d1d718cc717046ee /script/parser/guide.lua
parentacf1fe450e713911c6d0b9f60a0f0b81a2fce143 (diff)
downloadlua-language-server-31a4c20b3597cdf07e4b4e3ddbfeb2181a1e1559.zip
fix #276 dont share crossMethodMark
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index 7fa2f3e2..4766257c 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -1697,10 +1697,10 @@ function m.searchSameMethod(ref, mark)
end
function m.searchSameFieldsCrossMethod(status, ref, start, queue)
- local mark = status.cache.crossMethodMark
+ local mark = status.crossMethodMark
if not mark then
mark = {}
- status.cache.crossMethodMark = mark
+ status.crossMethodMark = mark
end
local method = m.searchSameMethod(ref, mark)
or m.searchSameMethodCrossSelf(ref, mark)