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