aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.cpp
diff options
context:
space:
mode:
authorGav Wood <g@ethdev.com>2015-02-18 02:38:35 +0800
committerGav Wood <g@ethdev.com>2015-02-18 02:38:35 +0800
commit1e2d4b5c00c4875669d5daff444a5dc8ed408cb9 (patch)
treea1ebe057746c7a5e2d43ad4925fc4fa551692496 /Parser.cpp
parent41e609629549070dbab7892fbde7f9fd49695630 (diff)
parenta33fa270f689168f84c0db6aa673658ae92fb495 (diff)
downloaddexon-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.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Parser.cpp b/Parser.cpp
index c96593f6..cf57ca50 100644
--- a/Parser.cpp
+++ b/Parser.cpp
@@ -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)
{