Fix compil in modelica

This commit is contained in:
Clément Fournier
2020-08-11 14:10:20 +02:00
parent 6aa1be26f7
commit 02a98fb5bf
3 changed files with 3 additions and 10 deletions

View File

@ -68,7 +68,7 @@ public class ScopeAndDeclarationFinder extends ModelicaParserVisitorAdapter {
}
private Object cont(ModelicaNode node) {
super.visit(node, null);
super.visitModelicaNode(node, null);
scopes.pop();
return null;
}

View File

@ -28,13 +28,6 @@ public abstract class AbstractModelicaRule extends AbstractRule implements Model
((ModelicaNode) target).jjtAccept(this, ctx);
}
@Override
public Object visit(ModelicaNode node, Object data) {
for (ModelicaNode child : node.children()) {
child.jjtAccept(this, data);
}
return data;
}
@Override
public boolean dependsOn(AstProcessingStage<?> stage) {

View File

@ -31,12 +31,12 @@ public class ModelicaResolverTest {
}
@Override
public Object visit(ModelicaNode node, Object data) {
public Object visitModelicaNode(ModelicaNode node, Object data) {
if (nodeClass.isInstance(node) && node.getImage().equals(nodeName)) {
Assert.assertNull(result);
result = node;
}
return super.visit(node, data);
return super.visitModelicaNode(node, data);
}
ModelicaNode getResult() {