diff options
author | Gav Wood <g@ethdev.com> | 2015-02-18 02:38:35 +0800 |
---|---|---|
committer | Gav Wood <g@ethdev.com> | 2015-02-18 02:38:35 +0800 |
commit | 1e2d4b5c00c4875669d5daff444a5dc8ed408cb9 (patch) | |
tree | a1ebe057746c7a5e2d43ad4925fc4fa551692496 /Parser.cpp | |
parent | 41e609629549070dbab7892fbde7f9fd49695630 (diff) | |
parent | a33fa270f689168f84c0db6aa673658ae92fb495 (diff) | |
download | dexon-solidity-1e2d4b5c00c4875669d5daff444a5dc8ed408cb9.tar dexon-solidity-1e2d4b5c00c4875669d5daff444a5dc8ed408cb9.tar.gz dexon-solidity-1e2d4b5c00c4875669d5daff444a5dc8ed408cb9.tar.bz2 dexon-solidity-1e2d4b5c00c4875669d5daff444a5dc8ed408cb9.tar.lz dexon-solidity-1e2d4b5c00c4875669d5daff444a5dc8ed408cb9.tar.xz dexon-solidity-1e2d4b5c00c4875669d5daff444a5dc8ed408cb9.tar.zst dexon-solidity-1e2d4b5c00c4875669d5daff444a5dc8ed408cb9.zip |
Merge pull request #1072 from chriseth/sol_external
bytes ABI type and external visibility specifier
Diffstat (limited to 'Parser.cpp')
-rw-r--r-- | Parser.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -190,6 +190,8 @@ Declaration::Visibility Parser::parseVisibilitySpecifier(Token::Value _token) visibility = Declaration::Visibility::Protected; else if (_token == Token::Private) visibility = Declaration::Visibility::Private; + else if (_token == Token::External) + visibility = Declaration::Visibility::External; else solAssert(false, "Invalid visibility specifier."); m_scanner->next(); @@ -306,7 +308,7 @@ ASTPointer<VariableDeclaration> Parser::parseVariableDeclaration(VarDeclParserOp ASTPointer<ASTString> identifier; Token::Value token = m_scanner->getCurrentToken(); Declaration::Visibility visibility(Declaration::Visibility::Default); - if (_options.isStateVariable && Token::isVisibilitySpecifier(token)) + if (_options.isStateVariable && Token::isVariableVisibilitySpecifier(token)) visibility = parseVisibilitySpecifier(token); if (_options.allowIndexed && token == Token::Indexed) { |