22 instantiations of SymbolKeyResolution
Microsoft.CodeAnalysis.Workspaces (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
74
return new
SymbolKeyResolution
(aliasSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs (1)
70
return new
SymbolKeyResolution
(symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (2)
69
return new
SymbolKeyResolution
(anonymousType);
73
return new
SymbolKeyResolution
(reader.Compilation.ObjectType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (1)
193
return new
SymbolKeyResolution
(symbol.symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (2)
57
return new
SymbolKeyResolution
(unaryOperator);
61
return new
SymbolKeyResolution
(binaryOperator);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (1)
258
return new
SymbolKeyResolution
(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.DynamicTypeSymbolKey.cs (1)
32
return new
SymbolKeyResolution
(reader.Compilation.DynamicType);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (1)
130
return new
SymbolKeyResolution
(currentNamespace);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (1)
91
return new
SymbolKeyResolution
(reader.Compilation.CreateFunctionPointerTypeSymbol(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (1)
241
return new
SymbolKeyResolution
(method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (2)
59
return new
SymbolKeyResolution
(reader.Compilation.CreateNativeIntegerTypeSymbol(signed));
125
containingSymbolResolution = new
SymbolKeyResolution
(containingNamespace);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
86
return new
SymbolKeyResolution
(reader.Compilation.GlobalNamespace);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PreprocessingSymbolKey.cs (1)
19
return new
SymbolKeyResolution
(reader.Compilation.CreatePreprocessingSymbol(reader.ReadRequiredString()));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PropertySymbolKey.cs (1)
88
return new
SymbolKeyResolution
(property);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (3)
731
return new
SymbolKeyResolution
(symbol);
735
return new
SymbolKeyResolution
(info.Symbol);
738
return new
SymbolKeyResolution
(info.CandidateSymbols, info.CandidateReason);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (1)
125
return new
SymbolKeyResolution
(result);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
34
return new
SymbolKeyResolution
(typeParameter);
67 references to SymbolKeyResolution
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (3)
SymbolKey\SymbolKeyCompilationsTests.cs (1)
475
var
syminfo = symkey.Resolve(comp1);
SymbolKey\SymbolKeyErrorTypeTests.cs (1)
390
var
resolution = SymbolKey.ResolveString(symbolKey, emptyCompilation, ignoreAssemblyKey: true, out var failureReason, CancellationToken.None);
SymbolKey\SymbolKeyTestBase.cs (1)
90
var
symInfo = sid.Resolve(targetCompilation, (comparison & SymbolKeyComparison.IgnoreAssemblyIds) == SymbolKeyComparison.IgnoreAssemblyIds);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
SymbolKey\SymbolKeyCrossLanguageTests.cs (1)
52
var
resolved = SymbolKey.ResolveString(methodSymbol.GetSymbolKey().ToString(), vbCompilation, out var failureReason, CancellationToken.None);
Microsoft.CodeAnalysis.Features (4)
MetadataAsSource\MetadataAsSourceFileService.cs (1)
270
var
resolutionResult = symbolId.Resolve(compilation, ignoreAssemblyKey: true, cancellationToken: cancellationToken);
MetadataAsSource\MetadataAsSourceHelpers.cs (1)
73
var
resolution = symbolId.Resolve(
PdbSourceDocument\PdbSourceDocumentMetadataAsSourceFileProvider.cs (1)
161
var
resolution = key.Resolve(tmpCompilation, ignoreAssemblyKey: true, cancellationToken);
ValueTracking\SerializableValueTrackedItem.cs (1)
48
var
symbolResolution = SymbolKey.Resolve(semanticModel.Compilation, cancellationToken: cancellationToken);
Microsoft.CodeAnalysis.Workspaces (57)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AbstractSymbolKey.cs (2)
14
public
SymbolKeyResolution
Resolve(SymbolKeyReader reader, out string? failureReason)
17
protected abstract
SymbolKeyResolution
Resolve(SymbolKeyReader reader, TSymbol? contextualSymbol, out string? failureReason);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (2)
25
protected sealed override
SymbolKeyResolution
Resolve(
58
private static
SymbolKeyResolution
? Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousFunctionOrDelegateSymbolKey.cs (1)
35
public static
SymbolKeyResolution
Resolve(SymbolKeyReader reader, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (1)
34
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ArrayTypeSymbolKey.cs (1)
19
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AssemblySymbolKey.cs (1)
22
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (3)
131
public static
SymbolKeyResolution
Resolve(SymbolKeyReader reader, out string? failureReason)
157
if (!TryResolveLocation(loc, i, out
var
resolution, out var reason))
220
bool TryResolveLocation(Location loc, int index, out
SymbolKeyResolution
resolution, out string? reason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BuiltinOperatorSymbolKey.cs (1)
24
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (6)
164
public static
SymbolKeyResolution
ResolveString(
171
public static
SymbolKeyResolution
ResolveString(
178
public static
SymbolKeyResolution
ResolveString(
222
public readonly
SymbolKeyResolution
Resolve(
241
private static
SymbolKeyResolution
CreateResolution<TSymbol>(
295
SymbolKeyResolution
containingTypeResolution,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.DynamicTypeSymbolKey.cs (1)
19
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ErrorTypeSymbolKey.cs (3)
65
protected sealed override
SymbolKeyResolution
Resolve(
69
var
containingSymbolResolution = ResolveContainer(reader, contextualType, out var containingSymbolFailureReason);
110
private static
SymbolKeyResolution
ResolveContainer(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.EventSymbolKey.cs (1)
19
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FieldSymbolKey.cs (1)
19
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.FunctionPointerTypeSymbolKey.cs (1)
34
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.MethodSymbolKey.cs (3)
24
protected sealed override
SymbolKeyResolution
Resolve(
66
protected sealed override
SymbolKeyResolution
Resolve(
160
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ModuleSymbolKey.cs (1)
18
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamedTypeSymbolKey.cs (6)
39
protected sealed override
SymbolKeyResolution
Resolve(
74
var
normalResolution = ResolveNormalNamedType(
89
private static
SymbolKeyResolution
ResolveContextualErrorType(
92
SymbolKeyResolution
containingSymbolResolution,
139
private static
SymbolKeyResolution
ResolveNormalNamedType(
140
SymbolKeyResolution
containingSymbolResolution,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.NamespaceSymbolKey.cs (1)
58
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
23
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PointerTypeSymbolKey.cs (1)
16
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PreprocessingSymbolKey.cs (1)
16
protected sealed override
SymbolKeyResolution
Resolve(SymbolKeyReader reader, IPreprocessingSymbol? contextualSymbol, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.PropertySymbolKey.cs (1)
25
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (7)
324
private readonly Dictionary<int,
SymbolKeyResolution
> _idToResult = [];
468
public
SymbolKeyResolution
ReadSymbolKey(ISymbol? contextualSymbol, out string? failureReason)
483
SymbolKeyResolution
result;
506
private
SymbolKeyResolution
ReadWorker(SymbolKeyType type, out string? failureReason)
537
private PooledArrayBuilder<
SymbolKeyResolution
> ReadSymbolKeyArray<TContextualSymbol>(
544
var builder = PooledArrayBuilder<
SymbolKeyResolution
>.GetInstance();
723
public
SymbolKeyResolution
? ResolveLocation(Location location)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TupleTypeSymbolKey.cs (3)
54
protected sealed override
SymbolKeyResolution
Resolve(
65
private static
SymbolKeyResolution
ResolveNormalTuple(
93
private static
SymbolKeyResolution
ResolveErrorTuple(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
20
public static
SymbolKeyResolution
Resolve(SymbolKeyReader reader, out string? failureReason)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
30
protected sealed override
SymbolKeyResolution
Resolve(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.Enumeration.cs (4)
11
private readonly
SymbolKeyResolution
_resolution;
13
internal Enumerable(
SymbolKeyResolution
resolution)
22
private readonly
SymbolKeyResolution
_symbolKeyResolution;
25
internal Enumerator(
SymbolKeyResolution
symbolKeyResolution)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolutionExtensions.cs (1)
9
internal static ISymbol? GetAnySymbol(this
SymbolKeyResolution
resolution)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
SymbolKeyTests.cs (1)
1425
var
resolved = key.Resolve(newCompilation);
Microsoft.VisualStudio.LanguageServices (1)
CallHierarchy\Finders\AbstractCallFinder.cs (1)
102
var
resolution = _symbolKey.Resolve(compilation, cancellationToken: cancellationToken);