69 references to GetNullableUnderlyingTypeOrSelf
Microsoft.CodeAnalysis.VisualBasic (69)
Binding\Binder_Conversions.vb (2)
1057
Dim sourceElementTypes = sourceType.
GetNullableUnderlyingTypeOrSelf
().GetElementTypesOfTupleOrCompatible()
1058
Dim targetElementTypes = targetType.
GetNullableUnderlyingTypeOrSelf
().GetElementTypesOfTupleOrCompatible()
Binding\Binder_Expressions.vb (3)
2136
placeholder = New BoundRValuePlaceholder(testExpression.Syntax, testExpression.Type.
GetNullableUnderlyingTypeOrSelf
())
3853
type = type.
GetNullableUnderlyingTypeOrSelf
()
3875
type = type.
GetNullableUnderlyingTypeOrSelf
()
Binding\Binder_Invocation.vb (1)
3214
Dim paramNullableUnderlyingTypeOrSelf As TypeSymbol = param.Type.
GetNullableUnderlyingTypeOrSelf
()
Binding\Binder_Operators.vb (13)
305
Debug.Assert(leftType.
GetNullableUnderlyingTypeOrSelf
().IsEnumType() AndAlso
306
leftType.
GetNullableUnderlyingTypeOrSelf
().IsSameTypeIgnoringAll(rightType.
GetNullableUnderlyingTypeOrSelf
()))
369
If operandType.
GetNullableUnderlyingTypeOrSelf
().IsErrorType() OrElse
370
operatorResultType.
GetNullableUnderlyingTypeOrSelf
().IsErrorType() OrElse
371
(forceToBooleanType IsNot Nothing AndAlso forceToBooleanType.
GetNullableUnderlyingTypeOrSelf
().IsErrorType()) Then
751
test = ApplyNullableIsTrueOperator(testOp, checkCandidate.ReturnType.
GetNullableUnderlyingTypeOrSelf
())
817
Dim leftNullableUnderlying = leftType.
GetNullableUnderlyingTypeOrSelf
()
819
Dim rightNullableUnderlying = rightType.
GetNullableUnderlyingTypeOrSelf
()
1044
If rightType.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf().IsIntrinsicType() OrElse
1084
If leftType.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf().IsIntrinsicType() OrElse
1159
Debug.Assert(operandType.
GetNullableUnderlyingTypeOrSelf
().IsEnumType())
1163
If operandType.
GetNullableUnderlyingTypeOrSelf
().SpecialType = intrinsicOperatorType Then
Binding\Binder_Statements.vb (2)
3275
left.Type.
GetNullableUnderlyingTypeOrSelf
(),
3280
left.Type.
GetNullableUnderlyingTypeOrSelf
(),
BoundTree\BoundBinaryConditionalExpression.vb (2)
37
Debug.Assert(TestExpressionPlaceholder.Type.IsSameTypeIgnoringAll(TestExpression.Type.
GetNullableUnderlyingTypeOrSelf
()))
40
If Not Type.IsSameTypeIgnoringAll(TestExpression.Type.
GetNullableUnderlyingTypeOrSelf
()) Then
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.vb (1)
764
Return type.
GetNullableUnderlyingTypeOrSelf
.GetEnumUnderlyingTypeOrSelf
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (9)
137
Dim resultNotNullableType As TypeSymbol = resultType.
GetNullableUnderlyingTypeOrSelf
176
Dim operandNotNullableType As TypeSymbol = operandType.
GetNullableUnderlyingTypeOrSelf
311
Dim resultNotNullableType As TypeSymbol = resultType.
GetNullableUnderlyingTypeOrSelf
418
Debug.Assert(Not resultType.
GetNullableUnderlyingTypeOrSelf
().IsEnumType)
419
Dim shiftMask As Integer = CodeGen.CodeGenerator.GetShiftSizeMask(resultType.
GetNullableUnderlyingTypeOrSelf
())
471
Dim isInt32 As Boolean = shiftedType.
GetNullableUnderlyingTypeOrSelf
.SpecialType = SpecialType.System_Int32
643
Debug.Assert(TypeSymbol.Equals(oldArg.Type.
GetNullableUnderlyingTypeOrSelf
(), parameterType, TypeCompareKind.ConsiderEverything))
688
Debug.Assert(resultType.
GetNullableUnderlyingTypeOrSelf
().
689
IsSameTypeIgnoringAll(methodReturnType.
GetNullableUnderlyingTypeOrSelf
))
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (2)
197
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\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (3)
146
testExpressionType.
GetNullableUnderlyingTypeOrSelf
)
149
Debug.Assert(node.TestExpressionPlaceholder Is Nothing OrElse TypeSymbol.Equals(node.TestExpressionPlaceholder.Type, testExpressionType.
GetNullableUnderlyingTypeOrSelf
, TypeCompareKind.ConsiderEverything))
158
testExpressionType.
GetNullableUnderlyingTypeOrSelf
),
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
530
Dim unwrappedResultType = resultType.
GetNullableUnderlyingTypeOrSelf
Semantics\Conversions.vb (5)
519
Dim sourceNullableUnderlying = source.
GetNullableUnderlyingTypeOrSelf
()
522
Dim targetNullableUnderlying = target.
GetNullableUnderlyingTypeOrSelf
()
1588
Dim targetDestinationType As TypeSymbol = destination.
GetNullableUnderlyingTypeOrSelf
()
1674
Dim underlyingDestination = destination.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf()
1677
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)
1400
If parameterType.
GetNullableUnderlyingTypeOrSelf
().TryGetElementTypesIfTupleOrCompatible(parameterElementTypes) AndAlso
1401
If(parameterType.IsNullableType(), argumentType.
GetNullableUnderlyingTypeOrSelf
(), argumentType).
Symbols\TypeSymbolExtensions.vb (2)
502
Dim underlyingType As TypeSymbol = this.
GetNullableUnderlyingTypeOrSelf
().GetEnumUnderlyingTypeOrSelf()
927
type = type.
GetNullableUnderlyingTypeOrSelf
()