Skip to content
Snippets Groups Projects
Commit 4acf4f07 authored by Jesper's avatar Jesper
Browse files

[incremental] Fix unbound template variable

This reverts commit 1a307252.

fixes #332
parent 1a307252
No related branches found
No related tags found
No related merge requests found
...@@ -631,10 +631,12 @@ aspect JragCodeGen { ...@@ -631,10 +631,12 @@ aspect JragCodeGen {
* Generates the Java method to evaluate an attribute. * Generates the Java method to evaluate an attribute.
*/ */
public void AttrDecl.emitAttrEquation(PrintStream out) { public void AttrDecl.emitAttrEquation(PrintStream out) {
TemplateContext tc = templateContext();
tc.bind("HostClass", hostClassName());
if (isCircular()) { if (isCircular()) {
templateContext().bind("CircularComputeRhs", circularComputeRhs()); tc.bind("CircularComputeRhs", circularComputeRhs());
} else { } else {
templateContext().bind("ComputeRhs", computeRhs()); tc.bind("ComputeRhs", computeRhs());
} }
emitAttrEquationWithComment(out, parametersDecl(), docComment()); emitAttrEquationWithComment(out, parametersDecl(), docComment());
} }
......
...@@ -235,7 +235,7 @@ $endif ...@@ -235,7 +235,7 @@ $endif
#resetCache #resetCache
#(signature)_handler.notifyDependencies(); #(signature)_handler.notifyDependencies();
$if (TraceFlush) $if (TraceFlush)
state().trace().flushIncAttr(#hostClassName.this, "#hostClassName.#signatureJavaStyle", "", ""); state().trace().flushIncAttr($HostClass.this, "#signature", "", "");
$endif $endif
} }
$endif $endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment