MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / #makeToken

Method #makeToken

www/js/_hyperscript.esm.js:297–306  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

295 }
296 // ----- Token constructors -----
297 #makeToken(type, value) {
298 return {
299 type,
300 value: value || "",
301 start: this.#position,
302 end: this.#position + 1,
303 column: this.#column,
304 line: this.#line
305 };
306 }
307 #makeOpToken(type, value) {
308 var token = this.#makeToken(type, value);
309 token.op = true;

Callers 14

#makeOpTokenMethod · 0.95
#consumeWhitespaceMethod · 0.95
#consumeIdReferenceMethod · 0.95
#consumeTemplateLogicMethod · 0.95
#consumeTemplateLineMethod · 0.95
#consumeIdentifierMethod · 0.95
#consumeNumberMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected