1 instantiation of ExprCast
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
44
public static ExprCast CreateCast(EXPRFLAG flags, CType type, Expr argument) => new
ExprCast
(flags, type, argument);
18 references to ExprCast
Microsoft.CSharp (18)
Microsoft\CSharp\RuntimeBinder\RuntimeBinder.cs (2)
709
if (arguments[0].Type.IsValueType && callingObject is
ExprCast
)
1120
if (argument.Type.IsValueType && callingObject is
ExprCast
)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (3)
290
Debug.Assert(op1 is
ExprCast
337
private static
ExprCast
ExprFactoryCreateCastWithSuppressedMessage(EXPRFLAG flags, CType type, Expr argument)
358
ExprCast
exprCast = ExprFactory.CreateCast(exprFlags, typeDest, exprSrc);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (2)
41
public static
ExprCast
CreateCast(CType type, Expr argument) => CreateCast(0, type, argument);
44
public static
ExprCast
CreateCast(EXPRFLAG flags, CType type, Expr argument) => new ExprCast(flags, type, argument);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (3)
2089
Debug.Assert((
ExprCast
)arg != null);
2090
Debug.Assert(((
ExprCast
)arg).Argument.Type.IsEnumType);
2091
CType typeEnum = ((
ExprCast
)arg).Argument.Type;
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Cast.cs (1)
30
while (arg is
ExprCast
castArg)
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExpressionTreeRewriter.cs (3)
150
protected override Expr VisitCAST(
ExprCast
pExpr)
295
if (pObject != null && pObject is
ExprCast
cast && cast.IsBoxingCast)
894
ExprCast
cast = ExprFactory.CreateCast(flags, pObject, expr);
Microsoft\CSharp\RuntimeBinder\Semantics\Tree\Visitors\ExprVisitorBase.cs (4)
34
ExpressionKind.Cast => VisitCAST(pExpr as
ExprCast
),
175
exprRet = Visit((pExpr as
ExprCast
).Argument);
177
(pExpr as
ExprCast
).Argument = exprRet;
346
protected virtual Expr VisitCAST(
ExprCast
pExpr)