4 instantiations of RoutePatternParameterPart
Microsoft.AspNetCore.Components (3)
src\Http\Routing\src\Patterns\RouteParameterParser.cs (2)
22return new RoutePatternParameterPart(string.Empty, null, RoutePatternParameterKind.Standard, Array.Empty<RoutePatternParameterPolicyReference>()); 87return new RoutePatternParameterPart(
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (1)
929return new RoutePatternParameterPart(
Microsoft.AspNetCore.Components.Tests (1)
Routing\TemplateParserTests.cs (1)
262new RoutePatternParameterPart(
43 references to RoutePatternParameterPart
Microsoft.AspNetCore.Components (40)
Routing\RouteTable.cs (1)
103foreach (var parameter in entry.RoutePattern.Parameters)
Routing\RouteTableFactory.cs (1)
227foreach (var parameter in routeTemplate.Parameters)
src\Http\Routing\src\Patterns\RouteParameterParser.cs (1)
16public static RoutePatternParameterPart ParseRouteParameter(string parameter)
src\Http\Routing\src\Patterns\RoutePattern.cs (4)
45IReadOnlyList<RoutePatternParameterPart> parameters, 126public IReadOnlyList<RoutePatternParameterPart> Parameters { get; } 138public RoutePatternParameterPart? GetParameter(string name) 147var parameter = parameters[i];
src\Http\Routing\src\Patterns\RoutePatternFactory.cs (8)
469List<RoutePatternParameterPart>? parameters = null; 478if (segment.Parts[j] is RoutePatternParameterPart parameter) 482parameters = new List<RoutePatternParameterPart>(); 540(IReadOnlyList<RoutePatternParameterPart>?)parameters ?? Array.Empty<RoutePatternParameterPart>(), 578var parameter = (RoutePatternParameterPart)part; 922private static RoutePatternParameterPart ParameterPartCore(
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (13)
50var parameter = (RoutePatternParameterPart)part; 93else if (pathSegment.IsSimple && pathSegment.Parts[0] is RoutePatternParameterPart parameter && parameter.IsCatchAll) 127var parameter = (RoutePatternParameterPart)part; 175if (part is RoutePatternParameterPart parameter && (parameter.IsCatchAll || _hasDefaultValue[i])) 229var part = (RoutePatternParameterPart)pathSegment.Parts[0]; 249if (pathSegment.IsSimple && pathSegment.Parts[0] is RoutePatternParameterPart parameter && parameter.IsCatchAll) 270parameter = (RoutePatternParameterPart)pathSegment.Parts[0]; 302if (routeSegment.Parts[indexOfLastSegment] is RoutePatternParameterPart parameter && parameter.IsOptional && 344RoutePatternParameterPart parameterNeedsValue = null; // Keeps track of a parameter segment that is pending a value 357parameterNeedsValue = (RoutePatternParameterPart)part;
src\Http\Routing\src\Patterns\RoutePatternParameterPart.cs (1)
10/// Represents a parameter part in a route pattern. Instances of <see cref="RoutePatternParameterPart"/>
src\Http\Routing\src\Patterns\RoutePatternParser.cs (4)
214var templatePart = RouteParameterParser.ParseRouteParameter(decoded); 325if (part is RoutePatternParameterPart parameter 344if (part is RoutePatternParameterPart parameter && parameter.IsCatchAll && parts.Count > 1) 357if (part is RoutePatternParameterPart parameter && parameter.IsOptional && parts.Count > 1)
src\Http\Routing\src\Patterns\RoutePatternPartKind.cs (1)
21/// The <see cref="RoutePatternPartKind"/> of a <see cref="RoutePatternParameterPart"/>.
src\Http\Routing\src\Template\RoutePrecedence.cs (2)
189else if (part is RoutePatternParameterPart parameterPart) 263else if (part is RoutePatternParameterPart parameterPart)
src\Http\Routing\src\Tree\TreeRouteBuilder.cs (2)
115foreach (var parameter in routeTemplate.Parameters) 156foreach (var parameter in entry.RoutePattern.Parameters)
src\Http\Routing\src\Tree\UrlMatchingTree.cs (2)
183if (part is RoutePatternParameterPart parameterPart) 272var isOptionlCatchAllOrHasDefaultValue = part is RoutePatternParameterPart parameterPart &&
Microsoft.AspNetCore.Components.Tests (3)
Routing\TemplateParserTests.cs (3)
277Segments.SelectMany(s => s.Parts.OfType<RoutePatternParameterPart>()).ToArray(), 310(RoutePatternParameterPart xParameterPart, RoutePatternParameterPart yParameterPart) =>