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

Method parse

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

Source from the content-addressed store, hash-verified

9593 });
9594 }
9595 static parse(parser) {
9596 let setCmd = parser.parseElement("setCommand");
9597 if (setCmd) {
9598 if (setCmd.target.scope === "local") {
9599 parser.raiseError(
9600 "variables declared at the feature level cannot be locally scoped (use :foo, ^foo, $foo, or an @attribute target instead)."
9601 );
9602 }
9603 let setFeature = new _SetFeature(setCmd);
9604 parser.ensureTerminated(setCmd);
9605 return setFeature;
9606 }
9607 }
9608};
9609
9610// src/parsetree/features/init.js

Callers

nothing calls this directly

Calls 3

parseElementMethod · 0.45
raiseErrorMethod · 0.45
ensureTerminatedMethod · 0.45

Tested by

no test coverage detected