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

Method #makeToken

www/js/_hyperscript-max.js:298–307  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

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