src/sap.ui.core/src/sap/ui/core/support/techinfo/moduleTreeHelper.js
function (oModules) {
			var oHierarchy = {},
				oTree = {
					text: "All"
				},
				iSelectionDepth;

			this.modulesToHierarchy(oModules, oHierarchy);

			iSelectionDepth = this.setTreeNode(oHierarchy, oTree, 0, window["sap-ui-debug"] === true);
			if (!iSelectionDepth) {
				iSelectionDepth = 0;
			}

			return {
				tree: oTree,
				depth: iSelectionDepth
			};
		}
function (oModules) {
			var oHierarchy = {},
				oTree = {
					text: "All"
				},
				iSelectionDepth;

			this.modulesToHierarchy(oModules, oHierarchy);

			iSelectionDepth = this.setTreeNode(oHierarchy, oTree, 0, window["sap-ui-debug"] === true);
			if (!iSelectionDepth) {
				iSelectionDepth = 0;
			}

			return {
				tree: oTree,
				depth: iSelectionDepth
			};
		}
function ( oModules ) { var oHierarchy = { } , oTree = { text : "All" } , iSelectionDepth ; this . modulesToHierarchy ( oModules , oHierarchy ) ; iSelectionDepth = this . setTreeNode ( oHierarchy , oTree , 0 , window [ "sap-ui-debug" ] === true ) ; if ( ! iSelectionDepth ) { iSelectionDepth = 0 ; } return { tree : oTree , depth : iSelectionDepth } ; }
Converts a module hierarchy to a bindable tree model structure
The returning object contains the tree structure and depth of the deepest selected node
@param {object} oModules Flat object of modules
@return {{tree: {text: string}, depth: number}} The resulting tree and the depth
Converts a module hierarchy to a bindable tree model structure The returning object contains the tree structure and depth of the deepest selected node