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

Method parse

www/js/_hyperscript.js:9597–9609  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

9595 });
9596 }
9597 static parse(parser) {
9598 let setCmd = parser.parseElement("setCommand");
9599 if (setCmd) {
9600 if (setCmd.target.scope === "local") {
9601 parser.raiseError(
9602 "variables declared at the feature level cannot be locally scoped (use :foo, ^foo, $foo, or an @attribute target instead)."
9603 );
9604 }
9605 let setFeature = new _SetFeature(setCmd);
9606 parser.ensureTerminated(setCmd);
9607 return setFeature;
9608 }
9609 }
9610 };
9611
9612 // 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