diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-01-10 21:07:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-01-10 21:07:48 +0800 |
commit | 5188c59384eee1b0a58b041f877c983788e9c3bf (patch) | |
tree | bbf545738acbd7fc6205392fd8b68440c283ff96 /script/parser | |
parent | 709ec79260b448db181ea854d8288b334a812bb4 (diff) | |
download | lua-language-server-5188c59384eee1b0a58b041f877c983788e9c3bf.zip |
stash
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 3ab06aee..7718cc8a 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -884,7 +884,7 @@ function m.getLineRange(state, row) return 0 end -local isSetMap = { +local assignTypeMap = { ['setglobal'] = true, ['local'] = true, ['self'] = true, @@ -908,7 +908,7 @@ local isSetMap = { } function m.isAssign(source) local tp = source.type - if isSetMap[tp] then + if assignTypeMap[tp] then return true end if tp == 'call' then @@ -920,7 +920,7 @@ function m.isAssign(source) return false end -local isGetMap = { +local getTypeMap = { ['getglobal'] = true, ['getlocal'] = true, ['getfield'] = true, @@ -929,7 +929,7 @@ local isGetMap = { } function m.isGet(source) local tp = source.type - if isGetMap[tp] then + if getTypeMap[tp] then return true end if tp == 'call' then |