(c: number)
| 381 | } |
| 382 | |
| 383 | private stateInterpolationClose(c: number) { |
| 384 | if (c === this.delimiterClose[this.delimiterIndex]) { |
| 385 | if (this.delimiterIndex === this.delimiterClose.length - 1) { |
| 386 | this.cbs.oninterpolation(this.sectionStart, this.index + 1) |
| 387 | if (this.inRCDATA) { |
| 388 | this.state = State.InRCDATA |
| 389 | } else { |
| 390 | this.state = State.Text |
| 391 | } |
| 392 | this.sectionStart = this.index + 1 |
| 393 | } else { |
| 394 | this.delimiterIndex++ |
| 395 | } |
| 396 | } else { |
| 397 | this.state = State.Interpolation |
| 398 | this.stateInterpolation(c) |
| 399 | } |
| 400 | } |
| 401 | |
| 402 | public currentSequence: Uint8Array = undefined! |
| 403 | private sequenceIndex = 0 |
no test coverage detected