lib/getDependencyLevels.js
function _buildDependencyTreeOf(node) {
		var requireStatements = getRequireStatements(getCode(node.path))
		if (requireStatements.length == 0) {
			return leaves.push(node)
		}
		each(requireStatements, function(requireStatement) {
			var childNode = []
			childNode.path = resolve.requireStatement(requireStatement, node.path)
			childNode.parent = node
			node.push(childNode)
			_buildDependencyTreeOf(childNode)
		})
		node.waitingForNumChildren = node.length
	}
function _buildDependencyTreeOf(node) {
		var requireStatements = getRequireStatements(getCode(node.path))
		if (requireStatements.length == 0) {
			return leaves.push(node)
		}
		each(requireStatements, function(requireStatement) {
			var childNode = []
			childNode.path = resolve.requireStatement(requireStatement, node.path)
			childNode.parent = node
			node.push(childNode)
			_buildDependencyTreeOf(childNode)
		})
		node.waitingForNumChildren = node.length
	}
function _buildDependencyTreeOf ( node ) { var requireStatements = getRequireStatements ( getCode ( node . path ) ) if ( requireStatements . length == 0 ) { return leaves . push ( node ) } each ( requireStatements , function ( requireStatement ) { var childNode = [ ] childNode . path = resolve . requireStatement ( requireStatement , node . path ) childNode . parent = node node . push ( childNode ) _buildDependencyTreeOf ( childNode ) } ) node . waitingForNumChildren = node . length }
builds full dependency tree, noting every dependency of every node
builds full dependency tree noting every dependency of every node