()
| 18578 | } |
| 18579 | fromTypedMap() {} |
| 18580 | compile() { |
| 18581 | if (this.isRoot()) return super.compile() |
| 18582 | const def = this.definition |
| 18583 | const indent = this._getCompiledIndentation() |
| 18584 | const compiledLine = this._getCompiledLine() |
| 18585 | if (def.isTerminalParser()) return indent + compiledLine |
| 18586 | const compiler = def._getCompilerObject() |
| 18587 | const openSubparticlesString = compiler[ParsersConstantsCompiler.openSubparticles] || "" |
| 18588 | const closeSubparticlesString = compiler[ParsersConstantsCompiler.closeSubparticles] || "" |
| 18589 | const subparticleJoinCharacter = compiler[ParsersConstantsCompiler.joinSubparticlesWith] || "\n" |
| 18590 | const compiledSubparticles = this.map(subparticle => subparticle.compile()).join(subparticleJoinCharacter) |
| 18591 | return `${indent + compiledLine}${openSubparticlesString} |
| 18592 | ${compiledSubparticles} |
| 18593 | ${indent}${closeSubparticlesString}` |
| 18594 | } |
| 18595 | // todo: remove |
| 18596 | get atomsMap() { |
| 18597 | const atomsMap = {} |
nothing calls this directly
no test coverage detected