2 overrides of SpecialType
Microsoft.CodeAnalysis.VisualBasic (2)
Preprocessor\CConst.vb (2)
195Public Overrides ReadOnly Property SpecialType As SpecialType 229Public Overrides ReadOnly Property SpecialType As SpecialType
56 references to SpecialType
Microsoft.CodeAnalysis.VisualBasic (56)
Preprocessor\CConst.vb (1)
142Return SpecialType = SpecialType.None
Preprocessor\ExpressionEvaluator.vb (54)
293If typeChar <> TypeCharacter.None AndAlso typeChar <> AsTypeCharacter(value.SpecialType) Then 294Return ReportSemanticError(ERRID.ERR_TypecharNoMatch2, expr, GetDisplayString(typeChar), value.SpecialType.GetDisplayName()) 421If value.SpecialType = SpecialType.System_Object OrElse 422value.SpecialType = SpecialType.System_String Then 427If value.SpecialType = specialType Then 435Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr.Type, value.SpecialType.GetDisplayName(), specialType.GetDisplayName()) 448If val.SpecialType = SpecialType.System_Object OrElse 449val.SpecialType = SpecialType.System_String Then 454If val.SpecialType = specialType Then 464Return ReportSemanticError(ERRID.ERR_TypeMismatch2, expr.Type, val.SpecialType, specialType) 573If Not IsNothing(whenFalse) AndAlso whenFalse.SpecialType <> SpecialType.System_Object Then 574whenTrue = Convert(whenTrue, whenFalse.SpecialType, expr.WhenTrue) 577If whenTrue.SpecialType <> SpecialType.System_Object Then 578whenFalse = Convert(whenFalse, whenTrue.SpecialType, expr.WhenFalse) 581Dim dominantType As SpecialType = CType(s_dominantType(TypeCodeToDominantTypeIndex(whenTrue.SpecialType), TypeCodeToDominantTypeIndex(whenFalse.SpecialType)), SpecialType) 583If dominantType <> whenTrue.SpecialType Then 587If dominantType <> whenFalse.SpecialType Then 610Dim specialType = value.SpecialType 649Dim fromSpecialType = value.SpecialType 685Debug.Assert(value.SpecialType.IsNumericType()) 700Dim fromSpecialType = value.SpecialType 730Dim fromSpecialType = value.SpecialType 768Dim fromSpecialType = value.SpecialType 804Dim specialType = value.SpecialType 845Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, value.SpecialType.GetDisplayName(), SpecialType.System_Object.GetDisplayName()) 850Dim specialType = val.SpecialType 944Return val.SpecialType = SpecialType.System_Object AndAlso val.ValueAsObject Is Nothing 1014OperandType = Right.SpecialType 1036OperandType = Left.SpecialType 1058Dim ResultType = LookupInOperatorTables(BoundOpcode, Left.SpecialType, Right.SpecialType) 1110left.SpecialType = right.SpecialType, "Binary operation on mismatched types.") 1112If left.SpecialType.IsIntegralType() OrElse left.SpecialType = SpecialType.System_Char OrElse left.SpecialType = SpecialType.System_DateTime Then 1122If(left.SpecialType.IsUnsignedIntegralType(), 1128If(left.SpecialType.IsUnsignedIntegralType(), 1134If(left.SpecialType.IsUnsignedIntegralType(), 1140If(left.SpecialType.IsUnsignedIntegralType(), 1145ComparisonSucceeds = If(left.SpecialType.IsUnsignedIntegralType(), 1151If(left.SpecialType.IsUnsignedIntegralType(), 1170left.SpecialType, 1190left.SpecialType, 1206ResultValue = Multiply(LeftValue, RightValue, left.SpecialType, resultType, Overflow) 1217left.SpecialType, 1250RightValue = RightValue And left.SpecialType.GetShiftSizeMask() 1258ResultValue = NarrowIntegralResult(ResultValue, left.SpecialType, resultType, overflowTemp) 1261RightValue = RightValue And left.SpecialType.GetShiftSizeMask() 1278ElseIf left.SpecialType.IsFloatingType() Then 1407ElseIf left.SpecialType = SpecialType.System_Decimal Then 1491ElseIf left.SpecialType = SpecialType.System_String Then 1540ElseIf left.SpecialType = SpecialType.System_Boolean Then
Preprocessor\TypeHelpers.vb (1)
23Dim specialType = v.SpecialType