예제 #1
0
파일: CSToUL.cs 프로젝트: xiongfang/UL
        void ExportStatement(ReturnStatementSyntax ss)
        {
            var node = new ULStatementReturn();

            node.Parent = currentBlock;
            node.Arg    = ExportExp(ss.Expression).GetOutputName(0);
            currentBlock.statements.Add(node);
        }
예제 #2
0
파일: ULToCS.cs 프로젝트: xiongfang/UL
 void ToStatement(ULStatementReturn s)
 {
     BeginAppendLine();
     Append("return");
     if (!string.IsNullOrEmpty(s.Arg))
     {
         Append(" " + s.Arg);
     }
     Append(";");
     EndAppendLine();
 }