1 instantiation of DecisionTreeNode
Microsoft.AspNetCore.Routing (1)
DecisionTree\DecisionTreeBuilder.cs (1)
189return new DecisionTreeNode<TItem>()
16 references to DecisionTreeNode
Microsoft.AspNetCore.Routing (10)
DecisionTree\DecisionCriterion.cs (1)
12public Dictionary<object, DecisionTreeNode<TItem>> Branches { get; set; }
DecisionTree\DecisionTreeBuilder.cs (4)
73public static DecisionTreeNode<TItem> GenerateTree(IReadOnlyList<TItem> items, IClassifier<TItem> classifier) 95private static DecisionTreeNode<TItem> GenerateNode( 153var reducedBranches = new Dictionary<object, DecisionTreeNode<TItem>>(comparer.InnerComparer); 172var newBranch = GenerateNode(childContext, comparer, branch.Value);
Tree\LinkGenerationDecisionTree.cs (5)
23private readonly DecisionTreeNode<OutboundMatch> _root; 111DecisionTreeNode<OutboundMatch> node, 134if (criterion.Branches.TryGetValue(value ?? string.Empty, out var branch)) 144DecisionTreeNode<OutboundMatch> branch; 236private static void FlattenTree(Stack<string> branchStack, StringBuilder sb, DecisionTreeNode<OutboundMatch> node)
Microsoft.AspNetCore.Routing.Tests (6)
DecisionTreeBuilderTest.cs (6)
15var tree = DecisionTreeBuilder<Item>.GenerateTree(items, new ItemClassifier()); 32var tree = DecisionTreeBuilder<Item>.GenerateTree(items, new ItemClassifier()); 52var tree = DecisionTreeBuilder<Item>.GenerateTree(items, new ItemClassifier()); 97var tree = DecisionTreeBuilder<Item>.GenerateTree(items, new ItemClassifier()); 149var tree = DecisionTreeBuilder<Item>.GenerateTree(items, new ItemClassifier()); 182var tree = DecisionTreeBuilder<Item>.GenerateTree(items, new ItemClassifier());