1 instantiation of RoutePatternLiteralPart
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePatternFactory.cs (1)
742return new RoutePatternLiteralPart(content);
35 references to RoutePatternLiteralPart
Microsoft.AspNetCore.Mvc.Core (1)
Routing\RoutePatternWriter.cs (1)
62else if (part is RoutePatternLiteralPart literalPart)
Microsoft.AspNetCore.OpenApi (1)
Extensions\ApiDescriptionExtensions.cs (1)
58if (part is RoutePatternLiteralPart literalPart)
Microsoft.AspNetCore.Routing (18)
Matching\DfaMatcherBuilder.cs (1)
262if (segment.IsSimple && part is RoutePatternLiteralPart literalPart)
Patterns\RoutePatternFactory.cs (4)
723/// Creates a <see cref="RoutePatternLiteralPart"/> from the provided text 727/// <returns>The <see cref="RoutePatternLiteralPart"/>.</returns> 728public static RoutePatternLiteralPart LiteralPart(string content) 740private static RoutePatternLiteralPart LiteralPartCore(string content)
Patterns\RoutePatternLiteralPart.cs (1)
9/// Represents a literal text part of a route pattern. Instances of <see cref="RoutePatternLiteralPart"/>
Patterns\RoutePatternMatcher.cs (7)
209var part = (RoutePatternLiteralPart)pathSegment.Parts[0]; 380var literal = (RoutePatternLiteralPart)part; 404if (part is RoutePatternLiteralPart literal && ((indexOfLiteral + literal.Content.Length) != requestSegment.Length)) 450var literal = (RoutePatternLiteralPart)lastLiteral;
Patterns\RoutePatternParser.cs (2)
377else if (previousPart is RoutePatternLiteralPart literal && literal.Content != PeriodString) 391parts[i - 1] = RoutePatternFactory.SeparatorPart(((RoutePatternLiteralPart)previousPart).Content);
Patterns\RoutePatternPartKind.cs (1)
16/// The <see cref="RoutePatternPartKind"/> of a <see cref="RoutePatternLiteralPart"/>.
Template\TemplateBinder.cs (1)
527if (part is RoutePatternLiteralPart literalPart)
Template\TemplatePart.cs (1)
33if (other.IsLiteral && other is RoutePatternLiteralPart literal)
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcherBuilder.cs (1)
25.Select(s => s.IsSimple && s.Parts[0] is RoutePatternLiteralPart literalPart ? literalPart.Content : null)
Microsoft.AspNetCore.Routing.Tests (14)
Matching\BarebonesMatcherBuilder.cs (1)
25.Select(s => s.IsSimple && s.Parts[0] is RoutePatternLiteralPart literalPart ? literalPart.Content : null)
Patterns\RoutePatternFactoryTest.cs (6)
406var literalPartA = RoutePatternFactory.LiteralPart("A"); 435var literalPartA = RoutePatternFactory.LiteralPart("A"); 465var literalPartA = RoutePatternFactory.LiteralPart("A"); 505var literalPartA = RoutePatternFactory.LiteralPart("A"); 741var part = Assert.IsType<RoutePatternLiteralPart>(Assert.Single(segment.Parts));
Patterns\RoutePatternParserTest.cs (4)
706return Equals((RoutePatternLiteralPart)x, (RoutePatternLiteralPart)y); 721private bool Equals(RoutePatternLiteralPart x, RoutePatternLiteralPart y)
Template\TemplateSegmentTest.cs (3)
23var literalPartA = RoutePatternFactory.LiteralPart("A"); 39Assert.IsType<RoutePatternLiteralPart>(routePatternPathSegment.Parts[1]); 40Assert.Equal(literalPartA.Content, ((RoutePatternLiteralPart)routePatternPathSegment.Parts[1]).Content);