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

Method _emitEOFToken

packages/parse5/lib/tokenizer/index.ts:541–553  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

539 }
540
541 protected _emitEOFToken(): void {
542 const location = this.getCurrentLocation(0);
543
544 if (location) {
545 location.endLine = location.startLine;
546 location.endCol = location.startCol;
547 location.endOffset = location.startOffset;
548 }
549
550 this._emitCurrentCharacterToken(location);
551 this.handler.onEof({ type: TokenType.EOF, location });
552 this.active = false;
553 }
554
555 //Characters emission
556

Callers 15

_stateDataMethod · 0.95
_stateRcdataMethod · 0.95
_stateRawtextMethod · 0.95
_stateScriptDataMethod · 0.95
_statePlaintextMethod · 0.95
_stateTagOpenMethod · 0.95
_stateEndTagOpenMethod · 0.95
_stateTagNameMethod · 0.95

Calls 3

getCurrentLocationMethod · 0.95
onEofMethod · 0.65

Tested by

no test coverage detected