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

Method constructor

external/.scrollLibs.js:21901–21915  ·  view source on GitHub ↗
(inMemoryFiles, standardParserDirectory)

Source from the content-addressed store, hash-verified

21899let scrollFileSystemIdNumber = 0
21900class ScrollFileSystem {
21901 constructor(inMemoryFiles, standardParserDirectory) {
21902 this.defaultParserCode = ""
21903 this.defaultParser = Particle
21904 this.defaultFileClass = ScrollFile
21905 this.productCache = []
21906 this._parserCache = {}
21907 this._fusedFiles = {}
21908 this._folderCache = {}
21909 if (inMemoryFiles) this._storage = new MemoryWriter(inMemoryFiles)
21910 else this._storage = new DiskWriter()
21911 scrollFileSystemIdNumber = scrollFileSystemIdNumber + 1
21912 this.scrollFileSystemIdNumber = scrollFileSystemIdNumber
21913 this.standardParserDirectory = standardParserDirectory
21914 if (standardParserDirectory) this._loadDefaultParser()
21915 }
21916 newFile(codeAtStart, absoluteFilePath) {
21917 return new this.defaultFileClass(codeAtStart, absoluteFilePath, this)
21918 }

Callers

nothing calls this directly

Calls 1

_loadDefaultParserMethod · 0.95

Tested by

no test coverage detected