6 instantiations of DfaNode
Microsoft.AspNetCore.Routing (6)
Matching\DfaMatcherBuilder.cs (6)
74var root = new DfaNode() { PathDepth = 0, Label = includeLabel ? "/" : null }; 287parent.CatchAll = new DfaNode() 312parent.Parameters = new DfaNode() 349parent.Parameters = new DfaNode() 500next = new DfaNode() 926var next = new DfaNode()
45 references to DfaNode
Microsoft.AspNetCore.Routing (45)
Internal\DfaGraphWriter.cs (3)
54var visited = new Dictionary<DfaNode, int>(); 56var tree = builder.BuildDfaTree(includeLabel: true); 62void WriteNode(DfaNode node)
Matching\DfaMatcherBuilder.cs (32)
67public DfaNode BuildDfaTree(bool includeLabel = false) 74var root = new DfaNode() { PathDepth = 0, Label = includeLabel ? "/" : null }; 83work.Add(new DfaBuilderWorkerWorkItem(endpoint, precedenceDigit, new List<DfaNode>() { root, })); 206var parent = parents[j]; 212List<DfaNode> nextParents; 223nextParents = new List<DfaNode>(); 253List<DfaNode> parents, 254List<DfaNode> nextParents, 259var parent = parents[i]; 372private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<DfaNode> nextParents, RoutePatternPathSegment segment, DfaNode parent, RoutePatternParameterPart parameterPart) 425private void AddParentsWithMatchingLiteralConstraints(List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences) 463foreach (var literal in parent.Literals.Values) 473private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, object requiredValue) 495private static void AddLiteralNode(bool includeLabel, List<DfaNode> nextParents, DfaNode parent, string literal) 498!parent.Literals.TryGetValue(literal, out var next)) 552var root = BuildDfaTree(includeLabel); 583DfaNode node, 678int Transition(DfaNode next) 877private void ApplyPolicies(DfaNode node) 889var work = new List<DfaNode>() { node, }; 890List<DfaNode> previousWork = null; 896List<DfaNode> nextWork; 899nextWork = new List<DfaNode>(); 910var parent = work[j]; 926var next = new DfaNode() 996public List<DfaNode> Parents { get; } 998public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<DfaNode> parents) 1005public void Deconstruct(out RouteEndpoint endpoint, out int precedenceDigit, out List<DfaNode> parents)
Matching\DfaNode.cs (10)
28public Dictionary<string, DfaNode> Literals { get; private set; } 30public DfaNode Parameters { get; set; } 32public DfaNode CatchAll { get; set; } 36public Dictionary<object, DfaNode> PolicyEdges { get; private set; } 38public void AddPolicyEdge(object state, DfaNode node) 42PolicyEdges = new Dictionary<object, DfaNode>(); 48public void AddLiteral(string literal, DfaNode node) 52Literals = new Dictionary<string, DfaNode>(StringComparer.OrdinalIgnoreCase); 80public void Visit(Action<DfaNode> visitor) 129string FormatNode(DfaNode other)