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

Method #makeToken

src/core/tokenizer.js:374–383  ·  view source on GitHub ↗
(type, value)

Source from the content-addressed store, hash-verified

372 // ----- Token constructors -----
373
374 #makeToken(type, value) {
375 return {
376 type: type,
377 value: value || "",
378 start: this.#position,
379 end: this.#position + 1,
380 column: this.#column,
381 line: this.#line,
382 };
383 }
384
385 #makeOpToken(type, value) {
386 var token = this.#makeToken(type, value);

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