diff options
author | chriseth <c@ethdev.com> | 2015-01-15 01:22:16 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-01-15 01:22:16 +0800 |
commit | 1a4280de35d118493e11bc8272d2d7127adaa50c (patch) | |
tree | 6abcbc41d1ded067d5ffd8453656241366512217 /AST.h | |
parent | 6e16107870494878635da347146b076a7d75dea0 (diff) | |
parent | abe6055ab73d643ae904202850e4502596112e20 (diff) | |
download | dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.gz dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.bz2 dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.lz dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.xz dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.tar.zst dexon-solidity-1a4280de35d118493e11bc8272d2d7127adaa50c.zip |
Merge pull request #799 from chriseth/sol_gasAndValue
Specify gas and value for function calls and contract creation calls.
Diffstat (limited to 'AST.h')
-rwxr-xr-x | AST.h | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -792,26 +792,22 @@ private: }; /** - * Expression that creates a new contract, e.g. "new SomeContract(1, 2)". + * Expression that creates a new contract, e.g. the "new SomeContract" part in "new SomeContract(1, 2)". */ class NewExpression: public Expression { public: - NewExpression(Location const& _location, ASTPointer<Identifier> const& _contractName, - std::vector<ASTPointer<Expression>> const& _arguments): - Expression(_location), m_contractName(_contractName), m_arguments(_arguments) {} + NewExpression(Location const& _location, ASTPointer<Identifier> const& _contractName): + Expression(_location), m_contractName(_contractName) {} virtual void accept(ASTVisitor& _visitor) override; virtual void accept(ASTConstVisitor& _visitor) const override; virtual void checkTypeRequirements() override; - std::vector<ASTPointer<Expression const>> getArguments() const { return {m_arguments.begin(), m_arguments.end()}; } - /// Returns the referenced contract. Can only be called after type checking. ContractDefinition const* getContract() const { solAssert(m_contract, ""); return m_contract; } private: ASTPointer<Identifier> m_contractName; - std::vector<ASTPointer<Expression>> m_arguments; ContractDefinition const* m_contract = nullptr; }; |