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

Method interfaceErrors

libsolidity/ast/AST.cpp:265–278  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263}
264
265std::vector<ErrorDefinition const*> ContractDefinition::interfaceErrors(bool _requireCallGraph) const
266{
267 std::set<ErrorDefinition const*, CompareByID> result;
268 for (ContractDefinition const* contract: annotation().linearizedBaseContracts)
269 result += filteredNodes<ErrorDefinition>(contract->m_subNodes);
270 solAssert(annotation().creationCallGraph.set() == annotation().deployedCallGraph.set(), "");
271 if (_requireCallGraph)
272 solAssert(annotation().creationCallGraph.set(), "");
273 if (annotation().creationCallGraph.set())
274 result +=
275 (*annotation().creationCallGraph)->usedErrors +
276 (*annotation().deployedCallGraph)->usedErrors;
277 return util::convertContainer<std::vector<ErrorDefinition const*>>(std::move(result));
278}
279
280std::vector<std::pair<util::FixedHash<4>, FunctionTypePointer>> const& ContractDefinition::interfaceFunctionList(bool _includeInheritedFunctions) const
281{

Callers 6

userDocumentationMethod · 0.80
devDocumentationMethod · 0.80
generateMethod · 0.80
interfaceSymbolsMethod · 0.80
checkMethod · 0.80
visitMethod · 0.80

Calls 1

setMethod · 0.80

Tested by 2

userDocumentationMethod · 0.64
devDocumentationMethod · 0.64