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

Method nextToken

src/parser/token-reader.ts:75–85  ·  view source on GitHub ↗

* Read and consume the next token.

()

Source from the content-addressed store, hash-verified

73 * Read and consume the next token.
74 */
75 nextToken(): Token {
76 if (this.cachedToken !== null) {
77 const token = this.cachedToken;
78
79 this.cachedToken = null;
80
81 return token;
82 }
83
84 return this.readToken();
85 }
86
87 /**
88 * Skip whitespace and comments.

Callers 7

parseObjectMethod · 0.95
parseIndexMethod · 0.95
parseObjectAtMethod · 0.95
refillMethod · 0.45
shiftMethod · 0.45
parseDictMethod · 0.45

Calls 1

readTokenMethod · 0.95

Tested by

no test coverage detected