1 write to _typeSrc
Microsoft.CSharp (1)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (1)
23_typeSrc = typeSrc;
28 references to _typeSrc
Microsoft.CSharp (28)
Microsoft\CSharp\RuntimeBinder\Semantics\ImplicitConversion.cs (28)
83if (_typeSrc == null || _typeDest == null || _typeDest is MethodGroupType) 88Debug.Assert(_typeSrc != null && _typeDest != null); // types must be supplied. 89Debug.Assert(_exprSrc == null || _typeSrc == _exprSrc.Type); // type of source should be correct if source supplied 96if (!(_typeSrc is NullType)) 106return _typeSrc == _typeDest; 118if (_typeSrc == _typeDest && 119((_flags & CONVERTTYPE.ISEXPLICIT) == 0 || (!_typeSrc.IsPredefType(PredefinedType.PT_FLOAT) && !_typeSrc.IsPredefType(PredefinedType.PT_DOUBLE)))) 133if (_typeSrc is NullableType nubSrc) 147switch (_typeSrc.TypeKind) 150Debug.Fail($"Bad type symbol kind: {_typeSrc.TypeKind}"); 179if (bindImplicitConversionFromAgg(_typeSrc as AggregateType)) 218return _binder.bindUserDefinedConversion(_exprSrc, _typeSrc, _typeDest, _needsExprDest, out _exprDest, true); 271Debug.Assert(_exprSrc == null || _exprSrc.Type == _typeSrc); 273Debug.Assert(_typeSrc != nubDst); // BindImplicitConversion should have taken care of this already. 277if (SymbolLoader.HasBaseConversion(nubDst.UnderlyingType, _typeSrc) && !CConversions.FWrappingConv(_typeSrc, nubDst)) 280Debug.Assert(atsDst != _typeSrc); 299CType typeSrcBase = _typeSrc.StripNubs(out srcWasNullable); 306Debug.Assert(_typeSrc == typeSrcBase); 309if (_typeSrc is NullType) 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)); 485if (!SymbolLoader.HasBaseConversion(_typeSrc, _typeDest)) 498(aggDest.TypeArgsAll[0] != ((ArrayType)_typeSrc).ElementType || 502TypeManager.TypeContainsTyVars(_typeSrc, null) ||