3 instantiations of SynthesizedDelegateKey
Microsoft.CodeAnalysis.CSharp (3)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (3)
158var key = new SynthesizedDelegateKey(parameterCount, refKinds, returnsVoid, generation); 243var key = new SynthesizedDelegateKey(genericTypeDescr); 341return new SynthesizedDelegateKey(typeDescr);
12 references to SynthesizedDelegateKey
Microsoft.CodeAnalysis.CSharp (12)
Symbols\AnonymousTypes\AnonymousTypeManager.Templates.cs (12)
36private ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>? _lazyAnonymousDelegates; 38private readonly struct SynthesizedDelegateKey : IEquatable<SynthesizedDelegateKey> 60return obj is SynthesizedDelegateKey && Equals((SynthesizedDelegateKey)obj); 63public bool Equals(SynthesizedDelegateKey other) 133private ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol> AnonymousDelegates 144? new ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>() 145: new ConcurrentDictionary<SynthesizedDelegateKey, AnonymousDelegateTemplateSymbol>(previousCache), 158var key = new SynthesizedDelegateKey(parameterCount, refKinds, returnsVoid, generation); 243var key = new SynthesizedDelegateKey(genericTypeDescr); 272var key = getTemplateKey(typeDescr, typeParameters); 333static SynthesizedDelegateKey getTemplateKey(AnonymousTypeDescriptor typeDescr, ImmutableArray<TypeParameterSymbol> typeParameters)