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