forked from phoedos/pmd
Fix compil in modelica
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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) {
|
||||
|
@ -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() {
|
||||
|
Reference in New Issue
Block a user