Exemplo n.º 1
0
        private void CheckFunctionNestingDepth(SyntaxNodeAnalysisContext context)
        {
            var walker = new NestingDepthWalker(Maximum, token => context.ReportDiagnosticWhenActive(Diagnostic.Create(rule, token.GetLocation(), Maximum)));

            walker.Visit(context.Node);
        }
 private void CheckFunctionNestingDepth(SyntaxNodeAnalysisContext context)
 {
     var walker = new NestingDepthWalker(Maximum, token => context.ReportDiagnostic(Diagnostic.Create(Rule, token.GetLocation(), Maximum)));
     walker.Visit(context.Node);
 }