(key)
| 45 | } |
| 46 | |
| 47 | visit(key) { |
| 48 | if (!(key in this.visited)) { |
| 49 | this.visited[key] = true; |
| 50 | |
| 51 | if (this.dependencies[key]) { |
| 52 | Object.keys(this.dependencies[key]).forEach(path => { |
| 53 | this.visit(path); |
| 54 | }); |
| 55 | } |
| 56 | |
| 57 | this.sorted.push(key); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | sort() { |
| 62 | Object.keys(this.dependencies).forEach(key => { |