diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-15 03:04:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-15 03:04:44 +0800 |
commit | 89631834c454f1b87e767af6a576180e2bb6e145 (patch) | |
tree | ed9eec4271572a347529c39e6bbc83af091af120 /script/parser | |
parent | e868888ba9a4b45b23cf07fef2e570ed9a27bc4e (diff) | |
download | lua-language-server-89631834c454f1b87e767af6a576180e2bb6e145.zip |
fix
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/newparser.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/parser/newparser.lua b/script/parser/newparser.lua index 8b5e6ee8..e226417f 100644 --- a/script/parser/newparser.lua +++ b/script/parser/newparser.lua @@ -1749,13 +1749,13 @@ local function addDummySelf(node, call) parent = call, } end - local self = createLocal { + local self = { + type = 'self', start = node.colon.start, finish = node.colon.finish, parent = call.args, [1] = 'self', } - self.type = 'self' tinsert(call.args, 1, self) end |