28 references to LambdaConversionResult
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Statements.cs (12)
2017var reason = Conversions.IsAnonymousFunctionCompatibleWithType(anonymousFunction, targetType, this.Compilation); 2025if (reason == LambdaConversionResult.Success) 2032if (reason == LambdaConversionResult.BadTargetType) 2057if (reason == LambdaConversionResult.ExpressionTreeMustHaveDelegateTypeArgument) 2064if (reason == LambdaConversionResult.ExpressionTreeFromAnonymousMethod) 2071if (reason == LambdaConversionResult.MismatchedReturnType) 2084if (reason == LambdaConversionResult.MissingSignatureWithOutParameter) 2108if (reason == LambdaConversionResult.BadParameterCount) 2136if (reason == LambdaConversionResult.RefInImplicitlyTypedLambda) 2152if (reason == LambdaConversionResult.StaticTypeInImplicitlyTypedLambda) 2167if (reason == LambdaConversionResult.MismatchedParameterType) 2210if (reason == LambdaConversionResult.BindingFailed)
Binder\Semantics\Conversions\ConversionsBase.cs (16)
1467private static LambdaConversionResult IsAnonymousFunctionCompatibleWithDelegate(UnboundLambda anonymousFunction, TypeSymbol type, CSharpCompilation compilation, bool isTargetExpressionTree) 1482return LambdaConversionResult.BadTargetType; 1490return LambdaConversionResult.MismatchedReturnType; 1504return LambdaConversionResult.BadParameterCount; 1521return LambdaConversionResult.MismatchedParameterType; 1531return LambdaConversionResult.RefInImplicitlyTypedLambda; 1562return LambdaConversionResult.StaticTypeInImplicitlyTypedLambda; 1573return LambdaConversionResult.MissingSignatureWithOutParameter; 1582return LambdaConversionResult.BindingFailed; 1585return LambdaConversionResult.Success; 1588private static LambdaConversionResult IsAnonymousFunctionCompatibleWithExpressionTree(UnboundLambda anonymousFunction, NamedTypeSymbol type, CSharpCompilation compilation) 1608return LambdaConversionResult.ExpressionTreeMustHaveDelegateTypeArgument; 1613return LambdaConversionResult.ExpressionTreeFromAnonymousMethod; 1626public static LambdaConversionResult IsAnonymousFunctionCompatibleWithType(UnboundLambda anonymousFunction, TypeSymbol type, CSharpCompilation compilation) 1640return LambdaConversionResult.BadTargetType; 1653return IsAnonymousFunctionCompatibleWithType((UnboundLambda)source, destination, compilation) == LambdaConversionResult.Success;