1 instantiation of ExprCast
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (1)
48
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)
730
if (arguments[0].Type.IsValueType && callingObject is
ExprCast
)
1146
if (argument.Type.IsValueType && callingObject is
ExprCast
)
Microsoft\CSharp\RuntimeBinder\Semantics\ExpressionBinder.cs (3)
293
Debug.Assert(op1 is
ExprCast
343
private static
ExprCast
ExprFactoryCreateCastWithSuppressedMessage(EXPRFLAG flags, CType type, Expr argument)
366
ExprCast
exprCast = ExprFactory.CreateCast(exprFlags, typeDest, exprSrc);
Microsoft\CSharp\RuntimeBinder\Semantics\ExprFactory.cs (2)
44
public static
ExprCast
CreateCast(CType type, Expr argument) => CreateCast(0, type, argument);
48
public static
ExprCast
CreateCast(EXPRFLAG flags, CType type, Expr argument) => new ExprCast(flags, type, argument);
Microsoft\CSharp\RuntimeBinder\Semantics\Operators.cs (3)
2140
Debug.Assert((
ExprCast
)arg != null);
2141
Debug.Assert(((
ExprCast
)arg).Argument.Type.IsEnumType);
2142
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)
151
protected override Expr VisitCAST(
ExprCast
pExpr)
296
if (pObject != null && pObject is
ExprCast
cast && cast.IsBoxingCast)
895
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)