Utils\Globbing\StaticWebAssetGlobMatcher.cs (34)
50var node = state.Node;
164var node = state.Node;
270var node = state.Node;
288stateStack.Push(state.NextSegment(state.Node.WildCard));
293var node = state.Node;
323var node = state.Node;
363internal readonly bool HasValue => Node != null;
367node = Node;
382if (Node.HasExtensions())
384return new(Node, MatchStage.Extension, SegmentIndex, 0, 0)
388if (Node.ComplexGlobSegments != null && Node.ComplexGlobSegments.Count > 0)
390return new(Node, MatchStage.Complex, SegmentIndex, 0, 0)
394if (Node.WildCard != null)
396return new(Node, MatchStage.WildCard, SegmentIndex, 0, 0)
400if (Node.RecursiveWildCard != null)
402return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
407if (Node.ComplexGlobSegments != null && Node.ComplexGlobSegments.Count > 0)
409return new(Node, MatchStage.Complex, SegmentIndex, 0, 0)
413if (Node.WildCard != null)
415return new(Node, MatchStage.WildCard, SegmentIndex, 0, 0)
419if (Node.RecursiveWildCard != null)
421return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
426if (Node.WildCard != null)
428return new(Node, MatchStage.WildCard, SegmentIndex, 0, 0)
431if (Node.RecursiveWildCard != null)
433return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
438if (Node.RecursiveWildCard != null)
440return new(Node, MatchStage.RecursiveWildCard, SegmentIndex, 0, 0)
445return new(Node, MatchStage.Done, SegmentIndex, 0, 0)
482internal readonly MatchState NextExtension(int extensionIndex) => new(Node, MatchStage.Extension, SegmentIndex, extensionIndex, ComplexSegmentIndex);
484internal readonly MatchState NextComplex() => new(Node, MatchStage.Complex, SegmentIndex, ExtensionSegmentIndex, ComplexSegmentIndex + 1);
488return $"Node: {Node}, Stage: {Stage}, SegmentIndex: {SegmentIndex}, ExtensionIndex: {ExtensionSegmentIndex}, ComplexSegmentIndex: {ComplexSegmentIndex}";