(atomIndex)
| 15553 | return [oneToTwo, twoToOne] |
| 15554 | } |
| 15555 | _getAtomIndexCharacterStartPosition(atomIndex) { |
| 15556 | const xiLength = this.edgeSymbol.length |
| 15557 | const numIndents = this._getIndentLevel() - 1 |
| 15558 | const indentPosition = xiLength * numIndents |
| 15559 | if (atomIndex < 1) return xiLength * (numIndents + atomIndex) |
| 15560 | return indentPosition + this.atoms.slice(0, atomIndex).join(this.atomBreakSymbol).length + this.atomBreakSymbol.length |
| 15561 | } |
| 15562 | getParticleInScopeAtCharIndex(charIndex) { |
| 15563 | if (this.isRoot()) return this |
| 15564 | let atomIndex = this.getAtomIndexAtCharacterIndex(charIndex) |
no test coverage detected