()
| 24 | } |
| 25 | |
| 26 | serialize(): string { |
| 27 | // We can't do this if we're not loaded. |
| 28 | if (!this.isLoaded) { |
| 29 | throw 'Error: Cannot serialize a file that is not loaded.' |
| 30 | } |
| 31 | const ser = this.rootNode.serialize() |
| 32 | return JSON.stringify(ser) + '\n' |
| 33 | } |
| 34 | |
| 35 | getSerializedRef(): SerializedSplootFileRef { |
| 36 | return { |
nothing calls this directly
no outgoing calls
no test coverage detected