Skip to content
Snippets Groups Projects
Commit 9a65594c authored by Jesper's avatar Jesper
Browse files

Fix test regression from commit 6558af9d

parent 873b08f8
Branches
No related tags found
No related merge requests found
......@@ -117,8 +117,9 @@ aspect IncrementalDebug {
StringBuffer res = new StringBuffer();
TemplateContext tt = templateContext();
for (AttrDecl attr : listOfCachedAttributes()) {
// TODO(joqvist): use AttrDecl as template context instead.
tt.bind("IsParameterized", attr.getNumParameter() > 0);
tt.bind("IsCircular", attr.isCircular());
tt.bind("SimpleCacheCheck", attr.simpleCacheCheck());
tt.bind("PrintAsObject", attr.isPrimitive() || attr.getType().equals("String"));
tt.bind("AttrSign", attr.signature());
res.append(tt.expand("ASTDecl.dumpCachedAttributeValue"));
......
......@@ -139,10 +139,10 @@ if ($(AttrSign)_values != null) {
}
}
$else
$if (IsCircular)
if ($(AttrSign)_computed == $StateClass.NON_CYCLE || $(AttrSign)_computed == state().cycle()) {
$else
$if (SimpleCacheCheck)
if ($(AttrSign)_computed) {
$else
if ($(AttrSign)_computed == $StateClass.NON_CYCLE || $(AttrSign)_computed == state().cycle()) {
$endif
$if (PrintAsObject)
System.out.println("value(" + relativeNodeID() + ":$(AttrSign), " + $(AttrSign)_value + ")");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment