81 references to GetEnumUnderlyingTypeOrSelf
Microsoft.CodeAnalysis.VisualBasic (74)
Analysis\FlowAnalysis\DataFlowPass.vb (1)
1245type = type.GetEnumUnderlyingTypeOrSelf
Binding\Binder_Conversions.vb (2)
154sourceType.GetEnumUnderlyingTypeOrSelf().IsSameTypeIgnoringAll(targetType.GetEnumUnderlyingTypeOrSelf()))
Binding\Binder_Expressions.vb (4)
3201VerifyTypeCharacterConsistency(asMemberAccess.Name, fieldAccessType.GetEnumUnderlyingTypeOrSelf, diagnostics) 3233VerifyTypeCharacterConsistency(asSimpleName, localAccessType.GetEnumUnderlyingTypeOrSelf, diagnostics) 3265VerifyTypeCharacterConsistency(asSimpleName, parameterType.GetEnumUnderlyingTypeOrSelf, diagnostics) 3307VerifyTypeCharacterConsistency(asSimpleName, type.GetEnumUnderlyingTypeOrSelf, diagnostics)
Binding\Binder_Initializers.vb (1)
544targetType = targetType.GetEnumUnderlyingTypeOrSelf
Binding\Binder_Invocation.vb (2)
3228If paramNullableUnderlyingTypeOrSelf.GetEnumUnderlyingTypeOrSelf().SpecialType = SpecialType.System_Int32 Then 3235If paramNullableUnderlyingTypeOrSelf.GetEnumUnderlyingTypeOrSelf().SpecialType = defaultSpecialType Then
Binding\Binder_Operators.vb (2)
1044If rightType.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf().IsIntrinsicType() OrElse 1084If leftType.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf().IsIntrinsicType() OrElse
Binding\Binder_Statements.vb (3)
1407If valueType IsNot Nothing AndAlso valueType.GetEnumUnderlyingTypeOrSelf.IsIntrinsicType Then 3111targetTypeIsValid = IsValidForControlVariableType(node, targetType.GetEnumUnderlyingTypeOrSelf(), diagnostics) 3300targetType = targetType.GetNullableUnderlyingType.GetEnumUnderlyingTypeOrSelf
CodeGen\EmitArrayInitializer.vb (1)
186Dim type As TypeSymbol = init.Type.GetEnumUnderlyingTypeOrSelf
CodeGen\EmitConversion.vb (8)
57Debug.Assert(underlyingFrom = conversion.Operand.Type.GetEnumUnderlyingTypeOrSelf().PrimitiveTypeCode) 58Debug.Assert(underlyingTo = conversion.Type.GetEnumUnderlyingTypeOrSelf().PrimitiveTypeCode) 166Dim underlyingTo = typeTo.GetEnumUnderlyingTypeOrSelf().PrimitiveTypeCode 168Dim underlyingFrom = typeFrom.GetEnumUnderlyingTypeOrSelf().PrimitiveTypeCode 289Not typeFrom.GetEnumUnderlyingTypeOrSelf().IsSameTypeIgnoringAll(typeTo.GetEnumUnderlyingTypeOrSelf()) AndAlso 328If typeFrom.GetEnumUnderlyingTypeOrSelf().IsSameTypeIgnoringAll(typeTo.GetEnumUnderlyingTypeOrSelf()) Then
CodeGen\EmitOperators.vb (1)
370Return leftOperandType.GetEnumUnderlyingTypeOrSelf.SpecialType.GetShiftSizeMask()
CodeGen\EmitStatement.vb (3)
1055_builder.EmitIntegerSwitchJumpTable(caseLabels, fallThroughLabel, GetLocal(DirectCast(selectExpression, BoundLocal)), keyTypeCode:=exprType.GetEnumUnderlyingTypeOrSelf.PrimitiveTypeCode) 1058_builder.EmitIntegerSwitchJumpTable(caseLabels, fallThroughLabel, ParameterSlot(DirectCast(selectExpression, BoundParameter)), keyTypeCode:=exprType.GetEnumUnderlyingTypeOrSelf.PrimitiveTypeCode) 1065_builder.EmitIntegerSwitchJumpTable(caseLabels, fallThroughLabel, temp, keyTypeCode:=exprType.GetEnumUnderlyingTypeOrSelf.PrimitiveTypeCode)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
764Return type.GetNullableUnderlyingTypeOrSelf.GetEnumUnderlyingTypeOrSelf
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (5)
138Dim resultUnderlyingType As TypeSymbol = resultNotNullableType.GetEnumUnderlyingTypeOrSelf 177Dim operandUnderlyingType As TypeSymbol = operandNotNullableType.GetEnumUnderlyingTypeOrSelf 312Dim resultUnderlyingType As TypeSymbol = resultNotNullableType.GetEnumUnderlyingTypeOrSelf 397Dim underlyingType As TypeSymbol = notNullableType.GetEnumUnderlyingTypeOrSelf 432shiftedType = operandType.GetEnumUnderlyingTypeOrSelf()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (2)
136Dim underlyingTo As TypeSymbol = notNullableTo.GetEnumUnderlyingTypeOrSelf() 139Dim underlyingFrom As TypeSymbol = notNullableFrom.GetEnumUnderlyingTypeOrSelf()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (1)
25Dim origArgUnderlyingType As TypeSymbol = origArgNotNullableType.GetEnumUnderlyingTypeOrSelf
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (1)
765Debug.Assert(memberSymbol.Parameters(2).Type.GetEnumUnderlyingTypeOrSelf().SpecialType = SpecialType.System_Int32)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
802Dim underlyingTypeTo = rewrittenConversion.Type.GetEnumUnderlyingTypeOrSelf() 821Dim underlyingTypeFrom = operand.Type.GetEnumUnderlyingTypeOrSelf()
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (8)
108Not rewrittenStep.Type.GetEnumUnderlyingTypeOrSelf.IsSignedIntegralType AndAlso 109Not rewrittenStep.Type.GetEnumUnderlyingTypeOrSelf.IsUnsignedIntegralType Then 119If stepValue.Type.GetEnumUnderlyingTypeOrSelf.IsNumericType Then 127Dim literalUnderlyingType As TypeSymbol = stepValue.Type.GetEnumUnderlyingTypeOrSelf 327If rewrittenStep.Type.GetEnumUnderlyingTypeOrSelf.IsUnsignedIntegralType Then 633Dim bits As Integer = [step].Type.GetEnumUnderlyingTypeOrSelf.SpecialType.VBForToShiftBits() 682If stepValue.Type.GetEnumUnderlyingTypeOrSelf.IsUnsignedIntegralType Then 719If stepValue.Type.GetEnumUnderlyingTypeOrSelf.IsSignedIntegralType Then
Semantics\Conversions.vb (7)
526Dim sourceEnumUnderlying = sourceNullableUnderlying.GetEnumUnderlyingTypeOrSelf() 529Dim targetEnumUnderlying = targetNullableUnderlying.GetEnumUnderlyingTypeOrSelf() 741Dim sourceType = sourceExpressionType.GetEnumUnderlyingTypeOrSelf() 742Dim targetType = destination.GetEnumUnderlyingTypeOrSelf() 1673Dim underlyingSourceType = sourceType.GetEnumUnderlyingTypeOrSelf() 1674Dim underlyingDestination = destination.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf() 3334Select Case type.GetEnumUnderlyingTypeOrSelf().SpecialType
Semantics\Operators.vb (8)
518Dim enumUnderlying = nullableUnderlying.GetEnumUnderlyingTypeOrSelf() 723Dim underlyingResultType = resultType.GetEnumUnderlyingTypeOrSelf() 879Dim leftEnumUnderlying = leftNullableUnderlying.GetEnumUnderlyingTypeOrSelf() 881Dim rightEnumUnderlying = rightNullableUnderlying.GetEnumUnderlyingTypeOrSelf() 987Dim leftEnumUnderlying = leftType.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf() 988Dim rightEnumUnderlying = rightType.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf() 1062Dim leftUnderlying = leftType.GetEnumUnderlyingTypeOrSelf() 1063Dim resultUnderlying = resultType.GetEnumUnderlyingTypeOrSelf()
Symbols\Attributes\SourceAttributeData.vb (1)
150Dim specType = parameterType.GetEnumUnderlyingTypeOrSelf.SpecialType
Symbols\Metadata\PE\PEFieldSymbol.vb (2)
231Dim selfOrUnderlyingType = Me.Type.GetEnumUnderlyingTypeOrSelf 237If Me.Type.GetEnumUnderlyingTypeOrSelf.IsNumericType Then
Symbols\MethodSignatureComparer.vb (2)
697Dim descriminator = ConstantValue.GetDiscriminator(param1.Type.GetEnumUnderlyingTypeOrSelf.SpecialType) 704Dim descriminator = ConstantValue.GetDiscriminator(param2.Type.GetEnumUnderlyingTypeOrSelf.SpecialType)
Symbols\Source\SourceMemberFieldSymbol.vb (1)
262constantType = constantType.GetEnumUnderlyingTypeOrSelf
Symbols\TypeSymbolExtensions.vb (5)
427this = this.GetEnumUnderlyingTypeOrSelf() 502Dim underlyingType As TypeSymbol = this.GetNullableUnderlyingTypeOrSelf().GetEnumUnderlyingTypeOrSelf() 919Return type.GetEnumUnderlyingTypeOrSelf.SpecialType.IsValidTypeForAttributeArgument() OrElse 928type = type.GetEnumUnderlyingTypeOrSelf() 935Return type IsNot Nothing AndAlso (type.GetEnumUnderlyingTypeOrSelf().IsIntrinsicType())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Semantics\BinaryOperators.vb (2)
1088Dim leftSpecial As SpecialType = leftType.GetEnumUnderlyingTypeOrSelf().SpecialType 1089Dim rightSpecial As SpecialType = rightType.GetEnumUnderlyingTypeOrSelf().SpecialType
Semantics\Conversions.vb (4)
389expectedConv = ClassifyConversion(type1.GetEnumUnderlyingTypeOrSelf(), type2) 402expectedConv = ClassifyConversion(type1, type2.GetEnumUnderlyingTypeOrSelf()) 1343type = type.GetEnumUnderlyingTypeOrSelf() 1365type = type.GetEnumUnderlyingTypeOrSelf()
Semantics\UnaryOperators.vb (1)
722Dim special As SpecialType = type.GetEnumUnderlyingTypeOrSelf().SpecialType