/// <summary>Analyzes a <see cref="SyntaxNode" />.</summary> /// <param name="context">The context for the syntax node analysis.</param> /// <param name="identifiers">Diagnostics will be reported for all provided identifiers, if the syntax node does not has a documentation header.</param> private void Analyze(SyntaxNodeAnalysisContext context, IEnumerable <SyntaxToken> identifiers) { Diagnostic diagnostic; if (!DocumentationHelper.HasDocumentationHeader(context.Node)) { foreach (SyntaxToken identifier in identifiers) { diagnostic = this.CreateDiagnostic(identifier.GetLocation(), identifier); context.ReportDiagnostic(diagnostic); } } }