1 instantiation of RouteUsageModel
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RouteUsageCache.cs (1)
72
return new
RouteUsageModel
25 references to RouteUsageModel
Microsoft.AspNetCore.App.Analyzers (24)
Infrastructure\RouteUsageCache.cs (4)
21
private readonly ConcurrentDictionary<SyntaxToken,
RouteUsageModel
?> _lazyRoutePatterns;
30
public
RouteUsageModel
? Get(SyntaxToken syntaxToken, CancellationToken cancellationToken)
32
if (_lazyRoutePatterns.TryGetValue(syntaxToken, out
var
routeUsageModel))
40
private
RouteUsageModel
? GetAndCache(SyntaxToken syntaxToken, CancellationToken cancellationToken)
Mvc\MvcAnalyzer.cs (4)
74
var
routeUsage = GetRouteUsageModel(controllerRouteAttribute, routeUsageCache, context.CancellationToken);
104
var
routeUsage = GetRouteUsageModel(attribute, routeUsageCache, context.CancellationToken);
170
private static
RouteUsageModel
? GetRouteUsageModel(AttributeData attribute, RouteUsageCache routeUsageCache, CancellationToken cancellationToken)
190
private record struct ActionRoute(IMethodSymbol ActionSymbol,
RouteUsageModel
RouteUsageModel, ImmutableArray<string> HttpMethods);
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
232
var
routeUsage = routeUsageCache.Get(routeStringToken, context.CancellationToken);
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (1)
52
var
routeUsage = routeUsageCache.Get(token, cancellationToken);
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (1)
22
var
routeUsage = routeUsageCache.Get(token, cancellationToken);
RouteEmbeddedLanguage\RoutePatternClassifier.cs (1)
20
var
routeUsage = routeUsageCache.Get(context.SyntaxToken, context.CancellationToken);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (3)
115
var
routeUsage = routeUsageCache.Get(stringToken, context.CancellationToken);
330
public readonly
RouteUsageModel
RouteUsage;
345
RouteUsageModel
routeUsage,
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (2)
25
var
routeUsage = routeUsageCache.Get(token, cancellationToken);
35
RouteUsageModel
routeUsage, SemanticModel semanticModel, int position, CancellationToken cancellationToken)
RouteHandlers\DetectAmbiguousRoutes.cs (1)
38
var
model = ambiguousMapOperation.MapOperation.RouteUsageModel;
RouteHandlers\DetectMismatchedParameterOptionality.cs (1)
15
RouteUsageModel
routeUsage,
RouteHandlers\DisallowNonParsableComplexTypesOnParameters.cs (2)
21
RouteUsageModel
routeUsage,
86
static bool IsRouteParameter(
RouteUsageModel
routeUsage, IParameterSymbol handlerDelegateParameter)
RouteHandlers\RouteHandlerAnalyzer.cs (3)
97
var
routeUsage = routeUsageCache.Get(token, context.CancellationToken);
221
private record struct MapOperation(IOperation? Builder, IInvocationOperation Operation,
RouteUsageModel
RouteUsageModel)
223
public static MapOperation Create(IInvocationOperation operation,
RouteUsageModel
routeUsageModel)
Microsoft.AspNetCore.App.CodeFixes (1)
RouteParameterUnusedParameterFixer.cs (1)
63
var
routeUsage = routeUsageCache.Get(token, cancellationToken);