public static O2MappedAstData showInTreeView(this O2MappedAstData o2MappedAstData, System.Windows.Forms.TreeView treeView) { treeView.clear(); // Show AST objects var astNode = treeView.add_Node("ast"); astNode.show_Asts(o2MappedAstData.compilationUnits()); astNode.show_Asts(o2MappedAstData.typeDeclarations()); astNode.show_Asts(o2MappedAstData.methodDeclarations()); // add GetAllNodes to mapAstWithDom object : var name AllAstNodes // var allNodes = new GetAllINodes().loadCode(code); // treeView.add_Node("All Nodes (by type)").add_Nodes(allNodes.NodesByType); // Show CodeDom objects var domNode = treeView.add_Node("dom"); domNode.add_Node("CodeNamespaces").show_CodeDom(o2MappedAstData.codeNamespaces()); domNode.add_Node("CodeTypeDeclarations").show_CodeDom(o2MappedAstData.codeTypeDeclarations()); domNode.add_Node("CodeMemberMethods").show_CodeDom(o2MappedAstData.codeMemberMethods()); treeView.add_Node("NRefactory").show_NRefactoryDom(o2MappedAstData.iCompilationUnits()) .show_NRefactoryDom(o2MappedAstData.iClasses()) .show_NRefactoryDom(o2MappedAstData.iMethods()); return(o2MappedAstData); }