(c: number)
| 352 | private delimiterIndex = -1 |
| 353 | |
| 354 | private stateInterpolationOpen(c: number): void { |
| 355 | if (c === this.delimiterOpen[this.delimiterIndex]) { |
| 356 | if (this.delimiterIndex === this.delimiterOpen.length - 1) { |
| 357 | const start = this.index + 1 - this.delimiterOpen.length |
| 358 | if (start > this.sectionStart) { |
| 359 | this.cbs.ontext(this.sectionStart, start) |
| 360 | } |
| 361 | this.state = State.Interpolation |
| 362 | this.sectionStart = start |
| 363 | } else { |
| 364 | this.delimiterIndex++ |
| 365 | } |
| 366 | } else if (this.inRCDATA) { |
| 367 | this.state = State.InRCDATA |
| 368 | this.stateInRCDATA(c) |
| 369 | } else { |
| 370 | this.state = State.Text |
| 371 | this.stateText(c) |
| 372 | } |
| 373 | } |
| 374 | |
| 375 | private stateInterpolation(c: number): void { |
| 376 | if (c === this.delimiterClose[0]) { |
no test coverage detected