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

Method parse

tools/common/_hyperscript.iife.js:9145–9155  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

9143 this.start && this.start.execute(runtime2.makeContext(target, this, target, null));
9144 }
9145 static parse(parser) {
9146 let setCmd = parser.parseElement("setCommand");
9147 if (setCmd) {
9148 if (setCmd.target.scope !== "element" && setCmd.target.scope !== "inherited") {
9149 parser.raiseError("variables declared at the feature level must be element or DOM scoped.");
9150 }
9151 let setFeature = new _SetFeature(setCmd);
9152 parser.ensureTerminated(setCmd);
9153 return setFeature;
9154 }
9155 }
9156 };
9157
9158 // 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