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