1 write to Analyzer
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
34
Analyzer
= analyzer;
21 references to Analyzer
Microsoft.CodeAnalysis.LanguageServer.Protocol (21)
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.AnalysisData.cs (1)
135
builder.Add(stateSet.
Analyzer
, result);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.cs (2)
86
return analyzers.Select(s => s.
Analyzer
);
90
=> $"project: ({project.Id}), ({string.Join(Environment.NewLine, stateSets.Select(s => s.
Analyzer
.ToString()))})";
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.Executor.cs (1)
133
var ideAnalyzers = stateSets.Select(s => s.
Analyzer
).Where(a => a is ProjectDiagnosticAnalyzer or DocumentDiagnosticAnalyzer).ToImmutableArrayOrEmpty();
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.ProjectState.cs (4)
263
var fullAnalysis = _owner.
Analyzer
.IsFullSolutionAnalysisEnabled(globalOptions, project.Language) &&
363
InMemoryStorage.Cache(_owner.
Analyzer
, (key, stateKey), new CacheEntry(serializerVersion, diagnostics));
422
return InMemoryStorage.TryGetValue(_owner.
Analyzer
, (key, stateKey), out var entry) && serializerVersion == entry.Version
446
InMemoryStorage.Remove(_owner.
Analyzer
, (key, stateKey));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.HostStates.cs (2)
153
if (state.
Analyzer
.IsCompilerAnalyzer())
158
return state.
Analyzer
switch
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateSet.cs (1)
194
InMemoryStorage.DropCache(
Analyzer
);
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_GetDiagnosticsForSpan.cs (9)
92
.Where(s => DocumentAnalysisExecutor.IsAnalyzerEnabledForProject(s.
Analyzer
, document.Project, owner.GlobalOptions))
144
if (stateSet.IsHostAnalyzer && !compilationWithAnalyzers.HostAnalyzers.Contains(stateSet.
Analyzer
))
146
else if (!stateSet.IsHostAnalyzer && !compilationWithAnalyzers.ProjectAnalyzers.Contains(stateSet.
Analyzer
))
205
var analyzer = stateSet.
Analyzer
;
231
if (!await TryAddCachedDocumentDiagnosticsAsync(stateSet.
Analyzer
, AnalysisKind.Syntax, existingData, list, cancellationToken).ConfigureAwait(false))
232
syntaxAnalyzers.Add(new AnalyzerWithState(stateSet.
Analyzer
, stateSet.IsHostAnalyzer, state, existingData));
238
if (!await TryAddCachedDocumentDiagnosticsAsync(stateSet.
Analyzer
, AnalysisKind.Semantic, existingData, list, cancellationToken).ConfigureAwait(false))
241
stateSet.
Analyzer
, _incrementalAnalysis,
244
stateSets.Add(new AnalyzerWithState(stateSet.
Analyzer
, stateSet.IsHostAnalyzer, state, existingData));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer_IncrementalAnalyzer.cs (1)
46
if (result.TryGetResult(stateSet.
Analyzer
, out var analyzerResult))