(name: string, type: string, rootNode: SplootNode)
| 57 | } |
| 58 | |
| 59 | async addFile(name: string, type: string, rootNode: SplootNode) { |
| 60 | const splootFile = new SplootFile(name, type) |
| 61 | splootFile.fileLoaded(rootNode) |
| 62 | this.files[name] = splootFile |
| 63 | if (!this.fileOrder.includes(name)) { |
| 64 | this.fileOrder.push(name) |
| 65 | } |
| 66 | } |
| 67 | |
| 68 | async getLoadedFile(fileLoader: FileLoader, name: string): Promise<SplootFile> { |
| 69 | const file = this.files[name] |
no test coverage detected