20 references to IsSimple
Microsoft.AspNetCore.Routing (18)
Matching\DfaMatcherBuilder.cs (8)
262
if (segment.
IsSimple
&& part is RoutePatternLiteralPart literalPart)
266
else if (segment.
IsSimple
&& parameterPart != null && parameterPart.IsCatchAll)
300
else if (segment.
IsSimple
&& parameterPart != null && TryGetRequiredValue(endpoint.RoutePattern, parameterPart, out var requiredValue))
308
else if (segment.
IsSimple
&& parameterPart != null)
524
if (lastSegment.
IsSimple
&& lastSegment.Parts[0] is RoutePatternParameterPart parameterPart && parameterPart.IsCatchAll)
756
if (!segment.
IsSimple
)
803
if (segment.
IsSimple
)
853
if (!segment.
IsSimple
)
Patterns\RoutePatternMatcher.cs (10)
39
if (!segment.
IsSimple
)
93
else if (pathSegment.
IsSimple
&& pathSegment.Parts[0] is RoutePatternParameterPart parameter && parameter.IsCatchAll)
113
if (!pathSegment.
IsSimple
)
154
if (!pathSegment.
IsSimple
)
169
Debug.Assert(pathSegment.
IsSimple
);
204
if (pathSegment.
IsSimple
&& !pathSegment.Parts[0].IsParameter)
226
else if (pathSegment.
IsSimple
&& pathSegment.Parts[0].IsParameter)
240
Debug.Assert(!pathSegment.
IsSimple
);
249
if (pathSegment.
IsSimple
&& pathSegment.Parts[0] is RoutePatternParameterPart parameter && parameter.IsCatchAll)
266
else if (pathSegment.
IsSimple
&& pathSegment.Parts[0].IsParameter)
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 (1)
Matching\BarebonesMatcherBuilder.cs (1)
25
.Select(s => s.
IsSimple
&& s.Parts[0] is RoutePatternLiteralPart literalPart ? literalPart.Content : null)