895 references to System_Object
Microsoft.CodeAnalysis (208)
Compilation\Expression.cs (1)
37case SpecialType.System_Object:
Emit\CommonPEModuleBuilder.cs (1)
1035this.GetSpecialType(SpecialType.System_Object, syntaxNodeOpt, diagnostics),
MetadataReader\MetadataDecoder.cs (2)
1341type = GetSpecialType(SpecialType.System_Object); 1434type = GetSpecialType(SpecialType.System_Object);
MetadataReader\MetadataTypeCodeExtensions.cs (3)
70return SpecialType.System_Object; 106case SpecialType.System_Object: 172case SpecialType.System_Object:
Operations\ControlFlowGraphBuilder.cs (2)
4192ITypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object); 7529? MakeInvalidOperation(operation.Syntax, type: _compilation.GetSpecialType(SpecialType.System_Object), ImmutableArray<IOperation>.Empty)
PEWriter\Types.cs (1)
18SystemObject = CodeAnalysis.SpecialType.System_Object,
SpecialMembers.cs (20)
71(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 79(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 80(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 88(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 89(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 90(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 98(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 140(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 740(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 747(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 826(byte)SpecialType.System_Object, // DeclaringTypeId 833(byte)SpecialType.System_Object, // DeclaringTypeId 837(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 841(byte)SpecialType.System_Object, // DeclaringTypeId 845(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 846(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 850(byte)SpecialType.System_Object, // DeclaringTypeId 857(byte)SpecialType.System_Object, // DeclaringTypeId 861(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 862(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object,
Symbols\ITypeSymbol.cs (1)
222return type?.SpecialType == SpecialType.System_Object;
Symbols\TypedConstant.cs (1)
175case SpecialType.System_Object:
WellKnownMembers.cs (176)
21(byte)SpecialType.System_Object, // DeclaringTypeId 364(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Field Signature 415(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 424(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 434(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 635(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 643(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 676(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 685(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 783(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1018(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1019(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1101(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1116(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1117(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1118(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1119(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1137(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1145(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1154(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1547(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1555(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1563(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1571(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1579(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1587(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1595(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1603(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1611(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1619(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1627(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1635(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1643(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1651(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1659(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1667(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1675(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1682(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1683(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1691(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1692(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1699(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1700(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1707(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1708(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1715(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1716(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1717(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1724(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1725(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1726(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1733(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1734(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1735(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1742(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1743(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1744(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1751(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1752(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1753(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1760(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1761(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1762(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1769(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1770(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1771(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1778(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1779(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1780(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1787(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1788(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1789(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1796(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1797(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1798(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1805(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1806(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1807(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1814(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1815(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1816(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1823(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1824(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1825(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1832(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1833(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1834(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1842(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1843(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1844(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1852(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1853(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1854(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1862(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1863(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1864(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1872(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1873(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1874(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1882(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1883(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1884(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1893(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1894(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1903(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1904(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1913(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1914(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1923(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1924(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1933(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1934(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1943(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1944(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1972(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1973(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1976(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1987(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1988(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1991(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2002(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2005(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2015(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2018(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2029(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2030(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2031(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2040(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2041(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2050(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2051(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2125(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2126(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2127(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2175(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2176(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2177(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2178(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2179(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2180(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2188(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2189(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2190(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2198(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2205(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2206(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2209(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2217(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2233(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2249(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2265(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2280(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2281(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2284(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2330(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2339(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2386(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2395(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2450(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2459(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2558(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2567(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2931(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3094(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Value 3212(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Value 3584(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3585(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Argument 3644(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3645(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Argument 3674(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3675(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Argument 3729(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 3738(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 3753(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 3791(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3869(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object,
Microsoft.CodeAnalysis.CodeStyle (16)
AbstractForEachCastDiagnosticAnalyzer.cs (1)
141=> collectionElementType.SpecialType != SpecialType.System_Object ||
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
241method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
AbstractSimplifyInterpolationHelpers.cs (1)
127return method.ContainingType.SpecialType == SpecialType.System_Object
AbstractSpeculationAnalyzer.cs (1)
707&& symbol.ContainingType.SpecialType == SpecialType.System_Object
AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
34var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
86var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object); 360if (typeSymbol?.SpecialType == SpecialType.System_Object)
HashCodeAnalyzer.cs (1)
38var objectType = compilation.GetSpecialType(SpecialType.System_Object);
IMethodSymbolExtensions.cs (1)
44method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
INamedTypeSymbolExtensions.cs (1)
615ContainingType.SpecialType: SpecialType.System_Object,
ISymbolExtensions.cs (2)
448.Select(p => (p.Type ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(p.NullableAnnotation)); 453types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
ITypeSymbolExtensions.cs (1)
376case SpecialType.System_Object:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
14SpecialType.System_Object => PredefinedType.Object,
PredefinedTypeExtensions.cs (1)
14PredefinedType.Object => SpecialType.System_Object,
SymbolEquivalenceComparer.cs (1)
180=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
SyntaxGeneratorExtensions.cs (1)
77_ => compilation.GetSpecialType(SpecialType.System_Object),
Microsoft.CodeAnalysis.CSharp (158)
Binder\Binder_Attributes.cs (2)
988if (type.SpecialType == SpecialType.System_Object || 990((ArrayTypeSymbol)type).ElementType.SpecialType == SpecialType.System_Object)
Binder\Binder_Constraints.cs (1)
533case SpecialType.System_Object:
Binder\Binder_Conversions.cs (1)
667destination.SpecialType == SpecialType.System_Object;
Binder\Binder_Expressions.cs (5)
3664this.Compilation.CreateArrayTypeSymbol(GetSpecialType(SpecialType.System_Object, diagnostics, node)), 4152containingType.SpecialType == SpecialType.System_Object || 4155if ((object)initializerType == null || containingType.SpecialType == SpecialType.System_Object) //e.g. when defining System.Object in source 4375if (baseType.SpecialType == SpecialType.System_Object) 4377if (resultMember is null || resultMember.ContainingType.SpecialType != SpecialType.System_Object)
Binder\Binder_InterpolatedString.cs (2)
528TypeSymbol objectType = GetSpecialType(SpecialType.System_Object, diagnostics, syntax); 685var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, unconvertedInterpolatedString.Syntax);
Binder\Binder_Invocation.cs (4)
196TypeSymbol objType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 1167Debug.Assert(parameterType.IsDynamic() || parameterType.SpecialType == SpecialType.System_Object); 1401if (parameterType.IsDynamic() || parameterType.SpecialType == SpecialType.System_Object) 1421if (InAttributeArgument && parameterType.SpecialType == SpecialType.System_Object)
Binder\Binder_Lookup.cs (3)
1161this.LookupMembersInClass(tmp, this.Compilation.GetSpecialType(SpecialType.System_Object), name, arity, basesBeingResolved, options, originalBinder, type, diagnose, ref useSiteInfo); 1254hiddenContainer.SpecialType != SpecialType.System_Object) 2029this.AddMemberLookupSymbolsInfoInClass(result, Compilation.GetSpecialType(SpecialType.System_Object), options, originalBinder, accessThroughType);
Binder\Binder_Operators.cs (6)
3273GetSpecialType(SpecialType.System_Object, diagnostics, node).Name // a pretty way of getting the string "Object" 3282operandType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3722type: GetSpecialType(SpecialType.System_Object, diagnostics, node)); 3740operandType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3747targetType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3972var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, node);
Binder\Binder_Patterns.cs (6)
448bool isExplicitNotNullTest = boundType.Type.SpecialType == SpecialType.System_Object; 815expressionType = conversions.CorLibrary.GetSpecialType(SpecialType.System_Object); 1105var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 1132var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 1251if (declType != (object)Compilation.GetSpecialType(SpecialType.System_Object) && 1610bool isExplicitNotNullTest = patternType.Type.SpecialType == SpecialType.System_Object;
Binder\Binder_Statements.cs (1)
3727if (baseType.SpecialType == SpecialType.System_Object)
Binder\DecisionDagBuilder.cs (2)
323var objectType = this._compilation.GetSpecialType(SpecialType.System_Object); 461if (input.Type.IsDynamic() ? type.SpecialType == SpecialType.System_Object : conversion.IsImplicit)
Binder\ForEachLoopBinder.cs (2)
988builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax)); 1083GetSpecialType(SpecialType.System_Object, diagnostics, _syntax));
Binder\InContainerBinder.cs (1)
94return TypeWithAnnotations.Create(this.Compilation.GetSpecialType(SpecialType.System_Object));
Binder\InMethodBinder.cs (1)
155var objectType = compilation.GetSpecialType(SpecialType.System_Object);
Binder\Semantics\Conversions\Conversions.cs (1)
320TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Object), customModifiers: parameter.TypeWithAnnotations.CustomModifiers), parameter.RefCustomModifiers, parameter.IsParams, parameter.RefKind);
Binder\Semantics\Conversions\ConversionsBase.cs (3)
2496if (destination.SpecialType == SpecialType.System_Object || destination.Kind == SymbolKind.DynamicType) 3235if (source.SpecialType == SpecialType.System_Object) 3595if (specialTypeSource == SpecialType.System_Object || specialTypeSource == SpecialType.System_ValueType)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
762var @object = Compilation.GetSpecialType(SpecialType.System_Object);
Binder\Semantics\Operators\OperatorFacts.cs (1)
48case SpecialType.System_Object:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (5)
1306if (type.SpecialType == SpecialType.System_Object && currentType.SpecialType != SpecialType.System_Object) 1368if (type.IsClassType() && type.GetSpecialTypeSafe() != SpecialType.System_Object) 2317t1.IsDynamic() && t2.SpecialType == SpecialType.System_Object || 2318t2.IsDynamic() && t1.SpecialType == SpecialType.System_Object);
CodeGen\EmitConversion.cs (1)
384if (parameters[0].Type.SpecialType != SpecialType.System_Object) continue;
CodeGen\EmitStatement.cs (1)
1025_module.GetSpecialType(SpecialType.System_Object, catchBlock.Syntax, _diagnostics.DiagnosticBag);
Compilation\BuiltInOperators.cs (3)
763return _compilation.GetSpecialType(SpecialType.System_Object); 798return _compilation.GetSpecialType(SpecialType.System_Object); 825case BinaryOperatorKind.Object: return _compilation.GetSpecialType(SpecialType.System_Object);
Compilation\CSharpCompilation.cs (2)
3977(SpecialType.System_Object, SpecialType.System_Object) or
Compilation\CSharpSemanticModel.cs (1)
3852var objectType = binaryOperator.Type.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
38Debug.Assert(ContainingType.BaseTypeNoUseSiteDiagnostics.SpecialType == SpecialType.System_Object);
Compiler\ClsComplianceChecker.cs (1)
525System.Diagnostics.Debug.Assert((object)baseType != null || symbol.SpecialType == SpecialType.System_Object, "Only object has no base.");
Compiler\MethodBodySynthesizer.cs (3)
37Debug.Assert((object)constructor.ContainingType.BaseTypeNoUseSiteDiagnostics == null || constructor.ContainingType.BaseTypeNoUseSiteDiagnostics.SpecialType == SpecialType.System_Object); 38var objectType = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Object); 94var objectType = compilation.GetSpecialType(SpecialType.System_Object);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
40_symbols = new MatchSymbols(anonymousTypeMap, anonymousDelegates, anonymousDelegatesWithIndexedNames, sourceAssembly, otherAssembly, otherSynthesizedMembers, otherDeletedMembers, new DeepTranslator(otherAssembly.GetSpecialType(SpecialType.System_Object))); 486return _otherAssembly.GetSpecialType(SpecialType.System_Object);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
95_deepTranslator = new CSharpSymbolMatcher.DeepTranslator(sourceAssembly.GetSpecialType(SpecialType.System_Object));
Emitter\Model\NamedTypeSymbolAdapter.cs (3)
291baseType = AdaptedNamedTypeSymbol.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object); 355else if (method.MethodKind == MethodKind.Destructor && AdaptedNamedTypeSymbol.SpecialType != SpecialType.System_Object) 362TypeSymbol objectType = AdaptedNamedTypeSymbol.DeclaringCompilation.GetSpecialType(CodeAnalysis.SpecialType.System_Object);
Emitter\Model\PEModuleBuilder.cs (3)
1499return GetSpecialType(SpecialType.System_Object, syntaxNodeOpt, diagnostics); 1840TypeSymbol argumentType = factory.SpecialType(SpecialType.System_Object); 1870TypeSymbol unmatchedValueType = factory.SpecialType(SpecialType.System_Object);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
258case SpecialType.System_Object:
Emitter\NoPia\EmbeddedTypesManager.cs (1)
148ImmutableArray.Create(new TypedConstant(ctor.Parameters[0].Type, TypedConstantKind.Type, ctor.ContainingAssembly.GetSpecialType(SpecialType.System_Object))),
FlowAnalysis\NullableWalker.cs (1)
10609if (typeExpr.Type?.SpecialType == SpecialType.System_Object)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
174var exceptionType = _F.SpecialType(SpecialType.System_Object); 394LocalSymbol obj = _F.SynthesizedLocal(_F.SpecialType(SpecialType.System_Object)); 523var catchType = node.ExceptionTypeOpt ?? _F.SpecialType(SpecialType.System_Object); 1009this.pendingCaughtException = new SynthesizedLocal(F.CurrentFunction, TypeWithAnnotations.Create(F.SpecialType(SpecialType.System_Object)), SynthesizedLocalKind.TryAwaitPendingCaughtException, tryStatementSyntax);
Lowering\AsyncRewriter\AsyncMethodBuilderMemberCollection.cs (1)
259resultType = F.SpecialType(SpecialType.System_Object);
Lowering\AsyncRewriter\AsyncMethodToStateMachineRewriter.cs (1)
458? F.SpecialType(SpecialType.System_Object)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
106_objectType = _bound.SpecialType(SpecialType.System_Object); 371var operand = _bound.Null(_bound.SpecialType(SpecialType.System_Object));
Lowering\DiagnosticsPass_Warnings.cs (2)
330if (node.Left.Type.SpecialType == SpecialType.System_Object && !IsExplicitCast(node.Left) && !(node.Left.ConstantValueOpt != null && node.Left.ConstantValueOpt.IsNull) && ConvertedHasEqual(node.OperatorKind, node.Right, out t)) 335else if (node.Right.Type.SpecialType == SpecialType.System_Object && !IsExplicitCast(node.Right) && !(node.Right.ConstantValueOpt != null && node.Right.ConstantValueOpt.IsNull) && ConvertedHasEqual(node.OperatorKind, node.Left, out t))
Lowering\IteratorRewriter\IteratorStateMachine.cs (1)
61internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter.PatternLocalRewriter.cs (2)
203inputType = _factory.SpecialType(SpecialType.System_Object); 373TypeSymbol objectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_BinaryOperator.cs (1)
2017TypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_ConditionalAccess.cs (1)
145var objectType = _compilation.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
337var objectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (2)
33argumentType = _compilation.GetSpecialType(SpecialType.System_Object); 44argumentType = _compilation.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
126var objectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
909var systemObjectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\SpillSequenceSpiller.cs (6)
1197_F.Convert(_F.SpecialType(SpecialType.System_Object), receiver), 1198_F.Null(_F.SpecialType(SpecialType.System_Object))); 1215_F.Convert(_F.SpecialType(SpecialType.System_Object), _F.Default(receiver.Type)), 1216_F.Null(_F.SpecialType(SpecialType.System_Object))); 1224_F.Convert(_F.SpecialType(SpecialType.System_Object), _F.Local(clone)), 1225_F.Null(_F.SpecialType(SpecialType.System_Object))))
Lowering\SyntheticBoundNodeFactory.cs (1)
1645TypeSymbol objectType = SpecialType(CodeAnalysis.SpecialType.System_Object);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
667case SpecialType.System_Object:
Symbols\AbstractTypeMap.cs (1)
390dynamicEraser = new DynamicTypeEraser(owner.ContainingAssembly.CorLibrary.GetSpecialType(SpecialType.System_Object));
Symbols\AnonymousTypes\AnonymousTypeManager.SymbolCollection.cs (1)
111get { return Compilation.GetSpecialType(SpecialType.System_Object); }
Symbols\AssemblySymbol.cs (1)
588return GetSpecialType(SpecialType.System_Object);
Symbols\Attributes\SourceAttributeData.cs (1)
396if (specType != SpecialType.System_Object)
Symbols\ConstraintsHelper.cs (6)
114NamedTypeSymbol effectiveBaseClass = corLibrary.GetSpecialType(typeParameter.HasValueTypeConstraint ? SpecialType.System_ValueType : SpecialType.System_Object); 293Debug.Assert((effectiveBaseClass.SpecialType == SpecialType.System_Object) || (deducedBaseType.SpecialType != SpecialType.System_Object)); 297if ((constraintTypes.Length == 0) && (deducedBaseType.SpecialType == SpecialType.System_Object)) 299Debug.Assert(effectiveBaseClass.SpecialType == SpecialType.System_Object); 1541if (type.SpecialType == SpecialType.System_Object)
Symbols\DynamicTypeSymbol.cs (2)
192return (int)Microsoft.CodeAnalysis.SpecialType.System_Object; 210return (object?)other != null && other.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object;
Symbols\MemberSignatureComparer.cs (1)
679if (constraintType.SpecialType == SpecialType.System_Object)
Symbols\Metadata\PE\DynamicTypeDecoder.cs (3)
145PeekFlag() && (type.SpecialType != SpecialType.System_Object && !type.IsDynamic())) 155if (type.SpecialType == SpecialType.System_Object) 176: _containingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Metadata\PE\PEMethodSymbol.cs (1)
1274(method.ContainingType.SpecialType == SpecialType.System_Object &&
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
545Debug.Assert(type.HasType && type.SpecialType == SpecialType.System_Object); 701return this.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\MethodSymbolExtensions.cs (1)
61else if (method.ContainingType.SpecialType == SpecialType.System_Object)
Symbols\MissingMetadataTypeSymbol.cs (3)
334if (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object) 336return (int)Microsoft.CodeAnalysis.SpecialType.System_Object; 376this.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object)
Symbols\NamedTypeSymbol.cs (3)
785if (this.SpecialType == SpecialType.System_Object) 787return (int)SpecialType.System_Object; 807if (this.SpecialType == SpecialType.System_Object)
Symbols\Source\ImplicitNamedTypeSymbol.cs (2)
57=> IsScriptClass ? null : this.DeclaringCompilation.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object); 63diagnostics.ReportUseSite(this.DeclaringCompilation.GetSpecialType(SpecialType.System_Object), Locations[0]);
Symbols\Source\ParameterHelpers.cs (1)
752conversion.IsIdentity && parameterType.SpecialType == SpecialType.System_Object && defaultExpression.Type.IsDynamic())
Symbols\Source\SourceAssemblySymbol.cs (1)
1884var obj = GetSpecialType(SpecialType.System_Object);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
58var objectType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Object, diagnostics, syntax));
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2556if (method.IsOverride && method.GetConstructedLeastOverriddenMethod(this, requireSameReturnType: false).ContainingType.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object)
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1016Debug.Assert(this.SpecialType == SpecialType.System_Object || this.DeclaringCompilation.IsAttributeType(this)); 1488if ((object)baseType != null && baseType.SpecialType != SpecialType.System_Object)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (4)
527if (this.IsStatic && localBase.SpecialType != SpecialType.System_Object) 622if (this.SpecialType == SpecialType.System_Object && ((object)localBase != null || localInterfaces.Count != 0)) 730if (this.SpecialType == SpecialType.System_Object) 735declaredBase = compilation.GetSpecialType(SpecialType.System_Object);
Symbols\Source\SourceTypeParameterSymbol.cs (1)
342return this.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
77F.Convert(F.SpecialType(SpecialType.System_Object), F.Parameter(parameter)));
Symbols\Synthesized\Records\SynthesizedRecordEqualityOperator.cs (1)
72BoundExpression recordEquals = F.LogicalAnd(F.ObjectNotEqual(left, F.Null(F.SpecialType(SpecialType.System_Object))),
Symbols\Synthesized\Records\SynthesizedRecordEquals.cs (1)
100retExpr = F.ObjectNotEqual(other, F.Null(F.SpecialType(SpecialType.System_Object)));
Symbols\Synthesized\Records\SynthesizedRecordObjEquals.cs (1)
35TypeWithAnnotations.Create(Binder.GetSpecialType(compilation, SpecialType.System_Object, location, diagnostics), annotation),
Symbols\Synthesized\Records\SynthesizedRecordPrintMembers.cs (1)
222F.Convert(F.SpecialType(SpecialType.System_Object), value))));
Symbols\Synthesized\SynthesizedContainer.cs (1)
156internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(this.TypeKind == TypeKind.Struct ? SpecialType.System_ValueType : SpecialType.System_Object);
Symbols\Synthesized\SynthesizedEntryPointSymbol.cs (1)
33var systemObject = Binder.GetSpecialType(compilation, SpecialType.System_Object, DummySyntax(), diagnostics);
Symbols\Synthesized\SynthesizedInteractiveInitializerMethod.cs (1)
274? compilation.GetSpecialType(SpecialType.System_Object)
Symbols\Synthesized\SynthesizedSubmissionConstructor.cs (1)
24var submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object));
Symbols\Synthesized\SynthesizedThrowSwitchExpressionExceptionMethod.cs (1)
33Debug.Assert(unmatchedValue.Type.SpecialType == SpecialType.System_Object);
Symbols\TypedConstantExtensions.cs (1)
30if (constant.Kind == TypedConstantKind.Type || constant.TypeInternal!.SpecialType == SpecialType.System_Object)
Symbols\TypeParameterSymbol.cs (1)
421case SpecialType.System_Object:
Symbols\TypeSymbolExtensions.cs (3)
175return type.SpecialType == SpecialType.System_Object; 1558if (type.SpecialType == SpecialType.System_Object) 2112case SpecialType.System_Object: return 0;
Syntax\SyntaxKindExtensions.cs (1)
46return SpecialType.System_Object;
Utilities\TypeSymbolExtensions.cs (2)
210if (type.SpecialType == SpecialType.System_Object) 270return compilation.Assembly.GetSpecialType(SpecialType.System_Object);
Microsoft.CodeAnalysis.CSharp.CodeStyle (11)
CastSimplifier.cs (5)
92Parent.Parent: IConversionOperation { Type.SpecialType: SpecialType.System_Object } conversionOperation 470if (castNode.IsParentKind(SyntaxKind.Interpolation) && originalConversionOperation.Type?.SpecialType is SpecialType.System_Object) 579if (current.ContainingType.SpecialType == SpecialType.System_Object) 769if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 776else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object &&
ConvertProgramAnalysis_TopLevelStatements.cs (1)
94if (containingType.BaseType?.SpecialType != SpecialType.System_Object)
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
86if (castType?.SpecialType == SpecialType.System_Object)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
253if (methodReference.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
127if (lambdaTypeInfo.ConvertedType == null || lambdaTypeInfo.ConvertedType.SpecialType is SpecialType.System_Object)
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
215symbol.ContainingType?.SpecialType == SpecialType.System_Object)
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
77if (semanticModel.GetTypeInfo(castExpression.Type).Type?.SpecialType == SpecialType.System_Object)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (11)
ConvertToRecordHelpers.cs (3)
37methodSymbol.Parameters.First().Type.SpecialType == SpecialType.System_Object && 516else if (parameter.Type.SpecialType == SpecialType.System_Object) 1107var objectType = compilation.GetSpecialType(SpecialType.System_Object);
CSharpTypeInferenceService.TypeInferrer.cs (5)
1141return CreateResult(SpecialType.System_Object, NullableAnnotation.Annotated); 1288.Construct(Compilation.GetSpecialType(SpecialType.System_Object))); 1631return CreateResult(SpecialType.System_Object); 2253if (laterUsageInference is not [] and not [{ InferredType.SpecialType: SpecialType.System_Object }]) 2282if (inferredDescendantTypes is not [] and not [{ InferredType.SpecialType: SpecialType.System_Object }])
ExpressionSyntaxExtensions.cs (1)
114targetType = semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
ITypeParameterSymbolExtensions.cs (1)
64if (type.SpecialType != SpecialType.System_Object)
NamedTypeGenerator.cs (1)
324if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenDynamicTests.cs (1)
594Assert.Equal(SpecialType.System_Object, container.BaseType().SpecialType);
CodeGen\CodeGenFunctionPointersTests.cs (1)
870Assert.Equal(SpecialType.System_Object, returnTypeWithAnnotations.CustomModifiers[0].Modifier.SpecialType);
CodeGen\CodeGenTupleTest.cs (11)
18912TypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18929ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18955ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18980ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19005ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19031ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19073ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19112ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19151ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19190ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 29026var @object = comp.GetSpecialType(SpecialType.System_Object);
Emit\EmitMetadataTests.cs (1)
669CheckConstantField(type, "O", Accessibility.ProtectedOrInternal, SpecialType.System_Object, null);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\AttributeTests_Tuples.cs (1)
354Assert.Equal(SpecialType.System_Object, sender.Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (6)
Binders\PlaceholderLocalBinder.cs (1)
86var local = new ObjectAddressLocalSymbol(_containingMethod, name, this.Compilation.GetSpecialType(SpecialType.System_Object), address);
CompilationContext.cs (4)
201var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 240var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 307var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 717binder.Compilation.GetSpecialType(SpecialType.System_Object));
Symbols\ObjectAddressLocalSymbol.cs (1)
21Debug.Assert(type.SpecialType == SpecialType.System_Object);
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler.UnitTests (2)
ExpressionCompilerTests.cs (2)
1402Assert.Equal(SpecialType.System_Object, method.ReturnType.SpecialType); 1714Assert.Equal(SpecialType.System_Object, method.ReturnType.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (15)
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
131if (namedTypeSymbol?.SpecialType == SpecialType.System_Object)
Completion\KeywordRecommenders\ObjectKeywordRecommender.cs (1)
53protected override SpecialType SpecialType => SpecialType.System_Object;
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
69model.Compilation.GetSpecialType(SpecialType.System_Object);
ConvertProgramAnalysis_TopLevelStatements.cs (1)
94if (containingType.BaseType?.SpecialType != SpecialType.System_Object)
ConvertToRecordHelpers.cs (3)
37methodSymbol.Parameters.First().Type.SpecialType == SpecialType.System_Object && 516else if (parameter.Type.SpecialType == SpecialType.System_Object) 1107var objectType = compilation.GetSpecialType(SpecialType.System_Object);
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
86if (castType?.SpecialType == SpecialType.System_Object)
CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
253if (methodReference.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
127if (lambdaTypeInfo.ConvertedType == null || lambdaTypeInfo.ConvertedType.SpecialType is SpecialType.System_Object)
CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
215symbol.ContainingType?.SpecialType == SpecialType.System_Object)
CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
77if (semanticModel.GetTypeInfo(castExpression.Type).Type?.SpecialType == SpecialType.System_Object)
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
101return info.Type == null || info.Type.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object
ExtractMethod\Extensions.cs (1)
264=> type == null || type.SpecialType == SpecialType.System_Object;
GenerateMember\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
59type: semanticModel.GetTypeInfo(((ConstantPatternSyntax)positionalPattern.Subpatterns[i].Pattern).Expression, cancellationToken).Type ?? semanticModel.Compilation.GetSpecialType(SpecialType.System_Object),
Microsoft.CodeAnalysis.CSharp.Scripting (1)
Hosting\ObjectFormatter\CSharpTypeNameFormatter.cs (1)
45case SpecialType.System_Object: return "object";
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (24)
Semantics\DelegateTypeTests.cs (2)
11446verifyConversions(model, expr, getFunctionType(funcOfT.Construct(comp.GetSpecialType(SpecialType.System_Object))), ConversionKind.NoConversion, ConversionKind.NoConversion); 12253var objectType = comp.GetSpecialType(SpecialType.System_Object);
Semantics\DynamicTests.cs (5)
49var dynamicToObject = c.Conversions.ClassifyConversionFromType(DynamicTypeSymbol.Instance, c.GetSpecialType(SpecialType.System_Object), ref useSiteDiagnostics); 50var objectToDynamic = c.Conversions.ClassifyConversionFromType(c.GetSpecialType(SpecialType.System_Object), DynamicTypeSymbol.Instance, ref useSiteDiagnostics); 1931var eraser = new DynamicTypeEraser(compilation.GetSpecialType(SpecialType.System_Object)); 1961Assert.Equal(SpecialType.System_Object, ebc.SpecialType); 3847var typeObject = comp.GetSpecialType(SpecialType.System_Object);
Semantics\ExpressionBodiedMemberTests.cs (1)
179Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.SpecialType);
Semantics\ForEachTests.cs (9)
1366Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1448Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1487Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1615Assert.Equal(SpecialType.System_Object, boundNode.IterationVariables.Single().Type.SpecialType); 1668Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1742Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1826Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 2139Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.SpecialType); 2197Assert.Equal(SpecialType.System_Object, loopInfo1.ElementType.SpecialType); // No longer string.
Semantics\InterpolationTests.cs (1)
4801Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.SpecialType);
Semantics\LockTests.cs (1)
48Assert.Equal(SpecialType.System_Object, localSymbol.Type.SpecialType);
Semantics\NativeIntegerTests.cs (1)
3687Assert.Equal(SpecialType.System_Object, underlyingType1.SpecialType);
Semantics\NullableReferenceTypesTests.cs (1)
112149var modifiers = ImmutableArray.Create(CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)));
Semantics\RawInterpolationTests_Handler.cs (1)
3128Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.SpecialType);
Semantics\RecordTests.cs (1)
120Assert.Equal(SpecialType.System_Object, point.BaseTypeNoUseSiteDiagnostics.SpecialType);
Semantics\RefLocalsAndReturnsTests.cs (1)
4534Assert.Equal(SpecialType.System_Object, model.GetTypeInfo(left).Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (72)
Compilation\CompilationAPITests.cs (8)
2462var elementType = comp.GetSpecialType(SpecialType.System_Object); 2491var elementType = comp.GetSpecialType(SpecialType.System_Object); 2659var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 2699var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3033var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3053typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3068var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3088typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String));
Compilation\GetSemanticInfoTests.cs (8)
384ConversionTestHelper(model, (v2 as AssignmentExpressionSyntax).Right, comp.GetSpecialType(SpecialType.System_Object), ConversionKind.Boxing); 3612Assert.Equal(SpecialType.System_Object, literalTypeInfo.ConvertedType.SpecialType); 3645Assert.Equal(SpecialType.System_Object, castTypeInfo.ConvertedType.SpecialType); 3677Assert.Equal(SpecialType.System_Object, castTypeInfo.Type.SpecialType); 3678Assert.Equal(SpecialType.System_Object, castTypeInfo.ConvertedType.SpecialType); 3725Assert.Equal(SpecialType.System_Object, cast2TypeInfo.Type.SpecialType); 3726Assert.Equal(SpecialType.System_Object, cast2TypeInfo.ConvertedType.SpecialType); 5399var objectType = compilation.GetSpecialType(SpecialType.System_Object);
Compilation\QueryClauseInfoTests.cs (1)
21var obj = c.GetSpecialType(SpecialType.System_Object);
Compilation\SemanticModelGetDeclaredSymbolAPITests.cs (2)
1387Assert.Equal(9, symbolsInC.Where(s => s.ContainingType == null || s.ContainingType.SpecialType != SpecialType.System_Object).Count()); 1767var baseType = compilation.GetSpecialType(SpecialType.System_Object);
Compilation\TypeInfoTests.cs (1)
20var obj = c.GetSpecialType(SpecialType.System_Object).GetPublicSymbol();
Symbols\AssemblyAndNamespaceTests.cs (3)
381var objectType = comp.GetSpecialType(SpecialType.System_Object); 385Assert.Equal(objectType, comp.Assembly.GetSpecialType(SpecialType.System_Object)); 386Assert.Equal(objectType, comp.Assembly.CorLibrary.GetSpecialType(SpecialType.System_Object));
Symbols\CorLibrary\Choosing.cs (3)
40var obj = corLib.GetSpecialType(SpecialType.System_Object); 51Assert.Same(obj, consumer.GetSpecialType(SpecialType.System_Object)); 72Assert.True(consumer.GetSpecialType(SpecialType.System_Object).IsErrorType());
Symbols\CorLibrary\CorTypes.cs (4)
128if (t.SpecialType == SpecialType.System_Object) 164if (i != (int)SpecialType.System_Object) 178Assert.Equal(SpecialType.System_Object, system_object.SpecialType); 182Assert.Same(system_object, c1.GetSpecialType(SpecialType.System_Object));
Symbols\ExtensionMethodTests.cs (3)
43Assert.Equal(SpecialType.System_Object, parameter.Type.SpecialType); 49Assert.Equal(SpecialType.System_Object, parameter.Type.SpecialType); 2603Assert.Equal(SpecialType.System_Object, method.Parameters.Single().Type.SpecialType);
Symbols\FunctionPointerTypeSymbolTests.cs (7)
46Assert.Equal(SpecialType.System_Object, pointerType.Signature.ReturnType.SpecialType); 383Assert.Equal(SpecialType.System_Object, secondParam.Parameters.Single().Type.SpecialType); 390Assert.Equal(SpecialType.System_Object, fourthParam.Parameters[0].Type.SpecialType); 391Assert.Equal(SpecialType.System_Object, fourthParam.Parameters[1].Type.SpecialType); 396Assert.Equal(SpecialType.System_Object, fifthParam.Parameters[1].Type.SpecialType); 1984var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)); 2140var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object));
Symbols\IndexerTests.cs (10)
59CheckIndexer(type.Indexers.Single(), false, true, SpecialType.System_Object, SpecialType.System_Int32, SpecialType.None); 62CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String); 130CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 133CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String); 136CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 141CheckIndexer(typeAProperties[0], true, true, SpecialType.System_Object, SpecialType.System_String); 142CheckIndexer(typeAProperties[1], true, false, SpecialType.System_Object, SpecialType.System_String); 143CheckIndexer(typeAProperties[2], true, true, SpecialType.System_Object, SpecialType.System_String); 146CheckIndexer(sourceType.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 157CheckIndexer(sourceType.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String);
Symbols\Metadata\PE\BaseTypeResolution.cs (2)
313Assert.Equal("System.Object", ((SourceModuleSymbol)c1.Assembly.Modules[0]).GetCorLibType(SpecialType.System_Object).ToTestDisplayString()); 318Assert.Equal("System.Object[missing]", ((SourceModuleSymbol)c2.Assembly.Modules[0]).GetCorLibType(SpecialType.System_Object).ToTestDisplayString());
Symbols\Metadata\PE\DynamicTransformsTests.cs (1)
47_objectType = _assembly.CorLibrary.GetSpecialType(SpecialType.System_Object);
Symbols\OverriddenOrHiddenMembersTests.cs (1)
2867var obj = compilation.GetSpecialType(SpecialType.System_Object);
Symbols\Retargeting\RetargetingTests.cs (2)
414Assert.Equal(SpecialType.System_Object, sourceType.BaseType().SpecialType); 419Assert.Equal(SpecialType.System_Object, retargetingType.BaseType().SpecialType);
Symbols\Source\CustomModifierCopyTests.cs (4)
778Assert.Equal(SpecialType.System_Object, interfaceMethod.ParameterTypesWithAnnotations.Single().SpecialType); 823Assert.Equal(SpecialType.System_Object, classMethod.ParameterTypesWithAnnotations.Single().SpecialType); 1260Assert.Equal(SpecialType.System_Object, classMethod.ReturnType.SpecialType); 1299Assert.Equal(SpecialType.System_Object, interfaceMethod.ReturnType.SpecialType);
Symbols\Source\DelegateTests.cs (1)
115Assert.Equal(comp.GetSpecialType(SpecialType.System_Object), ctor.Parameters[0].Type);
Symbols\Source\PropertyTests.cs (4)
2712Assert.Equal(SpecialType.System_Object, iap.Type.SpecialType); 2714Assert.Equal(SpecialType.System_Object, iam.ReturnType.SpecialType); 2730Assert.Equal(SpecialType.System_Object, iap.Type.SpecialType); 2732Assert.Equal(SpecialType.System_Object, iam.ReturnType.SpecialType);
Symbols\Source\UsingAliasTests.cs (2)
105Assert.Equal(SpecialType.System_Object, usingAliasType.SpecialType); 220Assert.Equal(SpecialType.System_Object, usingAliasType.SpecialType);
Symbols\TypedConstantTests.cs (1)
34_arrayType = _compilation.CreateArrayTypeSymbol(_compilation.GetSpecialType(SpecialType.System_Object));
Symbols\TypeTests.cs (4)
1253Assert.Equal(SpecialType.System_Object, typeC.BaseType().SpecialType); 1328if (derived.BaseType().SpecialType != SpecialType.System_Object) 1342Assert.Equal(SpecialType.System_Object, derivedTypes[1].BaseType().SpecialType); 1352Assert.Equal(SpecialType.System_Object, derivedTypes[4].BaseType().SpecialType);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (1)
Diagnostics\DiagnosticTest.cs (1)
113var type = TypeWithAnnotations.Create(comp.GetSpecialType(SpecialType.System_Object));
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
CastSimplifier.cs (5)
92Parent.Parent: IConversionOperation { Type.SpecialType: SpecialType.System_Object } conversionOperation 470if (castNode.IsParentKind(SyntaxKind.Interpolation) && originalConversionOperation.Type?.SpecialType is SpecialType.System_Object) 579if (current.ContainingType.SpecialType == SpecialType.System_Object) 769if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 776else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object &&
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3454SpecialType.System_Object => SyntaxFactory.PredefinedType(SyntaxFactory.Token(SyntaxKind.ObjectKeyword)),
CSharpTypeInferenceService.TypeInferrer.cs (5)
1141return CreateResult(SpecialType.System_Object, NullableAnnotation.Annotated); 1288.Construct(Compilation.GetSpecialType(SpecialType.System_Object))); 1631return CreateResult(SpecialType.System_Object); 2253if (laterUsageInference is not [] and not [{ InferredType.SpecialType: SpecialType.System_Object }]) 2282if (inferredDescendantTypes is not [] and not [{ InferredType.SpecialType: SpecialType.System_Object }])
ITypeParameterSymbolExtensions.cs (1)
64if (type.SpecialType != SpecialType.System_Object)
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs\ExpressionSyntaxExtensions.cs (1)
114targetType = semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
NamedTypeGenerator.cs (1)
324if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
Recommendations\CSharpRecommendationServiceRunner.cs (1)
526namedSymbols = namedSymbols.RemoveAll(s => s.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType);
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
57SpecialType.System_Object => SyntaxKind.ObjectKeyword,
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
309VerifySyntax<TypeSyntax>(Generator.TypeExpression(SpecialType.System_Object), "object");
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\PdbHelpers.cs (1)
104(SpecialType.System_Object, 0) => ConstantValue.Null,
Microsoft.CodeAnalysis.Features (17)
AbstractForEachCastDiagnosticAnalyzer.cs (1)
141=> collectionElementType.SpecialType != SpecialType.System_Object ||
AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
241method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
AbstractSimplifyInterpolationHelpers.cs (1)
127return method.ContainingType.SpecialType == SpecialType.System_Object
AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
34var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
86var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object); 360if (typeSymbol?.SpecialType == SpecialType.System_Object)
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
65if (symbol.ContainingType?.SpecialType == SpecialType.System_Object)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
349indexerType ?? semanticModel.Compilation.GetSpecialType(SpecialType.System_Object));
ExtractClass\AbstractExtractClassRefactoringProvider.cs (1)
147private static bool HasBaseType(INamedTypeSymbol containingType) => containingType.BaseType?.SpecialType != SpecialType.System_Object;
ExtractMethod\MethodExtractor.Analyzer.cs (1)
244var returnType = SelectionResult.GetContainingScopeType() ?? compilation.GetSpecialType(SpecialType.System_Object);
GenerateType\AbstractGenerateTypeService.State.cs (1)
251SpecialType.System_Object or
HashCodeAnalyzer.cs (1)
38var objectType = compilation.GetSpecialType(SpecialType.System_Object);
ImplementInterface\AbstractImplementInterfaceService.CodeAction.cs (1)
387var condition3 = typeParameter.HasReferenceTypeConstraint && typeParameter.ConstraintTypes.Any(static ts => ts.IsReferenceType && ts.SpecialType != SpecialType.System_Object);
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
288.WhereAsArray(symbol => !symbol.IsErrorType() && symbol.SpecialType is not (SpecialType.System_Object or SpecialType.System_ValueType or SpecialType.System_Enum));
IntroduceVariable\AbstractIntroduceVariableService.AbstractIntroduceVariableCodeAction.cs (1)
114return typeInfo.Type ?? typeInfo.ConvertedType ?? semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
431return semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
132if (current.ContainingType.SpecialType == SpecialType.System_Object)
Microsoft.CodeAnalysis.Scripting (2)
Hosting\ObjectFormatter\CommonPrimitiveFormatter.cs (1)
109case SpecialType.System_Object:
Hosting\ObjectFormatter\ObjectFormatterHelpers.cs (1)
357return SpecialType.System_Object;
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\IRuntimeEnvironment.cs (1)
201var corLibIdentity = compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly.Identity;
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
226return baseType.TypeKind == TypeKind.Class && baseType.SpecialType == SpecialType.System_Object; 266(targetTypeKind == TypeKind.Class && (sourceTypeKind == TypeKind.Structure || sourceTypeKind == TypeKind.Interface) && targetType.SpecialType == SpecialType.System_Object))
Platform\CoreClr\CoreCLRRuntimeEnvironment.cs (1)
55var corLibIdentity = mainCompilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly.Identity;
Microsoft.CodeAnalysis.VisualBasic (177)
Binding\Binder_AnonymousTypes.vb (1)
128Dim objectType As TypeSymbol = GetSpecialType(SpecialType.System_Object, initializerSyntax, diagnostics)
Binding\Binder_Attributes.vb (1)
795ReportDiagnostic(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, If(conv.Operand.Type, _binder.Compilation.GetSpecialType(SpecialType.System_Object)), conv.Type)
Binding\Binder_Conversions.vb (1)
279Case SyntaxKind.CObjKeyword : targetType = SpecialType.System_Object
Binding\Binder_Expressions.vb (10)
531expressionType = GetSpecialType(SpecialType.System_Object, expression.Syntax, diagnostics) 782operand = ApplyImplicitConversion(node, GetSpecialType(SpecialType.System_Object, node.Expression, diagnostics), operand, diagnostics) 1414GetSpecialType(SpecialType.System_Object, expr.Syntax, diagnostics), Nothing) 1919dominantType = GetSpecialType(SpecialType.System_Object, node, diagnostics) 1986dominantType = If(boundFirstArg.Type, If(boundSecondArg.Type, GetSpecialType(SpecialType.System_Object, node, diagnostics))) 3738If type.SpecialType = SpecialType.System_Object OrElse type.IsExtensibleInterfaceNoUseSiteDiagnostics() Then 4187inferredElementType = GetSpecialType(SpecialType.System_Object, node, diagnostics) 4573Debug.Assert(dominantType.IsArrayType AndAlso DirectCast(dominantType, ArrayTypeSymbol).Rank = 1 AndAlso DirectCast(dominantType, ArrayTypeSymbol).ElementType.SpecialType = SpecialType.System_Object) 4579dominantType = GetSpecialType(SpecialType.System_Object, syntax, diagnostics) 4584dominantType = GetSpecialType(SpecialType.System_Object, syntax, diagnostics)
Binding\Binder_Initializers.vb (1)
511Dim fieldType = If(fieldSymbol.HasDeclaredType, fieldSymbol.Type, GetSpecialType(SpecialType.System_Object, asNewSyntax, BindingDiagnosticBag.Discarded)) ' prevent recursion if field type is inferred.
Binding\Binder_Invocation.vb (2)
338If target.Type.SpecialType = SpecialType.System_Object OrElse 3255If param.Type.SpecialType = SpecialType.System_Object Then
Binding\Binder_Lambda.vb (4)
133objectType = GetSpecialType(SpecialType.System_Object, unboundParam.IdentifierSyntax, diagnostics) 850commonParameterTypes(i) = Compilation.GetSpecialType(SpecialType.System_Object) 926Construct(GetSpecialType(SpecialType.System_Object, source.Syntax, diagnostics)) 942lambdaReturnType = GetSpecialType(SpecialType.System_Object, source.Syntax, diagnostics)
Binding\Binder_Latebound.vb (4)
60Dim objType = Me.GetSpecialType(SpecialType.System_Object, node, diagnostics) 165Dim objectType = GetSpecialType(SpecialType.System_Object, node, diagnostics) 183argument = omitted.Update(GetSpecialType(SpecialType.System_Object, argument.Syntax, diagnostics)) 227Dim objType = Me.GetSpecialType(SpecialType.System_Object, node, diagnostics)
Binding\Binder_Lookup.vb (3)
1471Dim obj As NamedTypeSymbol = binder.SourceModule.ContainingAssembly.GetSpecialType(SpecialType.System_Object) 2006binder.SourceModule.ContainingAssembly.GetSpecialType(SpecialType.System_Object), 2163Return typeParameter.ContainingAssembly.GetSpecialType(If(typeParameter.HasValueTypeConstraint, SpecialType.System_ValueType, SpecialType.System_Object))
Binding\Binder_ObjectInitializer.vb (2)
605If initializedObjectType.SpecialType = SpecialType.System_Object OrElse initializedObjectType.IsErrorType Then 608If initializedObjectType.SpecialType = SpecialType.System_Object Then
Binding\Binder_Operators.vb (3)
81GetSpecialType(SpecialType.System_Object, targetArgument.Syntax, diagnostics), 104GetSpecialType(SpecialType.System_Object, targetArgument.Syntax, diagnostics), 1177If operandType.SpecialType = SpecialType.System_Object Then
Binding\Binder_Query.vb (1)
4390inferredType = GetSpecialType(SpecialType.System_Object, source.Syntax, additionalDiagnostics)
Binding\Binder_Statements.vb (4)
780target.Type.SpecialType <> SpecialType.System_Object Then 1336If hasExplicitType AndAlso Not (symbol.IsConst AndAlso type.SpecialType = SpecialType.System_Object) Then 2422Dim container = If(exprSymbol IsNot Nothing, exprSymbol.ContainingSymbol, Compilation.GetSpecialType(SpecialType.System_Object)) 5087Return GetSpecialType(SpecialType.System_Object, node, diagnostics)
Binding\Binder_Symbols.vb (1)
768type = SpecialType.System_Object
Binding\Binder_Utils.vb (2)
695Return GetSpecialType(SpecialType.System_Object, identifier, diagBag) 1408If(operandType, GetSpecialType(SpecialType.System_Object, operand.Syntax, diagnostics)),
Binding\Binder_XmlLiterals.vb (2)
647If receiverType.SpecialType = SpecialType.System_Object Then 697If receiverType.SpecialType = SpecialType.System_Object Then
Binding\DocumentationCommentCrefBinder_Compat.vb (1)
354type = SpecialType.System_Object
Binding\ImplicitVariableBinder.vb (1)
157Dim localSpecialType As SpecialType = SpecialType.System_Object
Binding\SyntheticBoundTrees\SynthesizedPropertyAccessorBase.vb (2)
264accessor.ContainingAssembly.GetSpecialType(SpecialType.System_Object)), 344accessor.ContainingAssembly.GetSpecialType(SpecialType.System_Object)),
BoundTree\BoundExpressionExtensions.vb (1)
456If type Is Nothing OrElse type.SpecialType = SpecialType.System_Object Then
BoundTree\BoundLocalDeclaration.vb (1)
43(LocalSymbol.IsConst AndAlso LocalSymbol.Type.SpecialType = SpecialType.System_Object AndAlso
CodeGen\EmitConversion.vb (5)
203Debug.Assert(typeFrom.SpecialType = SpecialType.System_Object OrElse 337If typeTo.SpecialType <> SpecialType.System_Object Then 379Debug.Assert(typeTo.SpecialType = SpecialType.System_Object OrElse 426Debug.Assert(typeFrom.SpecialType = SpecialType.System_Object OrElse 509Debug.Assert(typeTo.SpecialType = SpecialType.System_Object OrElse
CodeGen\EmitStatement.vb (2)
815Debug.Assert(binOp.Left.IsNothingLiteral() OrElse binOp.Left.Type.SpecialType = SpecialType.System_Object OrElse binOp.WasCompilerGenerated) 816Debug.Assert(binOp.Right.IsNothingLiteral() OrElse binOp.Right.Type.SpecialType = SpecialType.System_Object OrElse binOp.WasCompilerGenerated)
Compilation\ClsComplianceChecker.vb (1)
347Debug.Assert(baseType IsNot Nothing OrElse symbol.SpecialType = SpecialType.System_Object, "Only object has no base.")
Compilation\MethodCompiler.vb (1)
1865Dim objectType = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Compilation\VisualBasicCompilation.vb (2)
1967Return GetSpecialType(SpecialType.System_Object) 2978If resolved <> SpecialType.System_Object Then
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
81_deepTranslator = New VisualBasicSymbolMatcher.DeepTranslator(sourceAssembly.GetSpecialType(SpecialType.System_Object))
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (1)
34_symbols = New MatchSymbols(anonymousTypeMap, sourceAssembly, otherAssembly, otherSynthesizedMembersOpt, otherDeletedMembersOpt, New DeepTranslator(otherAssembly.GetSpecialType(SpecialType.System_Object)))
Emit\NamedTypeSymbolAdapter.vb (1)
233baseType = AdaptedNamedTypeSymbol.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object)
Emit\NoPia\EmbeddedTypesManager.vb (1)
109ImmutableArray.Create(New TypedConstant(ctor.Parameters(0).Type, TypedConstantKind.Type, ctor.ContainingAssembly.GetSpecialType(SpecialType.System_Object))),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Await.vb (1)
120awaiterFieldType = Me.F.SpecialType(SpecialType.System_Object)
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (2)
629Me.F.SpecialType(SpecialType.System_Object))) 633Me.F.SpecialType(SpecialType.System_Object))))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (1)
474Case SpecialType.System_Object,
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
311EnsureSpecialType(SpecialType.System_Object, bag)
Lowering\AsyncRewriter\AsyncStateMachine.vb (1)
22asyncMethod.ContainingAssembly.GetSpecialType(If(typeKind = TypeKind.Struct, SpecialType.System_ValueType, SpecialType.System_Object)),
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (1)
90_objectType = _factory.SpecialType(SpecialType.System_Object)
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (2)
194Debug.Assert(operandUnderlyingSpecialType <> SpecialType.System_Object OrElse isIsIsNot) 326If resultUnderlyingSpecialType = SpecialType.System_Object Then
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (18)
241Return CreateTypeAs(If(typeTo.SpecialType = SpecialType.System_Object, 247Return ConvertIfNeeded(objectConversion, _factory.SpecialType(SpecialType.System_Object), typeTo, False) 261argumentType = _factory.SpecialType(SpecialType.System_Object) 447Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToBooleanObject 456Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToByteObject 465Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSByteObject 474Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToShortObject 483Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUShortObject 492Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToIntegerObject 501Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUIntegerObject 510Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToLongObject 519Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToULongObject 536Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDecimalObject 543Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSingleObject 550Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDoubleObject 556Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToCharObject 578Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringObject 584Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDateObject
Lowering\IteratorRewriter\IteratorRewriter.vb (3)
37Me._elementType = method.ContainingAssembly.GetSpecialType(SpecialType.System_Object) 68elementType = method.ContainingAssembly.GetSpecialType(SpecialType.System_Object) 103EnsureSpecialType(SpecialType.System_Object, bag)
Lowering\IteratorRewriter\IteratorStateMachine.vb (1)
29iteratorMethod.ContainingAssembly.GetSpecialType(SpecialType.System_Object),
Lowering\LambdaRewriter\LambdaFrame.vb (2)
178Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Object) 190Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
434Dim obj = frame.ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
863result = RewriteFromObjectConversion(rewrittenConversion, Compilation.GetSpecialType(SpecialType.System_Object), underlyingTypeTo)
Lowering\LocalRewriter\LocalRewriter_ForEach.vb (2)
366Debug.Assert(expressionType.SpecialType <> SpecialType.System_Object) 397Debug.Assert(expressionType.SpecialType <> SpecialType.System_Object)
Lowering\LocalRewriter\LocalRewriter_ForTo.vb (1)
416Debug.Assert(Compilation.GetSpecialType(SpecialType.System_Object) Is rewrittenControlVariable.Type)
Lowering\LocalRewriter\LocalRewriter_LocalDeclaration.vb (1)
173Dim objectType = GetSpecialTypeWithUseSiteDiagnostics(SpecialType.System_Object, syntax)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
80Me.Compilation.GetSpecialType(SpecialType.System_Object)),
Lowering\LocalRewriter\LocalRewriter_SyncLock.vb (1)
24Dim objectType = GetSpecialType(SpecialType.System_Object)
Operations\VisualBasicOperationFactory_Methods.vb (2)
666Return If(leftOpt?.Type?.SpecialType = SpecialType.System_Object, BinaryOperatorKind.ObjectValueEquals, BinaryOperatorKind.Equals) 668Return If(leftOpt?.Type?.SpecialType = SpecialType.System_Object, BinaryOperatorKind.ObjectValueNotEquals, BinaryOperatorKind.NotEquals)
Preprocessor\CConst.vb (1)
77Return New CConst(Of Object)(Nothing, SpecialType.System_Object)
Preprocessor\ExpressionEvaluator.vb (17)
40Const ___Object = CType(SpecialType.System_Object, Byte) 105Case SpecialType.System_Object 400Return SpecialType.System_Object 417If specialType <> SpecialType.System_Object AndAlso specialType <> SpecialType.System_String Then 421If value.SpecialType = SpecialType.System_Object OrElse 448If val.SpecialType = SpecialType.System_Object OrElse 573If Not IsNothing(whenFalse) AndAlso whenFalse.SpecialType <> SpecialType.System_Object Then 577If whenTrue.SpecialType <> SpecialType.System_Object Then 624Case SpecialType.System_Object 673Case SpecialType.System_Object 716Case SpecialType.System_Object 746Case SpecialType.System_Object 787Case SpecialType.System_Object 824Case SpecialType.System_Object 845Return ReportSemanticError(ERRID.ERR_RequiredConstConversion2, expr, value.SpecialType.GetDisplayName(), SpecialType.System_Object.GetDisplayName()) 857(specialType = SpecialType.System_Object AndAlso Not IsNothing(val)) OrElse 944Return val.SpecialType = SpecialType.System_Object AndAlso val.ValueAsObject Is Nothing
Preprocessor\OperatorResolution.vb (2)
62Case SpecialType.System_Object 93Const t_ref As Byte = CType(SpecialType.System_Object, Byte)
Semantics\Conversions.vb (5)
2344If destination.SpecialType = SpecialType.System_Object Then 3390If destination.SpecialType = SpecialType.System_Object Then 3423If source.SpecialType = SpecialType.System_Object Then 3704If destination.SpecialType = SpecialType.System_Object Then 3900If source.SpecialType = SpecialType.System_Object Then
Semantics\Operators.vb (10)
529If sourceType.SpecialType <> SpecialType.System_Object AndAlso 598SpecialType.System_Object 634SpecialType.System_Object 664SpecialType.System_Object 903intrinsicOperatorType = SpecialType.System_Object 929intrinsicOperatorType = SpecialType.System_Object 977intrinsicOperatorType <> SpecialType.System_Object AndAlso 992If (leftEnumUnderlying.SpecialType <> SpecialType.System_Object AndAlso 995(rightEnumUnderlying.SpecialType <> SpecialType.System_Object AndAlso 1722Const tObj As SByte = SpecialType.System_Object
Semantics\OverloadResolution.vb (2)
3246If targetType.SpecialType <> SpecialType.System_Object Then 3369argumentType.SpecialType <> SpecialType.System_Object Then
Semantics\TypeInference\TypeArgumentInference.vb (2)
186arrayType.ElementType.SpecialType = SpecialType.System_Object Then 468Graph.ObjectType = unboundLambda.Binder.GetSpecialType(SpecialType.System_Object, lambdaParameter.IdentifierSyntax, Graph.Diagnostic)
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
142Return Compilation.GetSpecialType(SpecialType.System_Object)
Symbols\AssemblySymbol.vb (1)
483Return GetSpecialType(SpecialType.System_Object)
Symbols\Attributes\SourceAttributeData.vb (1)
233foundMatch = specType = SpecialType.System_Object
Symbols\ConstantValueUtils.vb (1)
44boundValueType = binder.GetSpecialType(SpecialType.System_Object, initValueSyntax, diagnostics)
Symbols\ConstraintsHelper.vb (2)
175Case SpecialType.System_Object, 1060Case SpecialType.System_Object, SpecialType.System_ValueType
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
51Dim baseType = DeclaringCompilation.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceAssemblySymbol.vb (1)
912Dim obj = GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
83Dim objectType = binder.GetSpecialType(SpecialType.System_Object, syntax, diagnostics)
Symbols\Source\SourceMemberFieldSymbol.vb (2)
254constantType = ContainingAssembly.GetSpecialType(SpecialType.System_Object) 259constantType = ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceNamedTypeSymbol.vb (5)
1372If declaredOrDefaultBase Is Nothing AndAlso Me.SpecialType <> Microsoft.CodeAnalysis.SpecialType.System_Object Then 1378ReportUseSiteInfoForBaseType(Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Object), declaredBase, diagnostics) 1382declaredOrDefaultBase = GetSpecialType(SpecialType.System_Object) 1397declaredOrDefaultBase = GetSpecialType(SpecialType.System_Object) 2127Debug.Assert(Me.IsOrDerivedFromWellKnownClass(WellKnownType.System_Attribute, DeclaringCompilation, CompoundUseSiteInfo(Of AssemblySymbol).Discarded) OrElse Me.SpecialType = Microsoft.CodeAnalysis.SpecialType.System_Object)
Symbols\Source\SynthesizedEntryPointSymbol.vb (1)
25Dim submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object))
Symbols\Source\SynthesizedInteractiveInitializerMethod.vb (1)
167resultType = compilation.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SynthesizedSubmissionConstructorSymbol.vb (3)
33Dim submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object)) 65Dim submissionArrayType = compilation.CreateArrayTypeSymbol(compilation.GetSpecialType(SpecialType.System_Object)) 69Dim objectType = compilation.GetSpecialType(SpecialType.System_Object)
Symbols\SpecialTypeExtensions.vb (5)
74Case SpecialType.System_Object, 110SpecialType.System_Object, 143Case SpecialType.System_Object 265Case SpecialType.System_Object 365Case SpecialType.System_Object
Symbols\TypedConstant.vb (1)
37If constant.Kind = TypedConstantKind.Type OrElse constant.TypeInternal.SpecialType = SpecialType.System_Object Then
Symbols\TypeParameterSymbol.vb (1)
255Case SpecialType.System_Object,
Symbols\TypeSymbolExtensions.vb (2)
341Return this.SpecialType = SpecialType.System_Object 734fieldType.SpecialType = SpecialType.System_Object OrElse
Utilities\VarianceAmbiguity.vb (2)
138If typeArgument1.SpecialType <> SpecialType.System_Object AndAlso 139typeArgument2.SpecialType <> SpecialType.System_Object AndAlso
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
CastAnalyzer.vb (2)
228If If(castType?.SpecialType = SpecialType.System_Object, False) AndAlso 418If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (6)
ITypeSymbolExtensions.vb (2)
37Case specialType.System_Object 79specialType = specialType.System_Object
StringExtensions.vb (1)
112SpecialType.System_Object
TypeSyntaxGeneratorVisitor.vb (1)
96Case SpecialType.System_Object
VisualBasicTypeInferenceService.TypeInferrer.vb (2)
544If otherSideTypes.Any(Function(t) t.InferredType.SpecialType <> SpecialType.System_Object AndAlso Not t.InferredType.IsErrorType()) Then 665Return CreateResult(type.Construct(Compilation.GetSpecialType(SpecialType.System_Object)))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\AttributeTests_Tuples.vb (1)
323Assert.Equal(SpecialType.System_Object, sender.Type.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (3)
Binders\PlaceholderLocalBinder.vb (1)
73Dim type = Compilation.GetSpecialType(If(specialType = SpecialType.None, SpecialType.System_Object, specialType))
CompilationContext.vb (2)
134Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object) 200Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (1)
ExpressionCompilerTests.vb (1)
1439Assert.Equal(SpecialType.System_Object, method.ReturnType.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\CompletionProviders\OverrideCompletionProvider.vb (1)
193If overriddenMember.ContainingType.SpecialType = SpecialType.System_Object Then
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
97SpecialType.System_Object,
ExtractMethod\Extensions.vb (1)
474Return type Is Nothing OrElse type.SpecialType = SpecialType.System_Object
Microsoft.CodeAnalysis.VisualBasic.Scripting (1)
Hosting\ObjectFormatter\VisualBasicTypeNameFormatter.vb (1)
50Case SpecialType.System_Object
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (56)
Compilation\CompilationAPITests.vb (8)
1511Dim elementType = comp.GetSpecialType(SpecialType.System_Object) 1536Dim elementType = comp.GetSpecialType(SpecialType.System_Object) 1677Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1715Dim memberTypes = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1942Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1960typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1974Dim typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)) 1992typeArguments = ImmutableArray.Create(Of ITypeSymbol)(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String))
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2790Assert.Equal(compilation.GetSpecialType(System_Object), local.Type)
Semantics\AccessCheckTests.vb (1)
795Assert.Equal(sourceAssem.GetSpecialType(SpecialType.System_Object), sourceAssem.ObjectType)
Semantics\BinaryOperators.vb (10)
1036If (leftType.SpecialType <> SpecialType.System_Object AndAlso 1038(rightType.SpecialType <> SpecialType.System_Object AndAlso 1099If leftSpecial = SpecialType.System_Object OrElse rightSpecial = SpecialType.System_Object OrElse TypeSymbol.Equals(leftType, rightType, TypeCompareKind.ConsiderEverything) Then 1100If leftSpecial = SpecialType.System_Object OrElse rightSpecial = SpecialType.System_Object Then 1101resultType = SpecialType.System_Object 1104Dim nonSpecialType = If(leftSpecial = SpecialType.System_Object, rightType, leftType) 1183If resultType <> SpecialType.System_Object Then 1188If resultType <> SpecialType.System_Object Then
Semantics\Conversions.vb (7)
231Dim objectType = c1.GetSpecialType(System_Object) 1082Dim objectType = c1.GetSpecialType(System_Object) 1592Dim [object] = c1.GetSpecialType(System_Object) 2042c1.GetSpecialType(System_Object), 2089If fromIsNullable AndAlso [to].SpecialType = System_Object Then 2127If from.SpecialType = System_Object AndAlso toIsNullable Then 2182Private Const s_object = System_Object
Semantics\ForeachTest.vb (3)
1168Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.SpecialType) 1208Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.SpecialType) 1269Assert.Equal(SpecialType.System_Object, loopInfo1.ElementType.SpecialType) ' No longer string.
Semantics\GetExtendedSemanticInfoTests.vb (19)
6220Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6221Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6222Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6272Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6273Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6274Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6322Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6460Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6537Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6653Dim getEnumerator = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), MethodSymbol) 6654Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6655Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6656Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6712Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6714Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6756Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6757Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6843Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6844Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol)
Semantics\GetSemanticInfoTests.vb (3)
3785Assert.Equal(info.Type.SpecialType, SpecialType.System_Object) 3796Assert.Equal(info.Type.SpecialType, SpecialType.System_Object) 6223Assert.Equal(SpecialType.System_Object, model.GetTypeInfo(expr).Type.SpecialType)
Semantics\InterpolatedStringTests.vb (2)
877Dim objectType = compilation.GetSpecialType(SpecialType.System_Object) 934Dim objectType = compilation.GetSpecialType(SpecialType.System_Object)
Semantics\OverloadResolution.vb (1)
206Dim objectVal As BoundExpression = New BoundRValuePlaceholder(_syntaxNode, c1.GetSpecialType(System_Object))
Semantics\TypeOfTests.vb (1)
763Assert.Equal(SpecialType.System_Object, typeInfo.ConvertedType.SpecialType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (27)
SymbolsTests\AssemblyAndNamespaceTests.vb (3)
526Dim objectType = comp.GetSpecialType(SpecialType.System_Object) 530Assert.Equal(objectType, comp.Assembly.GetSpecialType(SpecialType.System_Object)) 531Assert.Equal(objectType, comp.Assembly.CorLibrary.GetSpecialType(SpecialType.System_Object))
SymbolsTests\CorLibrary\Choosing.vb (4)
46Dim obj = corLib.GetSpecialType(SpecialType.System_Object) 61Assert.Same(obj, consumer.GetSpecialType(SpecialType.System_Object)) 76Dim obj = corLib.GetSpecialType(SpecialType.System_Object) 88Assert.True(consumer.GetSpecialType(SpecialType.System_Object).IsErrorType())
SymbolsTests\CorLibrary\CorTypes.vb (4)
97If (t.SpecialType = SpecialType.System_Object) Then 127If (i <> SpecialType.System_Object) Then 140Assert.Equal(SpecialType.System_Object, system_object.SpecialType) 144Assert.Same(system_object, c1.Assembly.GetSpecialType(SpecialType.System_Object))
SymbolsTests\Metadata\PE\BaseTypeResolution.vb (2)
295Assert.Equal("System.Object", DirectCast(c1.Assembly.Modules(0), SourceModuleSymbol).GetCorLibType(SpecialType.System_Object).ToTestDisplayString()) 300Assert.Equal("System.Object[missing]", DirectCast(c2.Assembly.Modules(0), SourceModuleSymbol).GetCorLibType(SpecialType.System_Object).ToTestDisplayString())
SymbolsTests\Retargeting\RetargetingTests.vb (4)
434Assert.Equal(SpecialType.System_Object, sourceType.BaseType.SpecialType) 439Assert.Equal(SpecialType.System_Object, retargetingType.BaseType.SpecialType) 474Assert.Equal(SpecialType.System_Object, sourceType.BaseType.SpecialType) 479Assert.Equal(SpecialType.System_Object, retargetingType.BaseType.SpecialType)
SymbolsTests\Source\DelegateTests.vb (1)
251Assert.Equal(compilation.GetSpecialType(SpecialType.System_Object), ctor.Parameters(0).Type)
SymbolsTests\Source\FieldTests.vb (1)
128Assert.Same(sourceMod.GetCorLibType(SpecialType.System_Object), fieldR.Type)
SymbolsTests\Source\OverridesTests.vb (1)
2548Dim obj = compilation.GetSpecialType(SpecialType.System_Object)
SymbolsTests\Source\PropertyTests.vb (3)
782Assert.Equal(SpecialType.System_Object, [property].Type.SpecialType) 788Assert.Equal(SpecialType.System_Object, [property].SetMethod.Parameters(1).Type.SpecialType) 4342Assert.Equal(SpecialType.System_Object, propertiesDictionary!Typeless.Type.SpecialType)
SymbolsTests\Source\TypeTests.vb (3)
3800Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object))) 3864Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object))) 3925Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object)))
SymbolsTests\TypedConstantTests.vb (1)
29_arrayType = _compilation.CreateArrayTypeSymbol(_compilation.GetSpecialType(SpecialType.System_Object))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
CastAnalyzer.vb (2)
228If If(castType?.SpecialType = SpecialType.System_Object, False) AndAlso 418If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
CodeGeneration\NamedTypeGenerator.vb (1)
207namedType.BaseType.SpecialType = SpecialType.System_Object Then
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
430Case SpecialType.System_Object
ITypeSymbolExtensions.vb (2)
37Case specialType.System_Object 79specialType = specialType.System_Object
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
51Case SpecialType.System_Object
StringExtensions.vb (1)
112SpecialType.System_Object
TypeSyntaxGeneratorVisitor.vb (1)
96Case SpecialType.System_Object
VisualBasicTypeInferenceService.TypeInferrer.vb (2)
544If otherSideTypes.Any(Function(t) t.InferredType.SpecialType <> SpecialType.System_Object AndAlso Not t.InferredType.IsErrorType()) Then 665Return CreateResult(type.Construct(Compilation.GetSpecialType(SpecialType.System_Object)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (2)
CodeGeneration\SyntaxGeneratorTests.vb (2)
284VerifySyntax(Of TypeSyntax)(Generator.TypeExpression(SpecialType.System_Object), "Object") 1336Dim params = {Generator.ParameterDeclaration("sender", Generator.TypeExpression(SpecialType.System_Object)), Generator.ParameterDeclaration("args", Generator.IdentifierName("EventArgs"))}
Microsoft.CodeAnalysis.Workspaces (14)
AbstractSpeculationAnalyzer.cs (1)
707&& symbol.ContainingType.SpecialType == SpecialType.System_Object
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
215case SpecialType.System_Object: 219predicateOpt: n => n.BaseType?.SpecialType == SpecialType.System_Object).ConfigureAwait(false);
IMethodSymbolExtensions.cs (1)
44method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs\INamedTypeSymbolExtensions.cs (1)
615ContainingType.SpecialType: SpecialType.System_Object,
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs\ISymbolExtensions.cs (2)
448.Select(p => (p.Type ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(p.NullableAnnotation)); 453types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs\ITypeSymbolExtensions.cs (1)
376case SpecialType.System_Object:
J\s\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs\SpecialTypeExtensions.cs (1)
14SpecialType.System_Object => PredefinedType.Object,
PredefinedTypeExtensions.cs (1)
14PredefinedType.Object => SpecialType.System_Object,
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
52parameters: ImmutableArray.Create(CodeGenerationSymbolFactory.CreateParameterSymbol(compilation.GetSpecialType(SpecialType.System_Object).WithNullableAnnotation(NullableAnnotation.Annotated), ObjName)), 442method.Parameters[0].Type.SpecialType == SpecialType.System_Object &&
SymbolEquivalenceComparer.cs (1)
180=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
SyntaxGeneratorExtensions.cs (1)
77_ => compilation.GetSpecialType(SpecialType.System_Object),
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Editing\SyntaxEditorTests.cs (1)
183editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Z", editor.Generator.TypeExpression(SpecialType.System_Object), Accessibility.Public));
Microsoft.VisualStudio.LanguageServices (3)
Library\ObjectBrowser\AbstractListItemFactory.cs (2)
208if (namedTypeSymbol.SpecialType == SpecialType.System_Object) 276typeSymbol.SpecialType != SpecialType.System_Object)
Library\ObjectBrowser\ObjectList.cs (1)
439if (typeSymbol.SpecialType == SpecialType.System_Object)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
720case SpecialType.System_Object:
ObjectBrowser\DescriptionBuilder.cs (1)
114if (baseType.SpecialType is not SpecialType.System_Object and
Microsoft.VisualStudio.LanguageServices.Implementation (2)
CodeModel\AbstractCodeModelService.cs (2)
280var obj = project.GetRequiredCompilationAsync(CancellationToken.None).Result.GetSpecialType(SpecialType.System_Object); 797EnvDTE.vsCMTypeRef.vsCMTypeRefObject => SpecialType.System_Object,
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
766If typeSymbol.SpecialType = SpecialType.System_Object Then