summaryrefslogtreecommitdiff
path: root/node/StatementNode.cc
blob: b373b703d7d682518557cd6bd26f58985fc66ac9 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "StatementNode.hh"

namespace pcc {
template <> Value StatementListNode::CodeGen() {
    Value result = nullptr;
    for (auto& child : childs_) {
        result = child->CodeGen();
    }
    return result;
}
} // namespace pcc