diff options
author | Lu Guanqun <guanqun.lu@gmail.com> | 2015-01-30 01:26:00 +0800 |
---|---|---|
committer | Lu Guanqun <guanqun.lu@gmail.com> | 2015-01-30 01:32:55 +0800 |
commit | 5c828dc8b25f223f45d85359dbbb5d9e275167c2 (patch) | |
tree | 290d64097f64744341cc147391693ef8c16a9055 /AST.h | |
parent | 77384af827d7d941620552c4f5f740c3b7c576ef (diff) | |
download | dexon-solidity-5c828dc8b25f223f45d85359dbbb5d9e275167c2.tar.gz dexon-solidity-5c828dc8b25f223f45d85359dbbb5d9e275167c2.tar.zst dexon-solidity-5c828dc8b25f223f45d85359dbbb5d9e275167c2.zip |
implement named arguments
Diffstat (limited to 'AST.h')
-rwxr-xr-x | AST.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -983,14 +983,15 @@ class FunctionCall: public Expression { public: FunctionCall(Location const& _location, ASTPointer<Expression> const& _expression, - std::vector<ASTPointer<Expression>> const& _arguments): - Expression(_location), m_expression(_expression), m_arguments(_arguments) {} + std::vector<ASTPointer<Expression>> const& _arguments, std::vector<std::string> const& _names): + Expression(_location), m_expression(_expression), m_arguments(_arguments), m_names(_names) {} virtual void accept(ASTVisitor& _visitor) override; virtual void accept(ASTConstVisitor& _visitor) const override; virtual void checkTypeRequirements() override; Expression const& getExpression() const { return *m_expression; } std::vector<ASTPointer<Expression const>> getArguments() const { return {m_arguments.begin(), m_arguments.end()}; } + std::vector<std::string> const& getNames() const { return m_names; } /// Returns true if this is not an actual function call, but an explicit type conversion /// or constructor call. @@ -999,6 +1000,7 @@ public: private: ASTPointer<Expression> m_expression; std::vector<ASTPointer<Expression>> m_arguments; + std::vector<std::string> m_names; }; /** |