(Scope scope)
| 549 | } |
| 550 | |
| 551 | void pushScope(Scope scope) { |
| 552 | Scope parent = scope.getParentScope(); |
| 553 | // During codegen, parent scope chain may already be initialized, |
| 554 | // in which case we just need to set currentScope variable. |
| 555 | if (parent != null) { |
| 556 | if (parent != currentScope) codeBug(); |
| 557 | } else { |
| 558 | currentScope.addChildScope(scope); |
| 559 | } |
| 560 | currentScope = scope; |
| 561 | } |
| 562 | |
| 563 | void popScope() { |
| 564 | currentScope = currentScope.getParentScope(); |
no test coverage detected