2 instantiations of ReturnInferenceCacheKey
Microsoft.CodeAnalysis.CSharp (2)
14 references to ReturnInferenceCacheKey
Microsoft.CodeAnalysis.CSharp (14)
BoundTree\UnboundLambda.cs (14)
207/// Behavior of this function should be kept aligned with <see cref="UnboundLambdaState.ReturnInferenceCacheKey"/>.
539Constraint = "Avoid " + nameof(ConcurrentDictionary<ReturnInferenceCacheKey, BoundLambda>) + " which has a large default size, but this cache is normally small.")]
540private ImmutableDictionary<ReturnInferenceCacheKey, BoundLambda>? _returnInferenceCache;
552_returnInferenceCache = ImmutableDictionary<ReturnInferenceCacheKey, BoundLambda>.Empty;
817var cacheKey = ReturnInferenceCacheKey.Create(delegateType, IsAsync);
931ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _);
1038var cacheKey = ReturnInferenceCacheKey.Create(delegateType, IsAsync);
1059public static readonly ReturnInferenceCacheKey Empty = new ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty, null);
1077var other = obj as ReturnInferenceCacheKey;
1108public static ReturnInferenceCacheKey Create(NamedTypeSymbol? delegateType, bool isAsync)
1221ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _);