1 write to _exprSrc
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
21_exprSrc = exprSrc;
40 references to _exprSrc
Microsoft.CSharp (40)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (40)
88Debug.Assert(_exprSrc == null || _typeSrc == _exprSrc.Type); // type of source should be correct if source supplied 89Debug.Assert(!_needsExprDest || _exprSrc != null); // need source expr to create dest expr 101_exprDest = _exprSrc; 122_exprDest = _exprSrc; 192object srcRuntimeObject = _exprSrc?.RuntimeObject; 199_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, _exprSrc.Flags & EXPRFLAG.EXF_CANTBENULL); 217return _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, _typeDest, _needsExprDest, out _exprDest, true); 269Debug.Assert(_exprSrc == null || _exprSrc.Type == _typeSrc); 270Debug.Assert(!_needsExprDest || _exprSrc != null); 289_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_UNBOX); 314_exprDest = _exprSrc is ExprConstant 316: ExprFactory.CreateCast(_typeDest, _exprSrc); 321Expr exprTmp = _exprSrc; 324if (_typeSrc == typeDstBase || pfn(_exprSrc, _typeSrc, typeDstBase, _needsExprDest, out exprTmp, _flags | CONVERTTYPE.NOUDC)) 354return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT)); 362return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT)); 369ExprCall exprDst = ExprFactory.CreateCall(0, nubDst, _exprSrc, pMemGroup, null); 373Expr arg1 = _binder.mustCast(_exprSrc, typeSrcBase); 413_exprDest = _exprSrc is ExprConstant 415: ExprFactory.CreateCast(_typeDest, _exprSrc); 443_exprDest = _exprSrc; 451_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_BOX); 462return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(_exprSrc, nubSrc, _typeDest, _needsExprDest, out _exprDest, true); 507_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, grfex); 526_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest); 591else if (_exprSrc != null) 593flags = _exprSrc.Flags & EXPRFLAG.EXF_CANTBENULL; 596_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, flags); 616_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest, EXPRFLAG.EXF_BOX | EXPRFLAG.EXF_CANTBENULL); 647_exprSrc != null && 648_exprSrc.IsZero() && 649_exprSrc.Type.IsNumericType && 690if (_exprSrc is ExprConstant constant && 718if (_exprSrc.GetConst() != null) 721ConstCastResult result = _binder.bindConstantCast(_exprSrc, _typeDest, _needsExprDest, out _exprDest, false); 737return _binder.bindUserDefinedConversion(_exprSrc, aggTypeSrc, _typeDest, _needsExprDest, out _exprDest, true); 740_binder.bindSimpleCast(_exprSrc, _typeDest, out _exprDest);