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

Method format

external/.scrollLibs.js:18367–18378  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18365 return this
18366 }
18367 format() {
18368 if (this.isRoot()) {
18369 this._sortParticlesByInScopeOrder()
18370 try {
18371 this._sortWithParentParsersUpTop()
18372 } catch (err) {
18373 console.log(`Warning: ${err}`)
18374 }
18375 }
18376 this.topDownArray.forEach(subparticle => subparticle.format())
18377 return this
18378 }
18379 getParserUsage(filepath = "") {
18380 // returns a report on what parsers from its language the program uses
18381 const usage = new Particle()

Callers

nothing calls this directly

Calls 6

isRootMethod · 0.80
logMethod · 0.80
forEachMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected