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"/>. 248return 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. 268return 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"/>. 296var diagnostics = await getAllDiagnosticsWithoutStateTrackingAsync(Analyzers, cancellationToken: cancellationToken).ConfigureAwait(false); 319var hasAllAnalyzers = analyzers.Length == Analyzers.Length; 338/// Returns diagnostics produced by compilation actions of all <see cref="Analyzers"/>. 343return await GetAnalyzerCompilationDiagnosticsCoreAsync(Analyzers, cancellationToken).ConfigureAwait(false); 361var hasAllAnalyzers = analyzers.Length == Analyzers.Length; 369var hasAllAnalyzers = analyzers.Length == Analyzers.Length; 377var hasAllAnalyzers = analyzers.Length == Analyzers.Length; 395/// Returns syntax diagnostics produced by all <see cref="Analyzers"/> from analyzing the given <paramref name="tree"/>. 406return 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"/>. 436return 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"/>. 465return 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"/>. 509return 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"/>. 539return GetAnalysisResultCoreAsync(model, filterSpan, this.Analyzers, cancellationToken);
Microsoft.CodeAnalysis.CodeStyle (1)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
402foreach (var analyzer in compilationWithAnalyzers.Analyzers)
Microsoft.CodeAnalysis.Features (1)
AbstractRemoveUnnecessaryPragmaSuppressionsDiagnosticAnalyzer.cs (1)
402foreach (var analyzer in compilationWithAnalyzers.Analyzers)
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Features\Diagnostics\DocumentAnalysisExecutor.cs (1)
51var compilationBasedAnalyzers = compilationWithAnalyzers?.Analyzers.ToImmutableHashSet();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.CompilationManager.cs (1)
89Contract.ThrowIfFalse(compilation.Analyzers.SetEquals(stateSets.Select(s => s.Analyzer).Where(a => !a.IsWorkspaceDiagnosticAnalyzer())));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (3)
268foreach (var analyzer in compilationWithAnalyzers.Analyzers) 322if (compilationWithAnalyzers?.Analyzers.Length > 0) 413var existingAnalyzers = compilationWithAnalyzers.Analyzers;
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.InProcOrRemoteHostAnalyzerRunner.cs (3)
73Contract.ThrowIfFalse(!compilationWithAnalyzers.Analyzers.IsEmpty); 108var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.Analyzers; 170compilationWithAnalyzers.Analyzers.Where(a => forceExecuteAllAnalyzers || !a.IsOpenFileOnly(ideOptions.CleanupOptions?.SimplifierOptions));
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
134if (_document == null && analyzers.Length < compilationWithAnalyzers.Analyzers.Length)
Microsoft.CodeAnalysis.Workspaces (2)
Diagnostics\Extensions.cs (2)
331Debug.Assert(documentAnalysisScope.Analyzers.ToSet().IsSubsetOf(compilationWithAnalyzers.Analyzers)); 362var analyzers = documentAnalysisScope?.Analyzers ?? compilationWithAnalyzers.Analyzers;
Roslyn.VisualStudio.Next.UnitTests (3)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (3)
200var analyzerResult = result.AnalysisResult[compilationWithAnalyzers.Analyzers[0]]; 240var analyzerResult = result.AnalysisResult[compilationWithAnalyzers.Analyzers[0]]; 264return result.AnalysisResult[analyzerDriver.Analyzers[0]];