コード例 #1
0
 protected internal Case(NRefactory.CaseLabel caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor)
 {
     _caseLabel   = caseLabel;
     TestValue    = caseLabel.Expression.AcceptVisitor(Visitor, scope);
     InternalType = TestValue.Type;
 }
コード例 #2
0
 protected internal CaseLabel(NRefactory.CaseLabel caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     var expression = caseLabel.Expression;
     _caseLabel = caseLabel;
     DefaultValue = expression.AcceptVisitor(Visitor, ParentScope);
     InternalType = DefaultValue.Type;
 }
コード例 #3
0
        protected internal CaseLabel(NRefactory.CaseLabel caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor)
            : base(scope, visitor)
        {
            var expression = caseLabel.Expression;

            _caseLabel   = caseLabel;
            DefaultValue = expression.AcceptVisitor(Visitor, ParentScope);
            InternalType = DefaultValue.Type;
        }
コード例 #4
0
        S IAstVisitor <T, S> .VisitCaseLabel(CaseLabel caseLabel, T data)
        {
            var handler = CaseLabelVisited;

            if (handler != null)
            {
                handler(caseLabel, data);
            }
            return(VisitChildren(caseLabel, data));
        }
コード例 #5
0
ファイル: ObservableAstVisitor.cs プロジェクト: sq/ILSpy-JSIL
 void IAstVisitor.VisitCaseLabel(CaseLabel caseLabel)
 {
     Visit(EnterCaseLabel, LeaveCaseLabel, caseLabel);
 }
コード例 #6
0
 public virtual S VisitCaseLabel(CaseLabel caseLabel, T data)
 {
     return(VisitChildren(caseLabel, data));
 }
コード例 #7
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            CaseLabel o = other as CaseLabel;

            return(o != null && this.Expression.DoMatch(o.Expression, match));
        }
コード例 #8
0
 public override void VisitCaseLabel(CaseLabel caseLabel)
 {
     ForceSpacesBefore(caseLabel.ColonToken, false);
 }
コード例 #9
0
 public override void VisitCaseLabel(CaseLabel caseLabel)
 {
     FixSemicolon(caseLabel.ColonToken);
 }
コード例 #10
0
 protected internal Case(NRefactory.CaseLabel caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     _caseLabel = caseLabel;
     TestValue = caseLabel.Expression.AcceptVisitor(Visitor, scope);
     InternalType = TestValue.Type;
 }
コード例 #11
0
 public static Case SwitchCase(NRefactory.CaseLabel caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new Case(caseLabel, scope, visitor));
 }
コード例 #12
0
 public virtual S VisitCaseLabel(CaseLabel caseLabel, T data)
 {
     throw new NotImplementedException();
 }
コード例 #13
0
 public override AstExpression VisitCaseLabel(NRefactory.CaseLabel caseLabel, IScope scope)
 {
     return(AstExpression.SwitchCase(caseLabel, scope, this));
 }