2 instantiations of ReturnInferenceCacheKey
Microsoft.CodeAnalysis.CSharp (2)
BoundTree\UnboundLambda.cs (2)
1050public static readonly ReturnInferenceCacheKey Empty = new ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty, null); 1106return new ReturnInferenceCacheKey(parameterTypes, parameterRefKinds, taskLikeReturnTypeOpt);
14 references to ReturnInferenceCacheKey
Microsoft.CodeAnalysis.CSharp (14)
BoundTree\UnboundLambda.cs (14)
200/// Behavior of this function should be kept aligned with <see cref="UnboundLambdaState.ReturnInferenceCacheKey"/>. 530Constraint = "Avoid " + nameof(ConcurrentDictionary<ReturnInferenceCacheKey, BoundLambda>) + " which has a large default size, but this cache is normally small.")] 531private ImmutableDictionary<ReturnInferenceCacheKey, BoundLambda>? _returnInferenceCache; 543_returnInferenceCache = ImmutableDictionary<ReturnInferenceCacheKey, BoundLambda>.Empty; 808var cacheKey = ReturnInferenceCacheKey.Create(delegateType, IsAsync); 922ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _); 1029var cacheKey = ReturnInferenceCacheKey.Create(delegateType, IsAsync); 1050public static readonly ReturnInferenceCacheKey Empty = new ReturnInferenceCacheKey(ImmutableArray<TypeWithAnnotations>.Empty, ImmutableArray<RefKind>.Empty, null); 1068var other = obj as ReturnInferenceCacheKey; 1099public static ReturnInferenceCacheKey Create(NamedTypeSymbol? delegateType, bool isAsync) 1212ReturnInferenceCacheKey.GetFields(delegateType, IsAsync, out var parameterTypes, out var parameterRefKinds, out _);