2 instantiations of SymbolKey
Microsoft.CodeAnalysis.CodeStyle (2)
SymbolKey.cs (2)
135
=>
new
(CreateString(symbol, cancellationToken));
236
/// and used later with <see cref="
SymbolKey
(string)"/> to then try to resolve back
29 references to SymbolKey
Microsoft.CodeAnalysis.CodeStyle (29)
SymbolKey.BodyLevelSymbolKey.cs (2)
244
if (!
SymbolKey
.Equals(reader.Compilation, name, symbol.Name))
267
SymbolKey
.Equals(semanticModel.Compilation, symbol.Name, localName))
SymbolKey.cs (16)
20
/// A <see cref="
SymbolKey
"/> is a lightweight identifier for a symbol that can be used to
97
/// <see cref="
SymbolKey
"/>s are not guaranteed to work across different versions of Roslyn. They can be persisted
103
/// The string values produced by <see cref="CreateString"/> (or <see cref="
SymbolKey
.ToString"/>) should not be
105
/// 'same' symbol might produce different strings. Instead, to compare keys use <see cref="
SymbolKey
.GetComparer"/>
110
internal partial struct SymbolKey : IEquatable<
SymbolKey
>
124
/// Constructs a new <see cref="
SymbolKey
"/> using the result of a previous call to
132
/// Constructs a new <see cref="
SymbolKey
"/> representing the provided <paramref name="symbol"/>.
134
public static
SymbolKey
Create(ISymbol? symbol, CancellationToken cancellationToken = default)
138
/// Returns an <see cref="IEqualityComparer{T}"/> that determines if two <see cref="
SymbolKey
"/>s
150
public static IEqualityComparer<
SymbolKey
> GetComparer(bool ignoreCase = false, bool ignoreAssemblyKeys = false)
193
failureReason = $"({nameof(
SymbolKey
)} invalid format '${version}')";
225
/// Tries to resolve this <see cref="
SymbolKey
"/> in the given
235
/// Returns this <see cref="
SymbolKey
"/> encoded as a string. This can be persisted
357
=> obj is
SymbolKey
symbolKey && this.Equals(symbolKey);
359
public readonly bool Equals(
SymbolKey
other)
362
private readonly bool Equals(
SymbolKey
other, bool ignoreCase)
SymbolKey.ParameterSymbolKey.cs (1)
82
if (
SymbolKey
.Equals(reader.Compilation, parameter.MetadataName, metadataName))
SymbolKey.SymbolKeyComparer.cs (6)
12
private 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)
SymbolKeyExtensions.cs (2)
11
public static
SymbolKey
GetSymbolKey(this ISymbol? symbol, CancellationToken cancellationToken = default)
12
=>
SymbolKey
.Create(symbol, cancellationToken);
SymbolKeyResolution.cs (2)
10
/// The result of <see cref="
SymbolKey
.Resolve"/>. If the <see cref="
SymbolKey
"/> could be uniquely mapped to a