From 89631834c454f1b87e767af6a576180e2bb6e145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Fri, 15 Apr 2022 03:04:44 +0800 Subject: fix --- script/parser/newparser.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/parser') 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 -- cgit v1.2.3