diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-09-28 16:56:57 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-09-28 16:56:57 +0800 |
commit | f1a974b7ea759adcd4af571bc7752d5b4761927b (patch) | |
tree | 8da78c614d38bfec1569f44c010603cedefa6e8f /script | |
parent | 05555beda5b14005c61602dc400241d5c62805c4 (diff) | |
download | lua-language-server-f1a974b7ea759adcd4af571bc7752d5b4761927b.zip |
#477
Diffstat (limited to 'script')
-rw-r--r-- | script/core/noder.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index bd8aaf84..9cebe26f 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -1176,6 +1176,8 @@ compileNodeMap = util.switch() end end if source.args then + local parent = source.parent + local parentID = guide.isSet(parent) and getID(parent) for i, arg in ipairs(source.args) do if arg[1] == 'self' then goto CONTINUE @@ -1192,12 +1194,26 @@ compileNodeMap = util.switch() , PARAM_NAME , arg[1] )) + if parentID then + pushForward(noders, getID(arg), sformat('%s%s%s' + , parentID + , PARAM_NAME + , arg[1] + )) + end else pushForward(noders, getID(arg), sformat('%s%s%s' , id , PARAM_NAME , '...' )) + if parentID then + pushForward(noders, getID(arg), sformat('%s%s%s' + , parentID + , PARAM_NAME + , '...' + )) + end end ::CONTINUE:: end |