(trees, maybe_unpack)
| 17382 | this.exit_blocks.add(this.environment_stack.block()); |
| 17383 | } |
| 17384 | getNamedValues(trees, maybe_unpack) { |
| 17385 | const values = []; |
| 17386 | for (const tree of trees) { |
| 17387 | if (maybe_unpack && tree instanceof ast.Starred) { |
| 17388 | throw new python.Error('Starred argument not supported.'); |
| 17389 | } else { |
| 17390 | values.push(new torch._C.NamedValue(this.emitExpr(tree))); |
| 17391 | } |
| 17392 | } |
| 17393 | return values; |
| 17394 | } |
| 17395 | getValues(trees, maybe_unpack) { |
| 17396 | return this.getNamedValues(trees, maybe_unpack).map((value) => value.value(this.graph)); |
| 17397 | } |
no test coverage detected