50 references to GetNullableUnderlyingType
Microsoft.CodeAnalysis.VisualBasic (46)
Binding\Binder_ConditionalAccess.vb (1)
55placeholderType = type.GetNullableUnderlyingType()
Binding\Binder_Conversions.vb (1)
1631targetType = destination.GetNullableUnderlyingType()
Binding\Binder_Expressions.vb (1)
2002Dim underlyingType = boundFirstArg.Type.GetNullableUnderlyingType
Binding\Binder_Operators.vb (2)
883If leftIsNullable AndAlso leftType.GetNullableUnderlyingType().SpecialType = ofSpecialType Then 885ElseIf rightIsNullable AndAlso rightType.GetNullableUnderlyingType().SpecialType = ofSpecialType Then
Binding\Binder_Statements.vb (1)
3300targetType = 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)
BoundTree\BoundCall.vb (3)
100Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(Method.ReturnType)) 122type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(signatureType) Then 131type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(signatureType))
BoundTree\BoundUserDefinedBinaryOperator.vb (2)
48argument.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(parameter.Type)) 54underlyingCall.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType)))
BoundTree\BoundUserDefinedUnaryOperator.vb (2)
42argument.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(parameter.Type)) 47underlyingCall.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType)))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (1)
429Debug.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 124Dim underlyingType As TypeSymbol = nullableType.GetNullableUnderlyingType
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
342Dim underlyingType As TypeSymbol = nullableType.GetNullableUnderlyingType
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (5)
1007node.Type.GetNullableUnderlyingType()), 1043Dim result = New BoundLiteral(node.Syntax, ConstantValue.False, node.Type.GetNullableUnderlyingType()) 1056Return New BoundNullableIsTrueOperator(operand.Syntax, operand, operand.Type.GetNullableUnderlyingType()) 1073Dim booleanType = nullableOfBoolean.GetNullableUnderlyingType 1512originalOperator.Type.GetNullableUnderlyingType)
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (1)
242rewrittenRight.Type.IsSameTypeIgnoringAll(rewrittenLeft.Type.GetNullableUnderlyingType()) _
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (4)
423Dim innerTargetType = resultType.GetNullableUnderlyingType 436resultType.GetNullableUnderlyingType)), 602Dim innerTargetType = resultType.GetNullableUnderlyingType 615resultType.GetNullableUnderlyingType)),
Lowering\LocalRewriter\LocalRewriter_NullableHelpers.vb (7)
18Debug.Assert(nullableType.GetNullableUnderlyingType.IsSameTypeIgnoringAll(expr.Type)) 186New BoundLiteral(expr.Syntax, ConstantValue.False, expr.Type.GetNullableUnderlyingType())) 205Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True) 210conversion.Type.GetNullableUnderlyingType().Equals(conversion.Operand.Type, TypeCompareKind.AllIgnoreOptionsForVB) 234Return New BoundBadExpression(expr.Syntax, LookupResultKind.NotReferencable, ImmutableArray(Of Symbol).Empty, ImmutableArray.Create(expr), expr.Type.GetNullableUnderlyingType(), hasErrors:=True) 299Dim booleanType = nullableOfBoolean.GetNullableUnderlyingType 305Dim 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)
1246destination = destination.GetNullableUnderlyingType() 3475srcUnderlying = source.GetNullableUnderlyingType() 3483dstUnderlying = destination.GetNullableUnderlyingType()
Semantics\Operators.vb (2)
1993Dim sourceUnderlying As TypeSymbol = source.GetNullableUnderlyingType() 1994Dim destinationUnderlying As TypeSymbol = destination.GetNullableUnderlyingType()
Semantics\TypeInference\TypeArgumentInference.vb (1)
1552parameterTypeAsNamedType.GetNullableUnderlyingType(),
Symbols\TypeSymbolExtensions.vb (2)
20Return this.IsNullableType() AndAlso this.GetNullableUnderlyingType().IsBooleanType() 34Return type.GetNullableUnderlyingType()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Semantics\Conversions.vb (4)
2087Dim fromElement = If(fromIsNullable, from.GetNullableUnderlyingType(), Nothing) 2094Dim toElement = If(toIsNullable, [to].GetNullableUnderlyingType(), Nothing) 2125Dim toElement = If(toIsNullable, [to].GetNullableUnderlyingType(), Nothing) 2132Dim fromElement = If(fromIsNullable, from.GetNullableUnderlyingType(), Nothing)