From ba84c67f8ebdf42d429eec829067233db13a0f0b Mon Sep 17 00:00:00 2001
From: sumneko <sumneko@hotmail.com>
Date: Sat, 5 Mar 2022 04:24:39 +0800
Subject: update

---
 script/parser/guide.lua | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'script/parser/guide.lua')

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
-- 
cgit v1.2.3