예제 #1
0
 protected internal Throw(NRefactory.ThrowStatement throwStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor)
 {
     _throwStatement = throwStatement;
     Value           = throwStatement.Expression.AcceptVisitor(Visitor, ParentScope);
     InternalType    = TypeSystem.Void;
 }
예제 #2
0
        S IAstVisitor <T, S> .VisitThrowStatement(ThrowStatement throwStatement, T data)
        {
            var handler = ThrowStatementVisited;

            if (handler != null)
            {
                handler(throwStatement, data);
            }
            return(VisitChildren(throwStatement, data));
        }
예제 #3
0
 void IAstVisitor.VisitThrowStatement(ThrowStatement throwStatement)
 {
     Visit(EnterThrowStatement, LeaveThrowStatement, throwStatement);
 }
예제 #4
0
 public virtual S VisitThrowStatement(ThrowStatement throwStatement, T data)
 {
     return(VisitChildren(throwStatement, data));
 }
예제 #5
0
 public override void VisitThrowStatement(ThrowStatement throwStatement)
 {
     VisitChildren(throwStatement);
     FixSemicolon(throwStatement.SemicolonToken);
 }
 public static Throw Throw(NRefactory.ThrowStatement throwStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new Throw(throwStatement, scope, visitor));
 }
예제 #7
0
 protected internal Throw(NRefactory.ThrowStatement throwStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     _throwStatement = throwStatement;
     Value = throwStatement.Expression.AcceptVisitor(Visitor, ParentScope);
     InternalType = TypeSystem.Void;
 }
 public virtual S VisitThrowStatement(ThrowStatement throwStatement, T data)
 {
     throw new NotImplementedException();
 }
예제 #9
0
 public override AstExpression VisitThrowStatement(NRefactory.ThrowStatement throwStatement, IScope scope)
 {
     return(AstExpression.Throw(throwStatement, scope, this));
 }