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

Method parse

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

Source from the content-addressed store, hash-verified

8167 this.args = { target };
8168 }
8169 static parse(parser) {
8170 if (!parser.matchToken("close")) return;
8171 var fullscreen = parser.matchToken("fullscreen");
8172 var target = null;
8173 if (!parser.commandBoundary(parser.currentToken())) {
8174 target = parser.requireElement("expression");
8175 }
8176 return new _CloseCommand(target, !!fullscreen);
8177 }
8178 resolve(ctx, { target }) {
8179 if (this.fullscreen) {
8180 return document.exitFullscreen().then(() => {

Callers

nothing calls this directly

Calls 4

matchTokenMethod · 0.45
commandBoundaryMethod · 0.45
currentTokenMethod · 0.45
requireElementMethod · 0.45

Tested by

no test coverage detected