async convertToPseudoBookmarkNode(categorizedResults, orderedResults) {
		let pseudoNode = {children: []};
		let childNode;
		for (result of orderedResults) {
			let isFolder = result.type === FOLDER;
			childNode = {
				type: FOLDER,
				subtype: result.type,
				title: result.nodePath,
				id: (isFolder) ? FOLDER + result.id : HEADING + result.id,
				children: null
			};
			if (isFolder) {
				let folderChildren = await browser.bookmarks.getSubTree(result.id);
				childNode.children = folderChildren[0].children;
			} else {
				childNode.children = categorizedResults[result.id];
			}
			pseudoNode.children.push(childNode);
		}
		return pseudoNode;
	}
/**
	 * Restructure categorized and ordered results into an object structure
	 * usable with renderBookmarks().
	 *
	 * @param  {Object} categorizedResults - categorized results from categorizeFilteredBookmarks()
	 * @param  {[Object]} orderedResults - list of result objects from processFilteredBookmarks()
	 *
	 * @return {Object}
	 */
Restructure categorized and ordered results into an object structure
usable with renderBookmarks().

@param  {Object} categorizedResults - categorized results from categorizeFilteredBookmarks()
@param  {[Object]} orderedResults - list of result objects from processFilteredBookmarks()

@return {Object}
Restructure categorized and ordered results into an object structure usable with renderBookmarks () . @param { Object } categorizedResults - categorized results from categorizeFilteredBookmarks () @param { [ Object ] } orderedResults - list of result objects from processFilteredBookmarks () @return { Object }
async convertToPseudoBookmarkNode(categorizedResults, orderedResults) {
		let pseudoNode = {children: []};
		let childNode;
		for (result of orderedResults) {
			let isFolder = result.type === FOLDER;
			childNode = {
				type: FOLDER,
				subtype: result.type,
				title: result.nodePath,
				id: (isFolder) ? FOLDER + result.id : HEADING + result.id,
				children: null
			};
			if (isFolder) {
				let folderChildren = await browser.bookmarks.getSubTree(result.id);
				childNode.children = folderChildren[0].children;
			} else {
				childNode.children = categorizedResults[result.id];
			}
			pseudoNode.children.push(childNode);
		}
		return pseudoNode;
	}
async convertToPseudoBookmarkNode ( categorizedResults , orderedResults ) { let pseudoNode = { children : [ ] } ; let childNode ; for ( result of orderedResults ) { let isFolder = result . type === FOLDER ; childNode = { type : FOLDER , subtype : result . type , title : result . nodePath , id : ( isFolder ) ? FOLDER + result . id : HEADING + result . id , children : null } ; if ( isFolder ) { let folderChildren = await browser . bookmarks . getSubTree ( result . id ) ; childNode . children = folderChildren [ 0 ] . children ; } else { childNode . children = categorizedResults [ result . id ] ; } pseudoNode . children . push ( childNode ) ; } return pseudoNode ; }
Restructure categorized and ordered results into an object structure
 usable with renderBookmarks().
Restructure categorized and ordered results into an object structure usable with renderBookmarks () .