From 0b7ee2f702f3354d66b0383a3983140c0b915acd Mon Sep 17 00:00:00 2001 From: vddCore Date: Mon, 1 Apr 2024 10:32:52 +0200 Subject: [PATCH] Simplify reparenting on try node. --- Core/EVIL.Grammar/AST/Statements/TryStatement.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Core/EVIL.Grammar/AST/Statements/TryStatement.cs b/Core/EVIL.Grammar/AST/Statements/TryStatement.cs index ba0fa73..9682cb2 100644 --- a/Core/EVIL.Grammar/AST/Statements/TryStatement.cs +++ b/Core/EVIL.Grammar/AST/Statements/TryStatement.cs @@ -16,9 +16,7 @@ public TryStatement(Statement innerStatement, IdentifierNode handlerExceptionLoc HandlerExceptionLocal = handlerExceptionLocal; HandlerStatement = handlerStatement; - Reparent(InnerStatement); - Reparent(HandlerExceptionLocal); - Reparent(HandlerStatement); + Reparent(InnerStatement, HandlerExceptionLocal, HandlerStatement); } } } \ No newline at end of file