diff options
| author | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
|---|---|---|
| committer | Nagi5Yeq <wu@x-nagi.com> | 2020-05-31 04:03:00 +0800 |
| commit | bd44c9eaef1f4dcbbd98d4489885566b6c7e5138 (patch) | |
| tree | d664ec481b99e04386c47526b56085320edd9cde /node/FunctionNode.hh | |
| parent | fd21f31e654a97027799f0fdf3518fd639415121 (diff) | |
support for type alias
Diffstat (limited to 'node/FunctionNode.hh')
| -rw-r--r-- | node/FunctionNode.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/FunctionNode.hh b/node/FunctionNode.hh index d317402..e939121 100644 --- a/node/FunctionNode.hh +++ b/node/FunctionNode.hh @@ -13,7 +13,7 @@ class FunctionNode : public BaseNode { FunctionNode(Context* context, std::string&& name, std::list<Declaration>&& arguments, std::list<std::shared_ptr<DeclNode>>&& LocalDeclarations, - std::shared_ptr<Type> ReturnType, + std::shared_ptr<TypeIdentifier> ReturnTypeIdentifier, std::shared_ptr<StatementListNode> body); virtual Value CodeGen() override; @@ -21,7 +21,7 @@ class FunctionNode : public BaseNode { std::string name_; std::list<Declaration> arguments_; std::list<std::shared_ptr<DeclNode>> LocalDeclarations_; - std::shared_ptr<Type> ReturnType_; + std::shared_ptr<TypeIdentifier> ReturnTypeIdentifier_; VariableList locals_; std::shared_ptr<StatementListNode> body_; }; |
