MCPcopy Create free account
hub / github.com/bigskysoftware/_hyperscript / parse

Method parse

www/js/_hyperscript.esm.js:835–840  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

833 this.value = value;
834 }
835 static parse(parser) {
836 var booleanLiteral = parser.matchToken("true") || parser.matchToken("false");
837 if (!booleanLiteral) return;
838 const value = booleanLiteral.value === "true";
839 return new _BooleanLiteral(value);
840 }
841 evalStatically() {
842 return this.value;
843 }

Callers

nothing calls this directly

Calls 1

matchTokenMethod · 0.45

Tested by

no test coverage detected