MCPcopy Create free account
hub / github.com/LibPDF-js/core / shift

Method shift

src/parser/object-parser.ts:90–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

88 }
89
90 private shift(): void {
91 this.buf1 = this.buf2;
92 this.buf2 = this.reader.nextToken();
93 }
94
95 /**
96 * Get current token with fresh type (avoids TypeScript narrowing issues).

Callers 10

parseValueMethod · 0.95
parseKeywordMethod · 0.95
parseNumberOrRefMethod · 0.95
parseReferenceMethod · 0.95
parseArrayMethod · 0.95
parseDictMethod · 0.95
skipInvalidPairMethod · 0.95
parseXRefChainMethod · 0.80
entriesMethod · 0.80
loadMethod · 0.80

Calls 1

nextTokenMethod · 0.45

Tested by

no test coverage detected