private static void ProcessDocumentationComments(SyntaxNodeAnalysisContext context, Location declarationLocation, string declarationName, int threshold) { var docummentation = CommentsManager.ExtractDocumentationComment(context.Node); if (docummentation != null) { var numberOfLines = RegexManager.NumberOfLines(docummentation.Content.ToFullString()); if (numberOfLines > threshold) { DiagnosticsManager.CreateCommentsTooLongDiagnostic(context, declarationLocation, Rule, declarationName, threshold); } } }