2 instantiations of AnonymousTypeTemplateSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
434
template = this.AnonymousTypeTemplates.GetOrAdd(typeDescr.Key, new
AnonymousTypeTemplateSymbol
(this, typeDescr));
459
return new
AnonymousTypeTemplateSymbol
(this, typeDescr);
38 references to AnonymousTypeTemplateSymbol
Microsoft.CodeAnalysis.CSharp (38)
Compiler\AnonymousTypeMethodBodySynthesizer.cs (11)
49
AnonymousTypeTemplateSymbol
anonymousType = (
AnonymousTypeTemplateSymbol
)this.ContainingType;
100
AnonymousTypeManager manager = ((
AnonymousTypeTemplateSymbol
)this.ContainingType).Manager;
114
AnonymousTypeTemplateSymbol
anonymousType = (
AnonymousTypeTemplateSymbol
)this.ContainingType;
162
AnonymousTypeManager manager = ((
AnonymousTypeTemplateSymbol
)this.ContainingType).Manager;
183
AnonymousTypeTemplateSymbol
anonymousType = (
AnonymousTypeTemplateSymbol
)this.ContainingType;
225
AnonymousTypeManager manager = ((
AnonymousTypeTemplateSymbol
)this.ContainingType).Manager;
240
AnonymousTypeTemplateSymbol
anonymousType = (
AnonymousTypeTemplateSymbol
)this.ContainingType;
Emitter\EditAndContinue\CSharpDefinitionMap.cs (1)
56
internal bool TryGetAnonymousTypeName(AnonymousTypeManager.
AnonymousTypeTemplateSymbol
template, [NotNullWhen(true)] out string? name, out int index)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
95
internal bool TryGetAnonymousTypeName(AnonymousTypeManager.
AnonymousTypeTemplateSymbol
template, [NotNullWhen(true)] out string? name, out int index)
331
internal bool TryGetAnonymousTypeName(AnonymousTypeManager.
AnonymousTypeTemplateSymbol
type, [NotNullWhen(true)] out string? name, out int index)
544
if (sourceType is AnonymousTypeManager.
AnonymousTypeTemplateSymbol
typeTemplate)
679
internal bool TryFindAnonymousType(AnonymousTypeManager.
AnonymousTypeTemplateSymbol
type, out AnonymousTypeValue otherType)
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
330
internal override bool TryGetAnonymousTypeName(AnonymousTypeManager.
AnonymousTypeTemplateSymbol
template, [NotNullWhen(true)] out string? name, out int index)
Emitter\Model\PEModuleBuilder.cs (1)
516
internal virtual bool TryGetAnonymousTypeName(AnonymousTypeManager.
AnonymousTypeTemplateSymbol
template, out string name, out int index)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (16)
31
private ConcurrentDictionary<string,
AnonymousTypeTemplateSymbol
> _lazyAnonymousTypeTemplates;
113
private ConcurrentDictionary<string,
AnonymousTypeTemplateSymbol
> AnonymousTypeTemplates
127
? new ConcurrentDictionary<string,
AnonymousTypeTemplateSymbol
>()
128
: new ConcurrentDictionary<string,
AnonymousTypeTemplateSymbol
>(previousCache),
430
AnonymousTypeTemplateSymbol
? template;
455
private
AnonymousTypeTemplateSymbol
CreatePlaceholderTemplate(Microsoft.CodeAnalysis.Emit.AnonymousTypeKey key)
490
var anonymousTypes = ArrayBuilder<
AnonymousTypeTemplateSymbol
>.GetInstance();
524
foreach (
var
template in anonymousTypes)
553
foreach (
var
template in anonymousTypes)
599
private void GetCreatedAnonymousTypeTemplates(ArrayBuilder<
AnonymousTypeTemplateSymbol
> builder)
605
foreach (
var
template in anonymousTypes.Values)
684
var templates = ArrayBuilder<
AnonymousTypeTemplateSymbol
>.GetInstance();
687
foreach (
AnonymousTypeTemplateSymbol
template in templates)
725
var anonymousTypes = ArrayBuilder<
AnonymousTypeTemplateSymbol
>.GetInstance();
748
return type is
AnonymousTypeTemplateSymbol
;
758
return ((
AnonymousTypeTemplateSymbol
)type).SpecialMembers;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.FieldSymbol.cs (1)
150
AnonymousTypeManager manager = ((
AnonymousTypeTemplateSymbol
)this.ContainingSymbol).Manager;
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.PropertySymbol.cs (1)
29
internal AnonymousTypePropertySymbol(
AnonymousTypeTemplateSymbol
container, AnonymousTypeField field, TypeWithAnnotations fieldTypeWithAnnotations, int index) :
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.SynthesizedMethodBase.cs (2)
180
AnonymousTypeTemplateSymbol
template = _containingType as
AnonymousTypeTemplateSymbol
;