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

Method parse

www/js/_hyperscript.js:837–842  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

matchTokenMethod · 0.45

Tested by

no test coverage detected