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)
88
Debug.Assert(
_exprSrc
== null || _typeSrc ==
_exprSrc
.Type); // type of source should be correct if source supplied
89
Debug.Assert(!_needsExprDest ||
_exprSrc
!= null); // need source expr to create dest expr
101
_exprDest =
_exprSrc
;
122
_exprDest =
_exprSrc
;
192
object srcRuntimeObject =
_exprSrc
?.RuntimeObject;
199
_binder.bindSimpleCast(
_exprSrc
, _typeDest, out _exprDest,
_exprSrc
.Flags & EXPRFLAG.EXF_CANTBENULL);
217
return _binder.bindUserDefinedConversion(
_exprSrc
, _typeSrc, _typeDest, _needsExprDest, out _exprDest, true);
269
Debug.Assert(
_exprSrc
== null ||
_exprSrc
.Type == _typeSrc);
270
Debug.Assert(!_needsExprDest ||
_exprSrc
!= null);
289
_binder.bindSimpleCast(
_exprSrc
, _typeDest, out _exprDest, EXPRFLAG.EXF_UNBOX);
314
_exprDest =
_exprSrc
is ExprConstant
316
: ExprFactory.CreateCast(_typeDest,
_exprSrc
);
321
Expr exprTmp =
_exprSrc
;
324
if (_typeSrc == typeDstBase || pfn(
_exprSrc
, _typeSrc, typeDstBase, _needsExprDest, out exprTmp, _flags | CONVERTTYPE.NOUDC))
354
return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(
_exprSrc
, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT));
362
return 0 == (_flags & CONVERTTYPE.NOUDC) && _binder.bindUserDefinedConversion(
_exprSrc
, _typeSrc, nubDst, _needsExprDest, out _exprDest, 0 == (_flags & CONVERTTYPE.ISEXPLICIT));
369
ExprCall exprDst = ExprFactory.CreateCall(0, nubDst,
_exprSrc
, pMemGroup, null);
373
Expr 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);
462
return 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);
591
else if (
_exprSrc
!= null)
593
flags =
_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 &&
690
if (
_exprSrc
is ExprConstant constant &&
718
if (
_exprSrc
.GetConst() != null)
721
ConstCastResult result = _binder.bindConstantCast(
_exprSrc
, _typeDest, _needsExprDest, out _exprDest, false);
737
return _binder.bindUserDefinedConversion(
_exprSrc
, aggTypeSrc, _typeDest, _needsExprDest, out _exprDest, true);
740
_binder.bindSimpleCast(
_exprSrc
, _typeDest, out _exprDest);