1 instantiation of RoutePatternSeparatorPart
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternFactory.cs (1)
760return new RoutePatternSeparatorPart(content);
27 references to RoutePatternSeparatorPart
Microsoft.AspNetCore.Mvc.Core (1)
Routing\RoutePatternWriter.cs (1)
66else if (part is RoutePatternSeparatorPart separatorPart)
Microsoft.AspNetCore.OpenApi (1)
Extensions\ApiDescriptionExtensions.cs (1)
68else if (part is RoutePatternSeparatorPart separatorPart)
Microsoft.AspNetCore.Routing (18)
Patterns\RoutePatternFactory.cs (4)
746/// Creates a <see cref="RoutePatternSeparatorPart"/> from the provided text 750/// <returns>The <see cref="RoutePatternSeparatorPart"/>.</returns> 751public static RoutePatternSeparatorPart SeparatorPart(string content) 758private static RoutePatternSeparatorPart SeparatorPartCore(string content)
Patterns\RoutePatternMatcher.cs (9)
218var part = (RoutePatternSeparatorPart)pathSegment.Parts[0]; 311var separator = (RoutePatternSeparatorPart)routeSegment.Parts[indexOfLastSegment - 1]; 387var literal = (RoutePatternSeparatorPart)part; 408else if (part is RoutePatternSeparatorPart separator && ((indexOfLiteral + separator.Content.Length) != requestSegment.Length)) 455var separator = (RoutePatternSeparatorPart)lastLiteral;
Patterns\RoutePatternPartKind.cs (1)
26/// The <see cref="RoutePatternPartKind"/> of a <see cref="RoutePatternSeparatorPart"/>.
Patterns\RoutePatternSeparatorPart.cs (1)
9/// Represents an optional separator part of a route pattern. Instances of <see cref="RoutePatternSeparatorPart"/>
Template\TemplateBinder.cs (2)
534else if (part is RoutePatternSeparatorPart separatorPart) 576if (j != 0 && parameterPart.IsOptional && parts[j - 1] is RoutePatternSeparatorPart)
Template\TemplatePart.cs (1)
46else if (other.IsSeparator && other is RoutePatternSeparatorPart separator)
Microsoft.AspNetCore.Routing.Tests (7)
Patterns\RoutePatternParserTest.cs (4)
714return Equals((RoutePatternSeparatorPart)x, (RoutePatternSeparatorPart)y); 743private bool Equals(RoutePatternSeparatorPart x, RoutePatternSeparatorPart y)
Template\TemplateSegmentTest.cs (3)
27var separatorPartE = RoutePatternFactory.SeparatorPart("E"); 41Assert.IsType<RoutePatternSeparatorPart>(routePatternPathSegment.Parts[2]); 42Assert.Equal(separatorPartE.Content, ((RoutePatternSeparatorPart)routePatternPathSegment.Parts[2]).Content);