1 implementation of IGroupedAnalyzerActions
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (1)
18
private sealed class GroupedAnalyzerActions :
IGroupedAnalyzerActions
25 references to IGroupedAnalyzerActions
Microsoft.CodeAnalysis (25)
DiagnosticAnalyzer\AnalyzerDriver.cs (18)
108
private ConcurrentDictionary<(INamespaceOrTypeSymbol, DiagnosticAnalyzer),
IGroupedAnalyzerActions
>? _lazyPerSymbolAnalyzerActionsCache;
116
private ConcurrentDictionary<(INamespaceOrTypeSymbol, DiagnosticAnalyzer),
IGroupedAnalyzerActions
> PerSymbolAnalyzerActionsCache
435
_lazyPerSymbolAnalyzerActionsCache = new ConcurrentDictionary<(INamespaceOrTypeSymbol, DiagnosticAnalyzer),
IGroupedAnalyzerActions
>();
1762
var
perSymbolActions = hasPerSymbolActions ?
1895
IGroupedAnalyzerActions
additionalPerSymbolActions,
2106
private async ValueTask<
IGroupedAnalyzerActions
> GetPerSymbolAnalyzerActionsAsync(
2116
var
allActions = EmptyGroupedActions;
2124
var
analyzerActions = await GetPerSymbolAnalyzerActionsAsync(symbol, analyzer, analysisScope.OriginalFilterFile?.SourceTree, analysisScope.OriginalFilterSpan, cancellationToken).ConfigureAwait(false);
2137
private async ValueTask<
IGroupedAnalyzerActions
> GetPerSymbolAnalyzerActionsAsync(
2159
if (PerSymbolAnalyzerActionsCache.TryGetValue((namespaceOrType, analyzer), out
var
actions))
2164
var
allActions = await getAllActionsAsync(this, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2167
async ValueTask<
IGroupedAnalyzerActions
> getAllActionsAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken)
2170
var
inheritedActions = await getInheritedActionsAsync(driver, symbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2183
async ValueTask<
IGroupedAnalyzerActions
> getInheritedActionsAsync(AnalyzerDriver driver, ISymbol symbol, DiagnosticAnalyzer analyzer, SyntaxTree? filterTree, TextSpan? filterSpan, CancellationToken cancellationToken)
2188
var
containerActions = await driver.GetPerSymbolAnalyzerActionsAsync(symbol.ContainingSymbol, analyzer, filterTree, filterSpan, cancellationToken).ConfigureAwait(false);
2487
protected override
IGroupedAnalyzerActions
EmptyGroupedActions => GroupedAnalyzerActions.Empty;
2488
protected override
IGroupedAnalyzerActions
CreateGroupedActions(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions)
2498
IGroupedAnalyzerActions
additionalPerSymbolActions,
DiagnosticAnalyzer\AnalyzerDriver.GroupedAnalyzerActions.cs (3)
64
IGroupedAnalyzerActions
IGroupedAnalyzerActions
.Append(
IGroupedAnalyzerActions
igroupedAnalyzerActions)
DiagnosticAnalyzer\AnalyzerDriver.IGroupedAnalyzerActions.cs (4)
9
protected abstract
IGroupedAnalyzerActions
EmptyGroupedActions { get; }
10
protected abstract
IGroupedAnalyzerActions
CreateGroupedActions(DiagnosticAnalyzer analyzer, in AnalyzerActions analyzerActions);
16
IGroupedAnalyzerActions
Append(
IGroupedAnalyzerActions
groupedAnalyzerActions);