67 references to GetNullableUnderlyingTypeOrSelf
Microsoft.CodeAnalysis.VisualBasic (67)
Binding\Binder_Conversions.vb (2)
1070
Dim sourceElementTypes = sourceType.
GetNullableUnderlyingTypeOrSelf
().GetElementTypesOfTupleOrCompatible()
1071
Dim targetElementTypes = targetType.
GetNullableUnderlyingTypeOrSelf
().GetElementTypesOfTupleOrCompatible()
Binding\Binder_Expressions.vb (3)
2161
placeholder = New BoundRValuePlaceholder(testExpression.Syntax, testExpression.Type.
GetNullableUnderlyingTypeOrSelf
())
3884
type = type.
GetNullableUnderlyingTypeOrSelf
()
3906
type = type.
GetNullableUnderlyingTypeOrSelf
()
Binding\Binder_Invocation.vb (1)
3208
Dim paramNullableUnderlyingTypeOrSelf As TypeSymbol = param.Type.
GetNullableUnderlyingTypeOrSelf
()
Binding\Binder_Operators.vb (13)
335
Debug.Assert(leftType.
GetNullableUnderlyingTypeOrSelf
().IsEnumType() AndAlso
336
leftType.
GetNullableUnderlyingTypeOrSelf
().IsSameTypeIgnoringAll(rightType.
GetNullableUnderlyingTypeOrSelf
()))
399
If operandType.
GetNullableUnderlyingTypeOrSelf
().IsErrorType() OrElse
400
operatorResultType.
GetNullableUnderlyingTypeOrSelf
().IsErrorType() OrElse
401
(forceToBooleanType IsNot Nothing AndAlso forceToBooleanType.
GetNullableUnderlyingTypeOrSelf
().IsErrorType()) Then
781
test = ApplyNullableIsTrueOperator(testOp, checkCandidate.ReturnType.
GetNullableUnderlyingTypeOrSelf
())
847
Dim leftNullableUnderlying = leftType.
GetNullableUnderlyingTypeOrSelf
()
849
Dim rightNullableUnderlying = rightType.
GetNullableUnderlyingTypeOrSelf
()
1074
If rightType.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf().IsIntrinsicType() OrElse
1114
If leftType.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf().IsIntrinsicType() OrElse
1189
Debug.Assert(operandType.
GetNullableUnderlyingTypeOrSelf
().IsEnumType())
1193
If operandType.
GetNullableUnderlyingTypeOrSelf
().SpecialType = intrinsicOperatorType Then
Binding\Binder_Statements.vb (2)
3304
left.Type.
GetNullableUnderlyingTypeOrSelf
(),
3309
left.Type.
GetNullableUnderlyingTypeOrSelf
(),
BoundTree\BoundBinaryOperator.vb (3)
43
Dim leftType = TryCast(Left.Type.
GetNullableUnderlyingTypeOrSelf
(), NamedTypeSymbol)
57
Right.Type.
GetNullableUnderlyingTypeOrSelf
(),
58
Type.
GetNullableUnderlyingTypeOrSelf
())
BoundTree\BoundUnaryOperator.vb (2)
36
Dim operandType = TryCast(Operand.Type.
GetNullableUnderlyingTypeOrSelf
(), NamedTypeSymbol)
46
Type.
GetNullableUnderlyingTypeOrSelf
())
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (9)
201
Dim resultNotNullableType As TypeSymbol = resultType.
GetNullableUnderlyingTypeOrSelf
240
Dim operandNotNullableType As TypeSymbol = operandType.
GetNullableUnderlyingTypeOrSelf
385
Dim resultNotNullableType As TypeSymbol = resultType.
GetNullableUnderlyingTypeOrSelf
542
Debug.Assert(Not resultType.
GetNullableUnderlyingTypeOrSelf
().IsEnumType)
543
Dim shiftMask As Integer = CodeGen.CodeGenerator.GetShiftSizeMask(resultType.
GetNullableUnderlyingTypeOrSelf
())
597
Dim isInt32 As Boolean = shiftedType.
GetNullableUnderlyingTypeOrSelf
.SpecialType = SpecialType.System_Int32
725
Debug.Assert(TypeSymbol.Equals(oldArg.Type.
GetNullableUnderlyingTypeOrSelf
(), parameterType, TypeCompareKind.ConsiderEverything))
770
Debug.Assert(resultType.
GetNullableUnderlyingTypeOrSelf
().
771
IsSameTypeIgnoringAll(methodReturnType.
GetNullableUnderlyingTypeOrSelf
))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (2)
200
Debug.Assert(TypeSymbol.Equals(expectedParameterType.
GetNullableUnderlyingTypeOrSelf
, realParameterType.
GetNullableUnderlyingTypeOrSelf
, TypeCompareKind.ConsiderEverything))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (3)
61
Dim notNullableTo As TypeSymbol = typeTo.
GetNullableUnderlyingTypeOrSelf
135
Dim notNullableTo As TypeSymbol = typeTo.
GetNullableUnderlyingTypeOrSelf
()
138
Dim notNullableFrom As TypeSymbol = typeFrom.
GetNullableUnderlyingTypeOrSelf
()
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (1)
24
Dim origArgNotNullableType As TypeSymbol = origArgType.
GetNullableUnderlyingTypeOrSelf
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
799
Return type.
GetNullableUnderlyingTypeOrSelf
.GetEnumUnderlyingTypeOrSelf
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (3)
141
testExpressionType.
GetNullableUnderlyingTypeOrSelf
)
144
Debug.Assert(node.TestExpressionPlaceholder Is Nothing OrElse TypeSymbol.Equals(node.TestExpressionPlaceholder.Type, testExpressionType.
GetNullableUnderlyingTypeOrSelf
, TypeCompareKind.ConsiderEverything))
153
testExpressionType.
GetNullableUnderlyingTypeOrSelf
),
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
530
Dim unwrappedResultType = resultType.
GetNullableUnderlyingTypeOrSelf
Semantics\Conversions.vb (5)
523
Dim sourceNullableUnderlying = source.
GetNullableUnderlyingTypeOrSelf
()
526
Dim targetNullableUnderlying = target.
GetNullableUnderlyingTypeOrSelf
()
1592
Dim targetDestinationType As TypeSymbol = destination.
GetNullableUnderlyingTypeOrSelf
()
1678
Dim underlyingDestination = destination.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf()
1681
Debug.Assert(sourceType.AllowsCompileTimeConversions() AndAlso destination.
GetNullableUnderlyingTypeOrSelf
().AllowsCompileTimeConversions())
Semantics\Operators.vb (12)
359
If method.Parameters(1).Type.
GetNullableUnderlyingTypeOrSelf
().SpecialType <> Microsoft.CodeAnalysis.SpecialType.System_Int32 Then
431
sourceType.
GetNullableUnderlyingTypeOrSelf
() Is targetType.
GetNullableUnderlyingTypeOrSelf
()) Then
473
Return TypeSymbol.Equals(typeFromSignature.
GetNullableUnderlyingTypeOrSelf
().GetTupleUnderlyingTypeOrSelf(), containingType.GetTupleUnderlyingTypeOrSelf(), TypeCompareKind.ConsiderEverything)
514
Dim nullableUnderlying = operandType.
GetNullableUnderlyingTypeOrSelf
()
873
Dim leftNullableUnderlying = leftType.
GetNullableUnderlyingTypeOrSelf
()
875
Dim rightNullableUnderlying = rightType.
GetNullableUnderlyingTypeOrSelf
()
897
leftType.
GetNullableUnderlyingTypeOrSelf
().IsDateTimeType() AndAlso
898
rightType.
GetNullableUnderlyingTypeOrSelf
().IsDateTimeType()) Then ' Let (Date - Date) use operator overloading.
987
Dim leftEnumUnderlying = leftType.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf()
988
Dim rightEnumUnderlying = rightType.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf()
2943
type = type.
GetNullableUnderlyingTypeOrSelf
()
Semantics\TypeInference\TypeArgumentInference.vb (2)
1395
If parameterType.
GetNullableUnderlyingTypeOrSelf
().TryGetElementTypesIfTupleOrCompatible(parameterElementTypes) AndAlso
1396
If(parameterType.IsNullableType(), argumentType.
GetNullableUnderlyingTypeOrSelf
(), argumentType).
Symbols\TypeSymbolExtensions.vb (2)
502
Dim underlyingType As TypeSymbol = this.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf()
927
type = type.
GetNullableUnderlyingTypeOrSelf
()