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

Method peekToken

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

* Peek at the next token without consuming it.

()

Source from the content-addressed store, hash-verified

62 * Peek at the next token without consuming it.
63 */
64 peekToken(): Token {
65 if (this.cachedToken === null) {
66 this.cachedToken = this.readToken();
67 }
68
69 return this.cachedToken;
70 }
71
72 /**
73 * Read and consume the next token.

Callers 1

Calls 1

readTokenMethod · 0.95

Tested by

no test coverage detected