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

Method _setDefaultParser

external/.scrollLibs.js:21929–21933  ·  view source on GitHub ↗
(standardParserDirectory, defaultParserFiles, contents)

Source from the content-addressed store, hash-verified

21927 return this
21928 }
21929 _setDefaultParser(standardParserDirectory, defaultParserFiles, contents) {
21930 const defaultParser = ScrollFileSystem._combineParsers(defaultParserFiles, contents)
21931 this.defaultParserCode = defaultParser.parsersCode
21932 this.defaultParser = defaultParser.parser
21933 }
21934 async read(absolutePath) {
21935 return await this._storage.read(absolutePath)
21936 }

Callers 2

_loadDefaultParserMethod · 0.95

Calls 1

_combineParsersMethod · 0.80

Tested by

no test coverage detected