Merge pull request #5817 from ethereum/refactoring

Refactoring in TypeChecker and ContractDefinition
This commit is contained in:
Alex Beregszaszi
2019-01-18 11:36:49 +00:00
committed by GitHub
4 changed files with 28 additions and 20 deletions
+1
View File
@@ -394,6 +394,7 @@ public:
std::vector<FunctionDefinition const*> definedFunctions() const { return filteredNodes<FunctionDefinition>(m_subNodes); }
std::vector<EventDefinition const*> events() const { return filteredNodes<EventDefinition>(m_subNodes); }
std::vector<EventDefinition const*> const& interfaceEvents() const;
bool isInterface() const { return m_contractKind == ContractKind::Interface; }
bool isLibrary() const { return m_contractKind == ContractKind::Library; }
/// @returns a map of canonical function signatures to FunctionDefinitions