From a30496ef662866eb0790031aadb743ff9384862a Mon Sep 17 00:00:00 2001 From: osyrisrblx Date: Wed, 4 Oct 2023 21:16:15 -0400 Subject: [PATCH] Break things for fun --- .../indexable/renderParenthesizedExpression.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/LuauRenderer/nodes/expressions/indexable/renderParenthesizedExpression.ts b/src/LuauRenderer/nodes/expressions/indexable/renderParenthesizedExpression.ts index 655c235..af2e88d 100644 --- a/src/LuauRenderer/nodes/expressions/indexable/renderParenthesizedExpression.ts +++ b/src/LuauRenderer/nodes/expressions/indexable/renderParenthesizedExpression.ts @@ -2,14 +2,5 @@ import luau from "LuauAST"; import { render, RenderState } from "LuauRenderer"; export function renderParenthesizedExpression(state: RenderState, node: luau.ParenthesizedExpression) { - // skip nested parentheses - let expression = node.expression; - while (luau.isParenthesizedExpression(expression)) { - expression = expression.expression; - } - if (luau.isSimple(expression)) { - return render(state, node.expression); - } else { - return `(${render(state, node.expression)})`; - } + return render(state, node.expression); }