1 instantiation of RouteUsageCache
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RouteUsageCache.cs (1)
19
LazyRouteUsageCache.GetOrCreateValue(compilation, static c => new
RouteUsageCache
(c));
22 references to RouteUsageCache
Microsoft.AspNetCore.App.Analyzers (21)
Infrastructure\RouteUsageCache.cs (2)
16
private static readonly BoundedCacheWithFactory<Compilation,
RouteUsageCache
> LazyRouteUsageCache = new();
18
public static
RouteUsageCache
GetOrCreate(Compilation compilation) =>
Mvc\MvcAnalyzer.cs (4)
38
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(compilation);
91
private static void PopulateActionRoutes(SymbolAnalysisContext context, WellKnownTypes wellKnownTypes,
RouteUsageCache
routeUsageCache, List<ActionRoute> actionRoutes, IMethodSymbol methodSymbol)
170
private static RouteUsageModel? GetRouteUsageModel(AttributeData attribute,
RouteUsageCache
routeUsageCache, CancellationToken cancellationToken)
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
231
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(semanticModel.Compilation);
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (3)
34
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(context.SemanticModel.Compilation);
45
private static void AnalyzeToken(SemanticModelAnalysisContext context,
RouteUsageCache
routeUsageCache, SyntaxToken token, CancellationToken cancellationToken)
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (2)
21
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(semanticModel.Compilation);
RouteEmbeddedLanguage\RoutePatternClassifier.cs (2)
19
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(context.SemanticModel.Compilation);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (2)
114
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(semanticModel.Compilation);
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (2)
24
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(semanticModel.Compilation);
RouteHandlers\RouteHandlerAnalyzer.cs (2)
43
var
routeUsageCache =
RouteUsageCache
.GetOrCreate(compilation);
Microsoft.AspNetCore.App.CodeFixes (1)
RouteParameterUnusedParameterFixer.cs (1)
43
var
routeUsageCache = RouteUsageCache.GetOrCreate(semanticModel.Compilation);