79 references to ObjectType
Microsoft.CodeAnalysis (1)
Compilation\Compilation.cs (1)
1261var corLib = ObjectType.ContainingAssembly;
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
525return compilation.ObjectType;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (1)
73return new SymbolKeyResolution(reader.Compilation.ObjectType);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ITypeInferenceServiceExtensions.cs (2)
77return objectAsDefault ? semanticModel.Compilation.ObjectType : null; 107return objectAsDefault ? semanticModel.Compilation.ObjectType : null;
Microsoft.CodeAnalysis.CSharp (1)
Operations\CSharpOperationFactory.cs (1)
2012ITypeSymbol exceptionType = boundCatchBlock.ExceptionTypeOpt.GetPublicSymbol() ?? _semanticModel.Compilation.ObjectType;
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1502var convertedType = originalConversion.IsIdentity ? originalConvertedType : originalSemanticModel.Compilation.ObjectType;
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (3)
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
177inferredTupleTypes[i] = type is null ? semanticModel.Compilation.ObjectType : type;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\InternalExtensions.cs (2)
29return typeInfo.Type?.IsErrorType() == false ? typeInfo.Type : semanticModel.Compilation.ObjectType; 37return semanticModel.Compilation.ObjectType;
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (14)
CodeGen\CodeGenReadonlyStructTests.cs (14)
858namedType = namedType.Construct(comp.ObjectType); 885type = comp.CreateArrayTypeSymbol(comp.ObjectType); 893type = comp.ObjectType; 897INamedTypeSymbol iNamedType = comp.CreateAnonymousTypeSymbol(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol()), ImmutableArray.Create("qq")); 901type = (TypeSymbol)comp.CreatePointerTypeSymbol(comp.ObjectType); 905iNamedType = comp.CreateTupleTypeSymbol(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol(), comp.ObjectType.GetPublicSymbol())); 1022namedType = namedType.Construct(comp.ObjectType); 1049type = comp.CreateArrayTypeSymbol(comp.ObjectType); 1057type = comp.ObjectType; 1061INamedTypeSymbol iNamedType = comp.CreateAnonymousTypeSymbol(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol()), ImmutableArray.Create("qq")); 1065type = (TypeSymbol)comp.CreatePointerTypeSymbol(comp.ObjectType); 1069iNamedType = comp.CreateTupleTypeSymbol(ImmutableArray.Create<ITypeSymbol>(comp.ObjectType.GetPublicSymbol(), comp.ObjectType.GetPublicSymbol()));
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Semantics\OutVarTests.cs (8)
1058var conversion = model.ClassifyConversion(decl, model.Compilation.ObjectType, false); 1060Assert.Equal(conversion, model.ClassifyConversion(decl, model.Compilation.ObjectType, true)); 1061Assert.Equal(conversion, ((CSharpSemanticModel)model).ClassifyConversion(decl, model.Compilation.ObjectType, false)); 1062Assert.Equal(conversion, ((CSharpSemanticModel)model).ClassifyConversion(decl, model.Compilation.ObjectType, true)); 1063Assert.Equal(conversion, model.ClassifyConversion(decl.Position, decl, model.Compilation.ObjectType, false)); 1064Assert.Equal(conversion, model.ClassifyConversion(decl.Position, decl, model.Compilation.ObjectType, true)); 1065Assert.Equal(conversion, ((CSharpSemanticModel)model).ClassifyConversion(decl.Position, decl, model.Compilation.ObjectType, false)); 1066Assert.Equal(conversion, ((CSharpSemanticModel)model).ClassifyConversion(decl.Position, decl, model.Compilation.ObjectType, true));
Microsoft.CodeAnalysis.CSharp.Features (2)
GenerateType\CSharpGenerateTypeService.cs (1)
812property = CreatePropertySymbol(propertyName, semanticModel.Compilation.ObjectType);
src\Analyzers\CSharp\CodeFixes\FixReturnType\CSharpFixReturnTypeCodeFixProvider.cs (1)
177inferredTupleTypes[i] = type is null ? semanticModel.Compilation.ObjectType : type;
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\OperatorTests.cs (4)
8188signature = new BinaryOperatorSignature(op | BinaryOperatorKind.Object, compilation.ObjectType, compilation.ObjectType, 8199signature = new BinaryOperatorSignature(op | BinaryOperatorKind.String, leftType, compilation.ObjectType, leftType); 8204signature = new BinaryOperatorSignature(op | BinaryOperatorKind.String, compilation.ObjectType, rightType, rightType);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (13)
Compilation\CompilationAPITests.cs (5)
1731var taskOfObject = taskOfT.Construct(compilation.ObjectType); 1734Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfT.ContainingAssembly); 1735Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfObject.ContainingAssembly); 1756Assert.Same(firstCompilation.ObjectType, secondCompilation.ObjectType);
Compilation\UsedAssembliesTests.cs (4)
92bool hasCoreLibraryRef = !comp.ObjectType.IsErrorType(); 97Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used[0])); 644Assert.Same(comp2.ObjectType.ContainingAssembly, comp2.GetAssemblyOrModuleSymbol(used[0])); 2333Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used[0]));
Symbols\ImplicitClassTests.cs (2)
34Assert.Equal(c.ObjectType, implicitClass.BaseType()); 47Assert.Equal(c2.ObjectType, implicitClass.BaseType());
Symbols\OverriddenOrHiddenMembersTests.cs (2)
3690var validatorBaseObject = validatorBaseT.Construct(compilation.ObjectType); 3946var validatorBaseObject = validatorBaseT.Construct(compilation.ObjectType);
Microsoft.CodeAnalysis.CSharp.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\Simplifiers\CastSimplifier.cs (1)
1502var convertedType = originalConversion.IsIdentity ? originalConvertedType : originalSemanticModel.Compilation.ObjectType;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\Extensions\InternalExtensions.cs (2)
29return typeInfo.Type?.IsErrorType() == false ? typeInfo.Type : semanticModel.Compilation.ObjectType; 37return semanticModel.Compilation.ObjectType;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
MetadataAsSource\MetadataAsSourceTests.cs (1)
1913var result = await context.GenerateSourceAsync(compilation.ObjectType);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (2)
112Return semanticModel.Compilation.ObjectType 136Return semanticModel.Compilation.ObjectType
Microsoft.CodeAnalysis.VisualBasic.Features (1)
GenerateType\VisualBasicGenerateTypeService.vb (1)
706propertySymbol = GenerateProperty(propertyName, semanticModel.Compilation.ObjectType)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (6)
Compilation\CompilationAPITests.vb (6)
817AssertEx.Equal(Of String)("Object", comp.ObjectType.Name) 2103Dim taskOfObject = taskOfT.Construct(compilation.ObjectType) 2106Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfT.ContainingAssembly) 2107Assert.Same(compilation.ObjectType.ContainingAssembly, taskOfObject.ContainingAssembly) 2128Assert.Same(firstCompilation.ObjectType, secondCompilation.ObjectType)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (4)
UsedAssembliesTests.vb (4)
83Dim hasCoreLibraryRef As Boolean = comp.ObjectType.Kind = SymbolKind.NamedType 87Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used(0))) 466Assert.Same(comp2.ObjectType.ContainingAssembly, comp2.GetAssemblyOrModuleSymbol(used(0))) 2057Assert.Same(comp.ObjectType.ContainingAssembly, comp.GetAssemblyOrModuleSymbol(used(0)))
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\VisualBasic\Extensions\ExpressionSyntaxExtensions.vb (2)
112Return semanticModel.Compilation.ObjectType 136Return semanticModel.Compilation.ObjectType
Microsoft.CodeAnalysis.Workspaces (4)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ISymbolExtensions.cs (1)
525return compilation.ObjectType;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AnonymousTypeSymbolKey.cs (1)
73return new SymbolKeyResolution(reader.Compilation.ObjectType);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\ITypeInferenceServiceExtensions.cs (2)
77return objectAsDefault ? semanticModel.Compilation.ObjectType : null; 107return objectAsDefault ? semanticModel.Compilation.ObjectType : null;
Microsoft.Interop.LibraryImportGenerator (4)
Analyzers\ConvertToLibraryImportFixer.cs (4)
593CallingConvention.Cdecl => editor.SemanticModel.Compilation.ObjectType.ContainingAssembly. 595CallingConvention.StdCall => editor.SemanticModel.Compilation.ObjectType.ContainingAssembly. 597CallingConvention.ThisCall => editor.SemanticModel.Compilation.ObjectType.ContainingAssembly. 599CallingConvention.FastCall => editor.SemanticModel.Compilation.ObjectType.ContainingAssembly.
Microsoft.VisualStudio.LanguageServices (1)
Venus\ContainedLanguageCodeSupport.cs (1)
388if (!method.Parameters[0].Type.Equals(compilation.ObjectType))