Skip to content
Snippets Groups Projects
Commit ea30ff25 authored by Mick Jordan's avatar Mick Jordan
Browse files

VarArgNode must not return null to getSourceSection

parent a1eeca98
Branches
No related tags found
No related merge requests found
......@@ -342,7 +342,11 @@ public abstract class PromiseNode extends RNode {
@Override
public SourceSection getSourceSection() {
return null;
/*
* These nodes can (currently) be visited by RSyntaxNode.accept in an already evaluated
* tree, so must not return null
*/
return RSyntaxNode.INTERNAL;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment