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