Utils\Globbing\StaticWebAssetGlobMatcher.cs (34)
50var node = state.Node;
191var node = state.Node;
297var node = state.Node;
318stateStack.Push(state.NextSegment(state.Node.WildCard));
323var node = state.Node;
353var node = state.Node;
397internal readonly bool HasValue => Node != null;
401node = Node;
416if (Node.HasExtensions())
418return new(Node, MatchStage.Extension, SegmentIndex, 0, 0)
422if (Node.ComplexGlobSegments != null && Node.ComplexGlobSegments.Count > 0)
424return new(Node, MatchStage.Complex, SegmentIndex, 0, 0)
428if (Node.WildCard != null)
430return new(Node, MatchStage.WildCard, SegmentIndex, 0, 0)
434if (Node.RecursiveWildCard != null)
436return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
441if (Node.ComplexGlobSegments != null && Node.ComplexGlobSegments.Count > 0)
443return new(Node, MatchStage.Complex, SegmentIndex, 0, 0)
447if (Node.WildCard != null)
449return new(Node, MatchStage.WildCard, SegmentIndex, 0, 0)
453if (Node.RecursiveWildCard != null)
455return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
460if (Node.WildCard != null)
462return new(Node, MatchStage.WildCard, SegmentIndex, 0, 0)
465if (Node.RecursiveWildCard != null)
467return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
472if (Node.RecursiveWildCard != null)
474return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
479return new(Node, MatchStage.Done, SegmentIndex, 0, 0)
516internal readonly MatchState NextExtension(int extensionIndex) => new(Node, MatchStage.Extension, SegmentIndex, extensionIndex, ComplexSegmentIndex)
522internal readonly MatchState NextComplex() => new(Node, MatchStage.Complex, SegmentIndex, ExtensionSegmentIndex, ComplexSegmentIndex + 1);
526return $"Node: {Node}, Stage: {Stage}, SegmentIndex: {SegmentIndex}, ExtensionIndex: {ExtensionSegmentIndex}, ComplexSegmentIndex: {ComplexSegmentIndex}";