diff --git a/libsolidity/AST.h b/libsolidity/AST.h index bbb73b080..43aa9bf5e 100644 --- a/libsolidity/AST.h +++ b/libsolidity/AST.h @@ -345,6 +345,7 @@ public: Expression& getCondition() const { return *m_condition; } Statement& getTrueStatement() const { return *m_trueBody; } + /// @returns the "else" part of the if statement or nullptr if there is no "else" part. Statement* getFalseStatement() const { return m_falseBody.get(); } private: