Skip to content
Snippets Groups Projects
Commit 6f362dc3 authored by Emma Söderberg's avatar Emma Söderberg
Browse files

Updates incremental debug dump of cached values.

The relative node ID should be printed when possible and not
the node ID.
parent fca9011c
Branches
No related tags found
No related merge requests found
......@@ -155,7 +155,11 @@ $endif
# TODO: Add support for parameterized/NTA collection attributes.
ASTDecl.dumpCollAttributeValue = [[
if ($(AttrSign)_computed) {
System.out.println("value(" + relativeNodeID() + ":$(AttrSign), " + $(AttrSign)_value + ")");
System.out.print("value(" + relativeNodeID() + ":$(AttrSign), [");
for (Object obj : $(AttrSign)_value) {
System.out.print((obj instanceof $ASTNode ? (($ASTNode) obj).relativeNodeID() : obj) + " ");
}
System.out.println("])");
}
]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment