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

Method parseIndirectStatement

www/js/_hyperscript-max.js:1460–1469  ·  view source on GitHub ↗
(parser, root)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

matchTokenMethod · 0.45
lastMatchMethod · 0.45
requireElementMethod · 0.45

Tested by

no test coverage detected