Commit f72c118d authored by Toon Verwaest's avatar Toon Verwaest Committed by Commit Bot

[ast] Drop Statement::IsEmpty

Change-Id: I45e004a64c03f31253cbbca2976894c63b0d515e
Reviewed-on: https://chromium-review.googlesource.com/c/1307427Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#57139}
parent 93169821
......@@ -176,7 +176,6 @@ class AstNode: public ZoneObject {
class Statement : public AstNode {
public:
bool IsEmpty() { return AsEmptyStatement() != nullptr; }
bool IsJump() const;
protected:
......@@ -849,8 +848,8 @@ class SwitchStatement final : public BreakableStatement {
// given if-statement has a then- or an else-part containing code.
class IfStatement final : public Statement {
public:
bool HasThenStatement() const { return !then_statement()->IsEmpty(); }
bool HasElseStatement() const { return !else_statement()->IsEmpty(); }
bool HasThenStatement() const { return !then_statement_->IsEmptyStatement(); }
bool HasElseStatement() const { return !else_statement_->IsEmptyStatement(); }
Expression* condition() const { return condition_; }
Statement* then_statement() const { return then_statement_; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment