(filePath, particle)
| 56 | } |
| 57 | |
| 58 | async _formatAndSave(filePath, particle) { |
| 59 | const fusedFile = scrollFs.newFile(particle.toString(), filePath) |
| 60 | await fusedFile.singlePassFuse() |
| 61 | // force a write |
| 62 | const result = await scrollFs.write(filePath, fusedFile.scrollProgram.formatted) |
| 63 | return result |
| 64 | } |
| 65 | |
| 66 | async formatAndSave(file, particle = this.getParticle(file)) { |
| 67 | return this._formatAndSave(this.makeFilePath(file.id), particle) |
no test coverage detected