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

Method fromString

liblangutil/DebugInfoSelection.cpp:60–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60std::optional<DebugInfoSelection> DebugInfoSelection::fromString(std::string_view _input)
61{
62 // TODO: Make more stuff constexpr and make it a static_assert().
63 solAssert(componentMap().count("all") == 0, "");
64 solAssert(componentMap().count("none") == 0, "");
65
66 if (_input == "all")
67 return AllExceptExperimental();
68 if (_input == "none")
69 return None();
70
71 return fromComponents(_input | ranges::views::split(',') | ranges::to<std::vector<std::string>>);
72}
73
74std::optional<DebugInfoSelection> DebugInfoSelection::fromComponents(
75 std::vector<std::string> const& _componentNames,

Callers 1

testFileMethod · 0.45

Calls 1

countMethod · 0.45

Tested by 1

testFileMethod · 0.36