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)
30private readonly Dictionary<ExprCall, Expression> _DictionaryOfParameters; 40_DictionaryOfParameters = new Dictionary<ExprCall, Expression>(); 58Debug.Assert(binOp.OptionalRightChild is ExprCall); 59Debug.Assert(((ExprCall)binOp.OptionalRightChild).PredefinedMethod == PREDEFMETH.PM_EXPRESSION_LAMBDA); 64ExprCall call = (ExprCall)binOp.OptionalRightChild; 77ExprCall call = (ExprCall)pExpr.OptionalLeftChild; 90protected override Expr VisitCALL(ExprCall pExpr) 223private Expr GenerateLambda(ExprCall pExpr) 245private Expression GenerateCall(ExprCall pExpr) 289private Expression GenerateArrayIndex(ExprCall pExpr) 316private Expression GenerateConvert(ExprCall pExpr) 386private Expression GenerateProperty(ExprCall pExpr) 424private Expression GenerateField(ExprCall pExpr) 452private Expression GenerateInvoke(ExprCall pExpr) 464private Expression GenerateNew(ExprCall pExpr) 476private static Expression GenerateConstantType(ExprCall pExpr) 487private Expression GenerateAssignment(ExprCall pExpr) 499private Expression GenerateBinaryOperator(ExprCall pExpr) 562private Expression GenerateUserDefinedBinaryOperator(ExprCall pExpr) 639private Expression GenerateUnaryOperator(ExprCall pExpr) 664private Expression GenerateUserDefinedUnaryOperator(ExprCall pExpr) 700return _DictionaryOfParameters[(ExprCall)wrap.OptionalExpression]; 710ExprCall call = (ExprCall)pExpr;
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (4)
840ExprCall result = _binder.BindMethodGroupToArguments(// Tree 841BindingFlag.BIND_RVALUEREQUIRED | BindingFlag.BIND_STMTEXPRONLY, memGroup, CreateArgumentListEXPR(arguments, locals, 1, arguments.Length)) as ExprCall; 850private static void CheckForConditionalMethodError(ExprCall call) 870if (result is ExprCall call)
Microsoft\CSharp\RuntimeBinder\Semantics\Conversion.cs (4)
1024ExprCall call = ExprFactory.CreateCall(0, typeDst, exprSrc, pMemGroup, mwiBest); 1062ExprCall pConversionCall = ExprFactory.CreateCall(0, typeDst, pConversionArgument, pMemGroup, mwiBest); 1095if (pExpr is ExprCall call) 1134ExprCall pCall = ExprFactory.CreateCall(0, pTypeTo, pTransformedArgument, pMemGroup, mwiBest);
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (10)
295|| op1 is ExprCall 399private ExprCall BindToMethod(MethWithInst mwi, Expr pArguments, ExprMemberGroup pMemGroup, MemLookFlags flags) 420ExprCall pResult = ExprFactory.CreateCall(0, pReturnType, pArguments, pMemGroup, mwi); 649ExprCall call; 665private ExprCall BindLiftedUDUnop(Expr arg, CType typeArg, MethPropWithInst mpwi) 683ExprCall nonLiftedResult = BindUDUnopCall(nonLiftedArg, typeRaw, mpwi); 686ExprCall call = ExprFactory.CreateCall(0, typeRet, arg, pMemGroup, null); 695private ExprCall BindUDUnopCall(Expr arg, CType typeArg, MethPropWithInst mpwi) 700ExprCall call = ExprFactory.CreateCall(0, typeRet, mustConvert(arg, typeArg), pMemGroup, null); 1092TypeArray 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) => 88public static ExprUserLogicalOp CreateUserLogOp(CType type, Expr trueFalseCall, ExprCall operatorCall) => 190public static ExprUnaryOp CreateUserDefinedUnaryOperator(ExpressionKind exprKind, CType type, Expr operand, ExprCall call, MethPropWithInst userMethod) =>
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (2)
338ExprCall call = BindNubNew(exprTmp); 371ExprCall 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)) 45if (IsNullableConstructor(exprSrc, out ExprCall call)) 65private static ExprCall BindNubNew(Expr exprSrc)
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (8)
159ExprCall call = BindUDBinop( 2387private Expr BindUserBoolOp(ExpressionKind kind, ExprCall pCall) 2587private ExprCall BindUDBinop(ExpressionKind ek, Expr arg1, Expr arg2, bool fDontLift, out MethPropWithInst ppmpwi) 2647private ExprCall BindUDBinopCall(Expr arg1, Expr arg2, TypeArray Params, CType typeRet, MethPropWithInst mpwi) 2659ExprCall call = ExprFactory.CreateCall(0, typeRet, args, pMemGroup, null); 2667private ExprCall BindLiftedUDBinop(ExpressionKind ek, Expr arg1, Expr arg2, TypeArray Params, MethPropWithInst mpwi) 2725ExprCall nonLiftedResult = BindUDBinopCall(nonLiftedArg1, nonLiftedArg2, paramsRaw, typeRetRaw, mpwi); 2729ExprCall 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)
106ExprCall call = ExprFactory.CreateCall(0, typeRet, args, pMemGroup, mwi); 247protected override Expr VisitCALL(ExprCall expr) 361private Expr GenerateDelegateInvoke(ExprCall expr) 547if (udcall is ExprCall ascall) 585ExprCall call = (ExprCall)expr.OptionalUserDefinedCall; 653ExprCall udcall = (ExprCall)expr.OptionalUserDefinedCall; 754ExprCall call = pCastCall as ExprCall; 758if (pUDConversion is ExprCall convCall) 832private Expr GenerateConstructor(ExprCall expr) 902private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1) 912ExprCall call = ExprFactory.CreateCall(0, mwi.Meth().RetType, arg1, pMemGroup, mwi); 918private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1, Expr arg2) 927ExprCall call = ExprFactory.CreateCall(0, mwi.Meth().RetType, args, pMemGroup, mwi); 933private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1, Expr arg2, Expr arg3) 942ExprCall call = ExprFactory.CreateCall(0, mwi.Meth().RetType, args, pMemGroup, mwi); 948private static ExprCall GenerateCall(PREDEFMETH pdm, Expr arg1, Expr arg2, Expr arg3, Expr arg4) 957ExprCall 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)