| 302 | } |
| 303 | |
| 304 | unsigned CompilerContext::baseStackOffsetOfVariable(Declaration const& _declaration) const |
| 305 | { |
| 306 | auto res = m_localVariables.find(&_declaration); |
| 307 | solAssert(res != m_localVariables.end(), "Variable not found on stack."); |
| 308 | solAssert(!res->second.empty(), ""); |
| 309 | return res->second.back(); |
| 310 | } |
| 311 | |
| 312 | unsigned CompilerContext::baseToCurrentStackOffset(unsigned _baseOffset) const |
| 313 | { |
no test coverage detected