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