public NDjangoSymbolLibrary()
        {
            root = new ResultList("Test template", "", "testTemplace.zzz", 0, 0, ResultList.LibraryNodeType.Package);

            namespaceNode = new ResultList("ClassLibrary1", "", "Class1.cs", 7, 0, ResultList.LibraryNodeType.Namespaces);
            classNode = new ResultList("Class1", "ClassLibrary1.", "Class1.cs", 7, 17, ResultList.LibraryNodeType.Members);
            memberNode = new ResultList("GetBlaBlaBla", "ClassLibrary1.Class1.", "Class1.cs", 9, 22, ResultList.LibraryNodeType.Members);

            //ModelReferenceList classReferenceNode = new ModelReferenceList(@"C:\temp\c1.cs", "test.", "test class reference", 5, 4);
            //classNode.AddChild(classReferenceNode);

            //MemberReferenceList methodReferenceNode = new MemberReferenceList(@"C:\temp\c22.cs", "test2.", "test member reference", 5, 4);
            //memberNode.AddChild(methodReferenceNode);

            root.AddChild(memberNode);
            root.AddChild(classNode);
            root.AddChild(namespaceNode);

            objRoot = new ResultList(root);
            objRoot.Children.Clear();
            objRoot.Children.Add(new ResultList("ClassLibrary1", "", "Class1.cs", 7, 0, ResultList.LibraryNodeType.Namespaces));
            objRoot.Children[0].Children.Add(new ResultList("Class1", "ClassLibrary1.", "Class1.cs", 7, 17, ResultList.LibraryNodeType.Classes));
            objRoot.Children[0].Children[0].Children.Add(new ResultList("GetBlaBlaBla", "ClassLibrary1.Class1.", "Class1.cs", 9, 22, ResultList.LibraryNodeType.Members));

            //GetSupportedFileList();
        }
Пример #2
0
 internal ResultList(ResultList node)
 {
     this.symbolText = node.symbolText;
     this.symbolPrefix = node.symbolPrefix;
     this.fName = node.fName;
     this.lineNumber = node.lineNumber;
     this.columnNumber = node.columnNumber;
     this.nodeType = node.nodeType;
     node.children.ForEach(c => AddChild(c));
 }
Пример #3
0
 public void RemoveChild(ResultList child)
 {
     children.Remove(child);
     updateCount++;
 }
Пример #4
0
 public void AddChild(ResultList child)
 {
     children.Add(child);
     updateCount++;
 }