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

Method parseShowHideTarget

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

Source from the content-addressed store, hash-verified

7169 }
7170 var VisibilityCommand = class extends Command {
7171 static parseShowHideTarget(parser) {
7172 var currentTokenValue = parser.currentToken();
7173 if (currentTokenValue.value === "when" || currentTokenValue.value === "with" || parser.commandBoundary(currentTokenValue)) {
7174 return parser.parseElement("implicitMeTarget");
7175 } else {
7176 return parser.parseElement("expression");
7177 }
7178 }
7179 static resolveHideShowStrategy(parser, name) {
7180 var configDefault = config.defaultHideShowStrategy;
7181 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