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