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