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

Include super call in flushCache

parent c9ebc39b
No related branches found
No related tags found
No related merge requests found
......@@ -41,10 +41,11 @@ aspect Flush {
stream.println(ind + " */");
stream.print(ind + "public void flushCache() {\n");
if(grammar().block) stream.print(grammar().blockBegin);
if (grammar().fullFlush) {
if(!name().equals("ASTNode")) {
stream.print(ind(2) + "super.flushCache();\n");
} else {
}
if (grammar().fullFlush) {
if (name().equals("ASTNode")) {
emitFlushCacheForRewrites(stream);
}
stream.print(flushNTACacheString());
......
......@@ -969,6 +969,7 @@ aspect JragCodeGen {
for(int i = 0; i < getNumSynEq(); i++) {
AttrEq equ = getSynEq(i);
AttrDecl attr = equ.decl();
emitCacheDeclarations(out, attr);
if (attr.isNTA() || attr.getLazy() || attr.isCircular()) {
out.print(equ.hostFileComment());
emitEquation(attr, equ.parametersDecl(), out);
......@@ -976,8 +977,6 @@ aspect JragCodeGen {
} else {
attr.emitInlineCompute(equ, out);
}
emitCacheDeclarations(out, attr);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment