コード例 #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);
 }
コード例 #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);
 }
コード例 #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
ファイル: GotoStatement.cs プロジェクト: wwh1004/NRefactory
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            GotoStatement o = other as GotoStatement;

            return(o != null && MatchString(this.Label, o.Label));
        }
コード例 #7
0
 public static Goto Goto(NRefactory.GotoStatement gotoStatement, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new Goto(gotoStatement, scope, visitor));
 }
コード例 #8
0
 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));
 }