2 instantiations of ExprUnaryOp
Microsoft.CSharp (2)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (2)
156
new
ExprUnaryOp
(exprKind, type, operand);
172
new
ExprUnaryOp
(exprKind, type, operand, call, userMethod);
40 references to ExprUnaryOp
Microsoft.CSharp (40)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (4)
155
public static
ExprUnaryOp
CreateUnaryOp(ExpressionKind exprKind, CType type, Expr operand) =>
171
public static
ExprUnaryOp
CreateUserDefinedUnaryOperator(ExpressionKind exprKind, CType type, Expr operand, ExprCall call, MethPropWithInst userMethod) =>
174
public static
ExprUnaryOp
CreateNeg(EXPRFLAG flags, Expr operand)
177
ExprUnaryOp
unary = CreateUnaryOp(ExpressionKind.Negate, operand.Type, operand);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (5)
1526
ExprUnaryOp
exprRes = ExprFactory.CreateUnaryOp(ek, type, pArgument);
1747
ExprUnaryOp
exprRes = ExprFactory.CreateUnaryOp((ek == ExpressionKind.Add) ? ExpressionKind.Inc : ExpressionKind.Dec, arg.Type/* type */, exprVal);
1805
private static
ExprUnaryOp
BindDecUnaOp(ExpressionBinder _, ExpressionKind ek, EXPRFLAG flags, Expr arg)
2737
private static
ExprUnaryOp
CreateUnaryOpForPredefMethodCall(ExpressionKind ek, PREDEFMETH predefMeth, CType pRetType, Expr pArg)
2741
ExprUnaryOp
pUnaryOp = ExprFactory.CreateUnaryOp(ek, pRetType, pArg);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (3)
218
protected override Expr VisitUNARYOP(
ExprUnaryOp
pExpr)
475
private Expr GenerateBuiltInUnaryOperator(
ExprUnaryOp
expr)
579
private Expr GenerateUserDefinedUnaryOperator(
ExprUnaryOp
expr)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExprVisitorBase.cs (28)
19
ExpressionKind.UnaryOp => VisitUNARYOP(pExpr as
ExprUnaryOp
),
76
ExpressionKind.True => VisitTRUE(pExpr as
ExprUnaryOp
),
77
ExpressionKind.False => VisitFALSE(pExpr as
ExprUnaryOp
),
78
ExpressionKind.Inc => VisitINC(pExpr as
ExprUnaryOp
),
79
ExpressionKind.Dec => VisitDEC(pExpr as
ExprUnaryOp
),
80
ExpressionKind.LogicalNot => VisitLOGNOT(pExpr as
ExprUnaryOp
),
81
ExpressionKind.Negate => VisitNEG(pExpr as
ExprUnaryOp
),
82
ExpressionKind.UnaryPlus => VisitUPLUS(pExpr as
ExprUnaryOp
),
83
ExpressionKind.BitwiseNot => VisitBITNOT(pExpr as
ExprUnaryOp
),
84
ExpressionKind.Addr => VisitADDR(pExpr as
ExprUnaryOp
),
85
ExpressionKind.DecimalNegate => VisitDECIMALNEG(pExpr as
ExprUnaryOp
),
86
ExpressionKind.DecimalInc => VisitDECIMALINC(pExpr as
ExprUnaryOp
),
87
ExpressionKind.DecimalDec => VisitDECIMALDEC(pExpr as
ExprUnaryOp
),
154
exprRet = Visit((pExpr as
ExprUnaryOp
).Child);
156
(pExpr as
ExprUnaryOp
).Child = exprRet;
328
protected virtual Expr VisitUNARYOP(
ExprUnaryOp
pExpr)
622
protected virtual Expr VisitTRUE(
ExprUnaryOp
pExpr)
628
protected virtual Expr VisitINC(
ExprUnaryOp
pExpr)
634
protected virtual Expr VisitLOGNOT(
ExprUnaryOp
pExpr)
640
protected virtual Expr VisitNEG(
ExprUnaryOp
pExpr)
646
protected virtual Expr VisitBITNOT(
ExprUnaryOp
pExpr)
652
protected virtual Expr VisitADDR(
ExprUnaryOp
pExpr)
658
protected virtual Expr VisitDECIMALNEG(
ExprUnaryOp
pExpr)
664
protected virtual Expr VisitDECIMALDEC(
ExprUnaryOp
pExpr)
670
protected virtual Expr VisitFALSE(
ExprUnaryOp
pExpr)
676
protected virtual Expr VisitDEC(
ExprUnaryOp
pExpr)
682
protected virtual Expr VisitUPLUS(
ExprUnaryOp
pExpr)
688
protected virtual Expr VisitDECIMALINC(
ExprUnaryOp
pExpr)