summaryrefslogtreecommitdiff
path: root/script/core
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-05-15 18:26:48 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-05-15 18:26:48 +0800
commitbe2b5b4b55fd4e47cbb5601f3e9b21cc86d74bc1 (patch)
tree03ea4d53e4373fd3c5cb2a9fe62825d0f53bf9a2 /script/core
parent43fdd200c89cc4356e50ccf4bd4f4a94bc1ae701 (diff)
downloadlua-language-server-be2b5b4b55fd4e47cbb5601f3e9b21cc86d74bc1.zip
stash
Diffstat (limited to 'script/core')
-rw-r--r--script/core/linker.lua12
1 files changed, 11 insertions, 1 deletions
diff --git a/script/core/linker.lua b/script/core/linker.lua
index e1be2323..d781d77a 100644
--- a/script/core/linker.lua
+++ b/script/core/linker.lua
@@ -427,7 +427,7 @@ function m.compileLink(source)
pushForward(getID(source.class), id)
if source.extends then
for _, ext in ipairs(source.extends) do
- pushForward(id, getID(ext))
+ pushBackward(id, getID(ext))
pushBackward(getID(ext), id)
end
end
@@ -593,6 +593,11 @@ function m.compileLink(source)
)
pushForward(nodeID, getID(source.node))
end
+ local keyID = ('%s%s'):format(
+ id,
+ TABLE_KEY
+ )
+ pushForward(keyID, 'dn:integer')
end
-- 将函数的返回值映射到具体的返回值上
if source.type == 'function' then
@@ -697,6 +702,11 @@ function m.compileLink(source)
ANY_FIELD
)
pushForward(nodeID, getID(source.node))
+ local keyID = ('%s%s'):format(
+ id,
+ TABLE_KEY
+ )
+ pushForward(keyID, 'dn:integer')
end
if proto.type == 'doc.type.table' then
if source.tkey then