aboutsummaryrefslogtreecommitdiffstats
path: root/AST.h
diff options
context:
space:
mode:
authorLu Guanqun <guanqun.lu@gmail.com>2015-01-30 01:26:00 +0800
committerLu Guanqun <guanqun.lu@gmail.com>2015-01-30 01:32:55 +0800
commit5c828dc8b25f223f45d85359dbbb5d9e275167c2 (patch)
tree290d64097f64744341cc147391693ef8c16a9055 /AST.h
parent77384af827d7d941620552c4f5f740c3b7c576ef (diff)
downloaddexon-solidity-5c828dc8b25f223f45d85359dbbb5d9e275167c2.tar.gz
dexon-solidity-5c828dc8b25f223f45d85359dbbb5d9e275167c2.tar.zst
dexon-solidity-5c828dc8b25f223f45d85359dbbb5d9e275167c2.zip
implement named arguments
Diffstat (limited to 'AST.h')
-rwxr-xr-xAST.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/AST.h b/AST.h
index f3b18d39..cf86780d 100755
--- a/AST.h
+++ b/AST.h
@@ -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;
};
/**