149 references to FileCodeModel
Microsoft.VisualStudio.LanguageServices.Implementation (149)
CodeModel\AbstractCodeModelService.cs (1)
952if (codeElement == null || codeElement.FileCodeModel != fileCodeModel)
CodeModel\Collections\AttributeCollection.cs (1)
42get { return this.ParentElement.FileCodeModel; }
CodeModel\InternalElements\AbstractCodeElement.cs (16)
42=> FileCodeModel.GetSyntaxTree(); 45=> FileCodeModel.GetDocument(); 48=> FileCodeModel.GetSemanticModel(); 51=> FileCodeModel.GetProjectId(); 90FileCodeModel.EnsureEditor(() => 106=> UpdateNode(FileCodeModel.UpdateName, value); 155return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 170return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 183return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 195return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 214get { return FileCodeModel.Parent; } 262FileCodeModel.PerformEdit(document =>
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\AbstractKeyedCodeElement.cs (6)
72FileCodeModel.UpdateCodeElementNodeKey(this, NodeKey, newNodeKey); 79FileCodeModel.EnsureEditor(() => 96FileCodeModel.OnCodeElementDeleted(NodeKey); 113FileCodeModel.EnsureEditor(() => 116nodeKeyValidation.AddFileCodeModel(this.FileCodeModel); 120FileCodeModel.UpdateName(node, value);
CodeModel\InternalElements\CodeAccessorFunction.cs (2)
30: base(state, parent.FileCodeModel) 91UpdateNode(FileCodeModel.UpdateAccess, value);
CodeModel\InternalElements\CodeAttribute.cs (6)
56: FileCodeModel.GetSyntaxRoot(); 77public override object Parent => _parent ?? (object)this.FileCodeModel; 107UpdateNode(FileCodeModel.UpdateAttributeTarget, value); 120UpdateNode(FileCodeModel.UpdateAttributeValue, value); 142return FileCodeModel.EnsureEditor(() => 144return FileCodeModel.AddAttributeArgument(LookupNode(), name, value, position);
CodeModel\InternalElements\CodeAttributeArgument.cs (1)
34: base(state, parent.FileCodeModel)
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\CodeDelegate.cs (3)
83this.FileCodeModel.GetProjectId(), 84this.FileCodeModel.GetCompilation().GetSpecialType(SpecialType.System_Delegate)); 101UpdateNodeAndReacquireNodeKey(FileCodeModel.UpdateType, value, trackKinds: false);
CodeModel\InternalElements\CodeEnum.cs (2)
65return FileCodeModel.EnsureEditor(() => 67return FileCodeModel.AddEnumMember(LookupNode(), name, value, position);
CodeModel\InternalElements\CodeEvent.cs (1)
160UpdateNodeAndReacquireNodeKey(FileCodeModel.UpdateType, value, trackKinds: false);
CodeModel\InternalElements\CodeFunction.cs (3)
98UpdateNode(FileCodeModel.UpdateCanOverride, value); 139return OverloadsCollection.Create(this.FileCodeModel.State, this); 161UpdateNodeAndReacquireNodeKey(FileCodeModel.UpdateType, value, trackKinds: false);
CodeModel\InternalElements\CodeFunctionWithEventHandler.cs (2)
63FileCodeModel.PerformEdit(document => 76FileCodeModel.PerformEdit(document =>
CodeModel\InternalElements\CodeImplementsStatement.cs (1)
50: base(state, parent.FileCodeModel)
CodeModel\InternalElements\CodeImport.cs (2)
73: FileCodeModel.GetSyntaxRoot(); 110return FileCodeModel;
CodeModel\InternalElements\CodeInheritsStatement.cs (1)
50: base(state, parent.FileCodeModel)
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\CodeOptionsStatement.cs (2)
69var parentNode = this.FileCodeModel.GetSyntaxRoot(); 91get { return this.FileCodeModel; }
CodeModel\InternalElements\CodeParameter.cs (7)
39: base(state, parent.FileCodeModel) 153UpdateNodeAndReacquireParentNodeKey(FileCodeModel.UpdateType, value); 166UpdateNodeAndReacquireParentNodeKey(FileCodeModel.UpdateParameterKind, value); 179UpdateNode(FileCodeModel.UpdateInitExpression, value); 185return FileCodeModel.EnsureEditor(() => 187return FileCodeModel.AddAttribute(LookupNode(), name, value, position); 197var compilation = this.FileCodeModel.GetCompilation();
CodeModel\InternalElements\CodeProperty.cs (3)
106return FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeElement>(containingTypeNode); 195UpdateNodeAndReacquireNodeKey(FileCodeModel.UpdateType, value, trackKinds: false); 208UpdateNode(FileCodeModel.UpdateIsDefault, value);
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);
CodeModel\InternalElements\CodeVariable.cs (4)
92UpdateNode(FileCodeModel.UpdateConstKind, value); 112UpdateNode(FileCodeModel.UpdateInitExpression, (string)value); 130UpdateNode(FileCodeModel.UpdateIsConstant, value); 153UpdateNodeAndReacquireNodeKey(FileCodeModel.UpdateType, value, trackKinds: false);