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