From 75509a89ecc69c683c015a97c9844746c81e6057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 14 Apr 2022 22:23:32 +0800 Subject: cheanup --- script/parser/guide.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'script/parser/guide.lua') diff --git a/script/parser/guide.lua b/script/parser/guide.lua index c4b0b1db..c0f33c28 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -21,7 +21,6 @@ local type = type ---@field specials parser.object[] ---@field labels parser.object[] ---@field node parser.object ----@field dummy boolean ---@field field parser.object ---@field method parser.object ---@field index parser.object @@ -833,6 +832,7 @@ end local isSetMap = { ['setglobal'] = true, ['local'] = true, + ['self'] = true, ['setlocal'] = true, ['setfield'] = true, ['setmethod'] = true, @@ -931,6 +931,7 @@ function m.getKeyName(obj) or tp == 'setglobal' then return obj[1] elseif tp == 'local' + or tp == 'self' or tp == 'getlocal' or tp == 'setlocal' then return obj[1] @@ -999,6 +1000,7 @@ function m.getKeyType(obj) or tp == 'setglobal' then return 'string' elseif tp == 'local' + or tp == 'self' or tp == 'getlocal' or tp == 'setlocal' then return 'local' -- cgit v1.2.3