7 instantiations of UrlMatchingNode
Microsoft.AspNetCore.Routing (7)
Tree\UrlMatchingTree.cs (7)
40
public UrlMatchingNode Root { get; } = new
UrlMatchingNode
(length: 0);
91
current.ConstrainedParameters = new
UrlMatchingNode
(length: i + 1);
105
next = new
UrlMatchingNode
(length: i + 1);
143
current.ConstrainedParameters = new
UrlMatchingNode
(length: i + 1);
154
current.Parameters = new
UrlMatchingNode
(length: i + 1);
165
current.ConstrainedCatchAlls = new
UrlMatchingNode
(length: i + 1) { IsCatchAll = true };
176
current.CatchAlls = new
UrlMatchingNode
(length: i + 1) { IsCatchAll = true };
30 references to UrlMatchingNode
Microsoft.AspNetCore.Routing (23)
Tree\TreeEnumerator.cs (7)
11
internal struct TreeEnumerator : IEnumerator<
UrlMatchingNode
>
13
private readonly Stack<
UrlMatchingNode
> _stack;
16
public TreeEnumerator(
UrlMatchingNode
root, PathTokenizer tokenizer)
18
_stack = new Stack<
UrlMatchingNode
>();
25
public
UrlMatchingNode
Current { get; private set; }
42
var
next = _stack.Pop();
95
if (next.Literals.TryGetValue(_tokenizer[next.Depth].Value, out
var
node))
Tree\TreeRouter.cs (2)
180
var
root = tree.Root;
189
var
node = treeEnumerator.Current;
Tree\UrlMatchingNode.cs (11)
23
/// Initializes a new instance of <see cref="
UrlMatchingNode
"/>.
31
Literals = new Dictionary<string,
UrlMatchingNode
>(StringComparer.OrdinalIgnoreCase);
55
public Dictionary<string,
UrlMatchingNode
> Literals { get; }
58
/// Gets or sets the <see cref="
UrlMatchingNode
"/> representing
61
public
UrlMatchingNode
ConstrainedParameters { get; set; }
64
/// Gets or sets the <see cref="
UrlMatchingNode
"/> representing
67
public
UrlMatchingNode
Parameters { get; set; }
70
/// Gets or sets the <see cref="
UrlMatchingNode
"/> representing
73
public
UrlMatchingNode
ConstrainedCatchAlls { get; set; }
76
/// Gets or sets the <see cref="
UrlMatchingNode
"/> representing
79
public
UrlMatchingNode
CatchAlls { get; set; }
Tree\UrlMatchingTree.cs (3)
40
public
UrlMatchingNode
Root { get; } = new UrlMatchingNode(length: 0);
74
var
current = Root;
103
if (!current.Literals.TryGetValue(part.Text, out
var
next))
Microsoft.AspNetCore.Routing.Tests (7)
Tree\TreeRouteBuilderTest.cs (7)
93
var
secondSegment = firstSegment.Value.Parameters;
125
var
secondSegment = firstSegment.Value.Parameters;
132
var
fourthSegment = thirdSegment.Value.Parameters;
140
var
sixthSegment = fifthSegment.Value.CatchAlls;
169
var
secondSegment = firstSegment.Value.Parameters;
201
var
secondSegment = firstSegment.Value.ConstrainedParameters;
233
var
secondSegment = firstSegment.Value.ConstrainedParameters;