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