77 references to System_ValueType
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
155if (baseType != null && baseType.SpecialType != SpecialType.System_Object && baseType.SpecialType != SpecialType.System_ValueType)
Microsoft.CodeAnalysis (1)
Emit\CommonPEModuleBuilder.cs (1)
1086this.GetSpecialType(SpecialType.System_ValueType, syntaxNodeOpt, diagnostics),
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
272case SpecialType.System_Array or SpecialType.System_ValueType:
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Constraints.cs (2)
269GetSpecialType(SpecialType.System_ValueType, diagnostics, typeSyntax); 575case SpecialType.System_ValueType:
Binder\Binder_Patterns.cs (1)
562strippedInputType.SpecialType is not SpecialType.System_Object and not SpecialType.System_ValueType)
Binder\Semantics\Conversions\ConversionsBase.cs (1)
3834if (specialTypeSource == SpecialType.System_Object || specialTypeSource == SpecialType.System_ValueType)
Binder\Semantics\Operators\OperatorFacts.cs (1)
55case SpecialType.System_ValueType:
Emitter\Model\PEModuleBuilder.cs (1)
1084if ((object)declaredBase != null && declaredBase.SpecialType == SpecialType.System_ValueType)
Emitter\Model\TypeParameterSymbolAdapter.cs (3)
243SpecialType.System_ValueType, 264case SpecialType.System_ValueType: 281var typeRef = moduleBeingBuilt.GetSpecialType(SpecialType.System_ValueType,
Symbols\ConstraintsHelper.cs (3)
114case SpecialType.System_ValueType: 143NamedTypeSymbol effectiveBaseClass = corLibrary.GetSpecialType(typeParameter.HasValueTypeConstraint ? SpecialType.System_ValueType : SpecialType.System_Object); 258constraintEffectiveBase = corLibrary.GetSpecialType(SpecialType.System_ValueType);
Symbols\MemberSignatureComparer.cs (1)
739if ((constraintType.SpecialType == SpecialType.System_ValueType) &&
Symbols\Metadata\PE\PENamedTypeSymbol.cs (2)
1789case SpecialType.System_ValueType: 2143case SpecialType.System_ValueType:
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
273else if (typeSymbol.SpecialType == SpecialType.System_ValueType) 291if (typeSymbol.SpecialType == SpecialType.System_ValueType && ((_flags & GenericParameterAttributes.NotNullableValueTypeConstraint) != 0))
Symbols\Source\SourceFixedFieldSymbol.cs (1)
237=> ContainingAssembly.GetSpecialType(SpecialType.System_ValueType);
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (3)
477if (this.SpecialType == SpecialType.System_Enum && baseSpecialType == SpecialType.System_ValueType || 651case SpecialType.System_ValueType: 739declaredBase = compilation.GetSpecialType(SpecialType.System_ValueType);
Symbols\Synthesized\SynthesizedContainer.cs (1)
162internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : SpecialType.System_Object);
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
123internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_ValueType);
Symbols\TypeParameterSymbol.cs (1)
422case SpecialType.System_ValueType:
Utilities\TypeSymbolExtensions.cs (1)
283return compilation.Assembly.GetSpecialType(SpecialType.System_ValueType);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
393if (methodReference.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
393if (methodReference.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\RecordStructTests.cs (2)
395Assert.Equal(SpecialType.System_ValueType, point.BaseTypeNoUseSiteDiagnostics.SpecialType); 485Assert.Equal(SpecialType.System_ValueType, point.BaseTypeNoUseSiteDiagnostics.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Symbols\GenericConstraintTests.cs (1)
6600Assert.Equal(SpecialType.System_ValueType, typeSymbol.SpecialType);
Symbols\Retargeting\RetargetingTests.cs (4)
492Assert.Equal(SpecialType.System_ValueType, sourceType.BaseType().SpecialType); 497Assert.Equal(SpecialType.System_ValueType, retargetingType.BaseType().SpecialType); 526Assert.Equal(SpecialType.System_ValueType, sourceType.BaseType().SpecialType); 533Assert.Equal(SpecialType.System_ValueType, retargetingType.BaseType().SpecialType);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
824symbol.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
Microsoft.CodeAnalysis.Features (2)
GenerateType\AbstractGenerateTypeService.State.cs (1)
255SpecialType.System_ValueType or
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
300.WhereAsArray(symbol => !symbol.IsErrorType() && symbol.SpecialType is not (SpecialType.System_Object or SpecialType.System_ValueType or SpecialType.System_Enum));
Microsoft.CodeAnalysis.VisualBasic (27)
Binding\Binder_Conversions.vb (4)
122(targetType.IsObjectType() OrElse targetType.SpecialType = SpecialType.System_ValueType) Then 249(targetType.IsObjectType() OrElse targetType.SpecialType = SpecialType.System_ValueType) Then 509(targetType.IsObjectType() OrElse targetType.SpecialType = SpecialType.System_ValueType) Then 1775(targetElement.IsObjectType() OrElse targetElement.SpecialType = SpecialType.System_ValueType) AndAlso
Binding\Binder_Lookup.vb (1)
2163Return typeParameter.ContainingAssembly.GetSpecialType(If(typeParameter.HasValueTypeConstraint, SpecialType.System_ValueType, SpecialType.System_Object))
Binding\Binder_Statements.vb (1)
4355Dim valueTypeSymbol = interfaceType.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType)
CodeGen\EmitConversion.vb (4)
204typeFrom.SpecialType = SpecialType.System_ValueType OrElse 380typeTo.SpecialType = SpecialType.System_ValueType OrElse 427typeFrom.SpecialType = SpecialType.System_ValueType OrElse 510typeTo.SpecialType = SpecialType.System_ValueType OrElse
Emit\SymbolTranslator.vb (1)
217If declaredBase IsNot Nothing AndAlso declaredBase.SpecialType = SpecialType.System_ValueType Then
Emit\TypeParameterSymbolAdapter.vb (1)
205If t.SpecialType = SpecialType.System_ValueType Then
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
313EnsureSpecialType(SpecialType.System_ValueType, bag)
Lowering\AsyncRewriter\AsyncStateMachine.vb (1)
22asyncMethod.ContainingAssembly.GetSpecialType(If(typeKind = TypeKind.Struct, SpecialType.System_ValueType, SpecialType.System_Object)),
Semantics\Conversions.vb (5)
2067Dim valueType = typeParameter.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType) 3751If destination.SpecialType = SpecialType.System_ValueType Then 3757Dim valueType = typeParameter.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType) 3911If source.SpecialType = SpecialType.System_ValueType Then 3917Dim valueType = typeParameter.ContainingAssembly.GetSpecialType(SpecialType.System_ValueType)
Symbols\ConstraintsHelper.vb (2)
176SpecialType.System_ValueType, 1101Case SpecialType.System_Object, SpecialType.System_ValueType
Symbols\Metadata\PE\PENamedTypeSymbol.vb (2)
1020ElseIf (baseCorTypeId = SpecialType.System_ValueType AndAlso 1329SpecialType.System_ValueType
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
253ElseIf typeSymbol.SpecialType = SpecialType.System_ValueType Then
Symbols\Source\SourceNamedTypeSymbol.vb (2)
1258SpecialType.System_ValueType 1391declaredOrDefaultBase = GetSpecialType(SpecialType.System_ValueType)
Symbols\TypeParameterSymbol.vb (1)
256SpecialType.System_ValueType,
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\CompilationEmitTests.vb (1)
3819Assert.Equal(SpecialType.System_ValueType, typeSymbol.SpecialType)
Emit\NoPiaEmbedTypes.vb (1)
1024Assert.Equal(SpecialType.System_ValueType, test2.BaseType.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Semantics\Conversions.vb (1)
1924Dim valueType = c1.GetSpecialType(System_ValueType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
SymbolsTests\Retargeting\RetargetingTests.vb (4)
502Assert.Equal(SpecialType.System_ValueType, sourceType.BaseType.SpecialType) 507Assert.Equal(SpecialType.System_ValueType, retargetingType.BaseType.SpecialType) 542Assert.Equal(SpecialType.System_ValueType, sourceType.BaseType.SpecialType) 548Assert.Equal(SpecialType.System_ValueType, retargetingType.BaseType.SpecialType)
Microsoft.CodeAnalysis.Workspaces (2)
FindSymbols\FindReferences\DependentTypeFinder.cs (1)
221case SpecialType.System_ValueType:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
272case SpecialType.System_Array or SpecialType.System_ValueType:
Microsoft.VisualStudio.LanguageServices.CSharp (1)
ObjectBrowser\DescriptionBuilder.cs (1)
118not SpecialType.System_ValueType)