28 references to GetEnumUnderlyingType
Microsoft.CodeAnalysis.CSharp (28)
Binder\Binder_Expressions.cs (1)
1525
return ConstantValue.CreateSizeOf((type.
GetEnumUnderlyingType
() ?? type).SpecialType);
Binder\Binder_Operators.cs (2)
1726
TypeSymbol underlyingType = enumType.
GetEnumUnderlyingType
()!;
2813
var underlyingType = operand.Type.
GetEnumUnderlyingType
()!;
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
474
var underlying = enumType.
GetEnumUnderlyingType
();
CodeGen\EmitOperators.cs (3)
678
SpecialType type = enumType.
GetEnumUnderlyingType
().SpecialType;
786
return IsUnsigned(Binder.GetEnumPromotedType(op.Left.Type.
GetEnumUnderlyingType
().SpecialType));
789
return IsUnsigned(Binder.GetEnumPromotedType(op.Right.Type.
GetEnumUnderlyingType
().SpecialType));
Compilation\CSharpCompilation.cs (3)
4333
csharpRightType.SpecialType == csharpLeftType.
GetEnumUnderlyingType
()?.SpecialType &&
4340
csharpLeftType.SpecialType == csharpRightType.
GetEnumUnderlyingType
()?.SpecialType &&
4349
csharpReturnType.SpecialType == csharpLeftType.
GetEnumUnderlyingType
()?.SpecialType &&
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
510
var promotedType = PromotedType(enumOperand.Type.StrippedType().
GetEnumUnderlyingType
());
1188
var promotedType = PromotedType(arg.Type.StrippedType().
GetEnumUnderlyingType
());
Lowering\LocalRewriter\LocalRewriter_Conversion.cs (8)
500
var underlyingTypeFrom = rewrittenOperand.Type.
GetEnumUnderlyingType
()!;
511
var underlyingTypeTo = rewrittenType.
GetEnumUnderlyingType
()!;
1115
typeFromUnderlying = typeFrom.
GetEnumUnderlyingType
()!;
1123
typeToUnderlying = typeTo.
GetEnumUnderlyingType
()!;
1543
SpecialType t0Type = t0.IsEnumType() ? t0.
GetEnumUnderlyingType
()!.SpecialType : t0.SpecialType;
1544
SpecialType s0Type = s0.IsEnumType() ? s0.
GetEnumUnderlyingType
()!.SpecialType : s0.SpecialType;
1820
var underlying = toType.
GetEnumUnderlyingType
();
1833
var underlying = fromType.
GetEnumUnderlyingType
();
Lowering\LocalRewriter\LocalRewriter_UnaryOperator.cs (2)
132
var underlyingType = loweredOperand.Type.
GetEnumUnderlyingType
();
1025
underlyingType = underlyingType.
GetEnumUnderlyingType
();
Symbols\Attributes\SourceAttributeData.cs (1)
310
specType = parameterType.
GetEnumUnderlyingType
()!.SpecialType;
Symbols\BaseTypeAnalysis.cs (1)
249
type = type.
GetEnumUnderlyingType
();
Symbols\Metadata\PE\SymbolFactory.cs (1)
56
return type.
GetEnumUnderlyingType
();
Symbols\TypeSymbolExtensions.cs (3)
186
return type.
GetEnumUnderlyingType
() ?? type;
227
var underlyingType = type.
GetEnumUnderlyingType
();
291
type = type.
GetEnumUnderlyingType
()!;