13 instantiations of ComHandle
Microsoft.VisualStudio.LanguageServices (3)
Interop\ComHandle.cs (1)
106return new ComHandle<TNewHandle, TNewObject>(newHandle, newObject);
Interop\WeakComHandle.cs (2)
154return new ComHandle<THandle, TObject>(rcw, managedObject); 162return new ComHandle<THandle, TObject>(rcw);
Microsoft.VisualStudio.LanguageServices.Implementation (10)
CodeModel\CodeModelProjectCache.cs (1)
83return new ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>(newFileCodeModel);
CodeModel\Collections\BasesCollection.cs (1)
49_fileCodeModel = new ComHandle<EnvDTE.FileCodeModel, FileCodeModel>(fileCodeModel);
CodeModel\Collections\InheritsImplementsCollection.cs (1)
44_fileCodeModel = new ComHandle<EnvDTE.FileCodeModel, FileCodeModel>(fileCodeModel);
CodeModel\Collections\NamespaceCollection.cs (1)
44_fileCodeModel = new ComHandle<EnvDTE.FileCodeModel, FileCodeModel>(fileCodeModel);
CodeModel\Collections\TypeCollection.cs (1)
44_fileCodeModel = new ComHandle<EnvDTE.FileCodeModel, FileCodeModel>(fileCodeModel);
CodeModel\FileCodeModel.cs (1)
83_parentHandle = new ComHandle<object?, object?>(parent);
CodeModel\InternalElements\AbstractCodeElement.cs (1)
34_fileCodeModel = new ComHandle<EnvDTE.FileCodeModel, FileCodeModel>(fileCodeModel);
CodeModel\Interop\ApartmentSensitiveComObject.cs (1)
23return new ComHandle<THandle, TObject>((THandle)ComAggregate.CreateAggregatedObject((TObject)this), (TObject)this);
CodeModel\NodeKeyValidation.cs (1)
37var handle = new ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>(fileCodeModel);
CodeModel\ParentHandle.cs (1)
16=> _comHandle = new ComHandle<object, object>(parent);
35 references to ComHandle
Microsoft.VisualStudio.LanguageServices (3)
Interop\ComHandle.cs (1)
92public ComHandle<TNewHandle, TNewObject> Cast<TNewHandle, TNewObject>()
Interop\WeakComHandle.cs (2)
63public WeakComHandle(ComHandle<THandle, TObject> handle) 138public ComHandle<THandle, TObject>? ComHandle
Microsoft.VisualStudio.LanguageServices.Implementation (32)
CodeModel\CodeModelProjectCache.CacheEntry.cs (2)
33public CacheEntry(ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> handle) 47public ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>? ComHandle
CodeModel\CodeModelProjectCache.cs (10)
65public ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> GetOrCreateFileCodeModel(string filePath) 86public ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>? GetComHandleForFileCodeModel(string filePath) 93public ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> GetOrCreateFileCodeModel(string filePath, object? parent) 118var newFileCodeModel = FileCodeModel.Create(State, parent, documentId, isSourceGeneratorOutput: false, new TextManagerAdapter()); 155public IEnumerable<ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>> GetFileCodeModelInstances() 157var result = new List<ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>>(); 183foreach (var instance in instances) 193ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>? comHandle = null; 209ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>? comHandleToRename = null; 210ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>? comHandleToShutDown = null;
CodeModel\Collections\BasesCollection.cs (1)
36private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel;
CodeModel\Collections\InheritsImplementsCollection.cs (1)
32private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel;
CodeModel\Collections\NamespaceCollection.cs (1)
32private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel;
CodeModel\Collections\NodeSnapshot.cs (2)
19private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel; 26ComHandle<EnvDTE.FileCodeModel, FileCodeModel> fileCodeModel,
CodeModel\Collections\TypeCollection.cs (1)
32private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel;
CodeModel\FileCodeModel.cs (2)
34internal static ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> Create( 46private readonly ComHandle<object?, object?> _parentHandle;
CodeModel\InternalElements\AbstractCodeElement.cs (1)
23private readonly ComHandle<EnvDTE.FileCodeModel, FileCodeModel> _fileCodeModel;
CodeModel\Interop\ApartmentSensitiveComObject.cs (1)
19internal ComHandle<THandle, TObject> GetComHandle<THandle, TObject>()
CodeModel\NodeKeyValidation.cs (3)
14private readonly Dictionary<ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>, List<GlobalNodeKey>> _nodeKeysMap = []; 26foreach (var fcm in fcms) 37var handle = new ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>(fileCodeModel);
CodeModel\ParentHandle.cs (1)
13private readonly ComHandle<object, object> _comHandle;
CodeModel\ProjectCodeModel.cs (4)
74internal IEnumerable<ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel>> GetCachedFileCodeModelInstances() 77internal bool TryGetCachedFileCodeModel(string fileName, out ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> fileCodeModelHandle) 92public ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> GetOrCreateFileCodeModel(string filePath) 95public ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> GetOrCreateFileCodeModel(string filePath, object parent)
CodeModel\ProjectCodeModelFactory.cs (1)
179if (projectCodeModel.TryGetCachedFileCodeModel(filename, out var fileCodeModelHandle))
CodeModel\RootCodeModel.cs (1)
45private ComHandle<EnvDTE80.FileCodeModel2, FileCodeModel> GetFileCodeModel(object location)