47 references to IsEnumType
Microsoft.CodeAnalysis.CSharp (47)
Binder\Binder_Conversions.cs (1)
3918if ((object)destination != null && destination.IsEnumType())
Binder\Binder_Expressions.cs (4)
9129var isEnumField = (fieldSymbol.IsStatic && type.IsEnumType()); 9257var isEnumField = (fieldSymbol.IsStatic && type.IsEnumType()); 9268else if (fieldSymbol.IsConst && fieldType.IsEnumType()) 9293return this.InFieldInitializer && (object)containingType != null && containingType.IsEnumType();
Binder\Binder_Operators.cs (2)
5265if (operandType.IsEnumType() && targetType.IsEnumType())
Binder\Binder_Statements.cs (1)
3919if (containingType.IsStructType() || containingType.IsEnumType() || containingType.IsExtension)
Binder\PatternExplainer.cs (1)
832bool requiresCast = (type.IsEnumType() || requireExactType || type.IsNativeIntegerType) &&
Binder\Semantics\Conversions\ConversionsBase.cs (7)
1467bool validType = destination.IsEnumType() || 1468destination.IsNullableType() && destination.GetNullableUnderlyingType().IsEnumType(); 2233if (IsNumericType(source) && destination.IsEnumType()) 2238if (IsNumericType(destination) && source.IsEnumType()) 2243if (source.IsEnumType() && destination.IsEnumType()) 3873if (source.SpecialType == SpecialType.System_Enum && destination.IsEnumType())
CodeGen\EmitArrayInitializer.cs (2)
254if (elementType.IsEnumType()) 694Debug.Assert(!elementType.IsEnumType());
CodeGen\EmitConversion.cs (2)
322if (fromType.IsEnumType()) 331if (toType.IsEnumType())
CodeGen\EmitExpression.cs (5)
1028if (elementType.IsEnumType()) 1387return type.IsEnumType(); 1444if (type.IsEnumType()) 3258if (elementType.IsEnumType()) 3356if (type.IsEnumType())
CodeGen\EmitOperators.cs (1)
676Debug.Assert(enumType.IsEnumType());
CodeGen\EmitStatement.cs (1)
202if (ts.IsEnumType())
Compilation\CSharpCompilation.cs (6)
1800if (typeArgument.IsEnumType()) 4531if (csharpLeftType.IsEnumType() || csharpRightType.IsEnumType()) 4569if (csharpLeftType.IsEnumType() && 4576if (csharpRightType.IsEnumType() && 4719if (csharpOperandType.IsEnumType() &&
Emitter\Model\NamedTypeReference.cs (1)
66return UnderlyingNamedType.IsEnumType();
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (1)
546conversion.Type.StrippedType().IsEnumType())
Lowering\LocalRewriter\LocalRewriter_CompoundAssignmentOperator.cs (1)
1082type.IsEnumType();
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (6)
504Debug.Assert(rewrittenOperand.Type.IsEnumType()); 515Debug.Assert(rewrittenType.IsEnumType()); 1181if (typeFrom.IsEnumType()) 1189else if (typeTo.IsEnumType()) 1657SpecialType t0Type = t0.IsEnumType() ? t0.GetEnumUnderlyingType()!.SpecialType : t0.SpecialType; 1658SpecialType s0Type = s0.IsEnumType() ? s0.GetEnumUnderlyingType()!.SpecialType : s0.SpecialType;
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (1)
1183Debug.Assert(underlyingType.IsEnumType());
Symbols\Attributes\SourceAttributeData.cs (1)
308if (parameterType.IsEnumType())
Symbols\Source\ParameterHelpers.cs (1)
1018!(parameterType.GetNullableUnderlyingType().IsEnumType() || parameterType.GetNullableUnderlyingType().IsIntrinsicType()))
Symbols\TypeSymbolExtensions.cs (2)
54return typeSymbol.IsReferenceType || typeSymbol.IsEnumType() || typeSymbol.SpecialType.CanBeConst() || typeSymbol.IsNativeIntegerType; 298if (type.IsEnumType())