diff options
Diffstat (limited to 'script/core/linker.lua')
-rw-r--r-- | script/core/linker.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/script/core/linker.lua b/script/core/linker.lua index 4a031abe..f2a9e572 100644 --- a/script/core/linker.lua +++ b/script/core/linker.lua @@ -609,6 +609,22 @@ function m.compileLink(source) pushBackward(getID(tp), id) end end + if proto.type == 'doc.type.array' then + local nodeID = ('%s%s'):format( + id, + SPLIT_CHAR + ) + pushForward(nodeID, getID(source.node)) + end + if proto.type == 'doc.type.table' then + if source.value then + local valueID = ('%s%s'):format( + id, + SPLIT_CHAR + ) + pushForward(valueID, getID(source.value)) + end + end end end |