7 references to GetRequiredParent
Microsoft.AspNetCore.App.Analyzers (7)
Infrastructure\VirtualChars\CSharpVirtualCharService.cs (3)
81return token.GetRequiredParent() is LiteralExpressionSyntax literalExpression 87var parent = token.GetRequiredParent(); 191parentExpression 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)
118semanticModel.GetDeclaredSymbol(GetIdentifierOfVariableDeclarator(variableDeclarator).GetRequiredParent(), cancellationToken);
RouteEmbeddedLanguage\Infrastructure\SyntaxTokenExtensions.cs (1)
13var node = token.GetRequiredParent().WalkUpParentheses();