151 references to FileCodeModel
Microsoft.VisualStudio.LanguageServices.Implementation (150)
CodeModel\AbstractCodeModelService.cs (1)
953if (codeElement == null || codeElement.FileCodeModel != fileCodeModel)
CodeModel\Collections\AttributeCollection.cs (1)
42get { return this.ParentElement.FileCodeModel; }
CodeModel\InternalElements\AbstractCodeElement.cs (17)
43=> FileCodeModel.GetSyntaxTree(); 46=> FileCodeModel.GetDocument(); 49=> FileCodeModel.GetSemanticModel(); 52=> FileCodeModel.GetProjectId(); 55=> FileCodeModel.GlobalOptions; 94FileCodeModel.EnsureEditor(() => 110=> UpdateNode(FileCodeModel.UpdateName, value); 159return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 174return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 187return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 199return FileCodeModel.TextManagerAdapter.CreateTextPoint(FileCodeModel, point.Value); 218get { return FileCodeModel.Parent; } 266FileCodeModel.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)
69? FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeElement>(containingNamespaceOrType) 70: this.FileCodeModel; 80(ICodeElements)InheritsImplementsCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey), 89return BasesCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey, interfaces: false); 102UpdateNode(FileCodeModel.UpdateDataTypeKind, value); 115return BasesCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey, interfaces: true); 123return TypeCollection.Create(this.State, this, this.FileCodeModel, this.NodeKey); 134? FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeNamespace>(namespaceNode) 197return FileCodeModel.EnsureEditor(() => 199FileCodeModel.AddBase(LookupNode(), @base, position); 215return FileCodeModel.EnsureEditor(() => 217var name = FileCodeModel.AddImplementedInterface(LookupNode(), @base, position); 233FileCodeModel.EnsureEditor(() => 235FileCodeModel.RemoveBase(LookupNode(), element); 241FileCodeModel.EnsureEditor(() => 243FileCodeModel.RemoveImplementedInterface(LookupNode(), element);
CodeModel\InternalElements\AbstractKeyedCodeElement.cs (6)
76FileCodeModel.UpdateCodeElementNodeKey(this, _nodeKey, newNodeKey); 83FileCodeModel.EnsureEditor(() => 100FileCodeModel.OnCodeElementDeleted(_nodeKey); 117FileCodeModel.EnsureEditor(() => 120nodeKeyValidation.AddFileCodeModel(this.FileCodeModel); 124FileCodeModel.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)
73? FileCodeModel.GetOrCreateCodeElement<EnvDTE.CodeNamespace>(namespaceNode) 74: this.FileCodeModel; 96UpdateNode(FileCodeModel.UpdateComment, value); 109UpdateNode(FileCodeModel.UpdateDocComment, value); 117return NamespaceCollection.Create(State, this, FileCodeModel, NodeKey); 128return FileCodeModel.EnsureEditor(() => 130return FileCodeModel.AddClass(LookupNode(), name, position, bases, implementedInterfaces, access); 136return FileCodeModel.EnsureEditor(() => 138return FileCodeModel.AddDelegate(LookupNode(), name, type, position, access); 144return FileCodeModel.EnsureEditor(() => 146return FileCodeModel.AddEnum(LookupNode(), name, position, bases, access); 152return FileCodeModel.EnsureEditor(() => 154return FileCodeModel.AddInterface(LookupNode(), name, position, bases, access); 160return FileCodeModel.EnsureEditor(() => 162return FileCodeModel.AddNamespace(LookupNode(), name, position); 168return FileCodeModel.EnsureEditor(() => 170return 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);
Microsoft.VisualStudio.LanguageServices.Test.Utilities2 (1)
CodeModel\CodeModelTestHelpers.vb (1)
192Dim projectId = codeElementImpl.FileCodeModel.GetProjectId()