summaryrefslogtreecommitdiff
path: root/script/parser/compile.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2023-06-25 15:03:15 +0800
committer最萌小汐 <sumneko@hotmail.com>2023-06-25 15:03:20 +0800
commit5abdc683b2577131d96db210987e37e4e99203fc (patch)
tree80511c8d54c953170263076bfa9fef9e5bd53a1a /script/parser/compile.lua
parent0d178e1c2336022c7d9996367cfe2fd0fce91857 (diff)
downloadlua-language-server-5abdc683b2577131d96db210987e37e4e99203fc.zip
fix
Diffstat (limited to 'script/parser/compile.lua')
-rw-r--r--script/parser/compile.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index e09c958f..6542efbd 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -2313,7 +2313,12 @@ local function parseFunction(isLocal, isAction)
local params
if func.name and func.name.type == 'getmethod' then
if func.name.type == 'getmethod' then
- params = {}
+ params = {
+ type = 'funcargs',
+ start = funcRight,
+ finish = funcRight,
+ parent = func
+ }
params[1] = createLocal {
start = funcRight,
finish = funcRight,