aboutsummaryrefslogtreecommitdiff
path: root/src/nodes.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nodes.cc')
-rw-r--r--src/nodes.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nodes.cc b/src/nodes.cc
index dd003c4..5432318 100644
--- a/src/nodes.cc
+++ b/src/nodes.cc
@@ -86,13 +86,13 @@ std::string OperatorNode::print() const {
}
bool OperatorNode::hasChildren() const {
- return this->right_ != nullptr &&
- this->left_ != nullptr;
+ return this->right_ != nullptr
+ && this->left_ != nullptr;
}
bool OperatorNode::isParentOf(Node*const node) const {
- return this->right_ == node ||
- this->left_ == node;
+ return this->right_ == node
+ || this->left_ == node;
}
TokenType OperatorNode::token() const {