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