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)
89
Debug.Assert(
_exprSrc
== null || _typeSrc ==
_exprSrc
.Type); // type of source should be correct if source supplied
90
Debug.Assert(!_needsExprDest ||
_exprSrc
!= null); // need source expr to create dest expr
102
_exprDest =
_exprSrc
;
123
_exprDest =
_exprSrc
;
193
object srcRuntimeObject =
_exprSrc
?.RuntimeObject;
200
_binder.bindSimpleCast(
_exprSrc
, _typeDest, out _exprDest,
_exprSrc
.Flags & EXPRFLAG.EXF_CANTBENULL);
218
return _binder.bindUserDefinedConversion(
_exprSrc
, _typeSrc, _typeDest, _needsExprDest, out _exprDest, true);
271
Debug.Assert(
_exprSrc
== null ||
_exprSrc
.Type == _typeSrc);
272
Debug.Assert(!_needsExprDest ||
_exprSrc
!= null);
291
_binder.bindSimpleCast(
_exprSrc
, _typeDest, out _exprDest, EXPRFLAG.EXF_UNBOX);
316
_exprDest =
_exprSrc
is ExprConstant
318
: ExprFactory.CreateCast(_typeDest,
_exprSrc
);
323
Expr exprTmp =
_exprSrc
;
326
if (_typeSrc == typeDstBase || pfn(
_exprSrc
, _typeSrc, typeDstBase, _needsExprDest, out exprTmp, _flags | CONVERTTYPE.NOUDC))
356
return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(
_exprSrc
, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT));
364
return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(
_exprSrc
, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT));
371
ExprCall exprDst = ExprFactory.CreateCall(0, nubDst,
_exprSrc
, pMemGroup, null);
375
Expr 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);
464
return 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);
593
else if (
_exprSrc
!= null)
595
flags =
_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 &&
693
if (
_exprSrc
is ExprConstant constant &&
721
if (
_exprSrc
.GetConst() != null)
724
ConstCastResult result = _binder.bindConstantCast(
_exprSrc
, _typeDest, _needsExprDest, out _exprDest, false);
740
return _binder.bindUserDefinedConversion(
_exprSrc
, aggTypeSrc, _typeDest, _needsExprDest, out _exprDest, true);
743
_binder.bindSimpleCast(
_exprSrc
, _typeDest, out _exprDest);