()
| 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() |
nothing calls this directly
no test coverage detected