Exemplo n.º 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;
 }
Exemplo n.º 2
0
        S IAstVisitor <T, S> .VisitThrowStatement(ThrowStatement throwStatement, T data)
        {
            var handler = ThrowStatementVisited;

            if (handler != null)
            {
                handler(throwStatement, data);
            }
            return(VisitChildren(throwStatement, data));
        }
Exemplo n.º 3
0
 void IAstVisitor.VisitThrowStatement(ThrowStatement throwStatement)
 {
     Visit(EnterThrowStatement, LeaveThrowStatement, throwStatement);
 }
Exemplo n.º 4
0
 public virtual S VisitThrowStatement(ThrowStatement throwStatement, T data)
 {
     return(VisitChildren(throwStatement, data));
 }
Exemplo n.º 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));
 }
Exemplo n.º 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();
 }
Exemplo n.º 9
0
 public override AstExpression VisitThrowStatement(NRefactory.ThrowStatement throwStatement, IScope scope)
 {
     return(AstExpression.Throw(throwStatement, scope, this));
 }