1 write to PathSegments
Microsoft.AspNetCore.Components (1)
src\Http\Routing\src\Patterns\RoutePattern.cs (1)
59
PathSegments
= pathSegments;
31 references to PathSegments
Microsoft.AspNetCore.Components (26)
Routing\RouteTableFactory.cs (5)
319
for (var k = 0; k < x.RoutePattern.
PathSegments
.Count; k++)
321
var leftSegment = x.RoutePattern.
PathSegments
[k];
322
var rightSegment = y.RoutePattern.
PathSegments
[k];
349
for (var i = 0; i < obj.RoutePattern.
PathSegments
.Count; i++)
351
var segment = obj.RoutePattern.
PathSegments
[i];
src\Http\Routing\src\Patterns\RoutePattern.cs (1)
163
return RawText ?? string.Join(SeparatorString,
PathSegments
.Select(s => s.DebuggerToString()));
src\Http\Routing\src\Patterns\RoutePatternMatcher.cs (11)
33
_hasDefaultValue = new bool[RoutePattern.
PathSegments
.Count];
34
_defaultValues = new object[RoutePattern.
PathSegments
.Count];
36
for (var i = 0; i < RoutePattern.
PathSegments
.Count; i++)
38
var segment = RoutePattern.
PathSegments
[i];
86
var pathSegment = i >= RoutePattern.
PathSegments
.Count ? null : RoutePattern.
PathSegments
[i];
106
for (; i < RoutePattern.
PathSegments
.Count; i++)
110
var pathSegment = RoutePattern.
PathSegments
[i];
149
var pathSegment = RoutePattern.
PathSegments
[i++];
163
for (; i < RoutePattern.
PathSegments
.Count; i++)
167
var pathSegment = RoutePattern.
PathSegments
[i];
src\Http\Routing\src\Template\RoutePrecedence.cs (6)
60
ValidateSegementLength(routePattern.
PathSegments
.Count);
64
for (var i = 0; i < routePattern.
PathSegments
.Count; i++)
66
var segment = routePattern.
PathSegments
[i];
114
ValidateSegementLength(routePattern.
PathSegments
.Count);
120
for (var i = 0; i < routePattern.
PathSegments
.Count; i++)
122
var segment = routePattern.
PathSegments
[i];
src\Http\Routing\src\Tree\UrlMatchingTree.cs (3)
82
for (var i = 0; i < entry.RoutePattern.
PathSegments
.Count; i++)
84
var segment = entry.RoutePattern.
PathSegments
[i];
132
RemainingSegmentsAreOptional(entry.RoutePattern.
PathSegments
, i))
Microsoft.AspNetCore.Components.Tests (5)
Routing\TemplateParserTests.cs (5)
289
if (x.
PathSegments
.Count != y.
PathSegments
.Count)
294
for (var i = 0; i < x.
PathSegments
.Count; i++)
296
var xSegment = x.
PathSegments
[i];
297
var ySegment = y.
PathSegments
[i];