3 types derived from RoutePatternPart
Microsoft.AspNetCore.Routing (3)
Patterns\RoutePatternLiteralPart.cs (1)
14
public sealed class RoutePatternLiteralPart :
RoutePatternPart
Patterns\RoutePatternParameterPart.cs (1)
15
public sealed class RoutePatternParameterPart :
RoutePatternPart
Patterns\RoutePatternSeparatorPart.cs (1)
31
public sealed class RoutePatternSeparatorPart :
RoutePatternPart
43 references to RoutePatternPart
Microsoft.AspNetCore.Mvc.Core (1)
Routing\RoutePatternWriter.cs (1)
32
private static void WriteString(StringBuilder sb,
RoutePatternPart
part)
Microsoft.AspNetCore.OpenApi (1)
Extensions\ApiDescriptionExtensions.cs (1)
56
foreach (
var
part in segment.Parts)
Microsoft.AspNetCore.Routing (39)
Matching\DfaMatcherBuilder.cs (2)
260
var
part = segment.Parts[0];
385
var
segmentPart = segment.Parts[i];
Patterns\DefaultRoutePatternTransformer.cs (1)
230
var updatedParts = new List<
RoutePatternPart
>(segment.Parts);
Patterns\RoutePatternFactory.cs (9)
545
RoutePatternPart
[]? updatedParts = null;
548
var
part = segment.Parts[i];
549
var
updatedPart = VisitPart(part);
571
RoutePatternPart
VisitPart(
RoutePatternPart
part)
696
public static RoutePatternPathSegment Segment(IEnumerable<
RoutePatternPart
> parts)
709
public static RoutePatternPathSegment Segment(params
RoutePatternPart
[] parts)
713
return SegmentCore((
RoutePatternPart
[])parts.Clone());
716
private static RoutePatternPathSegment SegmentCore(
RoutePatternPart
[] parts)
Patterns\RoutePatternMatcher.cs (5)
44
var
part = segment.Parts[0];
120
var
part = pathSegment.Parts[0];
171
var
part = pathSegment.Parts[0];
345
RoutePatternPart
lastLiteral = null; // Keeps track of the left-most literal we've encountered
353
var
part = routeSegment.Parts[indexOfLastSegmentUsed];
Patterns\RoutePatternParser.cs (9)
76
var parts = new List<
RoutePatternPart
>();
143
private static bool ParseParameter(Context context, List<
RoutePatternPart
> parts)
245
private static bool ParseLiteral(Context context, List<
RoutePatternPart
> parts)
324
var
part = segment.Parts[j];
338
private static bool IsSegmentValid(Context context, List<
RoutePatternPart
> parts)
343
var
part = parts[i];
355
var
part = parts[i];
362
var
previousPart = parts[i - 1];
413
var
part = parts[i];
Patterns\RoutePatternPartKind.cs (1)
7
/// Defines the kinds of <see cref="
RoutePatternPart
"/> instances.
Patterns\RoutePatternPathSegment.cs (4)
16
/// <see cref="
RoutePatternPart
"/> that represent the structure of a segment
26
internal RoutePatternPathSegment(IReadOnlyList<
RoutePatternPart
> parts)
40
public IReadOnlyList<
RoutePatternPart
> Parts { get; }
47
internal static string DebuggerToString(IReadOnlyList<
RoutePatternPart
> parts)
Template\RoutePrecedence.cs (2)
184
var
part = pathSegment.Parts[0];
257
var
part = pathSegment.Parts[0];
Template\TemplateBinder.cs (1)
526
var
part = parts[j];
Template\TemplatePart.cs (5)
27
/// <param name="other">A <see cref="
RoutePatternPart
"/> instance representing the route part.</param>
28
public TemplatePart(
RoutePatternPart
other)
152
/// Creates a <see cref="
RoutePatternPart
"/> for the route part designated by the <see cref="TemplatePart"/>.
154
/// <returns>A <see cref="
RoutePatternPart
"/> instance.</returns>
155
public
RoutePatternPart
ToRoutePatternPart()
Microsoft.AspNetCore.Routing.Tests (2)
Patterns\RoutePatternParserTest.cs (2)
697
private bool Equals(
RoutePatternPart
x,
RoutePatternPart
y)