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