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