6 instantiations of DfaNode
Microsoft.AspNetCore.Routing (6)
Matching\DfaMatcherBuilder.cs (6)
74
var root = new
DfaNode
() { PathDepth = 0, Label = includeLabel ? "/" : null };
287
parent.CatchAll = new
DfaNode
()
312
parent.Parameters = new
DfaNode
()
349
parent.Parameters = new
DfaNode
()
500
next = new
DfaNode
()
926
var next = new
DfaNode
()
99 references to DfaNode
Microsoft.AspNetCore.Routing (45)
Internal\DfaGraphWriter.cs (3)
54
var visited = new Dictionary<
DfaNode
, int>();
56
var
tree = builder.BuildDfaTree(includeLabel: true);
62
void WriteNode(
DfaNode
node)
Matching\DfaMatcherBuilder.cs (32)
67
public
DfaNode
BuildDfaTree(bool includeLabel = false)
74
var
root = new DfaNode() { PathDepth = 0, Label = includeLabel ? "/" : null };
83
work.Add(new DfaBuilderWorkerWorkItem(endpoint, precedenceDigit, new List<
DfaNode
>() { root, }));
206
var
parent = parents[j];
212
List<
DfaNode
> nextParents;
223
nextParents = new List<
DfaNode
>();
253
List<
DfaNode
> parents,
254
List<
DfaNode
> nextParents,
259
var
parent = parents[i];
372
private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<
DfaNode
> nextParents, RoutePatternPathSegment segment,
DfaNode
parent, RoutePatternParameterPart parameterPart)
425
private void AddParentsWithMatchingLiteralConstraints(List<
DfaNode
> nextParents,
DfaNode
parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences)
463
foreach (
var
literal in parent.Literals.Values)
473
private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<
DfaNode
> nextParents,
DfaNode
parent, RoutePatternParameterPart parameterPart, object requiredValue)
495
private static void AddLiteralNode(bool includeLabel, List<
DfaNode
> nextParents,
DfaNode
parent, string literal)
498
!parent.Literals.TryGetValue(literal, out
var
next))
552
var
root = BuildDfaTree(includeLabel);
583
DfaNode
node,
678
int Transition(
DfaNode
next)
877
private void ApplyPolicies(
DfaNode
node)
889
var work = new List<
DfaNode
>() { node, };
890
List<
DfaNode
> previousWork = null;
896
List<
DfaNode
> nextWork;
899
nextWork = new List<
DfaNode
>();
910
var
parent = work[j];
926
var
next = new DfaNode()
996
public List<
DfaNode
> Parents { get; }
998
public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<
DfaNode
> parents)
1005
public void Deconstruct(out RouteEndpoint endpoint, out int precedenceDigit, out List<
DfaNode
> parents)
Matching\DfaNode.cs (10)
28
public Dictionary<string,
DfaNode
> Literals { get; private set; }
30
public
DfaNode
Parameters { get; set; }
32
public
DfaNode
CatchAll { get; set; }
36
public Dictionary<object,
DfaNode
> PolicyEdges { get; private set; }
38
public void AddPolicyEdge(object state,
DfaNode
node)
42
PolicyEdges = new Dictionary<object,
DfaNode
>();
48
public void AddLiteral(string literal,
DfaNode
node)
52
Literals = new Dictionary<string,
DfaNode
>(StringComparer.OrdinalIgnoreCase);
80
public void Visit(Action<
DfaNode
> visitor)
129
string FormatNode(
DfaNode
other)
Microsoft.AspNetCore.Routing.Tests (54)
Matching\DfaMatcherBuilderTest.cs (54)
27
var
root = builder.BuildDfaTree();
45
var
root = builder.BuildDfaTree();
84
var
root = builder.BuildDfaTree();
90
var
a = root.Parameters;
94
var
b = a.Parameters;
98
var
c = b.Parameters;
114
var
root = builder.BuildDfaTree();
120
var
a = root.Parameters;
129
var
catchAll = a.CatchAll;
146
var
root = builder.BuildDfaTree();
154
var
catchAll = root.CatchAll;
173
var
root = builder.BuildDfaTree();
225
var
root = builder.BuildDfaTree();
277
var
root = builder.BuildDfaTree();
333
var
root = builder.BuildDfaTree();
375
var
root = builder.BuildDfaTree();
424
var
root = builder.BuildDfaTree();
471
var
root = builder.BuildDfaTree();
518
var
root = builder.BuildDfaTree();
563
var
root = builder.BuildDfaTree();
626
var
root = builder.BuildDfaTree();
686
var
root = builder.BuildDfaTree();
731
var
root = builder.BuildDfaTree();
791
var
root = builder.BuildDfaTree();
836
var
root = builder.BuildDfaTree();
896
var
root = builder.BuildDfaTree();
959
var
root = builder.BuildDfaTree();
1011
var
root = builder.BuildDfaTree();
1641
var
root = builder.BuildDfaTree();
2161
var
root = builder.BuildDfaTree();
2379
var
root = builder.BuildDfaTree();
2406
var
root = builder.BuildDfaTree();
2449
var
root = builder.BuildDfaTree();
2492
var
root = builder.BuildDfaTree();
2519
var
a2 = root.Parameters;
2523
var
b2 = a2.Parameters;
2546
var
root = builder.BuildDfaTree();
2573
var
a2 = root.Parameters;
2577
var
b2 = a2.Parameters;
2596
var
root = builder.BuildDfaTree();
2614
var
a2 = root.Parameters;
2618
var
b2 = a2.Parameters;
2637
var
root = builder.BuildDfaTree();
2682
var
root = builder.BuildDfaTree();
2746
var
root = builder.BuildDfaTree();
2790
var
root = builder.BuildDfaTree();
2834
var
root = builder.BuildDfaTree();
2882
var
root = builder.BuildDfaTree();
2951
var
root = builder.BuildDfaTree();
2985
var
root = builder.BuildDfaTree();
3019
var
root = builder.BuildDfaTree();
3065
var
root = builder.BuildDfaTree();
3125
var
root = builder.BuildDfaTree();
3158
var
root = builder.BuildDfaTree();