MCPcopy Create free account
hub / github.com/TruthHun/BookStack / future

Method future

static/katex/katex.mjs:13870–13876  ·  view source on GitHub ↗

* Returns the topmost token on the stack, without expanding it. * Similar in behavior to TeX's `\futurelet`.

()

Source from the content-addressed store, hash-verified

13868
13869
13870 future() {
13871 if (this.stack.length === 0) {
13872 this.pushToken(this.lexer.lex());
13873 }
13874
13875 return this.stack[this.stack.length - 1];
13876 }
13877 /**
13878 * Remove and return the next unexpanded token.
13879 */

Callers 6

popTokenMethod · 0.95
consumeSpacesMethod · 0.95
expandAfterFutureMethod · 0.95
katex.jsFile · 0.80
katex.mjsFile · 0.80
katex.min.jsFile · 0.80

Calls 2

pushTokenMethod · 0.95
lexMethod · 0.80

Tested by

no test coverage detected