7 references to GetRequiredParent
Microsoft.AspNetCore.App.Analyzers (7)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (3)
81
return token.
GetRequiredParent
() is LiteralExpressionSyntax literalExpression
87
var parent = token.
GetRequiredParent
();
191
parentExpression is InterpolatedStringExpressionSyntax { Contents: var contents } && contents.First() == token.
GetRequiredParent
();
RouteEmbeddedLanguage\FrameworkParametersCompletionProvider.cs (2)
171
(previous.IsKind(SyntaxKind.CloseBracketToken) && previous.
GetRequiredParent
().FirstAncestorOrSelf<AttributeListSyntax>() != null) ||
172
(previous.IsKind(SyntaxKind.LessThanToken) && previous.
GetRequiredParent
().FirstAncestorOrSelf<GenericNameSyntax>() != null))
RouteEmbeddedLanguage\Infrastructure\RouteStringSyntaxDetector.cs (1)
118
semanticModel.GetDeclaredSymbol(GetIdentifierOfVariableDeclarator(variableDeclarator).
GetRequiredParent
(), cancellationToken);
RouteEmbeddedLanguage\Infrastructure\SyntaxTokenExtensions.cs (1)
13
var node = token.
GetRequiredParent
().WalkUpParentheses();