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

Method collectSourceIndices

libyul/Object.cpp:216–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void Object::collectSourceIndices(std::map<std::string, unsigned>& _indices) const
217{
218 if (debugData && debugData->sourceNames.has_value())
219 for (auto const& [sourceIndex, sourceName]: debugData->sourceNames.value())
220 {
221 solAssert(_indices.count(*sourceName) == 0 || _indices[*sourceName] == sourceIndex);
222 _indices[*sourceName] = sourceIndex;
223 }
224 for (std::shared_ptr<ObjectNode> const& subNode: subObjects)
225 if (auto subObject = dynamic_cast<Object*>(subNode.get()))
226 subObject->collectSourceIndices(_indices);
227}
228
229bool Object::hasContiguousSourceIndices() const
230{

Callers 1

assembleYulMethod · 0.80

Calls 3

valueMethod · 0.45
countMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected