diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-15 09:26:24 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-24 20:46:18 +0800 |
commit | 5668377c721c48f03518a02d0b3e45b5b61a52f6 (patch) | |
tree | 6a9d0aad4eb25219debe2019697d89c579f32358 /libsolidity/parsing/Parser.cpp | |
parent | 65d78f36c1f5b88546261bc005ef952065d34adf (diff) | |
download | dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar.gz dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.tar.zst dexon-solidity-5668377c721c48f03518a02d0b3e45b5b61a52f6.zip |
Introduce pure specifier on functions
Diffstat (limited to 'libsolidity/parsing/Parser.cpp')
-rw-r--r-- | libsolidity/parsing/Parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libsolidity/parsing/Parser.cpp b/libsolidity/parsing/Parser.cpp index cd0d6157..ddfdb667 100644 --- a/libsolidity/parsing/Parser.cpp +++ b/libsolidity/parsing/Parser.cpp @@ -321,6 +321,8 @@ StateMutability Parser::parseStateMutability(Token::Value _token) // FIXME: constant should be removed at the next breaking release else if (_token == Token::View || _token == Token::Constant) stateMutability = StateMutability::View; + else if (_token == Token::Pure) + stateMutability = StateMutability::Pure; else solAssert(false, "Invalid state mutability specifier."); m_scanner->next(); |