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

Method resolve

tools/common/_hyperscript.iife.js:7723–7750  ·  view source on GitHub ↗
(ctx, { target })

Source from the content-addressed store, hash-verified

7721 return new _HideCommand(targetExpr, when, hideShowStrategy);
7722 }
7723 resolve(ctx, { target }) {
7724 var runtime2 = ctx.meta.runtime;
7725 var cmd = this;
7726 runtime2.nullCheck(target, this.targetExpr);
7727 if (this.when) {
7728 var result = runtime2.implicitLoopWhen(
7729 target,
7730 this.when,
7731 ctx,
7732 function(elt) {
7733 cmd.hideShowStrategy("hide", elt, null, runtime2);
7734 },
7735 function(elt) {
7736 cmd.hideShowStrategy("show", elt, null, runtime2);
7737 }
7738 );
7739 if (result && result.then) {
7740 return result.then(function() {
7741 return runtime2.findNext(cmd, ctx);
7742 });
7743 }
7744 } else {
7745 runtime2.implicitLoop(target, function(elt) {
7746 cmd.hideShowStrategy("hide", elt, null, runtime2);
7747 });
7748 }
7749 return runtime2.findNext(this, ctx);
7750 }
7751 };
7752 var ShowCommand = class _ShowCommand extends VisibilityCommand {
7753 static keyword = "show";

Callers

nothing calls this directly

Calls 4

nullCheckMethod · 0.45
implicitLoopWhenMethod · 0.45
findNextMethod · 0.45
implicitLoopMethod · 0.45

Tested by

no test coverage detected