33 references to Analyzers
Microsoft.CodeAnalysis (29)
DiagnosticAnalyzer\AnalysisScope.cs (3)
76
/// i.e. <see cref="Analyzers"/> is the same set as <see cref="CompilationWithAnalyzers.
Analyzers
"/>.
203
Debug.Assert(compilationWithAnalyzers.
Analyzers
.Contains(analyzer));
207
return compilationWithAnalyzers.
Analyzers
.Length == analyzers.Length;
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (26)
230
/// Returns diagnostics produced by all <see cref="
Analyzers
"/>.
239
/// Returns diagnostics produced by all <see cref="
Analyzers
"/>.
245
return await GetAnalyzerDiagnosticsCoreAsync(
Analyzers
, cancellationToken).ConfigureAwait(false);
261
/// Executes all <see cref="
Analyzers
"/> and returns the corresponding <see cref="AnalysisResult"/> with all diagnostics and telemetry info.
265
return await GetAnalysisResultCoreAsync(
Analyzers
, cancellationToken).ConfigureAwait(false);
281
/// Returns all diagnostics produced by compilation and by all <see cref="
Analyzers
"/>.
290
/// Returns all diagnostics produced by compilation and by all <see cref="
Analyzers
"/>.
294
var diagnostics = await getAllDiagnosticsWithoutStateTrackingAsync(
Analyzers
, cancellationToken: cancellationToken).ConfigureAwait(false);
321
/// Returns diagnostics produced by compilation actions of all <see cref="
Analyzers
"/>.
326
return await GetAnalyzerCompilationDiagnosticsCoreAsync(
Analyzers
, cancellationToken).ConfigureAwait(false);
388
/// Returns syntax diagnostics produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="tree"/>.
399
return await GetAnalyzerSyntaxDiagnosticsCoreAsync(tree,
Analyzers
, filterSpan: null, cancellationToken).ConfigureAwait(false);
403
/// Returns syntax diagnostics produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="tree"/>, optionally scoped to a <paramref name="filterSpan"/>.
415
return await GetAnalyzerSyntaxDiagnosticsCoreAsync(tree,
Analyzers
, filterSpan, cancellationToken).ConfigureAwait(false);
454
/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SyntaxDiagnostics"/> produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="tree"/>.
463
return GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(tree),
Analyzers
, filterSpan: null, cancellationToken);
467
/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SyntaxDiagnostics"/> produced by all <see cref="
Analyzers
"/>
478
return GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(tree),
Analyzers
, filterSpan, cancellationToken);
514
/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.AdditionalFileDiagnostics"/> produced by all <see cref="
Analyzers
"/> from analyzing the given additional <paramref name="file"/>.
524
return await GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(file),
Analyzers
, filterSpan: null, cancellationToken).ConfigureAwait(false);
544
/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.AdditionalFileDiagnostics"/> produced by all <see cref="
Analyzers
"/> from analyzing the given additional <paramref name="file"/>,
556
return await GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(file),
Analyzers
, filterSpan, cancellationToken).ConfigureAwait(false);
592
/// Returns semantic diagnostics produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>.
602
return await GetAnalyzerSemanticDiagnosticsCoreAsync(model, filterSpan,
Analyzers
, cancellationToken).ConfigureAwait(false);
622
/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SemanticDiagnostics"/> produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>.
632
return GetAnalysisResultCoreAsync(model, filterSpan, this.
Analyzers
, cancellationToken);
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
404
foreach (var analyzer in compilationWithAnalyzers.
Analyzers
)
Microsoft.CodeAnalysis.Features (1)
src\Analyzers\Core\Analyzers\RemoveUnnecessarySuppressions\AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
404
foreach (var analyzer in compilationWithAnalyzers.
Analyzers
)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\CompilationWithAnalyzersPair.cs (2)
53
public ImmutableArray<DiagnosticAnalyzer> ProjectAnalyzers => _projectCompilationWithAnalyzers?.
Analyzers
?? [];
55
public ImmutableArray<DiagnosticAnalyzer> HostAnalyzers => _hostCompilationWithAnalyzers?.
Analyzers
?? [];