示例#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);
 }
 protected internal Goto(NRefactory.GotoStatement gotoStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     _gotoStatement = gotoStatement;
     InternalType = TypeSystem.Void;
     LabelTarget = RootScope.RegisterLabel(InternalType, _gotoStatement.Label);
 }
示例#3
0
 void IAstVisitor.VisitGotoStatement(GotoStatement gotoStatement)
 {
     Visit(EnterGotoStatement, LeaveGotoStatement, gotoStatement);
 }
示例#4
0
 public override void VisitGotoStatement(GotoStatement gotoStatement)
 {
     VisitChildren(gotoStatement);
     FixSemicolon(gotoStatement.SemicolonToken);
 }
示例#5
0
 public virtual S VisitGotoStatement(GotoStatement gotoStatement, T data)
 {
     return(VisitChildren(gotoStatement, data));
 }
示例#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();
 }
示例#9
0
 public override AstExpression VisitGotoStatement(NRefactory.GotoStatement gotoStatement, IScope scope)
 {
     return(AstExpression.Goto(gotoStatement, scope, this));
 }