5 instantiations of NameDeclarationInfo
Microsoft.CodeAnalysis.CSharp.Features (5)
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (5)
163result = new NameDeclarationInfo( 271return new NameDeclarationInfo( 313return new NameDeclarationInfo( 387result = new NameDeclarationInfo( 433result = new NameDeclarationInfo(
45 references to NameDeclarationInfo
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
Completion\CompletionProviders\DeclarationNameCompletionProviderTests_NameDeclarationInfoTests.cs (8)
778var result = await GetResultsAsync(markup); 784var result = await GetResultsAsync(markup); 790var result = await GetResultsAsync(markup); 796var result = await GetResultsAsync(markup); 802var result = await GetResultsAsync(markup); 806private async Task<NameDeclarationInfo> GetResultsAsync(string markup) 809var result = await NameDeclarationInfo.GetDeclarationInfoAsync(document, position, CancellationToken.None);
Microsoft.CodeAnalysis.CSharp.Features (37)
Completion\CompletionProviders\DeclarationName\DeclarationNameCompletionProvider.cs (2)
78var nameInfo = await NameDeclarationInfo.GetDeclarationInfoAsync(document, position, cancellationToken).ConfigureAwait(false);
Completion\CompletionProviders\DeclarationName\DeclarationNameInfo.cs (23)
54public static async Task<NameDeclarationInfo> GetDeclarationInfoAsync(Document document, int position, CancellationToken cancellationToken) 56var info = await GetDeclarationInfoWorkerAsync(document, position, cancellationToken).ConfigureAwait(false); 76private static async Task<NameDeclarationInfo> GetDeclarationInfoWorkerAsync(Document document, int position, CancellationToken cancellationToken) 83if (IsTupleTypeElement(token, semanticModel, cancellationToken, out var result) 108CancellationToken cancellationToken, out NameDeclarationInfo result) 122CancellationToken cancellationToken, out NameDeclarationInfo result) 146ITypeInferenceService typeInferenceService, CancellationToken cancellationToken, out NameDeclarationInfo result) 179CancellationToken cancellationToken, out NameDeclarationInfo result) 203CancellationToken cancellationToken, out NameDeclarationInfo result) 217CancellationToken cancellationToken, out NameDeclarationInfo result) 230private static NameDeclarationInfo IsFollowingTypeOrComma<TSyntaxNode>( 279private static NameDeclarationInfo IsLastTokenOfType<TSyntaxNode>( 290private static NameDeclarationInfo IsLastTokenOfType<TSyntaxNode>( 322CancellationToken cancellationToken, out NameDeclarationInfo result) 333CancellationToken cancellationToken, out NameDeclarationInfo result) 344CancellationToken cancellationToken, out NameDeclarationInfo result) 355CancellationToken cancellationToken, out NameDeclarationInfo result) 400CancellationToken cancellationToken, out NameDeclarationInfo result) 413CancellationToken cancellationToken, out NameDeclarationInfo result) 428private static bool IsTypeParameterDeclaration(SyntaxToken token, out NameDeclarationInfo result) 445CancellationToken cancellationToken, out NameDeclarationInfo result) 465CancellationToken cancellationToken, out NameDeclarationInfo result) 477CancellationToken cancellationToken, out NameDeclarationInfo result)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.cs (8)
42NameDeclarationInfo nameInfo, 70private ImmutableArray<ImmutableArray<string>> GetBaseNames(SemanticModel semanticModel, NameDeclarationInfo nameInfo) 208NameDeclarationInfo declarationInfo, 233NameDeclarationInfo declarationInfo, 268NameDeclarationInfo.GetGlyph(NameDeclarationInfo.GetSymbolKind(kind), declarationInfo.DeclaredAccessibility))); 285NameDeclarationInfo declarationInfo, ArrayBuilder<(string, Glyph)> result, CancellationToken cancellationToken) 312result.Add((overloadParameter.Name, NameDeclarationInfo.GetGlyph(SymbolKind.Parameter, declarationInfo.DeclaredAccessibility)));
Completion\CompletionProviders\DeclarationName\IDeclarationNameRecommender.cs (1)
19NameDeclarationInfo nameInfo,
ExternalAccess\Pythia\PythiaDeclarationNameRecommender.cs (3)
35NameDeclarationInfo nameInfo, 46name => (name, NameDeclarationInfo.GetGlyph(NameDeclarationInfo.GetSymbolKind(nameInfo.PossibleSymbolKinds[0]), nameInfo.DeclaredAccessibility)));