Exemplo n.º 1
0
 protected internal Goto(NRefactory.GotoStatement gotoStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor)
 {
     _gotoStatement = gotoStatement;
     InternalType   = TypeSystem.Void;
     LabelTarget    = RootScope.RegisterLabel(InternalType, _gotoStatement.Label);
 }
Exemplo n.º 2
0
 protected internal Goto(NRefactory.GotoStatement gotoStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     _gotoStatement = gotoStatement;
     InternalType = TypeSystem.Void;
     LabelTarget = RootScope.RegisterLabel(InternalType, _gotoStatement.Label);
 }
Exemplo n.º 3
0
 void IAstVisitor.VisitGotoStatement(GotoStatement gotoStatement)
 {
     Visit(EnterGotoStatement, LeaveGotoStatement, gotoStatement);
 }
Exemplo n.º 4
0
 public override void VisitGotoStatement(GotoStatement gotoStatement)
 {
     VisitChildren(gotoStatement);
     FixSemicolon(gotoStatement.SemicolonToken);
 }
Exemplo n.º 5
0
 public virtual S VisitGotoStatement(GotoStatement gotoStatement, T data)
 {
     return(VisitChildren(gotoStatement, data));
 }
Exemplo n.º 6
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            GotoStatement o = other as GotoStatement;

            return(o != null && MatchString(this.Label, o.Label));
        }
 public static Goto Goto(NRefactory.GotoStatement gotoStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new Goto(gotoStatement, scope, visitor));
 }
 public virtual S VisitGotoStatement(GotoStatement gotoStatement, T data)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 9
0
 public override AstExpression VisitGotoStatement(NRefactory.GotoStatement gotoStatement, IScope scope)
 {
     return(AstExpression.Goto(gotoStatement, scope, this));
 }