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

Method #makeToken

www/js/ext/component.js:292–301  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

290 }
291 // ----- Token constructors -----
292 #makeToken(type, value) {
293 return {
294 type,
295 value: value || "",
296 start: this.#position,
297 end: this.#position + 1,
298 column: this.#column,
299 line: this.#line
300 };
301 }
302 #makeOpToken(type, value) {
303 var token = this.#makeToken(type, value);
304 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