6 instantiations of DfaNode
Microsoft.AspNetCore.Routing (6)
Matching\DfaMatcherBuilder.cs (6)
78var root = new DfaNode() { PathDepth = 0, Label = includeLabel ? "/" : null }; 291parent.CatchAll = new DfaNode() 316parent.Parameters = new DfaNode() 353parent.Parameters = new DfaNode() 504next = new DfaNode() 974var 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)
71public DfaNode BuildDfaTree(bool includeLabel = false) 78var root = new DfaNode() { PathDepth = 0, Label = includeLabel ? "/" : null }; 87work.Add(new DfaBuilderWorkerWorkItem(endpoint, precedenceDigit, new List<DfaNode>() { root, })); 210var parent = parents[j]; 216List<DfaNode> nextParents; 227nextParents = new List<DfaNode>(); 257List<DfaNode> parents, 258List<DfaNode> nextParents, 263var parent = parents[i]; 376private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<DfaNode> nextParents, RoutePatternPathSegment segment, DfaNode parent, RoutePatternParameterPart parameterPart) 429private void AddParentsWithMatchingLiteralConstraints(List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences) 467foreach (var literal in parent.Literals.Values) 477private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<DfaNode> nextParents, DfaNode parent, RoutePatternParameterPart parameterPart, object requiredValue) 499private static void AddLiteralNode(bool includeLabel, List<DfaNode> nextParents, DfaNode parent, string literal) 502!parent.Literals.TryGetValue(literal, out var next)) 556var root = BuildDfaTree(includeLabel); 596DfaNode node, 691int Transition(DfaNode next) 925private void ApplyPolicies(DfaNode node) 937var work = new List<DfaNode>() { node, }; 938List<DfaNode> previousWork = null; 944List<DfaNode> nextWork; 947nextWork = new List<DfaNode>(); 958var parent = work[j]; 974var next = new DfaNode() 1044public List<DfaNode> Parents { get; } 1046public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<DfaNode> parents) 1053public 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)