Skip to content
Snippets Groups Projects
Commit 826ece8d authored by Adam Welc's avatar Adam Welc
Browse files

Removed non-thread safe static variable used only for fatal error reporting purposes.

parent ea9a937a
Branches
No related tags found
No related merge requests found
......@@ -85,14 +85,8 @@ public final class ReplacementNode extends RNode implements RSyntaxNode {
state.endNodeDeparse(this);
}
private static ReplacementNode current;
@Override
public void serializeImpl(RSerialize.State state) {
if (this == current) {
throw RInternalError.shouldNotReachHere("replacement recursion");
}
current = this;
syntaxAST.serializeImpl(state);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment