Пример #1
0
        S IAstVisitor <T, S> .VisitCaseLabel(CaseLabel caseLabel, T data)
        {
            var handler = CaseLabelVisited;

            if (handler != null)
            {
                handler(caseLabel, data);
            }
            return(VisitChildren(caseLabel, data));
        }
 public override void VisitCaseLabel(CaseLabel caseLabel)
 {
     FixSemicolon(caseLabel.ColonToken);
 }
Пример #3
0
 void IAstVisitor.VisitCaseLabel(CaseLabel caseLabel)
 {
     Visit(EnterCaseLabel, LeaveCaseLabel, caseLabel);
 }
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            CaseLabel o = other as CaseLabel;

            return(o != null && this.Expression.DoMatch(o.Expression, match));
        }