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

Fix issues with NTA tokens when using param and debug

parent 47ad4c1c
Branches
No related tags found
No related merge requests found
......@@ -59,6 +59,7 @@ aspect IncrementalDebug {
if (attr.isHOA()) {
tt.bind("IsParameterized", attr.getNumParameter() > 0);
tt.bind("AttrSign", attr.signature());
tt.bind("IsToken", attr.isToken());
res.append(tt.expand("ASTDecl.checkAndDumpNTADeps"));
}
}
......@@ -73,7 +74,7 @@ aspect IncrementalDebug {
TemplateContext tt = templateContext();
// Add dump string for each coll attribute.
for (CollDecl decl : collDecls()) {
tt.bind("AttrSign", decl.signature());
tt.bind("AttrSign", decl.signature());
res.append(tt.expand("ASTDecl.checkAndDumpCollAttributeDeps"));
}
return res.toString();
......@@ -89,7 +90,8 @@ aspect IncrementalDebug {
for (AttrDecl attr : listOfCachedAttributes()) {
tt.bind("IsParameterized", attr.isParameterized());
tt.bind("IsNTA", attr.isHOA());
tt.bind("AttrSign", attr.signature());
tt.bind("AttrSign", attr.signature());
tt.bind("IsToken", attr.isToken());
res.append(tt.expand("ASTDecl.checkAndDumpAttributeDeps"));
}
return res.toString();
......
......@@ -247,12 +247,14 @@ if ($(AttrSign)_proxy != null) {
$(AttrSign)_proxy.dumpDependencies();
}
$else
$if (!IsToken)
if ($(AttrSign)_computed && ($(AttrSign)_value instanceof $ASTNode)) {
$(AttrSign)_value.dumpDependencies();
}
$endif
$endif
$endif
$endif
$if (IncrementalLevelAttr)
if ($(AttrSign)_handler != null) {
$(AttrSign)_handler.dumpDeps();
......@@ -263,12 +265,14 @@ if ($(AttrSign)_proxy != null) {
$(AttrSign)_proxy.dumpDependencies();
}
$else
$if (!IsToken)
if ($(AttrSign)_computed && ($(AttrSign)_value instanceof $ASTNode)) {
$(AttrSign)_value.dumpDependencies();
}
$endif
$endif
$endif
$endif
]]
# Generate code for method dumping dependencies in tree
......@@ -299,8 +303,10 @@ if ($(AttrSign)_proxy != null) {
$(AttrSign)_proxy.dumpDepsInTree();
}
$else
$if (!IsToken)
if ($(AttrSign)_computed && ($(AttrSign)_value instanceof $ASTNode)) {
$(AttrSign)_value.dumpDepsInTree();
}
$endif
$endif
]]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment