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