141 references to ComAggregate
Microsoft.VisualStudio.LanguageServices (4)
Interop\ComHandle.cs (2)
38
_managedObject =
ComAggregate
.GetManagedObject<TObject>(handleOrManagedObject);
42
_handle = (THandle)
ComAggregate
.TryGetWrapper(handleOrManagedObject);
Interop\WeakComHandle.cs (1)
45
var managedObject =
ComAggregate
.GetManagedObject<TObject>(comAggregateObject);
LanguageService\AbstractLanguageService`2.cs (1)
109
=> Interop.
ComAggregate
.CreateAggregatedObject(this);
Microsoft.VisualStudio.LanguageServices.CSharp (4)
CodeModel\Extenders\AutoImplementedPropertyExtender.cs (1)
20
return (ICSAutoImplementedPropertyExtender)
ComAggregate
.CreateAggregatedObject(result);
CodeModel\Extenders\CodeTypeLocationExtender.cs (1)
20
return (ICSCodeTypeLocation)
ComAggregate
.CreateAggregatedObject(result);
CodeModel\Extenders\ExtensionMethodExtender.cs (1)
20
return (ICSExtensionMethodExtender)
ComAggregate
.CreateAggregatedObject(result);
CodeModel\Extenders\PartialMethodExtender.cs (1)
20
return (ICSPartialMethodExtender)
ComAggregate
.CreateAggregatedObject(result);
Microsoft.VisualStudio.LanguageServices.Implementation (105)
CodeModel\AbstractCodeModelObject.cs (1)
99
var parentInstance =
ComAggregate
.GetManagedObject<object>(parentObject);
CodeModel\AbstractCodeModelService.cs (10)
345
var parentObj =
ComAggregate
.GetManagedObject<AbstractCodeMember>(parent);
360
parentObject =
ComAggregate
.GetManagedObject<AbstractCodeElement>(parentElement);
380
parentObject =
ComAggregate
.GetManagedObject<AbstractCodeElement>(parentElement);
397
parentObj =
ComAggregate
.GetManagedObject<AbstractCodeElement>(parent);
417
var parentObj =
ComAggregate
.GetManagedObject<AbstractCodeMember>(parent);
444
var parentObj =
ComAggregate
.GetManagedObject<AbstractCodeMember>(parent);
463
var parentObj =
ComAggregate
.GetManagedObject<AbstractCodeMember>(parent);
473
var codeAttributeObj =
ComAggregate
.GetManagedObject<CodeAttribute>(codeAttribute);
624
var underlyingFileCodeModel =
ComAggregate
.GetManagedObject<FileCodeModel>(fileCodeModel);
952
var codeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(position);
CodeModel\CodeTypeRef.cs (1)
35
return (EnvDTE.CodeTypeRef)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\Collections\AttributeArgumentCollection.cs (1)
25
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\AttributeCollection.cs (1)
25
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\BasesCollection.cs (1)
33
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\EmptyCollection.cs (1)
25
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\Enumerator.cs (1)
18
return (IEnumerator)
ComAggregate
.CreateAggregatedObject(newEnumerator);
CodeModel\Collections\ExternalMemberCollection.cs (1)
29
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\ExternalNamespaceCollection.cs (1)
29
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\ExternalNamespaceEnumerator.cs (1)
24
return (IEnumerator)
ComAggregate
.CreateAggregatedObject(newEnumerator);
CodeModel\Collections\ExternalOverloadsCollection.cs (1)
27
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\ExternalParameterCollection.cs (1)
27
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\ExternalTypeCollection.cs (1)
27
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\InheritsImplementsCollection.cs (1)
30
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\NamespaceCollection.cs (1)
30
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\OverloadsCollection.cs (2)
27
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
80
var fileCodeModel =
ComAggregate
.GetManagedObject<FileCodeModel>(fileCodeModelObject);
CodeModel\Collections\ParameterCollection.cs (1)
24
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\PartialTypeCollection.cs (2)
27
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
63
var fileCodeModel =
ComAggregate
.GetManagedObject<FileCodeModel>(fileCodeModelObject);
CodeModel\Collections\TypeCollection.cs (1)
31
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\Collections\UnionCollection.cs (1)
27
return (EnvDTE.CodeElements)
ComAggregate
.CreateAggregatedObject(collection);
CodeModel\ExternalElements\ExternalCodeAccessorFunction.cs (1)
23
return (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeClass.cs (1)
23
return (EnvDTE.CodeClass)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\ExternalElements\ExternalCodeDelegate.cs (1)
22
return (EnvDTE.CodeDelegate)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeEnum.cs (1)
24
return (EnvDTE.CodeEnum)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeEvent.cs (1)
22
return (EnvDTE80.CodeEvent)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeFunction.cs (1)
23
return (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeInterface.cs (1)
23
return (EnvDTE.CodeInterface)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\ExternalElements\ExternalCodeNamespace.cs (1)
24
return (EnvDTE.CodeNamespace)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\ExternalElements\ExternalCodeParameter.cs (1)
21
return (EnvDTE.CodeParameter)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeProperty.cs (1)
22
return (EnvDTE.CodeProperty)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeStruct.cs (1)
23
return (EnvDTE.CodeStruct)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\ExternalElements\ExternalCodeUnknown.cs (1)
20
return (EnvDTE.CodeElement)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\ExternalElements\ExternalCodeVariable.cs (1)
21
return (EnvDTE.CodeVariable)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\FileCodeModel.cs (6)
210
var managedElement =
ComAggregate
.GetManagedObject<AbstractKeyedCodeElement>(codeElement);
256
var element =
ComAggregate
.GetManagedObject<AbstractCodeElement>(codeElement);
648
var codeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(element);
650
codeElement ??=
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(this.CodeElements.Item(element));
800
var keyedElement =
ComAggregate
.TryGetManagedObject<AbstractKeyedCodeElement>(element);
830
var keyedElement =
ComAggregate
.GetManagedObject<AbstractKeyedCodeElement>(element);
CodeModel\FileCodeModel_CodeGen.cs (2)
87
var codeElement =
ComAggregate
.TryGetManagedObject<AbstractKeyedCodeElement>(element);
189
var parentObj =
ComAggregate
.GetManagedObject<AbstractCodeMember>(parent);
CodeModel\FileCodeModel_Events.cs (5)
234
var parentCodeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeMember>(parentElement);
267
var fileCodeModel =
ComAggregate
.GetManagedObject<FileCodeModel>(parentElement);
290
var parentCodeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(parentObject);
298
var parentFileCodeModel =
ComAggregate
.TryGetManagedObject<FileCodeModel>(parentObject);
351
var parentCodeElement =
ComAggregate
.TryGetManagedObject<CodeAttribute>(parentElement);
CodeModel\FileCodeModel_Refactoring.cs (1)
21
var codeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(element);
CodeModel\InternalElements\AbstractCodeMember.cs (2)
191
var codeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(element);
193
codeElement ??=
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(this.Parameters.Item(element));
CodeModel\InternalElements\AbstractCodeType.cs (3)
167
var abstractCodeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(element);
176
abstractCodeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(this.Members.Item(codeElement.Name));
183
abstractCodeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(this.Members.Item(element));
CodeModel\InternalElements\CodeAccessorFunction.cs (1)
23
return (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\InternalElements\CodeAttribute.cs (1)
28
return (EnvDTE.CodeAttribute)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\InternalElements\CodeAttributeArgument.cs (1)
27
return (EnvDTE80.CodeAttributeArgument)
ComAggregate
.CreateAggregatedObject(newElement);
CodeModel\InternalElements\CodeClass.cs (2)
33
var result = (EnvDTE.CodeClass)
ComAggregate
.CreateAggregatedObject(element);
48
return (EnvDTE.CodeClass)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeDelegate.cs (2)
25
var result = (EnvDTE.CodeDelegate)
ComAggregate
.CreateAggregatedObject(element);
39
return (EnvDTE.CodeDelegate)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeEnum.cs (2)
23
var result = (EnvDTE.CodeEnum)
ComAggregate
.CreateAggregatedObject(element);
37
return (EnvDTE.CodeEnum)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeEvent.cs (2)
26
var result = (EnvDTE80.CodeEvent)
ComAggregate
.CreateAggregatedObject(element);
40
return (EnvDTE80.CodeEvent)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeFunction.cs (2)
29
var result = (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
43
return (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeFunctionDeclareDecl.cs (2)
28
var result = (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
42
return (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeFunctionWithEventHandler.cs (2)
23
var result = (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
37
return (EnvDTE.CodeFunction)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeImplementsStatement.cs (2)
26
var result = (EnvDTE80.CodeElement2)
ComAggregate
.CreateAggregatedObject(element);
38
return (EnvDTE80.CodeElement2)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeImport.cs (2)
28
var result = (EnvDTE80.CodeImport)
ComAggregate
.CreateAggregatedObject(element);
40
return (EnvDTE80.CodeImport)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeInheritsStatement.cs (2)
26
var result = (EnvDTE80.CodeElement2)
ComAggregate
.CreateAggregatedObject(element);
38
return (EnvDTE80.CodeElement2)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeInterface.cs (2)
24
var result = (EnvDTE.CodeInterface)
ComAggregate
.CreateAggregatedObject(element);
38
return (EnvDTE.CodeInterface)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeNamespace.cs (4)
28
var result = (EnvDTE.CodeNamespace)
ComAggregate
.CreateAggregatedObject(element);
42
return (EnvDTE.CodeNamespace)
ComAggregate
.CreateAggregatedObject(element);
176
var codeElement =
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(element);
178
codeElement ??=
ComAggregate
.TryGetManagedObject<AbstractCodeElement>(this.Members.Item(element));
CodeModel\InternalElements\CodeOptionsStatement.cs (2)
26
var result = (EnvDTE80.CodeElement2)
ComAggregate
.CreateAggregatedObject(element);
38
return (EnvDTE80.CodeElement2)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeParameter.cs (1)
29
return (EnvDTE.CodeParameter)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeProperty.cs (2)
27
var result = (EnvDTE.CodeProperty)
ComAggregate
.CreateAggregatedObject(element);
41
return (EnvDTE.CodeProperty)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeStruct.cs (2)
25
var result = (EnvDTE.CodeStruct)
ComAggregate
.CreateAggregatedObject(element);
39
return (EnvDTE.CodeStruct)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\InternalElements\CodeVariable.cs (2)
25
var result = (EnvDTE.CodeVariable)
ComAggregate
.CreateAggregatedObject(element);
39
return (EnvDTE.CodeVariable)
ComAggregate
.CreateAggregatedObject(element);
CodeModel\Interop\ApartmentSensitiveComObject.cs (1)
23
return new ComHandle<THandle, TObject>((THandle)
ComAggregate
.CreateAggregatedObject((TObject)this), (TObject)this);
CodeModel\RootCodeModel.cs (1)
26
return (EnvDTE.CodeModel)
ComAggregate
.CreateAggregatedObject(rootCodeModel);
RoslynVisualStudioWorkspace.cs (1)
169
var fileCodeModel =
ComAggregate
.GetManagedObject<FileCodeModel>(vsFileCodeModel);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (2)
CodeModel\CodeModelTestHelpers.vb (2)
185
Dim externalParentCodeElementImpl =
ComAggregate
.GetManagedObject(Of AbstractExternalCodeMember)(externalParentCodeElement)
190
Dim codeElementImpl =
ComAggregate
.GetManagedObject(Of AbstractCodeElement)(codeElement)
Microsoft.VisualStudio.LanguageServices.UnitTests (21)
CodeModel\AbstractCodeElementTests`1.vb (1)
453
Dim obj = Implementation.Interop.
ComAggregate
.GetManagedObject(Of Object)(codeElement)
CodeModel\CSharp\FileCodeModelTests.vb (4)
1110
Dim member1 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(parent)
1111
Dim member2 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(propertyP)
1164
Dim member1 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(parent)
1165
Dim member2 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(eventE)
CodeModel\CSharp\RootCodeModelTests.vb (4)
175
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
212
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
257
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
302
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
CodeModel\VisualBasic\FileCodeModelTests.vb (8)
1090
Dim member1 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(parent)
1091
Dim member2 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(classC)
1136
Dim member1 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(parent)
1137
Dim member2 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(classC)
1188
Dim member1 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(parent)
1189
Dim member2 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(propertyP)
1247
Dim member1 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(parent)
1248
Dim member2 =
ComAggregate
.GetManagedObject(Of AbstractCodeMember)(eventE)
CodeModel\VisualBasic\RootCodeModelTests.vb (4)
110
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
145
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
186
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
227
Dim underlyingFileCodeModel =
ComAggregate
.GetManagedObject(Of FileCodeModel)(fileCodeModel)
Microsoft.VisualStudio.LanguageServices.VisualBasic (5)
CodeModel\Extenders\AutoPropertyExtender.vb (1)
17
Return CType(
ComAggregate
.CreateAggregatedObject(result), IVBAutoPropertyExtender)
CodeModel\Extenders\CodeTypeLocationExtender.vb (1)
17
Return CType(
ComAggregate
.CreateAggregatedObject(result), IVBCodeTypeLocation)
CodeModel\Extenders\GenericExtender.vb (1)
22
Return CType(
ComAggregate
.CreateAggregatedObject(result), IVBGenericExtender)
CodeModel\Extenders\PartialMethodExtender.vb (1)
17
Return CType(
ComAggregate
.CreateAggregatedObject(result), IVBPartialMethodExtender)
LanguageService\VisualBasicPackage.vb (1)
64
_comAggregate = Implementation.Interop.
ComAggregate
.CreateAggregatedObject(Me)