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

Method parseShowHideTarget

www/js/_hyperscript-max.js:7576–7583  ·  view source on GitHub ↗
(parser)

Source from the content-addressed store, hash-verified

7574 }
7575 var VisibilityCommand = class extends Command {
7576 static parseShowHideTarget(parser) {
7577 var currentTokenValue = parser.currentToken();
7578 if (currentTokenValue.value === "when" || currentTokenValue.value === "with" || parser.commandBoundary(currentTokenValue)) {
7579 return parser.parseElement("implicitMeTarget");
7580 } else {
7581 return parser.parseElement("expression");
7582 }
7583 }
7584 static resolveHideShowStrategy(parser, name) {
7585 var configDefault = config.defaultHideShowStrategy;
7586 var strategies = HIDE_SHOW_STRATEGIES;

Callers 2

parseMethod · 0.45
parseMethod · 0.45

Calls 3

currentTokenMethod · 0.45
commandBoundaryMethod · 0.45
parseElementMethod · 0.45

Tested by

no test coverage detected