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

Method parse

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

Source from the content-addressed store, hash-verified

3978 this.args = { value: root };
3979 }
3980 static parse(parser) {
3981 if (!parser.matchToken("not")) return;
3982 var root = parser.requireElement("unaryExpression");
3983 return new _LogicalNot(root);
3984 }
3985 resolve(context, { value: val }) {
3986 return !val;
3987 }

Callers

nothing calls this directly

Calls 2

matchTokenMethod · 0.45
requireElementMethod · 0.45

Tested by

no test coverage detected