MCPcopy Create free account
hub / github.com/breck7/scroll / _readCodeFromStorage

Method _readCodeFromStorage

external/.scrollLibs.js:21865–21873  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21863 this.scrollProgram.setFile(this)
21864 }
21865 async _readCodeFromStorage() {
21866 if (this.codeAtStart !== undefined) return this // Code provided
21867 const { filePath } = this
21868 if (!filePath) {
21869 this.codeAtStart = ""
21870 return this
21871 }
21872 this.codeAtStart = await this.fileSystem.read(filePath)
21873 }
21874 async singlePassFuse() {
21875 if (!this._fuseRequest) this._fuseRequest = this._singlePassFuse()
21876 return await this._fuseRequest

Callers

nothing calls this directly

Calls 1

readMethod · 0.45

Tested by

no test coverage detected