2 writes to CatchAll
Microsoft.AspNetCore.Routing (2)
Matching\DfaMatcherBuilder.cs (2)
287
parent.
CatchAll
= new DfaNode()
295
parent.CatchAll.
CatchAll
= parent.CatchAll;
41 references to CatchAll
Microsoft.AspNetCore.Routing (18)
Internal\DfaGraphWriter.cs (3)
86
if (node.
CatchAll
!= null && node.Parameters != node.
CatchAll
)
88
writer.WriteLine($"{label} -> {visited[node.
CatchAll
]} [label=\"/**\"]");
Matching\DfaMatcherBuilder.cs (12)
285
if (parent.
CatchAll
== null)
294
parent.
CatchAll
.Parameters = parent.
CatchAll
;
295
parent.
CatchAll
.CatchAll = parent.
CatchAll
;
298
parent.
CatchAll
.AddMatch(endpoint);
609
node.
CatchAll
!= null &&
610
ReferenceEquals(node.Parameters, node.
CatchAll
))
616
else if (node.Parameters != null && node.
CatchAll
!= null)
621
currentExitDestination = Transition(node.
CatchAll
);
628
else if (node.
CatchAll
!= null)
631
currentExitDestination = currentDefaultDestination = Transition(node.
CatchAll
);
Matching\DfaNode.cs (3)
97
if (
CatchAll
!= null && !ReferenceEquals(this,
CatchAll
))
99
CatchAll
.Visit(visitor);
Microsoft.AspNetCore.Routing.Tests (23)
Matching\DfaMatcherBuilderTest.cs (23)
129
var catchAll = a.
CatchAll
;
133
Assert.Same(catchAll, catchAll.
CatchAll
);
154
var catchAll = root.
CatchAll
;
405
var catchAll = a.
CatchAll
;
408
Assert.Same(catchAll, catchAll.
CatchAll
);
452
var catchAll = a.
CatchAll
;
455
Assert.Same(catchAll, catchAll.
CatchAll
);
2426
Assert.NotNull(b.
CatchAll
);
2428
var catchAll = b.
CatchAll
;
2432
Assert.Same(catchAll, catchAll.
CatchAll
);
2469
Assert.NotNull(b.
CatchAll
);
2471
var catchAll = b.
CatchAll
;
2475
Assert.Same(catchAll, catchAll.
CatchAll
);
2511
Assert.NotNull(b1.
CatchAll
);
2513
var catchAll1 = b1.
CatchAll
;
2517
Assert.Same(catchAll1, catchAll1.
CatchAll
);
2529
Assert.Null(b2.
CatchAll
);
2565
Assert.NotNull(b1.
CatchAll
);
2567
var catchAll1 = b1.
CatchAll
;
2571
Assert.Same(catchAll1, catchAll1.
CatchAll
);
2583
Assert.Null(b2.
CatchAll
);
2612
Assert.Null(b1.
CatchAll
);
2624
Assert.Null(b2.
CatchAll
);