6 types derived from RoutePatternNode
Microsoft.AspNetCore.App.Analyzers (6)
Infrastructure\RoutePattern\RoutePatternNodes.cs (6)
14internal sealed class RoutePatternCompilationUnit : RoutePatternNode 339internal sealed class RoutePatternPolicyFragmentEscapedNode : RoutePatternNode 372internal sealed class RoutePatternPolicyFragment : RoutePatternNode 396internal abstract class RoutePatternRootPartNode : RoutePatternNode 404internal abstract class RoutePatternSegmentPartNode : RoutePatternNode 412internal abstract class RoutePatternParameterPartNode : RoutePatternNode
36 references to RoutePatternNode
Microsoft.AspNetCore.App.Analyzers (36)
Infrastructure\AmbiguousRoutePatternComparer.cs (2)
134var xPart = x.PolicyFragments[i]; 135var yPart = y.PolicyFragments[i];
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxHelpers.cs (2)
28public static RoutePatternNode? GetChildNode(this RoutePatternNode node, RoutePatternKind kind)
Infrastructure\RoutePattern\RoutePatternNode.cs (1)
9internal abstract class RoutePatternNode : EmbeddedSyntaxNode<RoutePatternKind, RoutePatternNode>
Infrastructure\RoutePattern\RoutePatternNodes.cs (3)
11using RoutePatternNodeOrToken = EmbeddedSyntaxNodeOrToken<RoutePatternKind, RoutePatternNode>; 315public RoutePatternPolicyParameterPartNode(RoutePatternToken colonToken, ImmutableArray<RoutePatternNode> policyFragments) 324public ImmutableArray<RoutePatternNode> PolicyFragments { get; }
Infrastructure\RoutePattern\RoutePatternParser.cs (11)
130if (part.TryGetNode(RoutePatternKind.Segment, out var segmentNode)) 142if (segmentPart.TryGetNode(RoutePatternKind.Parameter, out var parameterNode)) 144var catchAllParameterPart = parameterNode.GetChildNode(RoutePatternKind.CatchAll); 161RoutePatternNode? previousNode = null; 164if (part.TryGetNode(RoutePatternKind.Segment, out var segmentNode)) 182if (previousNode != null && segmentPart.TryGetNode(RoutePatternKind.Parameter, out var parameterNode)) 217if (part.TryGetNode(RoutePatternKind.Segment, out var segmentNode)) 221if (segmentPart.TryGetNode(RoutePatternKind.Parameter, out var parameterNode)) 296if (part.TryGetNode(RoutePatternKind.Separator, out var separatorNode)) 315private static void CollectDiagnostics(RoutePatternNode node, HashSet<EmbeddedDiagnostic> seenDiagnostics, IList<EmbeddedDiagnostic> diagnostics) 574var fragments = ImmutableArray.CreateBuilder<RoutePatternNode>();
Infrastructure\RoutePattern\RoutePatternTree.cs (1)
13internal sealed class RoutePatternTree : EmbeddedSyntaxTree<RoutePatternKind, RoutePatternNode, RoutePatternCompilationUnit>
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (5)
67private static RoutePatternParameterNode? FindParameterNode(RoutePatternNode node, VirtualChar ch) 71private static RoutePatternPolicyFragmentEscapedNode? FindPolicyFragmentEscapedNode(RoutePatternNode node, VirtualChar ch) 75private static RoutePatternReplacementNode? FindReplacementNode(RoutePatternNode node, VirtualChar ch) 79private static TNode? FindNode<TNode>(RoutePatternNode node, VirtualChar ch, Func<TNode, VirtualChar, bool> predicate) 80where TNode : RoutePatternNode
RouteEmbeddedLanguage\RoutePatternClassifier.cs (2)
30private static void AddClassifications(RoutePatternNode node, Visitor visitor) 139private void ClassifyWholeNode(RoutePatternNode node, string typeName)
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (6)
219private static (RoutePatternNode Parent, RoutePatternToken Token)? GetCurrentToken(EmbeddedCompletionContext context) 233private static void ProvideParameterCompletions(EmbeddedCompletionContext context, RoutePatternNode? parentOpt) 248private static void ProvidePolicyNameCompletions(EmbeddedCompletionContext context, RoutePatternNode? parentOpt) 282private static (RoutePatternNode Parent, RoutePatternToken Token)? FindToken(RoutePatternNode parent, VirtualChar ch) 358RoutePatternNode? parentOpt, int? positionOffset = null, string? insertionText = null)
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (3)
108private static RoutePatternNameParameterPartNode? FindParameterNode(RoutePatternNode node, VirtualChar ch) 111private static TNode? FindNode<TNode>(RoutePatternNode node, VirtualChar ch, Func<TNode, VirtualChar, bool> predicate) 112where TNode : RoutePatternNode