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