Skip to content

Commit

Permalink
Simplify reparenting on try node.
Browse files Browse the repository at this point in the history
  • Loading branch information
vddCore committed Apr 1, 2024
1 parent 3a594a5 commit 0b7ee2f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Core/EVIL.Grammar/AST/Statements/TryStatement.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@ public TryStatement(Statement innerStatement, IdentifierNode handlerExceptionLoc
HandlerExceptionLocal = handlerExceptionLocal;
HandlerStatement = handlerStatement;

Reparent(InnerStatement);
Reparent(HandlerExceptionLocal);
Reparent(HandlerStatement);
Reparent(InnerStatement, HandlerExceptionLocal, HandlerStatement);
}
}
}

0 comments on commit 0b7ee2f

Please sign in to comment.