6 instantiations of AnonymousTypeValue
Microsoft.CodeAnalysis (2)
Emit\EditAndContinue\SymbolMatcher.cs (2)
116builder.Add(key, new AnonymousTypeValue(value.Name, value.UniqueIndex, type)); 143builder.Add(key, values.SelectAsArray(value => new AnonymousTypeValue(
Microsoft.CodeAnalysis.CSharp (4)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (2)
155var value = new AnonymousTypeValue(name, index, type.GetCciAdapter()); 172var value = new AnonymousTypeValue(name, index, type.GetCciAdapter());
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
693elementSelector: template => new AnonymousTypeValue(template.NameAndIndex.Name, template.NameAndIndex.Index, template.GetCciAdapter())); 708elementSelector: template => new AnonymousTypeValue(template.NameAndIndex.Name, template.NameAndIndex.Index, template.GetCciAdapter()))
29 references to AnonymousTypeValue
Microsoft.CodeAnalysis (13)
Emit\EditAndContinue\EmitBaseline.cs (1)
583foreach (var typeValue in typeValues)
Emit\EditAndContinue\SymbolMatcher.cs (6)
108private ImmutableSegmentedDictionary<AnonymousTypeKey, AnonymousTypeValue> MapAnonymousTypes(IReadOnlyDictionary<AnonymousTypeKey, AnonymousTypeValue> anonymousTypeMap) 110var builder = ImmutableSegmentedDictionary.CreateBuilder<AnonymousTypeKey, AnonymousTypeValue>(); 136private ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> MapAnonymousDelegatesWithIndexedNames( 137IReadOnlyDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> anonymousDelegates) 139var builder = ImmutableSegmentedDictionary.CreateBuilder<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>();
Emit\EditAndContinue\SynthesizedTypeMaps.cs (6)
11ImmutableSegmentedDictionary<AnonymousTypeKey, AnonymousTypeValue>? anonymousTypeMap, 13ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>? anonymousDelegatesWithIndexedNames) 23public ImmutableSegmentedDictionary<AnonymousTypeKey, AnonymousTypeValue> AnonymousTypes { get; } 24= anonymousTypeMap ?? ImmutableSegmentedDictionary<AnonymousTypeKey, AnonymousTypeValue>.Empty; 37public ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> AnonymousDelegatesWithIndexedNames { get; } 38= anonymousDelegatesWithIndexedNames ?? ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>.Empty;
Microsoft.CodeAnalysis.CSharp (15)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
51internal bool TryGetAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (5)
93internal bool TryGetAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue) 341TryGetAnonymousTypeValue(typeTemplate, out var value); 349TryGetAnonymousTypeValue(delegateTemplate, out var value); 481internal bool TryGetAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue otherType) 498foreach (var otherTypeCandidate in otherTypeCandidates)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (5)
118var anonymousTypes = ImmutableSegmentedDictionary.CreateBuilder<AnonymousTypeKey, AnonymousTypeValue>(); 119var anonymousDelegatesWithIndexedNames = PooledDictionary<AnonymousDelegateWithIndexedNamePartialKey, ArrayBuilder<AnonymousTypeValue>>.GetInstance(); 155var value = new AnonymousTypeValue(name, index, type.GetCciAdapter()); 172var value = new AnonymousTypeValue(name, index, type.GetCciAdapter()); 277internal override bool TryGetPreviousAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue)
Emitter\Model\PEModuleBuilder.cs (1)
528internal virtual bool TryGetPreviousAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
538if (moduleBeingBuilt.TryGetPreviousAnonymousTypeValue(template, out var typeValue)) 685internal ImmutableSegmentedDictionary<AnonymousTypeKey, AnonymousTypeValue> GetAnonymousTypeMap() 699internal ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> GetAnonymousDelegatesWithIndexedNames()
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
49private static IEnumerable<string> Inspect(ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> anonymousDelegatesWithIndexedNames)