1 write to PathSegments
Microsoft.AspNetCore.Routing (1)
Patterns\RoutePattern.cs (1)
59
PathSegments
= pathSegments;
72 references to PathSegments
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\RoutePatternWriterTests.cs (1)
28
RoutePatternWriter.WriteString(sb, routePattern.
PathSegments
);
Microsoft.AspNetCore.OpenApi (2)
Extensions\ApiDescriptionExtensions.cs (2)
52
for (var i = 0; i < routePattern.
PathSegments
.Count; i++)
55
var segment = routePattern.
PathSegments
[i];
Microsoft.AspNetCore.Routing (41)
Matching\DfaMatcherBuilder.cs (12)
84
maxDepth = Math.Max(maxDepth, endpoint.RoutePattern.
PathSegments
.Count);
513
if (depth < endpoint.RoutePattern.
PathSegments
.Count)
515
return endpoint.RoutePattern.
PathSegments
[depth];
518
if (endpoint.RoutePattern.
PathSegments
.Count == 0)
523
var lastSegment = endpoint.RoutePattern.
PathSegments
[endpoint.RoutePattern.
PathSegments
.Count - 1];
753
for (var i = 0; i < routeEndpoint.RoutePattern.
PathSegments
.Count; i++)
755
var segment = routeEndpoint.RoutePattern.
PathSegments
[i];
800
for (var i = 0; i < routeEndpoint.RoutePattern.
PathSegments
.Count; i++)
802
var segment = routeEndpoint.RoutePattern.
PathSegments
[i];
850
for (var i = depth; i < endpoint.RoutePattern.
PathSegments
.Count; i++)
852
var segment = endpoint.RoutePattern.
PathSegments
[i];
Patterns\DefaultRoutePatternTransformer.cs (2)
174
updatedSegments = new List<RoutePatternPathSegment>(original.
PathSegments
);
194
updatedSegments ?? original.
PathSegments
);
Patterns\RoutePattern.cs (1)
163
return RawText ?? string.Join(SeparatorString,
PathSegments
.Select(s => s.DebuggerToString()));
Patterns\RoutePatternFactory.cs (6)
75
return PatternCore(original.RawText, Wrap(defaults), CreateRoutePatternPolicyReferences(Wrap(parameterPolicies)), requiredValues: null, original.
PathSegments
);
100
return PatternCore(original.RawText, defaults, CreateRoutePatternPolicyReferences(parameterPolicies), requiredValues: null, original.
PathSegments
);
129
return PatternCore(original.RawText, Wrap(defaults), CreateRoutePatternPolicyReferences(Wrap(parameterPolicies)), Wrap(requiredValues), original.
PathSegments
);
157
return PatternCore(original.RawText, defaults, CreateRoutePatternPolicyReferences(parameterPolicies), requiredValues, original.
PathSegments
);
1092
var pathSegments = CombineLists(left.
PathSegments
, right.
PathSegments
);
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];
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];
Template\RouteTemplate.cs (2)
32
Segments = new List<TemplateSegment>(other.
PathSegments
.Count);
33
foreach (var p in other.
PathSegments
)
Template\TemplateBinder.cs (1)
513
var segments = _pattern.
PathSegments
;
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Http\Routing\test\UnitTests\Matching\BarebonesMatcherBuilder.cs (1)
24
var pathSegments = endpoint.RoutePattern.
PathSegments
Microsoft.AspNetCore.Routing.Tests (27)
Matching\BarebonesMatcherBuilder.cs (1)
24
var pathSegments = endpoint.RoutePattern.
PathSegments
Patterns\DefaultRoutePatternTransformerTest.cs (4)
172
Assert.Same(actual.
PathSegments
, original.
PathSegments
);
200
Assert.NotSame(actual.
PathSegments
, original.
PathSegments
);
Patterns\RoutePatternFactoryTest.cs (14)
27
original.
PathSegments
);
56
original.
PathSegments
);
80
original.
PathSegments
));
105
original.
PathSegments
);
128
original.
PathSegments
));
151
original.
PathSegments
);
196
original.
PathSegments
);
232
original.
PathSegments
);
263
original.
PathSegments
);
311
original.
PathSegments
);
330
original.
PathSegments
);
366
original.
PathSegments
);
394
original.
PathSegments
));
747
Assert.Collection(combined.
PathSegments
, AssertLiteral("a"), AssertLiteral("b"));
Patterns\RoutePatternParserTest.cs (8)
659
if (x.
PathSegments
.Count != y.
PathSegments
.Count)
664
for (var i = 0; i < x.
PathSegments
.Count; i++)
666
if (x.
PathSegments
[i].Parts.Count != y.
PathSegments
[i].Parts.Count)
671
for (int j = 0; j < x.
PathSegments
[i].Parts.Count; j++)
673
if (!Equals(x.
PathSegments
[i].Parts[j], y.
PathSegments
[i].Parts[j]))