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