(c: number)
| 471 | } |
| 472 | |
| 473 | private stateCDATASequence(c: number): void { |
| 474 | if (c === Sequences.Cdata[this.sequenceIndex]) { |
| 475 | if (++this.sequenceIndex === Sequences.Cdata.length) { |
| 476 | this.state = State.InCommentLike |
| 477 | this.currentSequence = Sequences.CdataEnd |
| 478 | this.sequenceIndex = 0 |
| 479 | this.sectionStart = this.index + 1 |
| 480 | } |
| 481 | } else { |
| 482 | this.sequenceIndex = 0 |
| 483 | this.state = State.InDeclaration |
| 484 | this.stateInDeclaration(c) // Reconsume the character |
| 485 | } |
| 486 | } |
| 487 | |
| 488 | /** |
| 489 | * When we wait for one specific character, we can speed things up |
no test coverage detected