9 instantiations of AnonymousTypeKey
Microsoft.CodeAnalysis.CSharp (2)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
154
var key = new
AnonymousTypeKey
(builder.ToImmutable());
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
96
return new
AnonymousTypeKey
(properties);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
Emit\EditAndContinue\SymbolMatcherTests.cs (7)
486
Assert.Equal("<>f__AnonymousType0", anonymousTypeMap0[new
AnonymousTypeKey
(ImmutableArray.Create(new AnonymousTypeKeyField("A", isKey: false, ignoreCase: false)))].Name);
487
Assert.Equal("<>f__AnonymousType1", anonymousTypeMap0[new
AnonymousTypeKey
(ImmutableArray.Create(new AnonymousTypeKeyField("B", isKey: false, ignoreCase: false)))].Name);
556
Assert.Equal("<>f__AnonymousType0", anonymousTypeMap0[new
AnonymousTypeKey
(ImmutableArray.Create(new AnonymousTypeKeyField("A", isKey: false, ignoreCase: false)))].Name);
557
Assert.Equal("<>f__AnonymousType1", anonymousTypeMap0[new
AnonymousTypeKey
(ImmutableArray.Create(new AnonymousTypeKeyField("X", isKey: false, ignoreCase: false)))].Name);
558
Assert.Equal("<>f__AnonymousType2", anonymousTypeMap0[new
AnonymousTypeKey
(ImmutableArray.Create(new AnonymousTypeKeyField("Y", isKey: false, ignoreCase: false)))].Name);
1111
Assert.Equal("<>f__AnonymousType0", anonymousTypeMap0[new
AnonymousTypeKey
(ImmutableArray.Create(new AnonymousTypeKeyField("A", isKey: false, ignoreCase: false)))].Name);
1112
Assert.Equal("<>f__AnonymousType1", anonymousTypeMap0[new
AnonymousTypeKey
(ImmutableArray.Create(new AnonymousTypeKeyField("B", isKey: false, ignoreCase: false)))].Name);
18 references to AnonymousTypeKey
Microsoft.CodeAnalysis (9)
Emit\AnonymousTypeKey.cs (3)
63
internal readonly struct AnonymousTypeKey : IEquatable<
AnonymousTypeKey
>
74
public bool Equals(
AnonymousTypeKey
other)
81
return this.Equals((
AnonymousTypeKey
)obj);
Emit\EditAndContinue\SymbolMatcher.cs (3)
108
private ImmutableSegmentedDictionary<
AnonymousTypeKey
, AnonymousTypeValue> MapAnonymousTypes(IReadOnlyDictionary<
AnonymousTypeKey
, AnonymousTypeValue> anonymousTypeMap)
110
var builder = ImmutableSegmentedDictionary.CreateBuilder<
AnonymousTypeKey
, AnonymousTypeValue>();
Emit\EditAndContinue\SynthesizedTypeMaps.cs (3)
11
ImmutableSegmentedDictionary<
AnonymousTypeKey
, AnonymousTypeValue>? anonymousTypeMap,
23
public ImmutableSegmentedDictionary<
AnonymousTypeKey
, AnonymousTypeValue> AnonymousTypes { get; }
24
= anonymousTypeMap ?? ImmutableSegmentedDictionary<
AnonymousTypeKey
, AnonymousTypeValue>.Empty;
Microsoft.CodeAnalysis.CSharp (9)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (3)
118
var anonymousTypes = ImmutableSegmentedDictionary.CreateBuilder<
AnonymousTypeKey
, AnonymousTypeValue>();
154
var
key = new AnonymousTypeKey(builder.ToImmutable());
261
internal override ImmutableArray<
AnonymousTypeKey
> GetPreviousAnonymousTypes()
Emitter\Model\PEModuleBuilder.cs (2)
508
internal virtual ImmutableArray<
AnonymousTypeKey
> GetPreviousAnonymousTypes()
510
return ImmutableArray<
AnonymousTypeKey
>.Empty;
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
461
private AnonymousTypeTemplateSymbol CreatePlaceholderTemplate(Microsoft.CodeAnalysis.Emit.
AnonymousTypeKey
key)
488
foreach (
var
key in moduleBeingBuilt.GetPreviousAnonymousTypes())
685
internal ImmutableSegmentedDictionary<
AnonymousTypeKey
, AnonymousTypeValue> GetAnonymousTypeMap()
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
93
internal
AnonymousTypeKey
GetAnonymousTypeKey()