1 write to _exprSrc
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
22_exprSrc = exprSrc;
40 references to _exprSrc
Microsoft.CSharp (40)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (40)
89Debug.Assert(_exprSrc == null || _typeSrc == _exprSrc.Type); // type of source should be correct if source supplied 90Debug.Assert(!_needsExprDest || _exprSrc != null); // need source expr to create dest expr 102_exprDest = _exprSrc; 123_exprDest = _exprSrc; 193object srcRuntimeObject = _exprSrc?.RuntimeObject; 200_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, _exprSrc.Flags & EXPRFLAG.EXF_CANTBENULL); 218return _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, _typeDest, _needsExprDest, out _exprDest, true); 271Debug.Assert(_exprSrc == null || _exprSrc.Type == _typeSrc); 272Debug.Assert(!_needsExprDest || _exprSrc != null); 291_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_UNBOX); 316_exprDest = _exprSrc is ExprConstant 318: ExprFactory.CreateCast(_typeDest, _exprSrc); 323Expr exprTmp = _exprSrc; 326if (_typeSrc == typeDstBase || pfn(_exprSrc, _typeSrc, typeDstBase, _needsExprDest, out exprTmp, _flags | CONVERTTYPE.NOUDC)) 356return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT)); 364return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT)); 371ExprCall exprDst = ExprFactory.CreateCall(0, nubDst, _exprSrc, pMemGroup, null); 375Expr arg1 = _binder.mustCast(_exprSrc, typeSrcBase); 415_exprDest = _exprSrc is ExprConstant 417: ExprFactory.CreateCast(_typeDest, _exprSrc); 445_exprDest = _exprSrc; 453_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_BOX); 464return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(_exprSrc, nubSrc, _typeDest, _needsExprDest, out _exprDest, true); 509_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, grfex); 528_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest); 593else if (_exprSrc != null) 595flags = _exprSrc.Flags & EXPRFLAG.EXF_CANTBENULL; 598_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, flags); 618_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_BOX | EXPRFLAG.EXF_CANTBENULL); 649_exprSrc != null && 650_exprSrc.IsZero() && 651_exprSrc.Type.IsNumericType && 693if (_exprSrc is ExprConstant constant && 721if (_exprSrc.GetConst() != null) 724ConstCastResult result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, false); 740return _binder.bindUserDefinedConversion(_exprSrc, aggTypeSrc, _typeDest, _needsExprDest, out _exprDest, true); 743_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest);