48 references to IsEnumType
Microsoft.CodeAnalysis.VisualBasic (33)
Binding\Binder_Initializers.vb (1)
110
If Not initializer.FieldsOrProperties.IsDefault AndAlso initializer.FieldsOrProperties.First.ContainingType.
IsEnumType
Then
Binding\Binder_Operators.vb (2)
305
Debug.Assert(leftType.GetNullableUnderlyingTypeOrSelf().
IsEnumType
() AndAlso
1159
Debug.Assert(operandType.GetNullableUnderlyingTypeOrSelf().
IsEnumType
())
Binding\Binder_Statements.vb (1)
4668
If structureType.IsStructureType AndAlso Not structureType.
IsEnumType
AndAlso Not structureType.IsIntrinsicType Then
Binding\Binder_Utils.vb (1)
1369
If type.
IsEnumType
Then
CodeGen\EmitArrayInitializer.vb (1)
195
If elementType.
IsEnumType
() Then
CodeGen\EmitExpression.vb (6)
567
If elementType.
IsEnumType
() Then
691
Debug.Assert(temp Is Nothing OrElse receiver.Type.
IsEnumType
, "temp is unexpected, just reading a field")
783
If expr.Type.
IsEnumType
Then
811
If type.
IsEnumType
() Then
1976
If elementType.
IsEnumType
() Then
2047
If type.
IsEnumType
() Then
CodeGen\EmitStatement.vb (1)
473
If ts.
IsEnumType
Then
Compilation\VisualBasicCompilation.vb (2)
2956
If leftType.
IsEnumType
() AndAlso
3027
If operandType.
IsEnumType
() AndAlso
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (2)
446
If type.IsErrorType OrElse type.
IsEnumType
Then
486
Debug.Assert(Not type.
IsEnumType
)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (4)
243
If operandNotNullableType.
IsEnumType
AndAlso Not isIsIsNot Then
382
If resultNotNullableType.
IsEnumType
Then
396
If notNullableType.
IsEnumType
Then
418
Debug.Assert(Not resultType.GetNullableUnderlyingTypeOrSelf().
IsEnumType
)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (1)
92
If origArgNotNullableType.
IsEnumType
Then
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
764
Debug.Assert(memberSymbol.Parameters(2).Type.
IsEnumType
())
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (5)
982
Debug.Assert(targetResultType.
IsEnumType
())
1052
If operandType.
IsEnumType
() Then
1127
Debug.Assert(targetResultType.
IsEnumType
())
1191
If operandType.
IsEnumType
() Then
1264
Debug.Assert(targetResultType.
IsEnumType
())
Semantics\CompileTimeCalculations.vb (1)
684
targetType.
IsEnumType
() OrElse
Semantics\Conversions.vb (1)
1592
If constantExpression.IsIntegerZeroLiteral() AndAlso targetDestinationType.
IsEnumType
() AndAlso
Symbols\Source\SourceMemberContainerTypeSymbol.vb (2)
3035
If asType IsNot Nothing AndAlso asType.
IsEnumType
Then
3093
If Me.
IsEnumType
() Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
1744
If Not Me.
IsEnumType
Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (15)
Semantics\BinaryOperators.vb (1)
1193
If leftType.
IsEnumType
() AndAlso TypeSymbol.Equals(leftType, rightType, TypeCompareKind.ConsiderEverything) Then
Semantics\Conversions.vb (13)
387
ElseIf type1.
IsEnumType
() Then
400
ElseIf type2.
IsEnumType
() Then
435
Assert.Equal(If(type2.
IsEnumType
() AndAlso type1 Is int32Type, ConversionKind.WideningNumeric Or ConversionKind.InvolvesEnumTypeConversions, expectedConv), ClassifyConversion(literal, type2, methodBodyBinder))
460
If type2.
IsEnumType
() AndAlso type1.SpecialType = SpecialType.System_Int32 Then
668
ElseIf integralTypes.Contains(mv.Type) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.Type.
IsEnumType
() AndAlso Not numericType.
IsEnumType
() Then
673
ElseIf mv.Type.
IsEnumType
() Then
1227
ElseIf integralTypes.Contains(mv.Type) AndAlso numericType.
IsEnumType
() Then
1229
ElseIf integralTypes.Contains(mv.Type) AndAlso integralTypes.Contains(numericType) AndAlso Not mv.Type.
IsEnumType
() AndAlso Not numericType.
IsEnumType
() Then
1234
ElseIf mv.Type.
IsEnumType
() Then
1301
If numericType.
IsEnumType
() OrElse mv.Type.
IsEnumType
() Then
Semantics\UnaryOperators.vb (1)
739
If op = UnaryOperatorKind.Not AndAlso type.
IsEnumType
() Then