protected internal Case(NRefactory.CaseLabel caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor) : base(scope, visitor) { _caseLabel = caseLabel; TestValue = caseLabel.Expression.AcceptVisitor(Visitor, scope); InternalType = TestValue.Type; }
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; }
S IAstVisitor <T, S> .VisitCaseLabel(CaseLabel caseLabel, T data) { var handler = CaseLabelVisited; if (handler != null) { handler(caseLabel, data); } return(VisitChildren(caseLabel, data)); }
void IAstVisitor.VisitCaseLabel(CaseLabel caseLabel) { Visit(EnterCaseLabel, LeaveCaseLabel, caseLabel); }
public virtual S VisitCaseLabel(CaseLabel caseLabel, T data) { return(VisitChildren(caseLabel, data)); }
protected internal override bool DoMatch(AstNode other, PatternMatching.Match match) { CaseLabel o = other as CaseLabel; return(o != null && this.Expression.DoMatch(o.Expression, match)); }
public override void VisitCaseLabel(CaseLabel caseLabel) { ForceSpacesBefore(caseLabel.ColonToken, false); }
public override void VisitCaseLabel(CaseLabel caseLabel) { FixSemicolon(caseLabel.ColonToken); }
public static Case SwitchCase(NRefactory.CaseLabel caseLabel, IScope scope, INRefcatoryExpressionVisitor visitor) { return(new Case(caseLabel, scope, visitor)); }
public virtual S VisitCaseLabel(CaseLabel caseLabel, T data) { throw new NotImplementedException(); }
public override AstExpression VisitCaseLabel(NRefactory.CaseLabel caseLabel, IScope scope) { return(AstExpression.SwitchCase(caseLabel, scope, this)); }