28 references to LambdaConversionResult
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Statements.cs (12)
2020var reason = Conversions.IsAnonymousFunctionCompatibleWithType(anonymousFunction, targetType, this.Compilation); 2028if (reason == LambdaConversionResult.Success) 2035if (reason == LambdaConversionResult.BadTargetType) 2060if (reason == LambdaConversionResult.ExpressionTreeMustHaveDelegateTypeArgument) 2067if (reason == LambdaConversionResult.ExpressionTreeFromAnonymousMethod) 2074if (reason == LambdaConversionResult.MismatchedReturnType) 2087if (reason == LambdaConversionResult.MissingSignatureWithOutParameter) 2111if (reason == LambdaConversionResult.BadParameterCount) 2139if (reason == LambdaConversionResult.RefInImplicitlyTypedLambda) 2155if (reason == LambdaConversionResult.StaticTypeInImplicitlyTypedLambda) 2170if (reason == LambdaConversionResult.MismatchedParameterType) 2213if (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;