| 1543 | } |
| 1544 | |
| 1545 | void ContractCompiler::popScopedVariables(ASTNode const* _node) |
| 1546 | { |
| 1547 | unsigned blockHeight = m_scopeStackHeight.at(m_modifierDepth).at(_node); |
| 1548 | m_context.removeVariablesAboveStackHeight(blockHeight); |
| 1549 | solAssert(m_context.stackHeight() >= blockHeight, ""); |
| 1550 | unsigned stackDiff = m_context.stackHeight() - blockHeight; |
| 1551 | CompilerUtils(m_context).popStackSlots(stackDiff); |
| 1552 | m_scopeStackHeight[m_modifierDepth].erase(_node); |
| 1553 | if (m_scopeStackHeight[m_modifierDepth].empty()) |
| 1554 | m_scopeStackHeight.erase(m_modifierDepth); |
| 1555 | } |
| 1556 | |
| 1557 | void ContractCompiler::storeStackHeight(ASTNode const* _node) |
| 1558 | { |
nothing calls this directly
no test coverage detected