diff --git a/src/Workspaces/Core/Portable/SymbolKey/SymbolKey.cs b/src/Workspaces/Core/Portable/SymbolKey/SymbolKey.cs
index c0406a0c24cc753511af48b6f81439abae71d36f..322295f8086b51904b83eb6fb960607befc26cbe 100644
--- a/src/Workspaces/Core/Portable/SymbolKey/SymbolKey.cs
+++ b/src/Workspaces/Core/Portable/SymbolKey/SymbolKey.cs
@@ -100,20 +100,13 @@ internal partial struct SymbolKey
/// from any other source is not supported.
///
public SymbolKey(string data)
- {
- _symbolKeyData = data ?? throw new ArgumentNullException();
- }
+ => _symbolKeyData = data ?? throw new ArgumentNullException();
///
/// Constructs a new representing the provided .
///
- public SymbolKey(ISymbol symbol, CancellationToken cancellationToken = default)
- : this(CreateString(symbol, cancellationToken))
- {
- }
-
internal static SymbolKey Create(ISymbol symbol, CancellationToken cancellationToken = default)
- => new SymbolKey(symbol, cancellationToken);
+ => new SymbolKey(CreateString(symbol, cancellationToken));
///
/// Returns an that determines if two s
diff --git a/src/Workspaces/Core/Portable/SymbolKey/SymbolKeyExtensions.cs b/src/Workspaces/Core/Portable/SymbolKey/SymbolKeyExtensions.cs
index f05f02607b2933ec7c76fa41ee15e51f99c744cc..8068162b41e019c47659e7bc6f3617527e7dea3b 100644
--- a/src/Workspaces/Core/Portable/SymbolKey/SymbolKeyExtensions.cs
+++ b/src/Workspaces/Core/Portable/SymbolKey/SymbolKeyExtensions.cs
@@ -7,6 +7,6 @@ namespace Microsoft.CodeAnalysis
internal static class SymbolKeyExtensions
{
public static SymbolKey GetSymbolKey(this ISymbol symbol, CancellationToken cancellationToken = default)
- => new SymbolKey(symbol, cancellationToken);
+ => SymbolKey.Create(symbol, cancellationToken);
}
}