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

Method parseShowHideTarget

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

Source from the content-addressed store, hash-verified

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