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