diff options
author | sumneko <sumneko@hotmail.com> | 2022-03-05 04:24:39 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2022-03-05 04:24:39 +0800 |
commit | ba84c67f8ebdf42d429eec829067233db13a0f0b (patch) | |
tree | 32e9b91bf9ac0d110d631c278824a47c333e775f /script/parser | |
parent | 513023b9ee1d4af55e43d530fe5ed1092beb79ce (diff) | |
download | lua-language-server-ba84c67f8ebdf42d429eec829067233db13a0f0b.zip |
update
Diffstat (limited to 'script/parser')
-rw-r--r-- | script/parser/guide.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 730a099d..e877ddce 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -41,7 +41,6 @@ local type = type ---@field closure parser.object ---@field proto parser.object ---@field exp parser.object ----@field isGeneric boolean ---@field alias parser.object ---@field class parser.object ---@field vararg parser.object @@ -648,10 +647,10 @@ function m.eachSourceBetween(ast, start, finish, callback) end local function getSourceTypeCache(ast) - local cache = ast.typeCache + local cache = ast._typeCache if not cache then cache = {} - ast.typeCache = cache + ast._typeCache = cache m.eachSource(ast, function (source) local tp = source.type if not tp then @@ -694,10 +693,10 @@ end --- 遍历所有的source function m.eachSource(ast, callback) - local cache = ast.eachCache + local cache = ast._eachCache if not cache then cache = { ast } - ast.eachCache = cache + ast._eachCache = cache local mark = {} local index = 1 while true do |