summaryrefslogtreecommitdiff
path: root/script/core/infer.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/infer.lua')
-rw-r--r--script/core/infer.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index d6784c67..2915f7f5 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -371,9 +371,10 @@ function m.getDocName(doc)
return nodeName .. '[]'
end
if doc.type == 'doc.type.table' then
- local key = m.viewDocName(doc.tkey) or '?'
+ local node = m.viewDocName(doc.node) or '?'
+ local key = m.viewDocName(doc.tkey) or '?'
local value = m.viewDocName(doc.tvalue) or '?'
- return ('table<%s, %s>'):format(key, value)
+ return ('%s<%s, %s>'):format(node, key, value)
end
if doc.type == 'doc.type.function' then
return m.viewDocFunction(doc)