2 instantiations of AnonymousDelegateTemplateSymbol
Microsoft.CodeAnalysis.CSharp (2)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (2)
252static (key, @this) => new AnonymousDelegateTemplateSymbol(@this, key.TypeDescriptor), 284template = this.AnonymousDelegates.GetOrAdd(key, new AnonymousDelegateTemplateSymbol(this, typeDescr, typeParameters));
33 references to AnonymousDelegateTemplateSymbol
Microsoft.CodeAnalysis.CSharp (33)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (4)
337else if (sourceType is AnonymousTypeManager.AnonymousDelegateTemplateSymbol delegateTemplate) 466internal bool TryGetAnonymousDelegateValue(AnonymousTypeManager.AnonymousDelegateTemplateSymbol delegateSymbol, out SynthesizedDelegateValue otherDelegateSymbol) 483var delegateTemplate = (AnonymousTypeManager.AnonymousDelegateTemplateSymbol)template;
Emitter\Model\PEModuleBuilder.cs (1)
536internal virtual bool TryGetAnonymousDelegateValue(AnonymousTypeManager.AnonymousDelegateTemplateSymbol template, out SynthesizedDelegateValue delegateValue)
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
787var synthesizedType = _factory.Compilation.AnonymousTypeManager.SynthesizeDelegate(parameterCount, byRefs, returnsVoid, generation);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (23)
38private ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol> _lazyAnonymousDelegates; 137private ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol> AnonymousDelegates 150? new ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>() 151: new ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>(previousCache), 160internal AnonymousDelegateTemplateSymbol SynthesizeDelegate(int parameterCount, RefKindVector refKinds, bool returnsVoid, int generation) 167AnonymousDelegateTemplateSymbol? synthesizedDelegate; 250var namedTemplate = this.AnonymousDelegates.GetOrAdd( 268var template = SynthesizeDelegate(parameterCount: fields.Length - 1, refKinds, returnsVoid, generation); 281AnonymousDelegateTemplateSymbol? template; 468private AnonymousDelegateTemplateSymbol CreatePlaceholderSynthesizedDelegateValue(string name, RefKindVector refKinds, bool returnsVoid, int parameterCount) 497var anonymousDelegatesWithIndexedNames = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 582var anonymousDelegates = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 623private void GetCreatedAnonymousDelegatesWithIndexedNames(ArrayBuilder<AnonymousDelegateTemplateSymbol> builder) 629foreach (var template in anonymousDelegates.Values) 645private void GetCreatedAnonymousDelegates(ArrayBuilder<AnonymousDelegateTemplateSymbol> builder) 651foreach (var template in delegates.Values) 662private class SynthesizedDelegateSymbolComparer : IComparer<AnonymousDelegateTemplateSymbol> 666public int Compare(AnonymousDelegateTemplateSymbol x, AnonymousDelegateTemplateSymbol y) 674var anonymousDelegates = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 703var templates = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 731var anonymousDelegatesWithIndexedNames = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 736var anonymousDelegates = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (4)
51static SynthesizedDelegateInvokeMethod createInvokeMethod(AnonymousDelegateTemplateSymbol containingType, RefKindVector refKinds, TypeSymbol? voidReturnTypeOpt) 73private static ImmutableArray<TypeParameterSymbol> CreateTypeParameters(AnonymousDelegateTemplateSymbol containingType, int parameterCount, bool returnsVoid, bool hasParamsArray) 118AnonymousDelegateTemplateSymbol containingType, 192AnonymousDelegateTemplateSymbol containingType,