diff options
author | chriseth <c@ethdev.com> | 2015-10-14 04:32:27 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-10-14 04:32:27 +0800 |
commit | e11e10f8176cd6f866e78b5d12c86fe77367c64a (patch) | |
tree | baed9ab43931470a8c60b73e6593de605223ee32 /libsolidity/AST.cpp | |
parent | 23865e39295dd9199769727b037c1d126807b20e (diff) | |
parent | 72f7792f8e09b41987ddd493984402891d49238f (diff) | |
download | dexon-solidity-e11e10f8176cd6f866e78b5d12c86fe77367c64a.tar dexon-solidity-e11e10f8176cd6f866e78b5d12c86fe77367c64a.tar.gz dexon-solidity-e11e10f8176cd6f866e78b5d12c86fe77367c64a.tar.bz2 dexon-solidity-e11e10f8176cd6f866e78b5d12c86fe77367c64a.tar.lz dexon-solidity-e11e10f8176cd6f866e78b5d12c86fe77367c64a.tar.xz dexon-solidity-e11e10f8176cd6f866e78b5d12c86fe77367c64a.tar.zst dexon-solidity-e11e10f8176cd6f866e78b5d12c86fe77367c64a.zip |
Merge pull request #126 from chriseth/destructuringAssignment
Multi-variable declarations.
Diffstat (limited to 'libsolidity/AST.cpp')
-rw-r--r-- | libsolidity/AST.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libsolidity/AST.cpp b/libsolidity/AST.cpp index d55bc13c..490ae29a 100644 --- a/libsolidity/AST.cpp +++ b/libsolidity/AST.cpp @@ -325,6 +325,13 @@ ReturnAnnotation& Return::annotation() const return static_cast<ReturnAnnotation&>(*m_annotation); } +VariableDeclarationStatementAnnotation& VariableDeclarationStatement::annotation() const +{ + if (!m_annotation) + m_annotation = new VariableDeclarationStatementAnnotation(); + return static_cast<VariableDeclarationStatementAnnotation&>(*m_annotation); +} + ExpressionAnnotation& Expression::annotation() const { if (!m_annotation) |