MCPcopy
hub / github.com/inikulin/parse5 / _createCommentToken

Method _createCommentToken

packages/parse5/lib/tokenizer/index.ts:397–403  ·  view source on GitHub ↗
(offset: number)

Source from the content-addressed store, hash-verified

395 }
396
397 protected _createCommentToken(offset: number): void {
398 this.currentToken = {
399 type: TokenType.COMMENT,
400 data: '',
401 location: this.getCurrentLocation(offset),
402 };
403 }
404
405 protected _createDoctypeToken(initialName: string | null): void {
406 this.currentToken = {

Callers 3

_stateTagOpenMethod · 0.95
_stateEndTagOpenMethod · 0.95

Calls 1

getCurrentLocationMethod · 0.95

Tested by

no test coverage detected