28 references to SymbolKey
Microsoft.CodeAnalysis.CodeStyle (28)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.BodyLevelSymbolKey.cs (2)
244
if (!
SymbolKey
.Equals(reader.Compilation, name, symbol.Name))
267
SymbolKey
.Equals(semanticModel.Compilation, symbol.Name, localName))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.cs (15)
20
/// A <see cref="
SymbolKey
"/> is a lightweight identifier for a symbol that can be used to
99
/// <see cref="
SymbolKey
"/>s are not guaranteed to work across different versions of Roslyn. They can be persisted
105
/// The string values produced by <see cref="CreateString"/> (or <see cref="
SymbolKey
.ToString"/>) should not be
107
/// 'same' symbol might produce different strings. Instead, to compare keys use <see cref="
SymbolKey
.GetComparer"/>
112
internal partial struct SymbolKey(string data) : IEquatable<
SymbolKey
>
126
/// Constructs a new <see cref="
SymbolKey
"/> representing the provided <paramref name="symbol"/>.
128
public static
SymbolKey
Create(ISymbol? symbol, CancellationToken cancellationToken = default)
132
/// Returns an <see cref="IEqualityComparer{T}"/> that determines if two <see cref="
SymbolKey
"/>s
144
public static IEqualityComparer<
SymbolKey
> GetComparer(bool ignoreCase = false, bool ignoreAssemblyKeys = false)
187
failureReason = $"({nameof(
SymbolKey
)} invalid format '${version}')";
219
/// Tries to resolve this <see cref="
SymbolKey
"/> in the given
229
/// Returns this <see cref="
SymbolKey
"/> encoded as a string. This can be persisted
352
=> obj is
SymbolKey
symbolKey && this.Equals(symbolKey);
354
public readonly bool Equals(
SymbolKey
other)
357
private readonly bool Equals(
SymbolKey
other, bool ignoreCase)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.ParameterSymbolKey.cs (1)
87
if (
SymbolKey
.Equals(reader.Compilation, parameter.MetadataName, metadataName))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyComparer.cs (6)
12
private sealed class SymbolKeyComparer : IEqualityComparer<
SymbolKey
>
19
public bool Equals(
SymbolKey
x,
SymbolKey
y)
49
public int GetHashCode(
SymbolKey
obj)
52
public static IEqualityComparer<
SymbolKey
> GetComparer(bool ignoreCase, bool ignoreAssemblyKey)
63
public static IEqualityComparer<
SymbolKey
> GetComparer(ComparisonOptions options)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyExtensions.cs (2)
11
public static
SymbolKey
GetSymbolKey(this ISymbol? symbol, CancellationToken cancellationToken = default)
12
=>
SymbolKey
.Create(symbol, cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKeyResolution.cs (2)
10
/// The result of <see cref="
SymbolKey
.Resolve"/>. If the <see cref="
SymbolKey
"/> could be uniquely mapped to a