CodeModel\InternalElements\AbstractCodeMember.cs (12)
52return FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeElement>(containingTypeNode);
66UpdateNode(FileCodeModel.UpdateAccess, value);
88UpdateNode(FileCodeModel.UpdateComment, value);
102UpdateNode(FileCodeModel.UpdateDocComment, value);
125UpdateNodeAndReacquireNodeKey(FileCodeModel.UpdateIsShared, value);
139UpdateNode(FileCodeModel.UpdateMustImplement, value);
153UpdateNode(FileCodeModel.UpdateOverrideKind, value);
167return FileCodeModel.EnsureEditor(() =>
174var parameter = FileCodeModel.AddParameter(this, node, name, type, position);
184FileCodeModel.EnsureEditor(() =>
208return FileCodeModel.EnsureEditor(() =>
210return FileCodeModel.AddAttribute(LookupNode(), name, value, position);
CodeModel\InternalElements\AbstractCodeType.cs (16)
67? FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeElement>(containingNamespaceOrType)
68: this.FileCodeModel;
78(ICodeElements)InheritsImplementsCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey),
87return BasesCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey, interfaces: false);
100UpdateNode(FileCodeModel.UpdateDataTypeKind, value);
113return BasesCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey, interfaces: true);
121return TypeCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey);
132? FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeNamespace>(namespaceNode)
195return FileCodeModel.EnsureEditor(() =>
197FileCodeModel.AddBase(LookupNode(), @base, position);
213return FileCodeModel.EnsureEditor(() =>
215var name = FileCodeModel.AddImplementedInterface(LookupNode(), @base, position);
231FileCodeModel.EnsureEditor(() =>
233FileCodeModel.RemoveBase(LookupNode(), element);
239FileCodeModel.EnsureEditor(() =>
241FileCodeModel.RemoveImplementedInterface(LookupNode(), element);
CodeModel\InternalElements\CodeClass.cs (18)
115UpdateNode(FileCodeModel.UpdateClassKind, value);
128UpdateNode(FileCodeModel.UpdateInheritanceKind, value);
144return FileCodeModel.EnsureEditor(() =>
146return FileCodeModel.AddClass(LookupNode(), name, position, bases, implementedInterfaces, access);
152return FileCodeModel.EnsureEditor(() =>
154return FileCodeModel.AddDelegate(LookupNode(), name, type, position, access);
160return FileCodeModel.EnsureEditor(() =>
162return FileCodeModel.AddEnum(LookupNode(), name, position, bases, access);
168return FileCodeModel.EnsureEditor(() =>
170return FileCodeModel.AddEvent(LookupNode(), name, fullDelegateName, createPropertyStyleEvent, location, access);
176return FileCodeModel.EnsureEditor(() =>
178return FileCodeModel.AddFunction(LookupNode(), name, kind, type, position, access);
184return FileCodeModel.EnsureEditor(() =>
186return FileCodeModel.AddProperty(LookupNode(), getterName, putterName, type, position, access);
192return FileCodeModel.EnsureEditor(() =>
194return FileCodeModel.AddStruct(LookupNode(), name, position, bases, implementedInterfaces, access);
200return FileCodeModel.EnsureEditor(() =>
204return FileCodeModel.AddVariable(LookupNode(), name, type, position, access);
CodeModel\InternalElements\CodeInterface.cs (6)
66return FileCodeModel.EnsureEditor(() =>
68return FileCodeModel.AddFunction(LookupNode(), name, kind, type, position, access);
74return FileCodeModel.EnsureEditor(() =>
76return FileCodeModel.AddProperty(LookupNode(), getterName, putterName, type, position, access);
82return FileCodeModel.EnsureEditor(() =>
85return FileCodeModel.AddEvent(LookupNode(), name, fullDelegateName, false, position, access);
CodeModel\InternalElements\CodeNamespace.cs (17)
72? FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeNamespace>(namespaceNode)
73: this.FileCodeModel;
95UpdateNode(FileCodeModel.UpdateComment, value);
108UpdateNode(FileCodeModel.UpdateDocComment, value);
116return NamespaceCollection.Create(State, this, FileCodeModel, NodeKey);
127return FileCodeModel.EnsureEditor(() =>
129return FileCodeModel.AddClass(LookupNode(), name, position, bases, implementedInterfaces, access);
135return FileCodeModel.EnsureEditor(() =>
137return FileCodeModel.AddDelegate(LookupNode(), name, type, position, access);
143return FileCodeModel.EnsureEditor(() =>
145return FileCodeModel.AddEnum(LookupNode(), name, position, bases, access);
151return FileCodeModel.EnsureEditor(() =>
153return FileCodeModel.AddInterface(LookupNode(), name, position, bases, access);
159return FileCodeModel.EnsureEditor(() =>
161return FileCodeModel.AddNamespace(LookupNode(), name, position);
167return FileCodeModel.EnsureEditor(() =>
169return FileCodeModel.AddStruct(LookupNode(), name, position, bases, implementedInterfaces, access);
CodeModel\InternalElements\CodeStruct.cs (16)
88return FileCodeModel.EnsureEditor(() =>
90return FileCodeModel.AddClass(LookupNode(), name, position, bases, implementedInterfaces, access);
96return FileCodeModel.EnsureEditor(() =>
98return FileCodeModel.AddDelegate(LookupNode(), name, type, position, access);
104return FileCodeModel.EnsureEditor(() =>
106return FileCodeModel.AddEnum(LookupNode(), name, position, bases, access);
112return FileCodeModel.EnsureEditor(() =>
114return FileCodeModel.AddEvent(LookupNode(), name, fullDelegateName, createPropertyStyleEvent, position, access);
120return FileCodeModel.EnsureEditor(() =>
122return FileCodeModel.AddFunction(LookupNode(), name, kind, type, position, access);
128return FileCodeModel.EnsureEditor(() =>
130return FileCodeModel.AddProperty(LookupNode(), getterName, putterName, type, position, access);
136return FileCodeModel.EnsureEditor(() =>
138return FileCodeModel.AddStruct(LookupNode(), name, position, bases, implementedInterfaces, access);
144return FileCodeModel.EnsureEditor(() =>
146return FileCodeModel.AddVariable(LookupNode(), name, type, position, access);