Пример #1
0
 public void AcceptReturn(ReturnStatement stmt)
 {
 }
Пример #2
0
 public void AcceptReturn(ReturnStatement stmt)
 {
     Result = stmt.ReturnValue;
 }
Пример #3
0
 public virtual void Return()
 {
     ReturnStatement stmt = new ReturnStatement();
     _cstack.Peek().Statements.Add(stmt);
 }
Пример #4
0
 public virtual void Return(Expression returnValue)
 {
     ReturnStatement stmt = new ReturnStatement()
     {
         ReturnValue = returnValue
     };
     _cstack.Peek().Statements.Add(stmt);
 }
Пример #5
0
 public void AcceptReturn(ReturnStatement stmt)
 {
     stmt.Successor = null;
 }
 public void AcceptReturn(ReturnStatement stmt)
 {
     if (stmt.ReturnValue != null)
         Resolve(stmt.ReturnValue);
 }
 public void AcceptReturn(ReturnStatement stmt)
 {
     if (stmt.ReturnValue != null)
         ReturnValue = stmt.ReturnValue.Eval(Evaluator);
     _execLeaf = stmt;
 }
 public override void AcceptReturn(ReturnStatement stmt)
 {
     Success = false;
 }
Пример #9
0
 public void AcceptReturn(ReturnStatement stmt)
 {
     GenerateComments(stmt);
     _tw.Write("return");
     if (stmt.ReturnValue != null)
         _tw.Write(" " + stmt.ReturnValue.ToString(_vhdg));
     _tw.WriteLine(";");
 }