10 references to GetRequiredParent
Microsoft.CodeAnalysis.Workspaces (10)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (3)
204=> new(token.GetRequiredParent(), CreateReferenceLocation(state, token, reason, cancellationToken)); 212GetSymbolUsageInfo(token.GetRequiredParent(), state, cancellationToken), 213GetAdditionalFindUsagesProperties(token.GetRequiredParent(), state),
FindSymbols\FindReferences\Finders\ExplicitConversionSymbolReferenceFinder.cs (1)
82var node = token.GetRequiredParent();
FindSymbols\FindReferences\Finders\ParameterSymbolReferenceFinder.cs (1)
142var symbol = semanticModel.GetDeclaredSymbol(token.GetRequiredParent(), cancellationToken);
FindSymbols\FindReferences\Finders\PreprocessingSymbolReferenceFinder.cs (1)
53var targetSymbol = state.SemanticFacts.GetPreprocessingSymbol(state.SemanticModel, token.GetRequiredParent());
FindSymbols\FindReferences\FindReferenceCache.cs (1)
105return SemanticModel.GetAliasInfo(token.GetRequiredParent(), cancellationToken);
FindSymbols\FindReferences\FindReferencesSearchEngine_FindReferencesInDocuments.cs (1)
184var parent = state.SyntaxFacts.TryGetBindableParent(token) ?? token.GetRequiredParent();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTokenExtensions.cs (2)
40=> token1.GetRequiredParent().GetCommonRoot(token2.GetRequiredParent());