6 instantiations of DfaNode
Microsoft.AspNetCore.Routing (6)
Matching\DfaMatcherBuilder.cs (6)
78
var root = new
DfaNode
() { PathDepth = 0, Label = includeLabel ? "/" : null };
291
parent.CatchAll = new
DfaNode
()
316
parent.Parameters = new
DfaNode
()
353
parent.Parameters = new
DfaNode
()
504
next = new
DfaNode
()
974
var next = new
DfaNode
()
45 references to DfaNode
Microsoft.AspNetCore.Routing (45)
Internal\DfaGraphWriter.cs (3)
54
var visited = new Dictionary<
DfaNode
, int>();
56
var
tree = builder.BuildDfaTree(includeLabel: true);
62
void WriteNode(
DfaNode
node)
Matching\DfaMatcherBuilder.cs (32)
71
public
DfaNode
BuildDfaTree(bool includeLabel = false)
78
var
root = new DfaNode() { PathDepth = 0, Label = includeLabel ? "/" : null };
87
work.Add(new DfaBuilderWorkerWorkItem(endpoint, precedenceDigit, new List<
DfaNode
>() { root, }));
210
var
parent = parents[j];
216
List<
DfaNode
> nextParents;
227
nextParents = new List<
DfaNode
>();
257
List<
DfaNode
> parents,
258
List<
DfaNode
> nextParents,
263
var
parent = parents[i];
376
private void AddParentsMatchingComplexSegment(RouteEndpoint endpoint, List<
DfaNode
> nextParents, RoutePatternPathSegment segment,
DfaNode
parent, RoutePatternParameterPart parameterPart)
429
private void AddParentsWithMatchingLiteralConstraints(List<
DfaNode
> nextParents,
DfaNode
parent, RoutePatternParameterPart parameterPart, IReadOnlyList<RoutePatternParameterPolicyReference> parameterPolicyReferences)
467
foreach (
var
literal in parent.Literals.Values)
477
private void AddRequiredLiteralValue(RouteEndpoint endpoint, List<
DfaNode
> nextParents,
DfaNode
parent, RoutePatternParameterPart parameterPart, object requiredValue)
499
private static void AddLiteralNode(bool includeLabel, List<
DfaNode
> nextParents,
DfaNode
parent, string literal)
502
!parent.Literals.TryGetValue(literal, out
var
next))
556
var
root = BuildDfaTree(includeLabel);
596
DfaNode
node,
691
int Transition(
DfaNode
next)
925
private void ApplyPolicies(
DfaNode
node)
937
var work = new List<
DfaNode
>() { node, };
938
List<
DfaNode
> previousWork = null;
944
List<
DfaNode
> nextWork;
947
nextWork = new List<
DfaNode
>();
958
var
parent = work[j];
974
var
next = new DfaNode()
1044
public List<
DfaNode
> Parents { get; }
1046
public DfaBuilderWorkerWorkItem(RouteEndpoint endpoint, int precedenceDigit, List<
DfaNode
> parents)
1053
public void Deconstruct(out RouteEndpoint endpoint, out int precedenceDigit, out List<
DfaNode
> parents)
Matching\DfaNode.cs (10)
28
public Dictionary<string,
DfaNode
> Literals { get; private set; }
30
public
DfaNode
Parameters { get; set; }
32
public
DfaNode
CatchAll { get; set; }
36
public Dictionary<object,
DfaNode
> PolicyEdges { get; private set; }
38
public void AddPolicyEdge(object state,
DfaNode
node)
42
PolicyEdges = new Dictionary<object,
DfaNode
>();
48
public void AddLiteral(string literal,
DfaNode
node)
52
Literals = new Dictionary<string,
DfaNode
>(StringComparer.OrdinalIgnoreCase);
80
public void Visit(Action<
DfaNode
> visitor)
129
string FormatNode(
DfaNode
other)