(ctx, { target })
| 8207 | return new _ShowCommand(targetExpr, when, arg, hideShowStrategy); |
| 8208 | } |
| 8209 | resolve(ctx, { target }) { |
| 8210 | var runtime2 = ctx.meta.runtime; |
| 8211 | var cmd = this; |
| 8212 | runtime2.nullCheck(target, this.targetExpr); |
| 8213 | if (this.when) { |
| 8214 | var result = runtime2.implicitLoopWhen( |
| 8215 | target, |
| 8216 | this.when, |
| 8217 | ctx, |
| 8218 | function(elt) { |
| 8219 | cmd.hideShowStrategy("show", elt, cmd.arg, runtime2); |
| 8220 | }, |
| 8221 | function(elt) { |
| 8222 | cmd.hideShowStrategy("hide", elt, null, runtime2); |
| 8223 | } |
| 8224 | ); |
| 8225 | if (result && result.then) { |
| 8226 | return result.then(function() { |
| 8227 | return runtime2.findNext(cmd, ctx); |
| 8228 | }); |
| 8229 | } |
| 8230 | } else { |
| 8231 | runtime2.implicitLoop(target, function(elt) { |
| 8232 | cmd.hideShowStrategy("show", elt, cmd.arg, runtime2); |
| 8233 | }); |
| 8234 | } |
| 8235 | return runtime2.findNext(this, ctx); |
| 8236 | } |
| 8237 | }; |
| 8238 | var TakeCommand = class _TakeCommand extends Command { |
| 8239 | static keyword = "take"; |
nothing calls this directly
no test coverage detected