MCPcopy Index your code
hub / github.com/bigskysoftware/_hyperscript / parseIndirectStatement

Method parseIndirectStatement

src/core/kernel.js:156–165  ·  view source on GitHub ↗
(parser, root)

Source from the content-addressed store, hash-verified

154 }
155
156 parseIndirectStatement(parser, root) {
157 if (parser.matchToken("unless")) {
158 root.endToken = parser.lastMatch();
159 var conditional = parser.requireElement("expression");
160 var unless = new UnlessStatementModifier(root, conditional);
161 root.parent = unless;
162 return unless;
163 }
164 return root;
165 }
166
167 parsePrimaryExpression(parser) {
168 var leaf = parser.parseElement("leaf");

Callers

nothing calls this directly

Calls 3

matchTokenMethod · 0.45
lastMatchMethod · 0.45
requireElementMethod · 0.45

Tested by

no test coverage detected