Skip to content
Snippets Groups Projects
Commit 784210ce authored by Jesper's avatar Jesper
Browse files

Add missing option in Ant task

Added the "inhEqCheck" option to the JastAdd Ant task.
parent d56f6a02
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,14 @@ aspect Subclasses { ...@@ -124,6 +124,14 @@ aspect Subclasses {
} }
aspect Parents { aspect Parents {
// This attribute, and parents() below, can not be memoized right now because
// it depends on a side effect adding NTAs to ASTDecls. If rewrites are
// enabled then this attribute is evaluated before all NTAs have been added,
// leading to incorrect results during inherited attribute checking.
//
// See these bitbucket issues:
// https://bitbucket.org/jastadd/jastadd2/issues/268/remove-side-effects-in-aspect-weaving
// https://bitbucket.org/jastadd/jastadd2/issues/269/jmodelica-build-is-too-slow
syn HashMap<TypeDecl, Collection<ASTDecl>> Grammar.parentMap() { syn HashMap<TypeDecl, Collection<ASTDecl>> Grammar.parentMap() {
HashMap<TypeDecl, Collection<ASTDecl>> map = new LinkedHashMap<TypeDecl, Collection<ASTDecl>>(); HashMap<TypeDecl, Collection<ASTDecl>> map = new LinkedHashMap<TypeDecl, Collection<ASTDecl>>();
for (int j = 0; j < getNumTypeDecl(); j++) { for (int j = 0; j < getNumTypeDecl(); j++) {
......
...@@ -166,6 +166,10 @@ public class JastAddTask extends Task { ...@@ -166,6 +166,10 @@ public class JastAddTask extends Task {
setOption(config.componentCheckOption, enable); setOption(config.componentCheckOption, enable);
} }
public void setInhEqCheck(boolean enable) {
setOption(config.inhEqCheckOption, enable);
}
public void setNoComponentCheck(boolean enable) { public void setNoComponentCheck(boolean enable) {
setOption(config.noComponentCheckOption, enable); setOption(config.noComponentCheckOption, enable);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment