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