diff options
Diffstat (limited to 'include/cps/FunctionAST.h')
| -rw-r--r-- | include/cps/FunctionAST.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/cps/FunctionAST.h b/include/cps/FunctionAST.h index 5b4da6c..613079c 100644 --- a/include/cps/FunctionAST.h +++ b/include/cps/FunctionAST.h @@ -42,13 +42,15 @@ public: class CallExprAST : public ExprAST { std::string Callee; std::vector<std::unique_ptr<ExprAST>> Args; + int Line; public: - CallExprAST(const std::string &Callee, std::vector<std::unique_ptr<ExprAST>> Args) - : Callee(Callee), Args(std::move(Args)) {} + CallExprAST(const std::string &Callee, std::vector<std::unique_ptr<ExprAST>> Args, int Line) + : Callee(Callee), Args(std::move(Args)), Line(Line) {} const std::string &getCallee() const { return Callee; } const std::vector<std::unique_ptr<ExprAST>> &getArgs() const { return Args; } + int getLine() const { return Line; } }; class CallStmtAST : public StmtAST { |
