28 references to LambdaConversionResult
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Statements.cs (12)
2032var reason = Conversions.IsAnonymousFunctionCompatibleWithType(anonymousFunction, targetType, this.Compilation); 2040if (reason == LambdaConversionResult.Success) 2047if (reason == LambdaConversionResult.BadTargetType) 2072if (reason == LambdaConversionResult.ExpressionTreeMustHaveDelegateTypeArgument) 2079if (reason == LambdaConversionResult.ExpressionTreeFromAnonymousMethod) 2086if (reason == LambdaConversionResult.MismatchedReturnType) 2099if (reason == LambdaConversionResult.MissingSignatureWithOutParameter) 2123if (reason == LambdaConversionResult.BadParameterCount) 2151if (reason == LambdaConversionResult.MismatchedParameterRefKind) 2182if (reason == LambdaConversionResult.StaticTypeInImplicitlyTypedLambda) 2197if (reason == LambdaConversionResult.MismatchedParameterType) 2229if (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; 1517return LambdaConversionResult.MismatchedParameterRefKind; 1527return LambdaConversionResult.MismatchedParameterType; 1560return LambdaConversionResult.StaticTypeInImplicitlyTypedLambda; 1571return LambdaConversionResult.MissingSignatureWithOutParameter; 1580return LambdaConversionResult.BindingFailed; 1583return LambdaConversionResult.Success; 1586private static LambdaConversionResult IsAnonymousFunctionCompatibleWithExpressionTree(UnboundLambda anonymousFunction, NamedTypeSymbol type, CSharpCompilation compilation) 1606return LambdaConversionResult.ExpressionTreeMustHaveDelegateTypeArgument; 1611return LambdaConversionResult.ExpressionTreeFromAnonymousMethod; 1624public static LambdaConversionResult IsAnonymousFunctionCompatibleWithType(UnboundLambda anonymousFunction, TypeSymbol type, CSharpCompilation compilation) 1638return LambdaConversionResult.BadTargetType; 1651return IsAnonymousFunctionCompatibleWithType((UnboundLambda)source, destination, compilation) == LambdaConversionResult.Success;