4 instantiations of AnonymousDelegateTemplateSymbol
Microsoft.CodeAnalysis.CSharp (4)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (4)
173synthesizedDelegate = new AnonymousDelegateTemplateSymbol( 247static (key, @this) => new AnonymousDelegateTemplateSymbol(@this, key.TypeDescriptor), 279template = this.AnonymousDelegates.GetOrAdd(key, new AnonymousDelegateTemplateSymbol(this, typeDescr, typeParameters)); 464return new AnonymousDelegateTemplateSymbol(
36 references to AnonymousDelegateTemplateSymbol
Microsoft.CodeAnalysis.CSharp (36)
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (3)
550else if (sourceType is AnonymousTypeManager.AnonymousDelegateTemplateSymbol delegateTemplate) 686internal bool TryFindAnonymousDelegate(AnonymousTypeManager.AnonymousDelegateTemplateSymbol delegateSymbol, out SynthesizedDelegateValue otherDelegateSymbol) 694internal bool TryFindAnonymousDelegateWithIndexedName(AnonymousTypeManager.AnonymousDelegateTemplateSymbol type, out AnonymousTypeValue otherType)
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
802var synthesizedType = _factory.Compilation.AnonymousTypeManager.SynthesizeDelegate(parameterCount, byRefs, returnsVoid, generation);
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (28)
37private ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol> _lazyAnonymousDelegates; 136private ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol> AnonymousDelegates 149? new ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>() 150: new ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>(previousCache), 159internal AnonymousDelegateTemplateSymbol SynthesizeDelegate(int parameterCount, RefKindVector refKinds, bool returnsVoid, int generation) 166AnonymousDelegateTemplateSymbol? synthesizedDelegate; 245var namedTemplate = this.AnonymousDelegates.GetOrAdd( 263var template = SynthesizeDelegate(parameterCount: fields.Length - 1, refKinds, returnsVoid, generation); 276AnonymousDelegateTemplateSymbol? template; 462private AnonymousDelegateTemplateSymbol CreatePlaceholderSynthesizedDelegateValue(string name, RefKindVector refKinds, bool returnsVoid, int parameterCount) 491var anonymousDelegatesWithIndexedNames = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 540foreach (var template in anonymousDelegatesWithIndexedNames) 576var anonymousDelegates = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 581foreach (var anonymousDelegate in anonymousDelegatesWithIndexedNames) 585foreach (var anonymousDelegate in anonymousDelegates) 617private void GetCreatedAnonymousDelegatesWithIndexedNames(ArrayBuilder<AnonymousDelegateTemplateSymbol> builder) 623foreach (var template in anonymousDelegates.Values) 639private void GetCreatedAnonymousDelegates(ArrayBuilder<AnonymousDelegateTemplateSymbol> builder) 645foreach (var template in delegates.Values) 656private class SynthesizedDelegateSymbolComparer : IComparer<AnonymousDelegateTemplateSymbol> 660public int Compare(AnonymousDelegateTemplateSymbol x, AnonymousDelegateTemplateSymbol y) 669var anonymousDelegates = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 671foreach (var delegateSymbol in anonymousDelegates) 701var templates = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 705foreach (var template in templates) 730var anonymousDelegatesWithIndexedNames = ArrayBuilder<AnonymousDelegateTemplateSymbol>.GetInstance(); 735var 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) 114AnonymousDelegateTemplateSymbol containingType, 185AnonymousDelegateTemplateSymbol containingType,