MCPcopy Create free account
hub / github.com/argotorg/solidity / removeVariable

Method removeVariable

libsolidity/codegen/CompilerContext.cpp:225–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225void CompilerContext::removeVariable(Declaration const& _declaration)
226{
227 solAssert(m_localVariables.count(&_declaration) && !m_localVariables[&_declaration].empty(), "");
228 m_localVariables[&_declaration].pop_back();
229 if (m_localVariables[&_declaration].empty())
230 m_localVariables.erase(&_declaration);
231}
232
233void CompilerContext::removeVariablesAboveStackHeight(unsigned _stackHeight)
234{

Callers 2

visitMethod · 0.80

Calls 3

eraseMethod · 0.80
countMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected