summaryrefslogtreecommitdiff
path: root/script/parser/guide.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r--script/parser/guide.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua
index c34e65f9..53849a52 100644
--- a/script/parser/guide.lua
+++ b/script/parser/guide.lua
@@ -2937,6 +2937,11 @@ end
function m.getRefCache(status, obj, mode)
local isDeep = status.deep
+ if mode == 'infer' then
+ if not isDeep then
+ return nil, nil
+ end
+ end
local globalCache = status.interface.cache and status.interface.cache() or {}
if m.isGlobal(obj) then
obj = m.getKeyName(obj)