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