1 write to Kind
Microsoft.AspNetCore.App.Analyzers (1)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxNode.cs (1)
26Kind = kind;
12 references to Kind
Microsoft.AspNetCore.App.Analyzers (12)
Infrastructure\AmbiguousRoutePatternComparer.cs (5)
35_ => throw new InvalidOperationException($"Unexpected part type '{xPart.Kind}'."), 70_ => throw new InvalidOperationException($"Unexpected segment node type '{xChild.Kind}'."), 103var xParameterPolicies = x.ParameterParts.Where(p => p.Kind == RoutePatternKind.ParameterPolicy).OfType<RoutePatternPolicyParameterPartNode>().ToList(); 104var yParameterPolicies = y.ParameterParts.Where(p => p.Kind == RoutePatternKind.ParameterPolicy).OfType<RoutePatternPolicyParameterPartNode>().ToList(); 141_ => throw new InvalidOperationException($"Unexpected policy node type '{xPart.Kind}'."),
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxNodeOrToken.cs (1)
37public TSyntaxKind Kind => Node?.Kind ?? Token.Kind;
Infrastructure\RoutePattern\RoutePatternParser.cs (6)
88firstNode?.Kind == RoutePatternKind.Segment) 92segmentPart?.Kind == RoutePatternKind.Literal) 113secondNode?.Kind == RoutePatternKind.Separator) 168if (previousNode != null && previousNode.Kind == RoutePatternKind.Parameter) 189if (previousNode.Kind != RoutePatternKind.Literal || ((RoutePatternLiteralNode)previousNode).LiteralToken.Value!.ToString() != ".") 200if (previousNode.Kind == RoutePatternKind.Parameter)