(attributeName)
| 651 | } |
| 652 | |
| 653 | findRangesForBlockAttribute(attributeName) { |
| 654 | let position = 0 |
| 655 | const ranges = [] |
| 656 | |
| 657 | this.getBlocks().forEach((block) => { |
| 658 | const length = block.getLength() |
| 659 | if (block.hasAttribute(attributeName)) { |
| 660 | ranges.push([ position, position + length ]) |
| 661 | } |
| 662 | position += length |
| 663 | }) |
| 664 | |
| 665 | return ranges |
| 666 | } |
| 667 | |
| 668 | findRangesForTextAttribute(attributeName, { withValue } = {}) { |
| 669 | let position = 0 |
no test coverage detected