21 references to EnumUnderlyingTypeOrSelf
Microsoft.CodeAnalysis.CSharp (21)
Binder\Binder_Patterns.cs (1)
1642BinaryOperatorKind opType = RelationalOperatorType(type.EnumUnderlyingTypeOrSelf());
Binder\DecisionDagBuilder.cs (2)
1556TypeSymbol e1 = array1.ElementType.EnumUnderlyingTypeOrSelf(); 1557TypeSymbol e2 = array2.ElementType.EnumUnderlyingTypeOrSelf();
Binder\PatternExplainer.cs (2)
672var underlyingType = type.EnumUnderlyingTypeOrSelf(); 695string valueString = PrimitiveValueString(value, type.EnumUnderlyingTypeOrSelf());
CodeGen\EmitArrayInitializer.cs (4)
225TypeSymbol type = init.Type.EnumUnderlyingTypeOrSelf(); 261elementType = elementType.EnumUnderlyingTypeOrSelf(); 497specialElementType = elementType.EnumUnderlyingTypeOrSelf().SpecialType; 649arrayType = arrayType.WithElementType(TypeWithAnnotations.Create(elementType.EnumUnderlyingTypeOrSelf()));
CodeGen\EmitStackAllocInitializer.cs (3)
45var sizeInBytes = elementType.EnumUnderlyingTypeOrSelf().SpecialType.SizeInBytes(); 138if (IsTypeAllowedInBlobWrapper(elementType.EnumUnderlyingTypeOrSelf().SpecialType)) 185int elementTypeSizeInBytes = elementType.EnumUnderlyingTypeOrSelf().SpecialType.SizeInBytes();
CodeGen\EmitStatement.cs (1)
1324_builder.EmitIntegerSwitchJumpTable(switchCaseLabels, fallThroughLabel, key, expression.Type.EnumUnderlyingTypeOrSelf().PrimitiveTypeCode);
Lowering\Instrumentation\LocalStateTracingInstrumenter.cs (1)
213null => variableType.EnumUnderlyingTypeOrSelf().SpecialType switch
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
394TypeSymbol comparisonType = input.Type.EnumUnderlyingTypeOrSelf(); 411TypeSymbol comparisonType = input.Type.EnumUnderlyingTypeOrSelf();
Lowering\LocalRewriter\LocalRewriter_CollectionExpression.cs (1)
529CodeGenerator.IsTypeAllowedInBlobWrapper(elementType.EnumUnderlyingTypeOrSelf().SpecialType) &&
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (1)
763type.StrippedType().EnumUnderlyingTypeOrSelf().SpecialType;
Symbols\TypeSymbolExtensions.cs (2)
642type = type.EnumUnderlyingTypeOrSelf(); 1340type = type.EnumUnderlyingTypeOrSelf();
Utilities\ValueSetFactory.cs (1)
60type = type.EnumUnderlyingTypeOrSelf();