CodeModel\CodeTypeRef.cs (5)
51if (CodeModelService.ResolveSymbol(this.State.Workspace, _projectId, _symbolId) is not ITypeSymbol typeSymbol)
71get { return (EnvDTE.CodeType)CodeModelService.CreateCodeType(this.State, _projectId, LookupTypeSymbol()); }
84return CodeTypeRef.Create(this.State, null, _projectId, arrayType);
94return CodeTypeRef.Create(this.State, this, _projectId, ((IArrayTypeSymbol)typeSymbol).ElementType);
98return CodeTypeRef.Create(this.State, this, _projectId, ((IPointerTypeSymbol)typeSymbol).PointedAtType);
CodeModel\Collections\NamespaceCollection.cs (7)
74return CodeOptionsStatement.Create(this.State, this.FileCodeModel, name, ordinal);
81return CodeImport.Create(this.State, this.FileCodeModel, parentElement, name);
88return (EnvDTE.CodeElement)CodeAttribute.Create(this.State, this.FileCodeModel, parentElement, name, ordinal);
97return new NodeSnapshot(this.State, _fileCodeModel, node, parentElement,
178element = CodeOptionsStatement.Create(State, FileCodeModel, childName, ordinal);
189element = CodeImport.Create(State, FileCodeModel, parentElement, childName);
200element = (EnvDTE.CodeElement)CodeAttribute.Create(State, FileCodeModel, parentElement, childName, ordinal);
CodeModel\ExternalElements\ExternalCodeEvent.cs (4)
53return ExternalCodeAccessorFunction.Create(this.State, this.ProjectId, symbol.AddMethod, this);
92return ExternalCodeAccessorFunction.Create(this.State, this.ProjectId, symbol.RemoveMethod, this);
112return ExternalCodeAccessorFunction.Create(this.State, this.ProjectId, symbol.RaiseMethod, this);
125return CodeTypeRef.Create(this.State, this, this.ProjectId, EventSymbol.Type);
CodeModel\FileCodeModel_CodeGen.cs (15)
150return (EnvDTE80.CodeAttributeArgument)CodeModelService.CreateInternalCodeElement(this.State, fileCodeModel: this, node: newNode);
161return (EnvDTE.CodeAttribute)CodeModelService.CreateInternalCodeElement(this.State, fileCodeModel: this, node: newNode);
186return CodeParameter.Create(this.State, parentObj, CodeModelService.GetParameterName(newNode));
220return (EnvDTE.CodeClass)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newType);
236return (EnvDTE.CodeDelegate)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newType);
250return (EnvDTE.CodeEnum)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newType);
279return (EnvDTE.CodeVariable)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newField);
295return (EnvDTE80.CodeEvent)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newEvent);
329return (EnvDTE.CodeFunction)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newMember);
339return (EnvDTE80.CodeImport)CodeModelService.CreateInternalCodeElement(this.State, fileCodeModel: this, node: newNode);
365return (EnvDTE.CodeInterface)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newType);
376return (EnvDTE.CodeNamespace)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newNamespace);
407return (EnvDTE.CodeProperty)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newProperty);
435return (EnvDTE.CodeStruct)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newType);
450return (EnvDTE.CodeVariable)CreateInternalCodeMember(this.State, fileCodeModel: this, node: newField);
CodeModel\FileCodeModel_Events.cs (9)
24_ = _codeElementTable.CleanUpDeadObjectsAsync(State.ProjectCodeModelFactory.Listener).ReportNonFatalErrorAsync();
58var projectCodeModel = this.State.ProjectCodeModelFactory.GetProjectCodeModel(document.Project.Id);
69var extensibility = (EnvDTE80.IVsExtensibility2)this.State.ServiceProvider.GetService(typeof(EnvDTE.IVsExtensibility));
143element = this.CodeModelService.CreateUnknownRootNamespaceCodeElement(this.State, this);
161element = this.CodeModelService.CreateUnknownCodeElement(this.State, this, codeModelEvent.Node);
237return (EnvDTE.CodeElement)CodeParameter.Create(this.State, parentCodeElement, parameterName);
293return (EnvDTE.CodeElement)CodeAttribute.Create(this.State, this, parentCodeElement, name, ordinal);
301return (EnvDTE.CodeElement)CodeAttribute.Create(this.State, this, null, name, ordinal);
354return (EnvDTE.CodeElement)CodeAttributeArgument.Create(this.State, parentCodeElement, ordinal);
CodeModel\InternalElements\AbstractCodeType.cs (5)
76return UnionCollection.Create(this.State, this,
78(ICodeElements)InheritsImplementsCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey),
87return BasesCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey, interfaces: false);
113return BasesCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey, interfaces: true);
121return TypeCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey);