diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2019-10-08 17:34:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2019-10-08 17:34:50 +0800 |
commit | e8058b91113196218d13befcbc529ddc2b621a3f (patch) | |
tree | 26a15d29c2ebbebed65b66f0e7272f5fd06bc14b /server-beta/src/parser/guide.lua | |
parent | 5c47b0112b8103ac42e37352410e518cee6b5c71 (diff) | |
download | lua-language-server-e8058b91113196218d13befcbc529ddc2b621a3f.zip |
method
Diffstat (limited to 'server-beta/src/parser/guide.lua')
-rw-r--r-- | server-beta/src/parser/guide.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server-beta/src/parser/guide.lua b/server-beta/src/parser/guide.lua index 428f3b8d..2120fe48 100644 --- a/server-beta/src/parser/guide.lua +++ b/server-beta/src/parser/guide.lua @@ -368,11 +368,15 @@ function m.getKeyName(obj) or tp == 'setfield' or tp == 'tablefield' then return 's|' .. obj.field[1] + elseif tp == 'getmethod' + or tp == 'setmethod' then + return 's|' .. obj.method[1] elseif tp == 'getindex' or tp == 'setindex' or tp == 'tableindex' then return m.getKeyName(obj.index) - elseif tp == 'field' then + elseif tp == 'field' + or tp == 'method' then return 's|' .. obj[1] elseif tp == 'index' then return m.getKeyName(obj.index) |