public LuaStatementSyntax Transpile(JassLoopStatementSyntax loopStatement)
        {
            var whileStatement = new LuaWhileStatementSyntax(LuaIdentifierLiteralExpressionSyntax.True);

            whileStatement.Body.Statements.AddRange(Transpile(loopStatement.Body));

            return(whileStatement);
        }
Exemple #2
0
 internal void Render(LuaWhileStatementSyntax node)
 {
     Write(node.WhileKeyword);
     WriteSpace();
     node.Condition.Render(this);
     WriteSpace();
     node.Body.Render(this);
     WriteNewLine();
 }