26 references to EnumUnderlyingTypeOrSelf
Microsoft.CodeAnalysis.CSharp (20)
Binder\Binder_Patterns.cs (1)
1632BinaryOperatorKind opType = RelationalOperatorType(value.Type.EnumUnderlyingTypeOrSelf());
Binder\DecisionDagBuilder.cs (2)
1507TypeSymbol e1 = array1.ElementType.EnumUnderlyingTypeOrSelf(); 1508TypeSymbol e2 = array2.ElementType.EnumUnderlyingTypeOrSelf();
Binder\PatternExplainer.cs (2)
672var underlyingType = type.EnumUnderlyingTypeOrSelf(); 695string valueString = PrimitiveValueString(value, type.EnumUnderlyingTypeOrSelf());
CodeGen\EmitArrayInitializer.cs (4)
224TypeSymbol type = init.Type.EnumUnderlyingTypeOrSelf(); 258elementType = elementType.EnumUnderlyingTypeOrSelf(); 473specialElementType = elementType.EnumUnderlyingTypeOrSelf().SpecialType; 663arrayType = arrayType.WithElementType(TypeWithAnnotations.Create(elementType.EnumUnderlyingTypeOrSelf()));
CodeGen\EmitStackAllocInitializer.cs (3)
50else if (elementType.EnumUnderlyingTypeOrSelf().SpecialType.SizeInBytes() == 1) 79if (elementType.EnumUnderlyingTypeOrSelf().SpecialType.IsBlittable()) 126int elementTypeSizeInBytes = elementType.EnumUnderlyingTypeOrSelf().SpecialType.SizeInBytes();
CodeGen\EmitStatement.cs (1)
1299_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_Conversion.cs (1)
621type.StrippedType().EnumUnderlyingTypeOrSelf().SpecialType;
Symbols\TypeSymbolExtensions.cs (2)
578type = type.EnumUnderlyingTypeOrSelf(); 1252type = type.EnumUnderlyingTypeOrSelf();
Utilities\ValueSetFactory.cs (1)
60type = type.EnumUnderlyingTypeOrSelf();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\OperatorTests.cs (6)
7566underlying = type.EnumUnderlyingTypeOrSelf(); 8233(result = OverloadResolution.BinopEasyOut.OpKind(op, leftType.EnumUnderlyingTypeOrSelf(), rightType)) != BinaryOperatorKind.Error && 8234TypeSymbol.Equals((signature = compilation.builtInOperators.GetSignature(result)).RightType, leftType.EnumUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything2)) 8240(result = OverloadResolution.BinopEasyOut.OpKind(op, leftType, rightType.EnumUnderlyingTypeOrSelf())) != BinaryOperatorKind.Error && 8241TypeSymbol.Equals((signature = compilation.builtInOperators.GetSignature(result)).LeftType, rightType.EnumUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything2)) 8248signature = new BinaryOperatorSignature(op | BinaryOperatorKind.Enum, leftType, rightType, leftType.EnumUnderlyingTypeOrSelf());