()
| 458 | } |
| 459 | |
| 460 | private consumeAComment(): InputToken { |
| 461 | if (this.text[this.nextInputCodePointIndex + 1] === '*') { |
| 462 | commentRegEx.lastIndex = this.nextInputCodePointIndex; |
| 463 | const result = commentRegEx.exec(this.text); |
| 464 | if (!result) { |
| 465 | return null; // TODO: Handle <bad-comment> |
| 466 | } |
| 467 | this.nextInputCodePointIndex = commentRegEx.lastIndex; |
| 468 | |
| 469 | // The CSS spec tokenizer does not emmit comment tokens |
| 470 | return this.consumeAToken(); |
| 471 | } |
| 472 | |
| 473 | return null; |
| 474 | } |
| 475 | |
| 476 | private reconsumeTheCurrentInputToken(currentInputToken: InputToken) { |
| 477 | this.reconsumedInputToken = currentInputToken; |
no test coverage detected