Beispiel #1
0
 void ToStatement(ULStatement s)
 {
     if (s == null)
     {
         return;
     }
     if (s is ULNodeBlock)
     {
         ToBody(s as ULNodeBlock);
     }
     else if (s is ULStatementIf)
     {
         ToStatement(s as ULStatementIf);
     }
     else if (s is ULCall)
     {
         ToStatement(s as ULCall);
     }
     else if (s is ULStatementReturn)
     {
         ToStatement(s as ULStatementReturn);
     }
     else
     {
         Console.Error.WriteLine("unknow statement " + s.GetType().Name);
     }
 }
Beispiel #2
0
 void ToStatement(ULStatement s)
 {
     if (s == null)
     {
         return;
     }
     if (s is ULNodeBlock)
     {
         ToBody(s as ULNodeBlock);
     }
 }