952 references to System_Object
ConfigurationSchemaGenerator (5)
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (3)
67type.SpecialType is SpecialType.System_Object or SpecialType.System_Void || 258case SpecialType.System_Object: 962if (firstParam.Name == "argument" && firstParam.Type.SpecialType == SpecialType.System_Object
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (2)
82if (instanceArg.Parameter?.Type.SpecialType is not SpecialType.System_Object) 234else if (paramCount is 4 && @params[3].Type.SpecialType is SpecialType.System_Object)
ILLink.RoslynAnalyzer (1)
ITypeSymbolExtensions.cs (1)
74 SpecialType.System_Object => WellKnownType.System_Object,
Microsoft.Analyzers.Local (1)
ApiLifecycle\AssemblyAnalysis.cs (1)
155if (baseType != null && baseType.SpecialType != SpecialType.System_Object && baseType.SpecialType != SpecialType.System_ValueType)
Microsoft.AspNetCore.App.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
73if (GetDeclaringType(method).SpecialType == SpecialType.System_Object)
Microsoft.AspNetCore.Components.Analyzers (1)
ComponentSymbols.cs (1)
41var @object = compilation.GetSpecialType(SpecialType.System_Object);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
ComponentSymbols.cs (1)
41var @object = compilation.GetSpecialType(SpecialType.System_Object);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (3)
StaticRouteHandlerModel\EndpointResponse.cs (1)
77ResponseType.SpecialType != SpecialType.System_Object;
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (2)
123&& (responseType.SpecialType == SpecialType.System_Object || responseType.SpecialType == SpecialType.System_String)) 152else if (endpointResponse.ResponseType?.SpecialType == SpecialType.System_Object)
Microsoft.AspNetCore.Mvc.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
73if (GetDeclaringType(method).SpecialType == SpecialType.System_Object)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
src\Shared\Roslyn\MvcFacts.cs (1)
73if (GetDeclaringType(method).SpecialType == SpecialType.System_Object)
Microsoft.CodeAnalysis (216)
Compilation\Expression.cs (1)
37case SpecialType.System_Object:
Emit\CommonPEModuleBuilder.cs (1)
1085this.GetSpecialType(SpecialType.System_Object, syntaxNodeOpt, diagnostics),
MetadataReader\MetadataDecoder.cs (1)
1355type = GetSpecialType(SpecialType.System_Object);
MetadataReader\MetadataTypeCodeExtensions.cs (3)
70return SpecialType.System_Object; 106case SpecialType.System_Object: 184case SpecialType.System_Object:
Operations\ControlFlowGraphBuilder.cs (2)
4273ITypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object); 7795? MakeInvalidOperation(operation.Syntax, type: _compilation.GetSpecialType(SpecialType.System_Object), ImmutableArray<IOperation>.Empty)
PEWriter\Types.cs (1)
18SystemObject = CodeAnalysis.SpecialType.System_Object,
SpecialMembers.cs (24)
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, 188(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 198(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 278(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 288(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 829(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 836(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 915(byte)SpecialType.System_Object, // DeclaringTypeId 922(byte)SpecialType.System_Object, // DeclaringTypeId 926(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 930(byte)SpecialType.System_Object, // DeclaringTypeId 934(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 935(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 939(byte)SpecialType.System_Object, // DeclaringTypeId 946(byte)SpecialType.System_Object, // DeclaringTypeId 950(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 951(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1306(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object,
SpecialTypeExtensions.cs (1)
367=> specialType is >= SpecialType.System_Object and <= SpecialType.System_Runtime_CompilerServices_InlineArrayAttribute;
Symbols\ITypeSymbol.cs (1)
226return type?.SpecialType == SpecialType.System_Object;
Symbols\TypedConstant.cs (1)
177case SpecialType.System_Object:
WellKnownMembers.cs (180)
344(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Field Signature 395(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 594(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 602(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 635(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 644(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 742(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1001(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1002(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1109(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1124(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1125(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1126(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1127(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1145(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1153(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1162(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, 1683(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1690(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1691(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, 1723(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1724(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1725(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1732(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1733(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1734(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1741(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1742(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1743(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1750(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1751(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1752(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1759(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1760(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1761(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1768(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1769(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1770(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1777(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1778(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1779(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1786(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1787(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1788(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1795(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1796(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1797(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1804(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1805(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1806(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1813(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1814(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1815(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1822(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1823(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1824(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1831(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1832(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1833(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1840(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1841(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1842(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1850(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1851(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1852(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1860(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1861(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1862(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1870(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1871(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1872(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1880(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1881(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1882(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1890(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1891(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1892(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1901(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1902(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1911(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1912(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1921(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1922(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1931(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1932(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1941(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1942(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1951(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1952(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1980(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1981(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1984(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1995(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 1996(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 1999(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2010(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2013(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2023(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2026(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2037(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2038(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2039(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2048(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2049(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2058(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2059(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2133(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2134(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2135(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2183(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2184(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2185(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2186(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2187(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2188(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2196(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2197(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2198(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2206(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2213(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2214(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2217(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2225(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2241(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2257(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2273(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2288(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 2289(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2292(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2338(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2347(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2394(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2403(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2458(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2467(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 2566(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 2575(byte)SignatureTypeCode.SZArray, (byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3092(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Value 3210(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Value 3629(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3630(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Argument 3689(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3690(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Argument 3719(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3720(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Argument 3774(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 3783(byte)SignatureTypeCode.ByReference, (byte)SignatureTypeCode.GenericMethodParameter, (byte)SpecialType.System_Object, 3798(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 3836(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 3921(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 4072(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 4088(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, // Return Type 4111(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 4126(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 4134(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 4143(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 4151(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object, 4390(byte)SignatureTypeCode.TypeHandle, (byte)SpecialType.System_Object,
Microsoft.CodeAnalysis.CodeStyle (18)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (2)
99if (collectionElementType.SpecialType == SpecialType.System_Object) 158=> collectionElementType.SpecialType != SpecialType.System_Object ||
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
38var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
233method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
127return method.ContainingType.SpecialType == SpecialType.System_Object
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
34var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
95var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object); 377if (typeSymbol?.SpecialType == SpecialType.System_Object)
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
367=> specialType is >= SpecialType.System_Object and <= SpecialType.System_Runtime_CompilerServices_InlineArrayAttribute;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
45method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
662ContainingType.SpecialType: SpecialType.System_Object,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
512.Select(p => (p.Type ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(p.NullableAnnotation)); 517types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
378case SpecialType.System_Object:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
14PredefinedType.Object => SpecialType.System_Object,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
14SpecialType.System_Object => PredefinedType.Object,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
759&& symbol.ContainingType.SpecialType == SpecialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
196=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
Microsoft.CodeAnalysis.CodeStyle.Fixes (5)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
279var condition3 = typeParameter.HasReferenceTypeConstraint && typeParameter.ConstraintTypes.Any(static ts => ts.IsReferenceType && ts.SpecialType != SpecialType.System_Object);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
92_ => compilation.GetSpecialType(SpecialType.System_Object),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
60parameters: [CodeGenerationSymbolFactory.CreateParameterSymbol(compilation.GetSpecialType(SpecialType.System_Object).WithNullableAnnotation(NullableAnnotation.Annotated), ObjName)], 449method.Parameters[0].Type.SpecialType == SpecialType.System_Object &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
186else if (operation is IIsTypeOperation { TypeOperand.SpecialType: SpecialType.System_Object } && generatorInternal.SupportsPatterns(semanticModel.SyntaxTree.Options))
Microsoft.CodeAnalysis.CSharp (162)
Binder\Binder_Attributes.cs (2)
923if (type.SpecialType == SpecialType.System_Object || 925((ArrayTypeSymbol)type).ElementType.SpecialType == SpecialType.System_Object)
Binder\Binder_Constraints.cs (1)
574case SpecialType.System_Object:
Binder\Binder_Expressions.cs (5)
4321this.Compilation.CreateArrayTypeSymbol(GetSpecialType(SpecialType.System_Object, diagnostics, node)), 4808containingType.SpecialType == SpecialType.System_Object || 4811if ((object)initializerType == null || containingType.SpecialType == SpecialType.System_Object) //e.g. when defining System.Object in source 5059if (baseType.SpecialType == SpecialType.System_Object) 5061if (resultMember is null || resultMember.ContainingType.SpecialType != SpecialType.System_Object)
Binder\Binder_InterpolatedString.cs (2)
674TypeSymbol objectType = GetSpecialType(SpecialType.System_Object, diagnostics, syntax); 853var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, unconvertedInterpolatedString.Syntax);
Binder\Binder_Invocation.cs (4)
269TypeSymbol objType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 1366Debug.Assert(parameterType.IsDynamic() || parameterType.SpecialType == SpecialType.System_Object); 1652if (parameterType.IsDynamic() || parameterType.SpecialType == SpecialType.System_Object) 1672if (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)
3321GetSpecialType(SpecialType.System_Object, diagnostics, node).Name // a pretty way of getting the string "Object" 3330operandType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3799type: GetSpecialType(SpecialType.System_Object, diagnostics, node)); 3817operandType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 3824targetType = GetSpecialType(SpecialType.System_Object, diagnostics, node); 4054var objectType = GetSpecialType(SpecialType.System_Object, diagnostics, node);
Binder\Binder_Patterns.cs (7)
448bool isExplicitNotNullTest = boundType.Type.SpecialType == SpecialType.System_Object; 562strippedInputType.SpecialType is not SpecialType.System_Object and not SpecialType.System_ValueType) 824expressionType = conversions.CorLibrary.GetSpecialType(SpecialType.System_Object); 1114var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 1141var objectType = Compilation.GetSpecialType(SpecialType.System_Object); 1260if (declType != (object)Compilation.GetSpecialType(SpecialType.System_Object) && 1619bool isExplicitNotNullTest = patternType.Type.SpecialType == SpecialType.System_Object;
Binder\Binder_Statements.cs (1)
3828if (baseType.SpecialType == SpecialType.System_Object)
Binder\DecisionDagBuilder.cs (2)
326var objectType = this._compilation.GetSpecialType(SpecialType.System_Object); 464if (input.Type.IsDynamic() ? type.SpecialType == SpecialType.System_Object : conversion.IsImplicit)
Binder\ForEachLoopBinder.cs (2)
1163builder.ElementTypeWithAnnotations = builder.CurrentPropertyGetter?.ReturnTypeWithAnnotations ?? TypeWithAnnotations.Create(GetSpecialType(SpecialType.System_Object, diagnostics, errorLocationSyntax)); 1288GetSpecialType(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)
418TypeWithAnnotations.Create(compilation.GetSpecialType(SpecialType.System_Object), customModifiers: parameter.TypeWithAnnotations.CustomModifiers), parameter.RefCustomModifiers,
Binder\Semantics\Conversions\ConversionsBase.cs (3)
2645if (destination.SpecialType == SpecialType.System_Object || destination.Kind == SymbolKind.DynamicType) 3464if (source.SpecialType == SpecialType.System_Object) 3834if (specialTypeSource == SpecialType.System_Object || specialTypeSource == SpecialType.System_ValueType)
Binder\Semantics\Operators\BinaryOperatorOverloadResolution.cs (1)
785var @object = Compilation.GetSpecialType(SpecialType.System_Object);
Binder\Semantics\Operators\OperatorFacts.cs (1)
48case SpecialType.System_Object:
Binder\Semantics\OverloadResolution\OverloadResolution.cs (6)
203members.All(static m => m.ContainingSymbol is NamedTypeSymbol { BaseTypeNoUseSiteDiagnostics.SpecialType: SpecialType.System_Object })); 1629if (type.SpecialType == SpecialType.System_Object && currentType.SpecialType != SpecialType.System_Object) 1691if (type.IsClassType() && type.GetSpecialTypeSafe() != SpecialType.System_Object) 2781t1.IsDynamic() && t2.SpecialType == SpecialType.System_Object || 2782t2.IsDynamic() && t1.SpecialType == SpecialType.System_Object);
CodeGen\EmitConversion.cs (1)
385if (parameters[0].Type.SpecialType != SpecialType.System_Object) continue;
CodeGen\EmitOperators.cs (1)
375if (comparand is BoundConversion { Type.SpecialType: SpecialType.System_Object, ConversionKind: ConversionKind.Boxing, Operand.Type: TypeParameterSymbol { AllowsRefLikeType: true } } &&
CodeGen\EmitStatement.cs (1)
1050_module.GetSpecialType(SpecialType.System_Object, catchBlock.Syntax, _diagnostics.DiagnosticBag);
Compilation\BuiltInOperators.cs (3)
760return _compilation.GetSpecialType(SpecialType.System_Object); 795return _compilation.GetSpecialType(SpecialType.System_Object); 822case BinaryOperatorKind.Object: return _compilation.GetSpecialType(SpecialType.System_Object);
Compilation\CSharpCompilation.cs (2)
4291(SpecialType.System_Object, SpecialType.System_Object) or
Compilation\CSharpSemanticModel.cs (1)
3864var objectType = binaryOperator.Type.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Compiler\AnonymousTypeMethodBodySynthesizer.cs (1)
38Debug.Assert(ContainingType.BaseTypeNoUseSiteDiagnostics.SpecialType == SpecialType.System_Object);
Compiler\ClsComplianceChecker.cs (1)
532System.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); 95var objectType = compilation.GetSpecialType(SpecialType.System_Object);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
35_visitor = new Visitor(sourceAssembly, otherAssembly, synthesizedTypes, otherSynthesizedMembers, otherDeletedMembers, new DeepTranslator(otherAssembly.GetSpecialType(SpecialType.System_Object))); 273return _otherAssembly.GetSpecialType(SpecialType.System_Object);
Emitter\EditAndContinue\PEDeltaAssemblyBuilder.cs (1)
70_deepTranslator = new CSharpSymbolMatcher.DeepTranslator(sourceAssembly.GetSpecialType(SpecialType.System_Object));
Emitter\Model\NamedTypeSymbolAdapter.cs (3)
294baseType = AdaptedNamedTypeSymbol.ContainingAssembly.GetSpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object); 358else if (method.MethodKind == MethodKind.Destructor && AdaptedNamedTypeSymbol.SpecialType != SpecialType.System_Object) 365TypeSymbol objectType = AdaptedNamedTypeSymbol.DeclaringCompilation.GetSpecialType(CodeAnalysis.SpecialType.System_Object);
Emitter\Model\PEModuleBuilder.cs (2)
1442return GetSpecialType(SpecialType.System_Object, syntaxNodeOpt, diagnostics); 1826TypeSymbol unmatchedValueType = factory.SpecialType(SpecialType.System_Object);
Emitter\Model\TypeParameterSymbolAdapter.cs (1)
261case 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)
11586if (typeExpr.Type?.SpecialType == SpecialType.System_Object)
Lowering\AsyncRewriter\AsyncExceptionHandlerRewriter.cs (4)
186var exceptionType = _F.SpecialType(SpecialType.System_Object); 407LocalSymbol obj = _F.SynthesizedLocal(_F.SpecialType(SpecialType.System_Object)); 554var catchType = node.ExceptionTypeOpt ?? _F.SpecialType(SpecialType.System_Object); 1044this.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)
467? F.SpecialType(SpecialType.System_Object)
Lowering\ClosureConversion\ExpressionLambdaRewriter.cs (2)
104_objectType = _bound.SpecialType(SpecialType.System_Object); 369var 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)
2097TypeSymbol objectType = _compilation.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_ForEachStatement.cs (1)
402var objectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_LockStatement.cs (2)
36argumentType = _compilation.GetSpecialType(SpecialType.System_Object); 88argumentType = _compilation.GetSpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LocalRewriter_SwitchExpression.cs (1)
126var objectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\LocalRewriter\LoweredDynamicOperationFactory.cs (1)
898var systemObjectType = _factory.SpecialType(SpecialType.System_Object);
Lowering\SyntheticBoundNodeFactory.cs (2)
674var objectType = SpecialType(Microsoft.CodeAnalysis.SpecialType.System_Object); 1769TypeSymbol objectType = SpecialType(CodeAnalysis.SpecialType.System_Object);
SymbolDisplay\SymbolDisplayVisitor.Types.cs (1)
673case SpecialType.System_Object:
Symbols\AbstractTypeMap.cs (1)
391dynamicEraser = 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)
625return GetSpecialType(SpecialType.System_Object);
Symbols\Attributes\SourceAttributeData.cs (1)
430if (specType != SpecialType.System_Object)
Symbols\ConstraintsHelper.cs (8)
111switch (typeParameter.HasReferenceTypeConstraint ? SpecialType.None : (bounds?.EffectiveBaseClass.SpecialType ?? SpecialType.System_Object)) 113case SpecialType.System_Object: 143NamedTypeSymbol effectiveBaseClass = corLibrary.GetSpecialType(typeParameter.HasValueTypeConstraint ? SpecialType.System_ValueType : SpecialType.System_Object); 322Debug.Assert((effectiveBaseClass.SpecialType == SpecialType.System_Object) || (deducedBaseType.SpecialType != SpecialType.System_Object)); 326if ((constraintTypes.Length == 0) && (deducedBaseType.SpecialType == SpecialType.System_Object)) 328Debug.Assert(effectiveBaseClass.SpecialType == SpecialType.System_Object); 1627if (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)
726if (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)
1319(method.ContainingType.SpecialType == SpecialType.System_Object &&
Symbols\Metadata\PE\PETypeParameterSymbol.cs (2)
546Debug.Assert(type.HasType && type.SpecialType == SpecialType.System_Object); 710return this.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\MethodSymbolExtensions.cs (1)
61else if (method.ContainingType.SpecialType == SpecialType.System_Object)
Symbols\MissingMetadataTypeSymbol.cs (3)
335if (this.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object) 337return (int)Microsoft.CodeAnalysis.SpecialType.System_Object; 377this.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object)
Symbols\NamedTypeSymbol.cs (3)
772if (this.SpecialType == SpecialType.System_Object) 774return (int)SpecialType.System_Object; 794if (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), GetFirstLocation());
Symbols\Source\ParameterHelpers.cs (1)
779conversion.IsIdentity && parameterType.SpecialType == SpecialType.System_Object && defaultExpression.Type.IsDynamic())
Symbols\Source\SourceAssemblySymbol.cs (1)
1893var obj = GetSpecialType(SpecialType.System_Object);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
61var objectType = TypeWithAnnotations.Create(binder.GetSpecialType(SpecialType.System_Object, diagnostics, syntax));
Symbols\Source\SourceMemberContainerSymbol.cs (1)
2681if (method.IsOverride && method.GetConstructedLeastOverriddenMethod(this, requireSameReturnType: false).ContainingType.SpecialType == Microsoft.CodeAnalysis.SpecialType.System_Object)
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1051Debug.Assert(this.SpecialType == SpecialType.System_Object || this.DeclaringCompilation.IsAttributeType(this)); 1588if ((object)baseType != null && baseType.SpecialType != SpecialType.System_Object)
Symbols\Source\SourceNamedTypeSymbol_Bases.cs (4)
528if (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)
346return this.ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
192internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (2)
61internal override TypeSymbol GetDeducedBaseType(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object); 63internal override NamedTypeSymbol GetEffectiveBaseClass(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
608f.Convert(f.SpecialType(SpecialType.System_Object), fieldReference), 869internal override NamedTypeSymbol BaseTypeNoUseSiteDiagnostics => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
Symbols\Synthesized\Records\SynthesizedRecordBaseEquals.cs (1)
68F.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)
94retExpr = 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)
162internal 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\SynthesizedInlineArrayTypeSymbol.cs (2)
253internal override TypeSymbol GetDeducedBaseType(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object); 255internal override NamedTypeSymbol GetEffectiveBaseClass(ConsList<TypeParameterSymbol> inProgress) => ContainingAssembly.GetSpecialType(SpecialType.System_Object);
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)
196return type.SpecialType == SpecialType.System_Object; 1649if (type.SpecialType == SpecialType.System_Object) 2213case SpecialType.System_Object: return 0;
Syntax\SyntaxKindExtensions.cs (1)
46return SpecialType.System_Object;
Utilities\TypeSymbolExtensions.cs (2)
219if (type.SpecialType == SpecialType.System_Object) 279return compilation.Assembly.GetSpecialType(SpecialType.System_Object);
Microsoft.CodeAnalysis.CSharp.CodeStyle (13)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
94if (containingType.BaseType?.SpecialType != SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
393if (methodReference.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
123if (lambdaTypeInfo.ConvertedType == null || lambdaTypeInfo.ConvertedType.SpecialType is SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
208symbol.ContainingType?.SpecialType == SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
76if (semanticModel.GetTypeInfo(castExpression.Type).Type?.SpecialType == SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
88if (castType?.SpecialType == SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (2)
94Type.SpecialType: SpecialType.System_Object, 248=> value.UnwrapImplicitConversion() is IObjectCreationOperation { Type.SpecialType: SpecialType.System_Object };
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (5)
99if (current is IConversionOperation { Type.SpecialType: SpecialType.System_Object }) 552if (castNode.IsParentKind(SyntaxKind.Interpolation) && originalConversionOperation.Type?.SpecialType is SpecialType.System_Object) 726if (current.ContainingType.SpecialType == SpecialType.System_Object) 916if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 923else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object &&
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (12)
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
37methodSymbol.Parameters.First().Type.SpecialType == SpecialType.System_Object && 518else if (parameter.Type.SpecialType == SpecialType.System_Object) 1109var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
55type: semanticModel.GetTypeInfo(((ConstantPatternSyntax)positionalPattern.Subpatterns[i].Pattern).Expression, cancellationToken).Type ?? semanticModel.Compilation.GetSpecialType(SpecialType.System_Object),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
319if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
116targetType = semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
66if (type.SpecialType != SpecialType.System_Object)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (5)
1129return CreateResult(SpecialType.System_Object, NullableAnnotation.Annotated); 1268.Construct(Compilation.GetSpecialType(SpecialType.System_Object))); 1601return CreateResult(SpecialType.System_Object); 2200if (laterUsageInference is not [] and not [{ InferredType.SpecialType: SpecialType.System_Object }]) 2229if (inferredDescendantTypes is not [] and not [{ InferredType.SpecialType: 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)
18906TypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18923ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18949ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18974ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 18999ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19025ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19067ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19106ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19145ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 19184ITypeSymbol objectType = comp.GetSpecialType(SpecialType.System_Object); 28988var @object = comp.GetSpecialType(SpecialType.System_Object);
Emit\EmitMetadataTests.cs (1)
669CheckConstantField(type, "O", Accessibility.ProtectedOrInternal, SpecialType.System_Object, null);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Attributes\AttributeTests_Tuples.cs (1)
354Assert.Equal(SpecialType.System_Object, sender.Type.SpecialType);
Semantics\RecordTests.cs (1)
120Assert.Equal(SpecialType.System_Object, point.BaseTypeNoUseSiteDiagnostics.SpecialType);
Microsoft.CodeAnalysis.CSharp.Features (17)
Completion\CompletionProviders\ObjectCreationCompletionProvider.cs (1)
130if (namedTypeSymbol?.SpecialType == SpecialType.System_Object)
Completion\KeywordRecommenders\ObjectKeywordRecommender.cs (1)
53protected override SpecialType SpecialType => SpecialType.System_Object;
ConvertForEachToFor\CSharpConvertForEachToForCodeRefactoringProvider.cs (1)
70model.Compilation.GetSpecialType(SpecialType.System_Object);
ExtractMethod\CSharpMethodExtractor.Analyzer.cs (1)
43return info.Type == null || info.Type.SpecialType == SpecialType.System_Object
ExtractMethod\Extensions.cs (1)
258=> type == null || type.SpecialType == SpecialType.System_Object;
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
94if (containingType.BaseType?.SpecialType != SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
393if (methodReference.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
123if (lambdaTypeInfo.ConvertedType == null || lambdaTypeInfo.ConvertedType.SpecialType is SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UseCompoundAssignment\CSharpUseCompoundCoalesceAssignmentDiagnosticAnalyzer.cs (1)
208symbol.ContainingType?.SpecialType == SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseIsNullCheckForCastAndEqualityOperatorDiagnosticAnalyzer.cs (1)
76if (semanticModel.GetTypeInfo(castExpression.Type).Type?.SpecialType == SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
88if (castType?.SpecialType == SpecialType.System_Object)
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (2)
94Type.SpecialType: SpecialType.System_Object, 248=> value.UnwrapImplicitConversion() is IObjectCreationOperation { Type.SpecialType: SpecialType.System_Object };
src\Analyzers\CSharp\CodeFixes\ConvertToRecord\ConvertToRecordHelpers.cs (3)
37methodSymbol.Parameters.First().Type.SpecialType == SpecialType.System_Object && 518else if (parameter.Type.SpecialType == SpecialType.System_Object) 1109var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateDeconstructMethodService.cs (1)
55type: 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 (25)
Semantics\DelegateTypeTests.cs (2)
14784verifyConversions(model, expr, getFunctionType(funcOfT.Construct(comp.GetSpecialType(SpecialType.System_Object))), ConversionKind.NoConversion, ConversionKind.NoConversion); 15591var objectType = comp.GetSpecialType(SpecialType.System_Object);
Semantics\DynamicTests.cs (5)
70var dynamicToObject = c.Conversions.ClassifyConversionFromType(DynamicTypeSymbol.Instance, c.GetSpecialType(SpecialType.System_Object), ref useSiteDiagnostics); 71var objectToDynamic = c.Conversions.ClassifyConversionFromType(c.GetSpecialType(SpecialType.System_Object), DynamicTypeSymbol.Instance, ref useSiteDiagnostics); 2157var eraser = new DynamicTypeEraser(compilation.GetSpecialType(SpecialType.System_Object)); 2187Assert.Equal(SpecialType.System_Object, ebc.SpecialType); 4157var typeObject = comp.GetSpecialType(SpecialType.System_Object);
Semantics\ExpressionBodiedMemberTests.cs (1)
179Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.SpecialType);
Semantics\ForEachTests.cs (9)
1367Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1449Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1488Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1616Assert.Equal(SpecialType.System_Object, boundNode.IterationVariables.Single().Type.SpecialType); 1669Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1743Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 1827Assert.Equal(SpecialType.System_Object, info.ElementTypeWithAnnotations.SpecialType); 2140Assert.Equal(SpecialType.System_Object, loopInfo.CurrentProperty.Type.SpecialType); 2198Assert.Equal(SpecialType.System_Object, loopInfo1.ElementType.SpecialType); // No longer string.
Semantics\InterpolationTests.cs (1)
4828Assert.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)
115877var modifiers = ImmutableArray.Create(CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)));
Semantics\ObjectAndCollectionInitializerTests.cs (2)
3845Assert.Equal(SpecialType.System_Object, typeInfo.ConvertedType.SpecialType); 3869Assert.Equal(SpecialType.System_Object, typeInfo.ConvertedType.SpecialType);
Semantics\RawInterpolationTests_Handler.cs (1)
3129Assert.Equal(SpecialType.System_Object, semanticInfo.ConvertedType.SpecialType);
Semantics\RefLocalsAndReturnsTests.cs (1)
4929Assert.Equal(SpecialType.System_Object, model.GetTypeInfo(left).Type.SpecialType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (73)
Compilation\CompilationAPITests.cs (8)
2461var elementType = comp.GetSpecialType(SpecialType.System_Object); 2490var elementType = comp.GetSpecialType(SpecialType.System_Object); 2658var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 2698var memberTypes = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3032var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3052typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3067var typeArguments = ImmutableArray.Create<ITypeSymbol>(comp.GetSpecialType(SpecialType.System_Object), comp.GetSpecialType(SpecialType.System_String)); 3087typeArguments = 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)
41var obj = corLib.GetSpecialType(SpecialType.System_Object); 52Assert.Same(obj, consumer.GetSpecialType(SpecialType.System_Object)); 73Assert.True(consumer.GetSpecialType(SpecialType.System_Object).IsErrorType());
Symbols\CorLibrary\CorTypes.cs (5)
149if (t.SpecialType == SpecialType.System_Object) 195if (i != (int)SpecialType.System_Object) 221Assert.Equal(SpecialType.System_Object, system_object.SpecialType); 222Assert.Equal((ExtendedSpecialType)SpecialType.System_Object, system_object.ExtendedSpecialType); 226Assert.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); 2597Assert.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); 1981var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object)); 2137var objectMod = CSharpCustomModifier.CreateOptional(comp.GetSpecialType(SpecialType.System_Object));
Symbols\IndexerTests.cs (10)
60CheckIndexer(type.Indexers.Single(), false, true, SpecialType.System_Object, SpecialType.System_Int32, SpecialType.None); 63CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String); 131CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 134CheckIndexer(type.Indexers.Single(), true, false, SpecialType.System_Object, SpecialType.System_String); 137CheckIndexer(type.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 142CheckIndexer(typeAProperties[0], true, true, SpecialType.System_Object, SpecialType.System_String); 143CheckIndexer(typeAProperties[1], true, false, SpecialType.System_Object, SpecialType.System_String); 144CheckIndexer(typeAProperties[2], true, true, SpecialType.System_Object, SpecialType.System_String); 147CheckIndexer(sourceType.Indexers.Single(), true, true, SpecialType.System_Object, SpecialType.System_String); 158CheckIndexer(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)
921Assert.Equal(SpecialType.System_Object, interfaceMethod.ParameterTypesWithAnnotations.Single().SpecialType); 966Assert.Equal(SpecialType.System_Object, classMethod.ParameterTypesWithAnnotations.Single().SpecialType); 1403Assert.Equal(SpecialType.System_Object, classMethod.ReturnType.SpecialType); 1442Assert.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)
106Assert.Equal(SpecialType.System_Object, usingAliasType.SpecialType); 221Assert.Equal(SpecialType.System_Object, usingAliasType.SpecialType);
Symbols\TypedConstantTests.cs (1)
34_arrayType = _compilation.CreateArrayTypeSymbol(_compilation.GetSpecialType(SpecialType.System_Object));
Symbols\TypeTests.cs (4)
1254Assert.Equal(SpecialType.System_Object, typeC.BaseType().SpecialType); 1329if (derived.BaseType().SpecialType != SpecialType.System_Object) 1343Assert.Equal(SpecialType.System_Object, derivedTypes[1].BaseType().SpecialType); 1353Assert.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)
CodeGeneration\CSharpSyntaxGenerator.cs (1)
3436SpecialType.System_Object => ObjectKeyword,
Recommendations\CSharpRecommendationServiceRunner.cs (1)
872symbol.ContainingType.SpecialType is SpecialType.System_Object or SpecialType.System_ValueType)
Simplification\Simplifiers\AbstractCSharpSimplifier.cs (1)
55SpecialType.System_Object => SyntaxKind.ObjectKeyword,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (5)
99if (current is IConversionOperation { Type.SpecialType: SpecialType.System_Object }) 552if (castNode.IsParentKind(SyntaxKind.Interpolation) && originalConversionOperation.Type?.SpecialType is SpecialType.System_Object) 726if (current.ContainingType.SpecialType == SpecialType.System_Object) 916if (binaryOperation.LeftOperand.Type?.SpecialType == SpecialType.System_Object && 923else if (binaryOperation.RightOperand.Type?.SpecialType == SpecialType.System_Object &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\NamedTypeGenerator.cs (1)
319if (namedType.TypeKind == TypeKind.Class && namedType.BaseType != null && namedType.BaseType.SpecialType != Microsoft.CodeAnalysis.SpecialType.System_Object)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ExpressionSyntaxExtensions.cs (1)
116targetType = semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\ITypeParameterSymbolExtensions.cs (1)
66if (type.SpecialType != SpecialType.System_Object)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (5)
1129return CreateResult(SpecialType.System_Object, NullableAnnotation.Annotated); 1268.Construct(Compilation.GetSpecialType(SpecialType.System_Object))); 1601return CreateResult(SpecialType.System_Object); 2200if (laterUsageInference is not [] and not [{ InferredType.SpecialType: SpecialType.System_Object }]) 2229if (inferredDescendantTypes is not [] and not [{ InferredType.SpecialType: SpecialType.System_Object }])
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (1)
CodeGeneration\SyntaxGeneratorTests.cs (1)
308VerifySyntax<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 (19)
Completion\Providers\AbstractObjectInitializerCompletionProvider.cs (1)
144case SpecialType.System_Object:
Completion\Providers\AbstractSymbolCompletionProvider.cs (1)
62if (symbol.ContainingType?.SpecialType == SpecialType.System_Object)
ConvertForToForEach\AbstractConvertForToForEachCodeRefactoringProvider.cs (1)
349indexerType ?? semanticModel.Compilation.GetSpecialType(SpecialType.System_Object));
ConvertToInterpolatedString\AbstractConvertConcatenationToInterpolatedStringRefactoringProvider.cs (1)
245if (symbol?.ContainingType.SpecialType == SpecialType.System_Object)
ExtractClass\AbstractExtractClassRefactoringProvider.cs (1)
143private static bool HasBaseType(INamedTypeSymbol containingType) => containingType.BaseType?.SpecialType != SpecialType.System_Object;
ExtractMethod\MethodExtractor.Analyzer.cs (1)
272returnType ??= compilation.GetSpecialType(SpecialType.System_Object);
GenerateType\AbstractGenerateTypeService.State.cs (1)
246SpecialType.System_Object or
InheritanceMargin\AbstractInheritanceMarginService_Helpers.cs (1)
300.WhereAsArray(symbol => !symbol.IsErrorType() && symbol.SpecialType is not (SpecialType.System_Object or SpecialType.System_ValueType or SpecialType.System_Enum));
IntroduceVariable\AbstractIntroduceVariableService.cs (1)
427return semanticModel.Compilation.GetSpecialType(SpecialType.System_Object);
ReplaceMethodWithProperty\ReplaceMethodWithPropertyCodeRefactoringProvider.cs (1)
125if (current.ContainingType.SpecialType == SpecialType.System_Object)
src\Analyzers\Core\Analyzers\ForEachCast\AbstractForEachCastDiagnosticAnalyzer.cs (2)
99if (collectionElementType.SpecialType == SpecialType.System_Object) 158=> collectionElementType.SpecialType != SpecialType.System_Object ||
src\Analyzers\Core\Analyzers\Helpers\HashCodeAnalyzer\HashCodeAnalyzer.cs (1)
38var objectType = compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.cs (1)
233method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
src\Analyzers\Core\Analyzers\SimplifyInterpolation\AbstractSimplifyInterpolationHelpers.cs (1)
127return method.ContainingType.SpecialType == SpecialType.System_Object
src\Analyzers\Core\Analyzers\UseIsNullCheck\AbstractUseIsNullForReferenceEqualsDiagnosticAnalyzer.cs (1)
34var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object);
src\Analyzers\Core\Analyzers\UseNullPropagation\AbstractUseNullPropagationDiagnosticAnalyzer.cs (2)
95var objectType = context.Compilation.GetSpecialType(SpecialType.System_Object); 377if (typeSymbol?.SpecialType == SpecialType.System_Object)
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator.cs (1)
279var condition3 = typeParameter.HasReferenceTypeConstraint && typeParameter.ConstraintTypes.Any(static ts => ts.IsReferenceType && ts.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 (179)
Binding\Binder_AnonymousTypes.vb (1)
128Dim objectType As TypeSymbol = GetSpecialType(SpecialType.System_Object, initializerSyntax, diagnostics)
Binding\Binder_Attributes.vb (1)
798ReportDiagnostic(diagBag, conv.Operand.Syntax, ERRID.ERR_RequiredAttributeConstConversion2, If(conv.Operand.Type, _binder.Compilation.GetSpecialType(SpecialType.System_Object)), conv.Type)
Binding\Binder_Conversions.vb (1)
287Case SyntaxKind.CObjKeyword : targetType = SpecialType.System_Object
Binding\Binder_Expressions.vb (10)
552expressionType = GetSpecialType(SpecialType.System_Object, expression.Syntax, diagnostics) 803operand = ApplyImplicitConversion(node, GetSpecialType(SpecialType.System_Object, node.Expression, diagnostics), operand, diagnostics) 1439GetSpecialType(SpecialType.System_Object, expr.Syntax, diagnostics), Nothing) 1944dominantType = GetSpecialType(SpecialType.System_Object, node, diagnostics) 2011dominantType = If(boundFirstArg.Type, If(boundSecondArg.Type, GetSpecialType(SpecialType.System_Object, node, diagnostics))) 3765If type.SpecialType = SpecialType.System_Object OrElse type.IsExtensibleInterfaceNoUseSiteDiagnostics() Then 4214inferredElementType = GetSpecialType(SpecialType.System_Object, node, diagnostics) 4600Debug.Assert(dominantType.IsArrayType AndAlso DirectCast(dominantType, ArrayTypeSymbol).Rank = 1 AndAlso DirectCast(dominantType, ArrayTypeSymbol).ElementType.SpecialType = SpecialType.System_Object) 4606dominantType = GetSpecialType(SpecialType.System_Object, syntax, diagnostics) 4611dominantType = 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 3249If 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)
674If initializedObjectType.SpecialType = SpecialType.System_Object OrElse initializedObjectType.IsErrorType Then 677If initializedObjectType.SpecialType = SpecialType.System_Object Then
Binding\Binder_Operators.vb (3)
111GetSpecialType(SpecialType.System_Object, targetArgument.Syntax, diagnostics), 134GetSpecialType(SpecialType.System_Object, targetArgument.Syntax, diagnostics), 1207If operandType.SpecialType = SpecialType.System_Object Then
Binding\Binder_Query.vb (1)
4390inferredType = GetSpecialType(SpecialType.System_Object, source.Syntax, additionalDiagnostics)
Binding\Binder_Statements.vb (4)
811target.Type.SpecialType <> SpecialType.System_Object Then 1365If hasExplicitType AndAlso Not (symbol.IsConst AndAlso type.SpecialType = SpecialType.System_Object) Then 2451Dim container = If(exprSymbol IsNot Nothing, exprSymbol.ContainingSymbol, Compilation.GetSpecialType(SpecialType.System_Object)) 5118Return 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)
1915Dim objectType = constructor.ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Compilation\VisualBasicCompilation.vb (2)
1975Return GetSpecialType(SpecialType.System_Object) 3005If resolved <> SpecialType.System_Object Then
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (1)
70_deepTranslator = New VisualBasicSymbolMatcher.DeepTranslator(sourceAssembly.GetSpecialType(SpecialType.System_Object))
Emit\EditAndContinue\VisualBasicSymbolMatcher.vb (1)
31_visitor = New Visitor(sourceAssembly, otherAssembly, synthesizedTypes, otherSynthesizedMembersOpt, otherDeletedMembersOpt, New DeepTranslator(otherAssembly.GetSpecialType(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 (4)
157Me.F.SpecialType(SpecialType.System_Object))) 662Me.F.SpecialType(SpecialType.System_Object))) 730Me.F.SpecialType(SpecialType.System_Object))) 734Me.F.SpecialType(SpecialType.System_Object))))
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Spilling.vb (4)
333Me.F.SpecialType(SpecialType.System_Object))) 345Me.F.SpecialType(SpecialType.System_Object))) 356Me.F.SpecialType(SpecialType.System_Object))) 500Case 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)
258Debug.Assert(operandUnderlyingSpecialType <> SpecialType.System_Object OrElse isIsIsNot) 400If 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) 467Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToBooleanObject 476Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToByteObject 485Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSByteObject 494Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToShortObject 503Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUShortObject 512Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToIntegerObject 521Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToUIntegerObject 530Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToLongObject 539Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToULongObject 556Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDecimalObject 563Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToSingleObject 570Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToDoubleObject 576Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToCharObject 598Case SpecialType.System_Object : wellKnownHelper = WellKnownMember.Microsoft_VisualBasic_CompilerServices_Conversions__ToStringObject 604Case 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)
184Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Object) 196Dim type = ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Lowering\LambdaRewriter\LambdaRewriter.vb (1)
454Dim obj = frame.ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (1)
777result = 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)
2349If destination.SpecialType = SpecialType.System_Object Then 3395If destination.SpecialType = SpecialType.System_Object Then 3428If source.SpecialType = SpecialType.System_Object Then 3709If destination.SpecialType = SpecialType.System_Object Then 3905If 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)
3606If targetType.SpecialType <> SpecialType.System_Object Then 3729argumentType.SpecialType <> SpecialType.System_Object Then
Semantics\TypeInference\TypeArgumentInference.vb (2)
186arrayType.ElementType.SpecialType = SpecialType.System_Object Then 463Graph.ObjectType = unboundLambda.Binder.GetSpecialType(SpecialType.System_Object, lambdaParameter.IdentifierSyntax, Graph.Diagnostic)
Symbols\AnonymousTypes\AnonymousType_SymbolCollection.vb (1)
129Return Compilation.GetSpecialType(SpecialType.System_Object)
Symbols\AssemblySymbol.vb (1)
498Return GetSpecialType(SpecialType.System_Object)
Symbols\Attributes\SourceAttributeData.vb (1)
249foundMatch = specType = SpecialType.System_Object
Symbols\ConstantValueUtils.vb (1)
44boundValueType = binder.GetSpecialType(SpecialType.System_Object, initValueSyntax, diagnostics)
Symbols\ConstraintsHelper.vb (2)
175Case SpecialType.System_Object, 1101Case SpecialType.System_Object, SpecialType.System_ValueType
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
51Dim baseType = DeclaringCompilation.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceAssemblySymbol.vb (1)
937Dim obj = GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
83Dim objectType = binder.GetSpecialType(SpecialType.System_Object, syntax, diagnostics)
Symbols\Source\SourceMemberFieldSymbol.vb (2)
267constantType = ContainingAssembly.GetSpecialType(SpecialType.System_Object) 272constantType = ContainingAssembly.GetSpecialType(SpecialType.System_Object)
Symbols\Source\SourceNamedTypeSymbol.vb (3)
1378ReportUseSiteInfoForBaseType(Me.DeclaringCompilation.GetSpecialType(SpecialType.System_Object), declaredBase, diagnostics) 1382declaredOrDefaultBase = GetSpecialType(SpecialType.System_Object) 1397declaredOrDefaultBase = GetSpecialType(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)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
225If If(castType?.SpecialType = SpecialType.System_Object, False) AndAlso 415If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (7)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
207namedType.BaseType.SpecialType = SpecialType.System_Object Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (2)
37Case specialType.System_Object 79specialType = specialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
112SpecialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
96Case SpecialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
543If otherSideTypes.Any(Function(t) t.InferredType.SpecialType <> SpecialType.System_Object AndAlso Not t.InferredType.IsErrorType()) Then 664Return 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.ExpressionCompiler (2)
CompilationContext.vb (2)
134Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object) 200Dim objectType = Me.Compilation.GetSpecialType(SpecialType.System_Object)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Completion\CompletionProviders\OverrideCompletionProvider.vb (1)
193If overriddenMember.ContainingType.SpecialType = SpecialType.System_Object Then
Completion\KeywordRecommenders\Types\BuiltInTypesKeywordRecommender.vb (1)
94SpecialType.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) 1083Dim objectType = c1.GetSpecialType(System_Object) 1610Dim [object] = c1.GetSpecialType(System_Object) 2060c1.GetSpecialType(System_Object), 2107If fromIsNullable AndAlso [to].SpecialType = System_Object Then 2145If from.SpecialType = System_Object AndAlso toIsNullable Then 2200Private 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) 6262Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6263Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6264Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6302Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6420Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6487Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6583Dim getEnumerator = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerable__GetEnumerator), MethodSymbol) 6584Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6585Dim current = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__Current), PropertySymbol) 6586Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6632Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6634Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6666Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6667Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol) 6733Dim moveNext = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_Collections_IEnumerator__MoveNext), MethodSymbol) 6734Dim dispose = DirectCast(compilation.GetSpecialType(System_Object).ContainingAssembly.GetSpecialTypeMember(SpecialMember.System_IDisposable__Dispose), MethodSymbol)
Semantics\GetSemanticInfoTests.vb (3)
3784Assert.Equal(info.Type.SpecialType, SpecialType.System_Object) 3795Assert.Equal(info.Type.SpecialType, SpecialType.System_Object) 6222Assert.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)
47Dim obj = corLib.GetSpecialType(SpecialType.System_Object) 62Assert.Same(obj, consumer.GetSpecialType(SpecialType.System_Object)) 77Dim obj = corLib.GetSpecialType(SpecialType.System_Object) 89Assert.True(consumer.GetSpecialType(SpecialType.System_Object).IsErrorType())
SymbolsTests\CorLibrary\CorTypes.vb (4)
124If (t.SpecialType = SpecialType.System_Object) Then 163If (i <> SpecialType.System_Object) Then 187Assert.Equal(SpecialType.System_Object, system_object.SpecialType) 191Assert.Same(system_object, c1.Assembly.GetSpecialType(SpecialType.System_Object))
SymbolsTests\Metadata\PE\BaseTypeResolution.vb (2)
296Assert.Equal("System.Object", DirectCast(c1.Assembly.Modules(0), SourceModuleSymbol).GetCorLibType(SpecialType.System_Object).ToTestDisplayString()) 301Assert.Equal("System.Object[missing]", DirectCast(c2.Assembly.Modules(0), SourceModuleSymbol).GetCorLibType(SpecialType.System_Object).ToTestDisplayString())
SymbolsTests\Retargeting\RetargetingTests.vb (4)
435Assert.Equal(SpecialType.System_Object, sourceType.BaseType.SpecialType) 440Assert.Equal(SpecialType.System_Object, retargetingType.BaseType.SpecialType) 475Assert.Equal(SpecialType.System_Object, sourceType.BaseType.SpecialType) 480Assert.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)
4034Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object))) 4098Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object))) 4159Dim modifiers = ImmutableArray.Create(VisualBasicCustomModifier.CreateOptional(compilation.GetSpecialType(SpecialType.System_Object)))
SymbolsTests\TypedConstantTests.vb (1)
30_arrayType = _compilation.CreateArrayTypeSymbol(_compilation.GetSpecialType(SpecialType.System_Object))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
CodeGeneration\VisualBasicSyntaxGenerator.vb (1)
409Case SpecialType.System_Object
Simplification\Simplifiers\AbstractVisualBasicSimplifier.vb (1)
51Case SpecialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Utilities\CastAnalyzer.vb (2)
225If If(castType?.SpecialType = SpecialType.System_Object, False) AndAlso 415If castType.Equals(outerType) OrElse outerType.SpecialType = SpecialType.System_Object Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\CodeGeneration\NamedTypeGenerator.vb (1)
207namedType.BaseType.SpecialType = SpecialType.System_Object Then
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\ITypeSymbolExtensions.vb (2)
37Case specialType.System_Object 79specialType = specialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\StringExtensions.vb (1)
112SpecialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\Extensions\TypeSyntaxGeneratorVisitor.vb (1)
96Case SpecialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\VisualBasic\LanguageServices\VisualBasicTypeInferenceService.TypeInferrer.vb (2)
543If otherSideTypes.Any(Function(t) t.InferredType.SpecialType <> SpecialType.System_Object AndAlso Not t.InferredType.IsErrorType()) Then 664Return 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") 1353Dim params = {Generator.ParameterDeclaration("sender", Generator.TypeExpression(SpecialType.System_Object)), Generator.ParameterDeclaration("args", Generator.IdentifierName("EventArgs"))}
Microsoft.CodeAnalysis.Workspaces (16)
FindSymbols\FindReferences\DependentTypeFinder.cs (2)
215case SpecialType.System_Object: 219predicate: static n => n.BaseType?.SpecialType == SpecialType.System_Object).ConfigureAwait(false);
src\Compilers\Core\Portable\SpecialTypeExtensions.cs (1)
367=> specialType is >= SpecialType.System_Object and <= SpecialType.System_Runtime_CompilerServices_InlineArrayAttribute;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\IMethodSymbolExtensions.cs (1)
45method.Parameters is [{ Type.SpecialType: SpecialType.System_Object }, var secondParam] &&
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\INamedTypeSymbolExtensions.cs (1)
662ContainingType.SpecialType: SpecialType.System_Object,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (2)
512.Select(p => (p.Type ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(p.NullableAnnotation)); 517types = types.Concat((method.ReturnType ?? compilation.GetSpecialType(SpecialType.System_Object)).WithNullableAnnotation(method.ReturnNullableAnnotation));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (1)
378case SpecialType.System_Object:
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\PredefinedTypeExtensions.cs (1)
14PredefinedType.Object => SpecialType.System_Object,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SpecialTypeExtensions.cs (1)
14SpecialType.System_Object => PredefinedType.Object,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
759&& symbol.ContainingType.SpecialType == SpecialType.System_Object
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (1)
196=> symbol.IsKind(SymbolKind.NamedType, out ITypeSymbol? typeSymbol) && typeSymbol.SpecialType == SpecialType.System_Object;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions.cs (1)
92_ => compilation.GetSpecialType(SpecialType.System_Object),
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
60parameters: [CodeGenerationSymbolFactory.CreateParameterSymbol(compilation.GetSpecialType(SpecialType.System_Object).WithNullableAnnotation(NullableAnnotation.Annotated), ObjName)], 449method.Parameters[0].Type.SpecialType == SpecialType.System_Object &&
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_Negate.cs (1)
186else if (operation is IIsTypeOperation { TypeOperand.SpecialType: SpecialType.System_Object } && generatorInternal.SupportsPatterns(semanticModel.SyntaxTree.Options))
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Editing\SyntaxEditorTests.cs (1)
179editor.InsertBefore(fieldX, editor.Generator.FieldDeclaration("Z", editor.Generator.TypeExpression(SpecialType.System_Object), Accessibility.Public));
Microsoft.Extensions.Logging.Generators (1)
LoggerMessageGenerator.Parser.cs (1)
647while (currentClassType is { SpecialType: not SpecialType.System_Object })
Microsoft.Extensions.Options.SourceGeneration (2)
Parser.cs (1)
279while (baseType is not null && baseType.SpecialType != SpecialType.System_Object
ParserUtilities.cs (1)
89} while (type is not null && type.SpecialType != SpecialType.System_Object);
Microsoft.Gen.Logging (4)
Parsing\Parser.cs (1)
645while (currentClassType is { SpecialType: not SpecialType.System_Object })
Parsing\Parser.LogProperties.cs (1)
94while (namedType != null && namedType.SpecialType != SpecialType.System_Object)
Parsing\Parser.Records.cs (1)
36while (namedType != null && namedType.SpecialType != SpecialType.System_Object)
Parsing\TypeSymbolExtensions.cs (1)
80while (current != null && current.SpecialType != SpecialType.System_Object)
Microsoft.Interop.ComInterfaceGenerator (3)
Analyzers\ConvertComImportToGeneratedComInterfaceAnalyzer.cs (1)
222public bool CanProvideMarshallingInfoForType(ITypeSymbol type) => type is { TypeKind: TypeKind.Array or TypeKind.Delegate } or { SpecialType: SpecialType.System_Array or SpecialType.System_Object };
Analyzers\RuntimeComApiUsageWithSourceGeneratedComAnalyzer.cs (2)
146if (operand is IConversionOperation { Type.SpecialType: SpecialType.System_Object } objConversion) 174if (operand is IConversionOperation { Type.SpecialType: SpecialType.System_Object } objConversion)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
JSManagedTypeInfo.cs (1)
85case { SpecialType: SpecialType.System_Object }:
Microsoft.Interop.SourceGeneration (3)
IncrementalGeneratorInitializationContextExtensions.cs (1)
37(context, ct) => SymbolEqualityComparer.Default.Equals(context.Attributes[0].AttributeClass.ContainingAssembly, context.SemanticModel.Compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly))
MarshalAsWithCustomMarshallersParser.cs (1)
88if (type.SpecialType == SpecialType.System_Object && marshalAsInfo is MarshalAsScalarInfo(UnmanagedType.Struct, _))
TypeSymbolExtensions.cs (1)
83if (t.ContainingAssembly.Equals(compilation.GetSpecialType(SpecialType.System_Object).ContainingAssembly, SymbolEqualityComparer.Default))
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)
435if (typeSymbol.SpecialType == SpecialType.System_Object)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
CodeModel\CSharpCodeModelService.cs (1)
717case SpecialType.System_Object:
ObjectBrowser\DescriptionBuilder.cs (1)
111if (baseType.SpecialType is not SpecialType.System_Object and
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\VisualBasicCodeModelService.vb (1)
766If typeSymbol.SpecialType = SpecialType.System_Object Then
Mvc.Analyzers.Test (2)
CodeAnalysisExtensionsTest.cs (2)
318Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Object)); 366Assert.Equal(attributeData.ConstructorArguments[0].Value, compilation.GetSpecialType(SpecialType.System_Object));
System.Text.Json.SourceGeneration (5)
Helpers\KnownTypeSymbols.cs (1)
124public INamedTypeSymbol ObjectType => _ObjectType ??= Compilation.GetSpecialType(SpecialType.System_Object);
JsonSourceGenerator.Parser.cs (1)
1802SpecialType.System_Object ||
Model\TypeGenerationSpec.cs (3)
122if (property.PropertyType.SpecialType is SpecialType.System_Object || 134CollectionValueType!.SpecialType is not SpecialType.System_Object; 138CollectionValueType!.SpecialType is not SpecialType.System_Object;