MCPcopy
hub / github.com/streetwriters/notesnook / end

Method end

apps/mobile/worker.js:1979–1990  ·  view source on GitHub ↗

* Parses the end of the buffer and clears the stack, calls onend. * * @param chunk Optional final chunk to parse.

(chunk)

Source from the content-addressed store, hash-verified

1977 * @param chunk Optional final chunk to parse.
1978 */
1979 end(chunk) {
1980 var _a, _b;
1981 if (this.ended) {
1982 (_b = (_a = this.cbs).onerror) === null || _b === void 0
1983 ? void 0
1984 : _b.call(_a, new Error(".end() after done!"));
1985 return;
1986 }
1987 if (chunk) this.write(chunk);
1988 this.ended = true;
1989 this.tokenizer.end();
1990 }
1991 /**
1992 * Pauses parsing. The parser won't emit events until `resume` is called.
1993 */

Callers 14

toDiffableFunction · 0.95
isHtmlValidFunction · 0.95
extractHeadlineFunction · 0.95
extractTitleFunction · 0.95
extractMatchingBlocksFunction · 0.95
highlightHtmlContentFunction · 0.95
toTextContentFunction · 0.95
parseCompleteMethod · 0.95
doneMethod · 0.95
parseFromStringFunction · 0.95
backups.tsFile · 0.45
common-fixtures.tsFile · 0.45

Calls 2

writeMethod · 0.95
callMethod · 0.80

Tested by

no test coverage detected