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

Method reset

libsolidity/ast/TypeProvider.cpp:177–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void TypeProvider::reset()
178{
179 clearCache(m_boolean);
180 clearCache(m_inaccessibleDynamic);
181 clearCache(m_bytesStorage);
182 clearCache(m_bytesMemory);
183 clearCache(m_bytesCalldata);
184 clearCache(m_stringStorage);
185 clearCache(m_stringMemory);
186 clearCache(m_emptyTuple);
187 clearCache(m_payableAddress);
188 clearCache(m_address);
189 clearCaches(instance().m_intM);
190 clearCaches(instance().m_uintM);
191 clearCaches(instance().m_bytesM);
192 clearCaches(instance().m_magics);
193
194 instance().m_generalTypes.clear();
195 instance().m_stringLiteralTypes.clear();
196 instance().m_ufixedMxN.clear();
197 instance().m_fixedMxN.clear();
198}
199
200template <typename T, typename... Args>
201inline T const* TypeProvider::createAndGet(Args&& ... _args)

Callers 1

clearCacheMethod · 0.45

Calls 3

clearCacheFunction · 0.85
clearCachesFunction · 0.85
clearMethod · 0.45

Tested by

no test coverage detected