Esempio n. 1
0
 private static Node GetSolutionFolderNode(Project folder)
 {
     var node = new Node(folder.Name);
     var childs = folder.ProjectItems.Cast<ProjectItem>().Where(x => x.SubProject != null)
         .Select(x => GetProjectItemNode(x.SubProject)).ToList();
     node.AddChilds(childs);
     return node;
 }
Esempio n. 2
0
 public static Node AddClassesInDocument(Document doc)
 {
     var semanticModels = doc.GetSemanticModelAsync().Result;
     var classes = SemanticModelWalker.GetClassesInModel(semanticModels).ToList();
     DependencyResolver.ResolveDependencies(classes);
     var docNode = new Node(doc.Name);
     docNode.AddChilds(BuildTreeFromClasses(classes));
     return docNode;
 }