1 write to _typeSrc
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
22
_typeSrc
= typeSrc;
28 references to _typeSrc
Microsoft.CSharp (28)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (28)
82
if (
_typeSrc
== null || _typeDest == null || _typeDest is MethodGroupType)
87
Debug.Assert(
_typeSrc
!= null && _typeDest != null); // types must be supplied.
88
Debug.Assert(_exprSrc == null ||
_typeSrc
== _exprSrc.Type); // type of source should be correct if source supplied
95
if (!(
_typeSrc
is NullType))
105
return
_typeSrc
== _typeDest;
117
if (
_typeSrc
== _typeDest &&
118
((_flags & CONVERTTYPE.ISEXPLICIT) == 0 || (!
_typeSrc
.IsPredefType(PredefinedType.PT_FLOAT) && !
_typeSrc
.IsPredefType(PredefinedType.PT_DOUBLE))))
132
if (
_typeSrc
is NullableType nubSrc)
146
switch (
_typeSrc
.TypeKind)
149
Debug.Fail($"Bad type symbol kind: {
_typeSrc
.TypeKind}");
178
if (bindImplicitConversionFromAgg(
_typeSrc
as AggregateType))
217
return _binder.bindUserDefinedConversion(_exprSrc,
_typeSrc
, _typeDest, _needsExprDest, out _exprDest, true);
269
Debug.Assert(_exprSrc == null || _exprSrc.Type ==
_typeSrc
);
271
Debug.Assert(
_typeSrc
!= nubDst); // BindImplicitConversion should have taken care of this already.
275
if (SymbolLoader.HasBaseConversion(nubDst.UnderlyingType,
_typeSrc
) && !CConversions.FWrappingConv(
_typeSrc
, nubDst))
278
Debug.Assert(atsDst !=
_typeSrc
);
297
CType typeSrcBase =
_typeSrc
.StripNubs(out srcWasNullable);
304
Debug.Assert(
_typeSrc
== typeSrcBase);
307
if (
_typeSrc
is NullType)
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));
483
if (!SymbolLoader.HasBaseConversion(
_typeSrc
, _typeDest))
496
(aggDest.TypeArgsAll[0] != ((ArrayType)
_typeSrc
).ElementType ||
500
TypeManager.TypeContainsTyVars(
_typeSrc
, null) ||