Lowering\LocalRewriter\LocalRewriter_Conversion.cs (33)
97Debug.Assert(byteType.SpecialType == SpecialType.System_Byte);
145Debug.Assert(byteArray.ElementType.SpecialType == SpecialType.System_Byte);
228if (type.SpecialType != SpecialType.System_Double && type.SpecialType != SpecialType.System_Single)
434if (rewrittenType.SpecialType == SpecialType.System_Decimal || rewrittenOperand.Type.SpecialType == SpecialType.System_Decimal)
497if (rewrittenType.SpecialType == SpecialType.System_Decimal)
504else if (rewrittenOperand.Type.SpecialType == SpecialType.System_Decimal)
763type.StrippedType().EnumUnderlyingTypeOrSelf().SpecialType;
821rewrittenOperand.Type.SpecialType != SpecialType.System_Decimal &&
822rewrittenOperand.Type.SpecialType != SpecialType.System_DateTime)
1106if (!TypeSymbol.Equals(typeFrom, typeTo, TypeCompareKind.ConsiderEverything2) && (typeFrom.SpecialType == SpecialType.System_Decimal || typeTo.SpecialType == SpecialType.System_Decimal))
1543SpecialType t0Type = t0.IsEnumType() ? t0.GetEnumUnderlyingType()!.SpecialType : t0.SpecialType;
1544SpecialType s0Type = s0.IsEnumType() ? s0.GetEnumUnderlyingType()!.SpecialType : s0.SpecialType;
1653if (typeFrom.SpecialType == SpecialType.System_Decimal)
1656switch (typeTo.SpecialType)
1670throw ExceptionUtilities.UnexpectedValue(typeTo.SpecialType);
1676switch (typeFrom.SpecialType)
1690throw ExceptionUtilities.UnexpectedValue(typeFrom.SpecialType);
1697Debug.Assert(fromType.SpecialType == SpecialType.System_Decimal || toType.SpecialType == SpecialType.System_Decimal);
1699if (fromType.SpecialType == SpecialType.System_Decimal)
1701switch (toType.SpecialType)
1705operand = RewriteDecimalConversionCore(syntax, operand, fromType, get64BitType(_compilation, signed: toType.SpecialType == SpecialType.System_IntPtr), isImplicit, constantValueOpt);
1711switch (fromType.SpecialType)
1715operand = MakeConversionNode(operand, get64BitType(_compilation, signed: fromType.SpecialType == SpecialType.System_IntPtr), @checked);
1803if (fromType.SpecialType == SpecialType.System_Decimal || toType.SpecialType == SpecialType.System_Decimal)
1818if (fromType.SpecialType == SpecialType.System_Decimal)
1831else if (toType.SpecialType == SpecialType.System_Decimal)