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

Function findClause

libsolidity/ast/AST.cpp:47–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45namespace
46{
47TryCatchClause const* findClause(std::vector<ASTPointer<TryCatchClause>> const& _clauses, std::optional<std::string> _errorName = {})
48{
49 for (auto const& clause: ranges::views::tail(_clauses))
50 if (_errorName.has_value() ? clause->errorName() == _errorName : clause->errorName().empty())
51 return clause.get();
52 return nullptr;
53}
54}
55
56ASTNode::ASTNode(int64_t _id, SourceLocation _location):

Callers 3

panicClauseMethod · 0.85
errorClauseMethod · 0.85
fallbackClauseMethod · 0.85

Calls 2

emptyMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected