(StarlarkThread.Frame fr, Identifier id, Object value)
| 363 | } |
| 364 | |
| 365 | private static void assignIdentifier(StarlarkThread.Frame fr, Identifier id, Object value) { |
| 366 | Resolver.Binding bind = id.getBinding(); |
| 367 | switch (bind.getScope()) { |
| 368 | case LOCAL: |
| 369 | fr.locals[bind.getIndex()] = value; |
| 370 | break; |
| 371 | case CELL: |
| 372 | ((StarlarkFunction.Cell) fr.locals[bind.getIndex()]).x = value; |
| 373 | break; |
| 374 | case GLOBAL: |
| 375 | fn(fr).setGlobal(bind.getIndex(), value); |
| 376 | break; |
| 377 | default: |
| 378 | throw new IllegalStateException(bind.getScope().toString()); |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | /** |
| 383 | * Recursively assigns an iterable value to a non-empty sequence of assignable expressions. Might |
no test coverage detected