41 references to Analyzers
Microsoft.CodeAnalysis (25)
DiagnosticAnalyzer\AnalysisScope.cs (1)
59
/// i.e. <see cref="IsSingleFileAnalysis"/> is true and/or <see cref="Analyzers"/> is a subset of <see cref="CompilationWithAnalyzers.
Analyzers
"/>.
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (24)
236
/// Returns diagnostics produced by all <see cref="
Analyzers
"/>.
244
/// Returns diagnostics produced by all <see cref="
Analyzers
"/>.
248
return await GetAnalyzerDiagnosticsCoreAsync(
Analyzers
, cancellationToken).ConfigureAwait(false);
264
/// Executes all <see cref="
Analyzers
"/> and returns the corresponding <see cref="AnalysisResult"/> with all diagnostics and telemetry info.
268
return await GetAnalysisResultCoreAsync(
Analyzers
, cancellationToken).ConfigureAwait(false);
284
/// Returns all diagnostics produced by compilation and by all <see cref="
Analyzers
"/>.
292
/// Returns all diagnostics produced by compilation and by all <see cref="
Analyzers
"/>.
296
var diagnostics = await getAllDiagnosticsWithoutStateTrackingAsync(
Analyzers
, cancellationToken: cancellationToken).ConfigureAwait(false);
319
var hasAllAnalyzers = analyzers.Length ==
Analyzers
.Length;
338
/// Returns diagnostics produced by compilation actions of all <see cref="
Analyzers
"/>.
343
return await GetAnalyzerCompilationDiagnosticsCoreAsync(
Analyzers
, cancellationToken).ConfigureAwait(false);
361
var hasAllAnalyzers = analyzers.Length ==
Analyzers
.Length;
369
var hasAllAnalyzers = analyzers.Length ==
Analyzers
.Length;
377
var hasAllAnalyzers = analyzers.Length ==
Analyzers
.Length;
395
/// Returns syntax diagnostics produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="tree"/>.
406
return await GetAnalyzerSyntaxDiagnosticsCoreAsync(tree,
Analyzers
, cancellationToken).ConfigureAwait(false);
427
/// Returns an <see cref="AnalysisResult"/> populated with <see cref="AnalysisResult.SyntaxDiagnostics"/> produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="tree"/>.
436
return GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(tree),
Analyzers
, cancellationToken);
455
/// 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"/>.
465
return await GetAnalysisResultCoreAsync(new SourceOrAdditionalFile(file),
Analyzers
, cancellationToken).ConfigureAwait(false);
499
/// Returns semantic diagnostics produced by all <see cref="
Analyzers
"/> from analyzing the given <paramref name="model"/>, optionally scoped to a <paramref name="filterSpan"/>.
509
return await GetAnalyzerSemanticDiagnosticsCoreAsync(model, filterSpan,
Analyzers
, cancellationToken).ConfigureAwait(false);
529
/// 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"/>.
539
return GetAnalysisResultCoreAsync(model, filterSpan, this.
Analyzers
, cancellationToken);
Microsoft.CodeAnalysis.CodeStyle (1)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
402
foreach (var analyzer in compilationWithAnalyzers.
Analyzers
)
Microsoft.CodeAnalysis.Features (1)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
402
foreach (var analyzer in compilationWithAnalyzers.
Analyzers
)
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
51
var compilationBasedAnalyzers = compilationWithAnalyzers?.
Analyzers
.ToImmutableHashSet();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.CompilationManager.cs (1)
89
Contract.ThrowIfFalse(compilation.
Analyzers
.SetEquals(stateSets.Select(s => s.Analyzer).Where(a => !a.IsWorkspaceDiagnosticAnalyzer())));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (3)
268
foreach (var analyzer in compilationWithAnalyzers.
Analyzers
)
322
if (compilationWithAnalyzers?.
Analyzers
.Length > 0)
413
var existingAnalyzers = compilationWithAnalyzers.
Analyzers
;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (3)
73
Contract.ThrowIfFalse(!compilationWithAnalyzers.
Analyzers
.IsEmpty);
108
var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.
Analyzers
;
170
compilationWithAnalyzers.
Analyzers
.Where(a => forceExecuteAllAnalyzers || !a.IsOpenFileOnly(ideOptions.CleanupOptions?.SimplifierOptions));
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
134
if (_document == null && analyzers.Length < compilationWithAnalyzers.
Analyzers
.Length)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\Extensions.cs (2)
331
Debug.Assert(documentAnalysisScope.Analyzers.ToSet().IsSubsetOf(compilationWithAnalyzers.
Analyzers
));
362
var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.
Analyzers
;
Roslyn.VisualStudio.Next.UnitTests (3)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (3)
200
var analyzerResult = result.AnalysisResult[compilationWithAnalyzers.
Analyzers
[0]];
240
var analyzerResult = result.AnalysisResult[compilationWithAnalyzers.
Analyzers
[0]];
264
return result.AnalysisResult[analyzerDriver.
Analyzers
[0]];