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

Method tryInsert

libyul/ASTLabelRegistry.cpp:98–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98std::tuple<ASTLabelRegistry::LabelID, bool> ASTLabelRegistryBuilder::DefinedLabels::tryInsert(
99 std::string_view const _label,
100 ASTLabelRegistry::LabelID const _id
101)
102{
103 auto const [it, emplaced] = m_labelToIDMapping.try_emplace(std::string{_label}, _id);
104 return std::make_tuple(it->second, emplaced);
105}
106
107ASTLabelRegistryBuilder::ASTLabelRegistryBuilder():
108 m_nextID(1)

Callers 2

defineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected