37 references to GetNullableUnderlyingType
Microsoft.CodeAnalysis.VisualBasic (37)
Binding\Binder_ConditionalAccess.vb (1)
55placeholderType = type.GetNullableUnderlyingType()
Binding\Binder_Conversions.vb (1)
1646targetType = destination.GetNullableUnderlyingType()
Binding\Binder_Expressions.vb (1)
2027Dim underlyingType = boundFirstArg.Type.GetNullableUnderlyingType
Binding\Binder_Operators.vb (2)
913If leftIsNullable AndAlso leftType.GetNullableUnderlyingType().SpecialType = ofSpecialType Then 915ElseIf rightIsNullable AndAlso rightType.GetNullableUnderlyingType().SpecialType = ofSpecialType Then
Binding\Binder_Statements.vb (1)
3329targetType = targetType.GetNullableUnderlyingType.GetEnumUnderlyingTypeOrSelf
Binding\Binder_Utils.vb (2)
1461If IsSameTypeIgnoringAll(conversionType.GetNullableUnderlyingType, operandType) Then 1467Dim conversionToUnderlying As BoundExpression = ApplyConversion(operand.Syntax, conversionType.GetNullableUnderlyingType(), operand, isExplicit:=True, diagnostics:=BindingDiagnosticBag.Discarded)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
553Debug.Assert(conversion.Type.IsNullableType AndAlso conversion.Type.GetNullableUnderlyingType.SpecialType = SpecialType.System_Int32)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (2)
47(testExpressionType.IsNullableType AndAlso resultType.IsSameTypeIgnoringAll(testExpressionType.GetNullableUnderlyingType)) Then 127Dim underlyingType As TypeSymbol = nullableType.GetNullableUnderlyingType
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
342Dim underlyingType As TypeSymbol = nullableType.GetNullableUnderlyingType
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (5)
1002node.Type.GetNullableUnderlyingType()), 1038Dim result = New BoundLiteral(node.Syntax, ConstantValue.False, node.Type.GetNullableUnderlyingType()) 1051Return New BoundNullableIsTrueOperator(operand.Syntax, operand, operand.Type.GetNullableUnderlyingType()) 1068Dim booleanType = nullableOfBoolean.GetNullableUnderlyingType 1507originalOperator.Type.GetNullableUnderlyingType)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
235rewrittenRight.Type.IsSameTypeIgnoringAll(rewrittenLeft.Type.GetNullableUnderlyingType()) _
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
423Dim innerTargetType = resultType.GetNullableUnderlyingType 436resultType.GetNullableUnderlyingType)),
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (7)
14Debug.Assert(nullableType.GetNullableUnderlyingType.IsSameTypeIgnoringAll(expr.Type)) 187New BoundLiteral(expr.Syntax, ConstantValue.False, expr.Type.GetNullableUnderlyingType())) 206Return If(isOptional, Nothing, New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True)) 231conversion.Type.GetNullableUnderlyingType().Equals(conversion.Operand.Type, TypeCompareKind.AllIgnoreOptionsForVB) 255Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True) 320Dim booleanType = nullableOfBoolean.GetNullableUnderlyingType 326Dim booleanType = nullableOfBoolean.GetNullableUnderlyingType
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (1)
323originalOperator.Type.GetNullableUnderlyingType))
Semantics\CompileTimeCalculations.vb (1)
686(targetType.IsNullableType() AndAlso targetType.GetNullableUnderlyingType().IsIntrinsicType()) Then
Semantics\Conversions.vb (3)
1250destination = destination.GetNullableUnderlyingType() 3480srcUnderlying = source.GetNullableUnderlyingType() 3488dstUnderlying = destination.GetNullableUnderlyingType()
Semantics\Operators.vb (2)
1993Dim sourceUnderlying As TypeSymbol = source.GetNullableUnderlyingType() 1994Dim destinationUnderlying As TypeSymbol = destination.GetNullableUnderlyingType()
Semantics\TypeInference\TypeArgumentInference.vb (1)
1547parameterTypeAsNamedType.GetNullableUnderlyingType(),
Symbols\TypeSymbolExtensions.vb (2)
20Return this.IsNullableType() AndAlso this.GetNullableUnderlyingType().IsBooleanType() 34Return type.GetNullableUnderlyingType()