public virtual object TrackedVisitReturnStatement(ReturnStatement returnStatement, object data)
 {
     return base.VisitReturnStatement(returnStatement, data);
 }
        public override object VisitReturnStatement(ReturnStatement returnStatement, object data)
        {
            CodeMethodReturnStatement returnStmt;
            if (returnStatement.Expression.IsNull)
                returnStmt = new CodeMethodReturnStatement();
            else
                returnStmt = new CodeMethodReturnStatement((CodeExpression)returnStatement.Expression.AcceptVisitor(this,data));

            AddStmt(returnStmt);

            return returnStmt;
        }
 public override sealed object VisitReturnStatement(ReturnStatement returnStatement, object data)
 {
     this.BeginVisit(returnStatement);
     object result = this.TrackedVisitReturnStatement(returnStatement, data);
     this.EndVisit(returnStatement);
     return result;
 }
Пример #4
0
 public virtual object VisitReturnStatement(ReturnStatement returnStatement, object data)
 {
     Debug.Assert((returnStatement != null));
     Debug.Assert((returnStatement.Expression != null));
     return returnStatement.Expression.AcceptVisitor(this, data);
 }
 public virtual object VisitReturnStatement(ReturnStatement returnStatement, object data)
 {
     throw new global::System.NotImplementedException("ReturnStatement");
 }
Пример #6
0
 void ReturnStatement(out Statement statement)
 {
     Expression expr = null;
     Expect(195);
     if (StartOf(24)) {
     Expr(out expr);
     }
     statement = new ReturnStatement(expr);
 }
 public virtual object VisitReturnStatement(ReturnStatement returnStatement, object data)
 {
     Debug.Assert((returnStatement != null));
     Debug.Assert((returnStatement.Expression != null));
     nodeStack.Push(returnStatement.Expression);
     returnStatement.Expression.AcceptVisitor(this, data);
     returnStatement.Expression = ((Expression)(nodeStack.Pop()));
     return null;
 }