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

Method parseIndirectStatement

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

Source from the content-addressed store, hash-verified

1457 }
1458 }
1459 parseIndirectStatement(parser, root) {
1460 if (parser.matchToken("unless")) {
1461 root.endToken = parser.lastMatch();
1462 var conditional = parser.requireElement("expression");
1463 var unless = new UnlessStatementModifier(root, conditional);
1464 root.parent = unless;
1465 return unless;
1466 }
1467 return root;
1468 }
1469 parsePrimaryExpression(parser) {
1470 var leaf = parser.parseElement("leaf");
1471 if (leaf) {

Callers

nothing calls this directly

Calls 3

matchTokenMethod · 0.45
lastMatchMethod · 0.45
requireElementMethod · 0.45

Tested by

no test coverage detected