public LuaStatementSyntax Transpile(JassLoopStatementSyntax loopStatement) { var whileStatement = new LuaWhileStatementSyntax(LuaIdentifierLiteralExpressionSyntax.True); whileStatement.Body.Statements.AddRange(Transpile(loopStatement.Body)); return(whileStatement); }
internal void Render(LuaWhileStatementSyntax node) { Write(node.WhileKeyword); WriteSpace(); node.Condition.Render(this); WriteSpace(); node.Body.Render(this); WriteNewLine(); }