3 overrides of IsValueType
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\ArrayTypeSymbol.vb (1)
189
Public Overrides ReadOnly Property
IsValueType
As Boolean
Symbols\NamedTypeSymbol.vb (1)
456
Public Overrides ReadOnly Property
IsValueType
As Boolean
Symbols\TypeParameterSymbol.vb (1)
268
Public Overrides ReadOnly Property
IsValueType
As Boolean
102 references to IsValueType
Microsoft.CodeAnalysis.VisualBasic (102)
Analysis\FlowAnalysis\AbstractFlowPass.vb (1)
330
If Not type.
IsValueType
Then
Analysis\FlowAnalysis\DataFlowPass.vb (3)
1205
ElseIf localOrFieldType.
IsValueType
Then
1230
If EnableBreakingFlowAnalysisFeatures OrElse Not type.
IsValueType
OrElse type.IsIntrinsicOrEnumType OrElse Not IsEmptyStructType(type) OrElse
1284
Debug.Assert(type.
IsValueType
)
Binding\Binder_ConditionalAccess.vb (1)
53
If type.
IsValueType
Then
Binding\Binder_Conversions.vb (10)
121
If sourceType.
IsValueType
AndAlso sourceType.IsRestrictedType() AndAlso
139
ElseIf targetType.
IsValueType
Then
238
If targetType.
IsValueType
() Then
248
ElseIf sourceType.
IsValueType
AndAlso sourceType.IsRestrictedType() AndAlso
508
If sourceType.
IsValueType
AndAlso sourceType.IsRestrictedType() AndAlso
841
If sourceArg.
IsValueType
OrElse destinationArg.
IsValueType
Then
855
If sourceArg.
IsValueType
OrElse destinationArg.
IsValueType
Then
1806
ElseIf sourceType.IsInterfaceType() AndAlso targetType.
IsValueType
() AndAlso IsIEnumerableOfXElement(sourceType, CompoundUseSiteInfo(Of AssemblySymbol).Discarded) Then
Binding\Binder_Delegates.vb (1)
1012
targetMethod.ReceiverType.
IsValueType
)) Then
Binding\Binder_Expressions.vb (5)
970
If resultType.
IsValueType
AndAlso Not resultType.IsRestrictedType Then
1764
Not receiver.Type.
IsValueType
) ' If this logic changes, logic in UseTwiceRewriter.UseTwicePropertyAccess might need to change too.
1821
base.Type.
IsValueType
Then
1860
receiverType.
IsValueType
AndAlso
2122
If Not boundFirstArg.Type.
IsValueType
Then
Binding\Binder_ObjectInitializer.vb (1)
660
Dim createTemporary = asNewVariablePlaceholderOpt Is Nothing OrElse Not initializedObjectType.
IsValueType
Binding\Binder_Operators.vb (1)
124
ElseIf targetArgumentType.IsTypeParameter() AndAlso Not targetArgumentType.
IsValueType
Then
Binding\Binder_Statements.vb (6)
1637
If Not valueType.
IsValueType
Then
3497
If Not (enumeratorType.
IsValueType
) Then
4617
If Not resourceType.
IsValueType
Then
4644
If type.
IsValueType
Then
4656
If constraintType.
IsValueType
Then
4694
Debug.Assert(structureType.
IsValueType
)
Binding\Binder_Utils.vb (1)
530
ElseIf Not baseType.
IsValueType
Then
Binding\Binder_WithBlock.vb (2)
286
Debug.Assert(type.
IsValueType
)
294
Debug.Assert(type.
IsValueType
)
BoundTree\BoundExpressionExtensions.vb (1)
47
If node.Type.IsTypeParameter() OrElse Not node.Type.
IsValueType
Then
CodeGen\EmitAddress.vb (2)
74
Debug.Assert(Not expression.Type.
IsValueType
OrElse expression.Type.IsNullableType())
91
Debug.Assert(expression.Type.
IsValueType
, "only valuetypes may need a ref to Me/MyClass")
CodeGen\EmitConversion.vb (9)
159
Debug.Assert(typeTo.
IsValueType
OrElse typeTo.IsTypeParameter)
201
typeFrom.IsReferenceType AndAlso typeTo.
IsValueType
)
291
Not typeFrom.
IsValueType
AndAlso
313
If conversion.Type.
IsValueType
Then
348
Debug.Assert(typeTo.
IsValueType
)
357
If typeFrom.
IsValueType
Then
367
ElseIf typeFrom.
IsValueType
Then
424
Debug.Assert(typeTo.
IsValueType
)
507
Debug.Assert(typeFrom.
IsValueType
)
CodeGen\EmitExpression.vb (10)
215
Debug.Assert(Not expression.Type.
IsValueType
)
226
Debug.Assert(Not expression.Type.
IsValueType
)
304
Debug.Assert(Not receiverType.
IsValueType
)
315
Not receiverType.
IsValueType
AndAlso
425
Debug.Assert(Not expression.Type.
IsValueType
)
522
If thisType.
IsValueType
Then
1216
If callKind = CallKind.ConstrainedCallVirt AndAlso tempOpt Is Nothing AndAlso Not receiverType.
IsValueType
AndAlso
1269
Return Not receiverType.
IsValueType
1468
Debug.Assert(Not expr.Type.
IsValueType
)
2100
Debug.Assert(thisRef.Type.
IsValueType
)
CodeGen\EmitStatement.vb (1)
802
If Not conditionType.
IsValueType
AndAlso Not IsVerifierReference(conditionType) Then
CodeGen\Optimizer\StackScheduler.Analyzer.vb (1)
766
If receiver.Type.
IsValueType
AndAlso
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
680
Debug.Assert(Not nullCheckTarget.Type.
IsValueType
)
719
Debug.Assert(Not nullCheckTarget.Type.
IsValueType
)
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (1)
23
If initializer.Type.
IsValueType
AndAlso node.ConstructorOpt IsNot Nothing AndAlso node.Arguments.Length > 0 Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
101
ElseIf typeTo.IsInterfaceType AndAlso typeFrom.
IsValueType
Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
790
Debug.Assert(type.
IsValueType
)
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.vb (2)
100
Not receiverType.
IsValueType
AndAlso
129
If needWhenNotNullPart AndAlso Not accessResultType.IsNullableType() AndAlso accessResultType.
IsValueType
Then
Lowering\LocalRewriter\LocalRewriter_ConditionalExpressions.vb (2)
183
Debug.Assert(testExpr.IsNothingLiteral OrElse Not testExpr.Type.
IsValueType
)
201
Debug.Assert(Not testExpr.Type.
IsValueType
)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (2)
728
Debug.Assert(underlyingTypeTo.
IsValueType
)
780
Debug.Assert(underlyingTypeTo.
IsValueType
)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
736
(localType.
IsValueType
OrElse localType.IsTypeParameter) Then
753
If localType.
IsValueType
Then
Lowering\LocalRewriter\LocalRewriter_With.vb (1)
155
Debug.Assert(currentType.
IsValueType
)
Lowering\UseTwiceRewriter.vb (2)
92
ElseIf Not receiverOpt.IsLValue AndAlso Not receiverOpt.Type.IsReferenceType AndAlso Not receiverOpt.Type.
IsValueType
Then
318
ElseIf Not receiverOpt.IsLValue AndAlso Not receiverOpt.Type.IsReferenceType AndAlso Not receiverOpt.Type.
IsValueType
Then
Lowering\WithExpressionRewriter.vb (1)
317
Debug.Assert(type.
IsValueType
OrElse type.IsTypeParameter)
Semantics\Conversions.vb (9)
1896
If destinationElement.
IsValueType
Then
1899
ElseIf sourceElement.
IsValueType
Then
2781
If sourceArg.
IsValueType
OrElse destinationArg.
IsValueType
Then
3103
Dim srcElemIsValueType As Boolean = srcElem.
IsValueType
3104
Dim dstElemIsValueType As Boolean = dstElem.
IsValueType
3357
If constraint IsNot Nothing AndAlso constraint.
IsValueType
Then
3482
If srcUnderlying.Kind = SymbolKind.ErrorType OrElse Not srcUnderlying.
IsValueType
OrElse srcUnderlying.IsNullableType() Then
3490
If dstUnderlying.Kind = SymbolKind.ErrorType OrElse Not dstUnderlying.
IsValueType
OrElse dstUnderlying.IsNullableType() Then
Semantics\Operators.vb (3)
3203
Dim canLift1 As Boolean = Not isNullable1 AndAlso type1.
IsValueType
() AndAlso Not type1.IsRestrictedType()
3214
canLift2 = Not isNullable2 AndAlso type2.
IsValueType
() AndAlso Not type2.IsRestrictedType()
3266
Return Not type.IsNullableType AndAlso type.
IsValueType
() AndAlso Not type.IsRestrictedType()
Symbols\ConstraintsHelper.vb (2)
943
If DirectCast(typeArgument, TypeParameterSymbol).HasConstructorConstraint OrElse typeArgument.
IsValueType
Then
1017
If Not typeArgument.
IsValueType
Then
Symbols\Source\MeParameterSymbol.vb (1)
104
Return Type.
IsValueType
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
903
If namedType.TypeArgumentsNoUseSiteDiagnostics(0).
IsValueType
Then
Symbols\TypeParameterSymbol.vb (1)
293
If (constraint.
IsValueType
) Then
Symbols\TypeSymbol.vb (4)
236
''' that <see cref="IsReferenceType"/> and <see cref="
IsValueType
"/> both return true. However, for an unconstrained
237
''' type parameter, <see cref="IsReferenceType"/> and <see cref="
IsValueType
"/> will both return false.
243
''' that <see cref="IsReferenceType"/> and <see cref="
IsValueType
"/> both return true. However, for an unconstrained
244
''' type parameter, <see cref="IsReferenceType"/> and <see cref="
IsValueType
"/> will both return false.
Symbols\TypeSymbolExtensions.vb (2)
1124
If(type.
IsValueType
, "t_struct", "t_ref"))))
1142
Return type.
IsValueType
Utilities\VarianceAmbiguity.vb (6)
132
ElseIf (typeArgument1.
IsValueType
OrElse typeArgument2.
IsValueType
OrElse (bothAreClasses AndAlso Not oneDerivesFromOther)) AndAlso
140
Not typeArgument1.
IsValueType
AndAlso
141
Not typeArgument2.
IsValueType
Then
143
ElseIf (typeArgument1.
IsValueType
OrElse typeArgument2.
IsValueType
) AndAlso