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

Method parse

www/js/_hyperscript.esm.js:5335–5339  ·  view source on GitHub ↗
(parser, root)

Source from the content-addressed store, hash-verified

5333 this.args = { value: root };
5334 }
5335 static parse(parser, root) {
5336 let stringPostfix = parser.matchAnyToken(...STRING_POSTFIXES) || parser.matchOpToken("%");
5337 if (!stringPostfix) return;
5338 return new _StringPostfixExpression(root, stringPostfix.value);
5339 }
5340 resolve(context, { value: val }) {
5341 return "" + val + this.postfix;
5342 }

Callers

nothing calls this directly

Calls 2

matchAnyTokenMethod · 0.45
matchOpTokenMethod · 0.45

Tested by

no test coverage detected