Beispiel #1
0
        void ExportStatement(ReturnStatementSyntax ss)
        {
            var node = new ULStatementReturn();

            node.Parent = currentBlock;
            node.Arg    = ExportExp(ss.Expression).GetOutputName(0);
            currentBlock.statements.Add(node);
        }
Beispiel #2
0
 void ToStatement(ULStatementReturn s)
 {
     BeginAppendLine();
     Append("return");
     if (!string.IsNullOrEmpty(s.Arg))
     {
         Append(" " + s.Arg);
     }
     Append(";");
     EndAppendLine();
 }