aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--AST.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/AST.h b/AST.h
index bbb73b08..43aa9bf5 100644
--- a/AST.h
+++ b/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: