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

Method constructor

static/katex/katex.mjs:59–65  ·  view source on GitHub ↗
(text, // the text of this token
  loc)

Source from the content-addressed store, hash-verified

57 */
58class Token {
59 constructor(text, // the text of this token
60 loc) {
61 this.text = void 0;
62 this.loc = void 0;
63 this.text = text;
64 this.loc = loc;
65 }
66 /**
67 * Given a pair of tokens (this and endToken), compute a `Token` encompassing
68 * the whole input range enclosed by these two.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected