1 write to Literals
Microsoft.AspNetCore.Routing (1)
Tree\UrlMatchingNode.cs (1)
31Literals = new Dictionary<string, UrlMatchingNode>(StringComparer.OrdinalIgnoreCase);
15 references to Literals
Microsoft.AspNetCore.Routing (4)
Tree\TreeEnumerator.cs (2)
92if (next.Literals.Count > 0) 95if (next.Literals.TryGetValue(_tokenizer[next.Depth].Value, out var node))
Tree\UrlMatchingTree.cs (2)
103if (!current.Literals.TryGetValue(part.Text, out var next)) 106current.Literals.Add(part.Text, next);
Microsoft.AspNetCore.Routing.Tests (11)
Tree\TreeRouteBuilderTest.cs (11)
89var firstSegment = Assert.Single(matchingTree.Root.Literals); 96var thirdSegment = Assert.Single(secondSegment.Literals); 121var firstSegment = Assert.Single(matchingTree.Root.Literals); 128var thirdSegment = Assert.Single(secondSegment.Literals); 136var fifthSegment = Assert.Single(fourthSegment.Literals); 165var firstSegment = Assert.Single(matchingTree.Root.Literals); 172var thirdSegment = Assert.Single(secondSegment.Literals); 197var firstSegment = Assert.Single(matchingTree.Root.Literals); 204var thirdSegment = Assert.Single(secondSegment.Literals); 229var firstSegment = Assert.Single(matchingTree.Root.Literals); 236var thirdSegment = Assert.Single(secondSegment.Literals);