1 instantiation of ExprCall
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
14new ExprCall(type, flags, arguments, memberGroup, method);
91 references to ExprCall
Microsoft.CSharp (91)
Microsoft\CSharp\RuntimeBinder\ExpressionTreeCallRewriter.cs (26)
29private readonly Dictionary<ExprCall, Expression> _DictionaryOfParameters; 39_DictionaryOfParameters = new Dictionary<ExprCall, Expression>(); 57Debug.Assert(binOp.OptionalRightChild is ExprCall); 58Debug.Assert(((ExprCall)binOp.OptionalRightChild).PredefinedMethod == PREDEFMETH.PM_EXPRESSION_LAMBDA); 63ExprCall call = (ExprCall)binOp.OptionalRightChild; 76ExprCall call = (ExprCall)pExpr.OptionalLeftChild; 89protected override Expr VisitCALL(ExprCall pExpr) 222private Expr GenerateLambda(ExprCall pExpr) 244private Expression GenerateCall(ExprCall pExpr) 288private Expression GenerateArrayIndex(ExprCall pExpr) 315private Expression GenerateConvert(ExprCall pExpr) 385private Expression GenerateProperty(ExprCall pExpr) 423private Expression GenerateField(ExprCall pExpr) 451private Expression GenerateInvoke(ExprCall pExpr) 463private Expression GenerateNew(ExprCall pExpr) 475private static Expression GenerateConstantType(ExprCall pExpr) 486private Expression GenerateAssignment(ExprCall pExpr) 498private Expression GenerateBinaryOperator(ExprCall pExpr) 561private Expression GenerateUserDefinedBinaryOperator(ExprCall pExpr) 638private Expression GenerateUnaryOperator(ExprCall pExpr) 663private Expression GenerateUserDefinedUnaryOperator(ExprCall pExpr) 699return _DictionaryOfParameters[(ExprCall)wrap.OptionalExpression]; 709ExprCall call = (ExprCall)pExpr;
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (4)
818ExprCall result = _binder.BindMethodGroupToArguments(// Tree 819BindingFlag.BIND_RVALUEREQUIRED | BindingFlag.BIND_STMTEXPRONLY, memGroup, CreateArgumentListEXPR(arguments, locals, 1, arguments.Length)) as ExprCall; 828private static void CheckForConditionalMethodError(ExprCall call) 847if (result is ExprCall call)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
997ExprCall call = ExprFactory.CreateCall(0, typeDst, exprSrc, pMemGroup, mwiBest); 1035ExprCall pConversionCall = ExprFactory.CreateCall(0, typeDst, pConversionArgument, pMemGroup, mwiBest); 1067if (pExpr is ExprCall call) 1104ExprCall pCall = ExprFactory.CreateCall(0, pTypeTo, pTransformedArgument, pMemGroup, mwiBest);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (10)
292|| op1 is ExprCall 390private ExprCall BindToMethod(MethWithInst mwi, Expr pArguments, ExprMemberGroup pMemGroup, MemLookFlags flags) 411ExprCall pResult = ExprFactory.CreateCall(0, pReturnType, pArguments, pMemGroup, mwi); 637ExprCall call; 652private ExprCall BindLiftedUDUnop(Expr arg, CType typeArg, MethPropWithInst mpwi) 670ExprCall nonLiftedResult = BindUDUnopCall(nonLiftedArg, typeRaw, mpwi); 673ExprCall call = ExprFactory.CreateCall(0, typeRet, arg, pMemGroup, null); 681private ExprCall BindUDUnopCall(Expr arg, CType typeArg, MethPropWithInst mpwi) 686ExprCall call = ExprFactory.CreateCall(0, typeRet, mustConvert(arg, typeArg), pMemGroup, null); 1068TypeArray pTypeArgs = (call as ExprCall)?.MethWithInst.TypeArgs;
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (3)
13public static ExprCall CreateCall(EXPRFLAG flags, CType type, Expr arguments, ExprMemberGroup memberGroup, MethWithInst method) => 76public static ExprUserLogicalOp CreateUserLogOp(CType type, Expr trueFalseCall, ExprCall operatorCall) => 171public static ExprUnaryOp CreateUserDefinedUnaryOperator(ExpressionKind exprKind, CType type, Expr operand, ExprCall call, MethPropWithInst userMethod) =>
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
336ExprCall call = BindNubNew(exprTmp); 369ExprCall exprDst = ExprFactory.CreateCall(0, nubDst, _exprSrc, pMemGroup, null);
Microsoft\CSharp\RuntimeBinder\Semantics\Nullable.cs (5)
11private static bool IsNullableConstructor(Expr expr, out ExprCall call) 15if (expr is ExprCall pCall && pCall.MemberGroup.OptionalObject == null 28while (IsNullableConstructor(pExpr, out ExprCall call)) 44if (IsNullableConstructor(exprSrc, out ExprCall call)) 63private static ExprCall BindNubNew(Expr exprSrc)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (8)
150ExprCall call = BindUDBinop( 2330private Expr BindUserBoolOp(ExpressionKind kind, ExprCall pCall) 2524private ExprCall BindUDBinop(ExpressionKind ek, Expr arg1, Expr arg2, bool fDontLift, out MethPropWithInst ppmpwi) 2583private ExprCall BindUDBinopCall(Expr arg1, Expr arg2, TypeArray Params, CType typeRet, MethPropWithInst mpwi) 2595ExprCall call = ExprFactory.CreateCall(0, typeRet, args, pMemGroup, null); 2602private ExprCall BindLiftedUDBinop(ExpressionKind ek, Expr arg1, Expr arg2, TypeArray Params, MethPropWithInst mpwi) 2660ExprCall nonLiftedResult = BindUDBinopCall(nonLiftedArg1, nonLiftedArg2, paramsRaw, typeRetRaw, mpwi); 2664ExprCall call = ExprFactory.CreateCall(0, typeRet, args, pMemGroup, null);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\UserDefinedLogicalOperator.cs (2)
10public ExprUserLogicalOp(CType type, Expr trueFalseCall, ExprCall operatorCall) 26public ExprCall OperatorCall { get; set; }
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (20)
105ExprCall call = ExprFactory.CreateCall(0, typeRet, args, pMemGroup, mwi); 246protected override Expr VisitCALL(ExprCall expr) 360private Expr GenerateDelegateInvoke(ExprCall expr) 546if (udcall is ExprCall ascall) 584ExprCall call = (ExprCall)expr.OptionalUserDefinedCall; 652ExprCall udcall = (ExprCall)expr.OptionalUserDefinedCall; 753ExprCall call = pCastCall as ExprCall; 757if (pUDConversion is ExprCall convCall) 831private Expr GenerateConstructor(ExprCall expr) 901private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1) 911ExprCall call = ExprFactory.CreateCall(0, mwi.Meth().RetType, arg1, pMemGroup, mwi); 917private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1, Expr arg2) 926ExprCall call = ExprFactory.CreateCall(0, mwi.Meth().RetType, args, pMemGroup, mwi); 932private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1, Expr arg2, Expr arg3) 941ExprCall call = ExprFactory.CreateCall(0, mwi.Meth().RetType, args, pMemGroup, mwi); 947private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1, Expr arg2, Expr arg3, Expr arg4) 956ExprCall call = ExprFactory.CreateCall(0, mwi.Meth().RetType, args, pMemGroup, mwi);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExprVisitorBase.cs (7)
23ExpressionKind.Call => VisitCALL(pExpr as ExprCall), 165(pExpr as ExprUserLogicalOp).OperatorCall = exprRet as ExprCall; 197exprRet = Visit((pExpr as ExprCall).OptionalArguments); 198(pExpr as ExprCall).OptionalArguments = exprRet; 199exprRet = Visit((pExpr as ExprCall).MemberGroup); 201(pExpr as ExprCall).MemberGroup = exprRet as ExprMemberGroup; 370protected virtual Expr VisitCALL(ExprCall pExpr)