Skip to content
Snippets Groups Projects
Commit 1a1610b9 authored by Julien Lopez's avatar Julien Lopez
Browse files

Add support for ParNode in SyntaxNodeVisitor

parent 45ea904c
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,10 @@ public interface RSyntaxNodeVisitor<T> extends IRSyntaxNodeVisitor<T> {
public abstract T visit(final ReadVariableNode var);
public default T visit(final ParNode par) {
return par.getSyntaxArguments()[0].accept(this);
}
public abstract T visit(final WriteLocalFrameVariableNode var);
public abstract T visit(final FunctionExpressionNode fun);
......@@ -70,6 +74,8 @@ public interface RSyntaxNodeVisitor<T> extends IRSyntaxNodeVisitor<T> {
return visit((BlockNode) node);
if (node instanceof ReadVariableNode)
return visit((ReadVariableNode) node);
if (node instanceof ParNode)
return visit((ParNode) node);
if (node instanceof WriteLocalFrameVariableNode)
return visit((WriteLocalFrameVariableNode) node);
if (node instanceof FunctionExpressionNode)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment