28 references to IsIntegralType
Microsoft.CodeAnalysis.VisualBasic (26)
Binding\Binder_Conversions.vb (2)
1775
ElseIf targetType.IsCharType() AndAlso sourceType.
IsIntegralType
() Then
1778
ElseIf sourceType.IsCharType() AndAlso targetType.
IsIntegralType
() Then
BoundTree\BoundBinaryOperator.vb (1)
46
Dim isChecked = Checked AndAlso leftType.
IsIntegralType
() AndAlso
BoundTree\BoundUnaryOperator.vb (1)
39
Dim isChecked = Checked AndAlso operandType.
IsIntegralType
() AndAlso op = UnaryOperatorKind.Minus
CodeGen\EmitOperators.vb (2)
89
expression.Type.
IsIntegralType
() Then
232
Return expression.Checked AndAlso expression.Type.
IsIntegralType
()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
760
Return GetUnderlyingType(type).
IsIntegralType
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (1)
32
Dim isChecked As Boolean = node.Checked AndAlso origArgUnderlyingType.
IsIntegralType
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (6)
823
If underlyingTypeFrom.IsFloatingType() AndAlso underlyingTypeTo.
IsIntegralType
() Then
827
(underlyingTypeTo.IsBooleanType() OrElse underlyingTypeTo.
IsIntegralType
() OrElse underlyingTypeTo.IsFloatingType) Then
831
(underlyingTypeFrom.IsBooleanType() OrElse underlyingTypeFrom.
IsIntegralType
() OrElse underlyingTypeFrom.IsFloatingType) Then
1143
(underlyingTypeFrom.IsBooleanType() OrElse underlyingTypeFrom.
IsIntegralType
() OrElse underlyingTypeFrom.IsFloatingType))
1224
(underlyingTypeTo.IsBooleanType() OrElse underlyingTypeTo.
IsIntegralType
() OrElse underlyingTypeTo.IsFloatingType))
1278
Debug.Assert(typeFrom.IsFloatingType() AndAlso underlyingTypeTo.
IsIntegralType
())
Semantics\CompileTimeCalculations.vb (1)
279
Debug.Assert(sourceType.
IsIntegralType
() OrElse sourceType.IsBooleanType() OrElse sourceType.IsCharType(),
Semantics\Conversions.vb (7)
802
If
IsIntegralType
(sourceType) OrElse IsBooleanType(sourceType) Then
1593
DirectCast(targetDestinationType, NamedTypeSymbol).EnumUnderlyingType.
IsIntegralType
() Then
1619
If sourceType.
IsIntegralType
() Then
1625
If targetDestinationType.
IsIntegralType
() Then
1740
If source.
IsIntegralType
() Then
1745
ElseIf destination.
IsIntegralType
() Then
1753
If srcUnderlying.
IsIntegralType
() AndAlso
Semantics\Operators.vb (4)
551
If operandIsEnum AndAlso opCode = UnaryOperatorKind.Not AndAlso sourceType.
IsIntegralType
() Then
731
If underlyingResultType.
IsIntegralType
() Then
1065
If leftUnderlying.
IsIntegralType
() OrElse leftUnderlying.IsCharType() OrElse leftUnderlying.IsDateTimeType() Then
1128
Debug.Assert(operandType.
IsIntegralType
() OrElse operandType.IsCharType() OrElse operandType.IsDateTimeType())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\BinaryOperators.vb (1)
1236
symbol1.ContainingType.
IsIntegralType
(),
Semantics\UnaryOperators.vb (1)
763
Assert.Equal(op = UnaryOperatorKind.Minus AndAlso symbol1.ContainingType.
IsIntegralType
(),