diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-29 00:17:00 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-29 00:17:00 +0800 |
| commit | f15a071f6d599d2a21083dfb041b18db8d482949 (patch) | |
| tree | a1b33b6ffe36f14a990dcfe5b9c5e593703d7ae0 /node/BaseNode.hh | |
| parent | d4e6ae6f8237f18d9d0b51e7a6404118dffb709f (diff) | |
remove ListNode, use std::move in AST building
Diffstat (limited to 'node/BaseNode.hh')
| -rw-r--r-- | node/BaseNode.hh | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/node/BaseNode.hh b/node/BaseNode.hh index 71b0925..7fdb135 100644 --- a/node/BaseNode.hh +++ b/node/BaseNode.hh @@ -15,17 +15,6 @@ class BaseNode { Context* context_; }; -template <typename T, class Base = BaseNode> class ListNode : public Base { - public: - ListNode(Context* context) - : Base(context) {} - void Append(T child) { childs_.push_back(child); } - virtual Value CodeGen(); - - private: - std::list<T> childs_; -}; - class FunctionNode; class ProgramNode : public BaseNode { |
