diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-06-03 02:36:05 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-06-03 02:36:05 +0800 |
| commit | 2d6ab4b7f207a746a7caaa93466b410cbe328626 (patch) | |
| tree | 570a2d7776e616309149adf065acc474c0c0de98 /node/FunctionNode.hh | |
| parent | cd1466f30c146e12faa0db7e1b53b508bf2274c6 (diff) | |
support for short, int64 and AST dump
Diffstat (limited to 'node/FunctionNode.hh')
| -rw-r--r-- | node/FunctionNode.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/FunctionNode.hh b/node/FunctionNode.hh index 6860c45..56a019b 100644 --- a/node/FunctionNode.hh +++ b/node/FunctionNode.hh @@ -16,6 +16,7 @@ class FunctionNode : public BaseNode { std::shared_ptr<TypeIdentifier> ReturnTypeIdentifier, std::shared_ptr<StatementListNode> body); virtual Value CodeGen() override; + virtual int Travel(Traveler& traveler) override; protected: std::string name_; @@ -33,6 +34,7 @@ class ExternNode : public FunctionNode { std::shared_ptr<TypeIdentifier> ReturnTypeIdentifier, bool IsVariadic); virtual Value CodeGen() override; + virtual int Travel(Traveler& traveler) override; protected: bool IsVariadic_; |
