diff options
author | chriseth <c@ethdev.com> | 2015-11-26 22:28:28 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-11-26 22:28:28 +0800 |
commit | c498dcce22b2921ee57f280da9117e491c021e1b (patch) | |
tree | 1eb3bec6140d9b2e1ee57f62343dbc9c70d84c78 /libsolidity/ast/AST.h | |
parent | cd94aa978a77ace1296f9978bfae6d8735b5c91d (diff) | |
parent | e06768e8b580d009b9a9905f70ae2d8814699115 (diff) | |
download | dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.gz dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.bz2 dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.lz dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.xz dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.tar.zst dexon-solidity-c498dcce22b2921ee57f280da9117e491c021e1b.zip |
Merge pull request #222 from chriseth/newArrays
Dynamically create memory arrays.
Diffstat (limited to 'libsolidity/ast/AST.h')
-rw-r--r-- | libsolidity/ast/AST.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libsolidity/ast/AST.h b/libsolidity/ast/AST.h index 69186cb7..e2ed1853 100644 --- a/libsolidity/ast/AST.h +++ b/libsolidity/ast/AST.h @@ -1216,23 +1216,24 @@ private: }; /** - * Expression that creates a new contract, e.g. the "new SomeContract" part in "new SomeContract(1, 2)". + * Expression that creates a new contract or memory-array, + * e.g. the "new SomeContract" part in "new SomeContract(1, 2)". */ class NewExpression: public Expression { public: NewExpression( SourceLocation const& _location, - ASTPointer<Identifier> const& _contractName + ASTPointer<TypeName> const& _typeName ): - Expression(_location), m_contractName(_contractName) {} + Expression(_location), m_typeName(_typeName) {} virtual void accept(ASTVisitor& _visitor) override; virtual void accept(ASTConstVisitor& _visitor) const override; - Identifier const& contractName() const { return *m_contractName; } + TypeName const& typeName() const { return *m_typeName; } private: - ASTPointer<Identifier> m_contractName; + ASTPointer<TypeName> m_typeName; }; /** |