1 write to RoutePattern
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\RouteUsageCache.cs (1)
74
RoutePattern
= tree,
18 references to RoutePattern
Microsoft.AspNetCore.App.Analyzers (18)
Mvc\DetectAmbiguousActionRoutes.cs (2)
36
.GroupBy(ar => new ActionRouteGroupKey(ar.ActionSymbol, ar.RouteUsageModel.
RoutePattern
, ar.HttpMethods, controllerHasActionToken, wellKnownTypes));
45
ambiguousActionRoute.RouteUsageModel.
RoutePattern
.Root.ToString()));
Mvc\MvcAnalyzer.cs (1)
77
controllerRoutePattern = routeUsage.
RoutePattern
;
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (1)
238
var routePatternCompletionContext = new EmbeddedCompletionContext(context, routeUsage.
RoutePattern
);
RouteEmbeddedLanguage\RoutePatternAnalyzer.cs (4)
58
foreach (var diag in routeUsage.
RoutePattern
.Diagnostics)
71
var routeParameterNames = new HashSet<string>(routeUsage.
RoutePattern
.RouteParameters.Select(p => p.Name), StringComparer.OrdinalIgnoreCase);
80
var unusedParameter = routeUsage.
RoutePattern
.GetRouteParameter(unusedParameterName);
85
routeUsage.
RoutePattern
.RouteParameters,
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (1)
28
return GetMatchingBraces(routeUsage.
RoutePattern
, position);
RouteEmbeddedLanguage\RoutePatternClassifier.cs (1)
27
AddClassifications(routeUsage.
RoutePattern
.Root, visitor);
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (3)
221
var previousVirtualCharOpt = context.RouteUsage.
RoutePattern
.Text.Find(context.Position - 1);
230
return FindToken(context.RouteUsage.
RoutePattern
.Root, previousVirtualChar);
240
if (!context.RouteUsage.
RoutePattern
.TryGetRouteParameter(parameterSymbol.RouteParameterName, out _))
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (1)
37
var routePattern = routeUsage.
RoutePattern
;
RouteHandlers\DetectAmbiguousRoutes.cs (2)
32
.GroupBy(u => new MapOperationGroupKey(u.MapOperation.Builder, u.ResolvedOperation!, u.MapOperation.RouteUsageModel.
RoutePattern
, u.MapOperation.RouteUsageModel.UsageContext.HttpMethods));
43
model.
RoutePattern
.Root.ToString()));
RouteHandlers\DetectMismatchedParameterOptionality.cs (1)
27
if (!routeUsage.
RoutePattern
.TryGetRouteParameter(paramName, out var routeParameter))
RouteHandlers\DisallowNonParsableComplexTypesOnParameters.cs (1)
93
var isRouteParameter = routeUsage.
RoutePattern
.TryGetRouteParameter(resolvedParameter.RouteParameterName, out var _);