MCPcopy Create free account
hub / github.com/SplootCode/splootcode / serialize

Method serialize

packages/core/src/language/projects/file.ts:26–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected