4 instantiations of 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)
649elementSelector: template => new AnonymousTypeValue(template.NameAndIndex.Name, template.NameAndIndex.Index, template.GetCciAdapter())); 664elementSelector: template => new AnonymousTypeValue(template.NameAndIndex.Name, template.NameAndIndex.Index, template.GetCciAdapter()))
36 references to AnonymousTypeValue
Microsoft.CodeAnalysis (16)
Emit\EditAndContinue\EmitBaseline.cs (1)
583foreach (var typeValue in typeValues)
Emit\EditAndContinue\SymbolMatcher.cs (9)
20protected abstract bool TryGetMatchingDelegateWithIndexedName(INamedTypeSymbolInternal delegateTemplate, ImmutableArray<AnonymousTypeValue> values, out AnonymousTypeValue match); 141private ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> MapAnonymousDelegatesWithIndexedNames( 142ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> previousDelegates, 143ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> newDelegates) 150var builder = ImmutableSegmentedDictionary.CreateBuilder<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>(); 161ArrayBuilder<AnonymousTypeValue>? mergedValuesBuilder = null; 163foreach (var previousValue in previousValues) 173mergedValuesBuilder ??= ArrayBuilder<AnonymousTypeValue>.GetInstance();
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; 38public ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> AnonymousDelegatesWithIndexedNames { get; } 39= anonymousDelegatesWithIndexedNames ?? ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>>.Empty;
Microsoft.CodeAnalysis.CSharp (19)
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
51internal bool TryGetAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (9)
98internal bool TryGetAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue) 101protected override bool TryGetMatchingDelegateWithIndexedName(INamedTypeSymbolInternal delegateTemplate, ImmutableArray<AnonymousTypeValue> values, out AnonymousTypeValue match) 349TryGetAnonymousTypeValue(typeTemplate, out var value); 357TryGetAnonymousTypeValue(delegateTemplate, out var value); 487internal bool TryGetAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue otherType) 504internal bool TryGetMatchingDelegateWithIndexedName(AnonymousTypeManager.AnonymousDelegateTemplateSymbol delegateTemplate, ImmutableArray<AnonymousTypeValue> values, out AnonymousTypeValue match) 506foreach (var otherTypeCandidate in values)
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()); 254internal override bool TryGetPreviousAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue)
Emitter\Model\PEModuleBuilder.cs (1)
521internal virtual bool TryGetPreviousAnonymousTypeValue(AnonymousTypeManager.AnonymousTypeOrDelegateTemplateSymbol template, out AnonymousTypeValue typeValue)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
485if (moduleBeingBuilt.TryGetPreviousAnonymousTypeValue(template, out var typeValue)) 641internal ImmutableSegmentedDictionary<AnonymousTypeKey, AnonymousTypeValue> GetAnonymousTypeMap() 655internal ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> GetAnonymousDelegatesWithIndexedNames()
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Emit\EditAndContinue\SymbolMatcherTests.cs (1)
50private static IEnumerable<string> Inspect(ImmutableSegmentedDictionary<AnonymousDelegateWithIndexedNamePartialKey, ImmutableArray<AnonymousTypeValue>> anonymousDelegatesWithIndexedNames)