diff options
author | Christian <c@ethdev.com> | 2015-01-21 18:16:18 +0800 |
---|---|---|
committer | Christian <c@ethdev.com> | 2015-01-26 17:23:39 +0800 |
commit | 19793dab093ae36b5f2b4d1cabfbf54bed3125b1 (patch) | |
tree | 94070079e892a1681fa82a0d4a9db315ce152573 /Parser.h | |
parent | 570e49c03ab9e09d538218839696fc6159b0a2f1 (diff) | |
download | dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar.gz dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.tar.zst dexon-solidity-19793dab093ae36b5f2b4d1cabfbf54bed3125b1.zip |
Function modifier parsing.
Diffstat (limited to 'Parser.h')
-rw-r--r-- | Parser.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -53,6 +53,7 @@ private: ASTPointer<FunctionDefinition> parseFunctionDefinition(bool _isPublic, ASTString const* _contractName); ASTPointer<StructDefinition> parseStructDefinition(); ASTPointer<VariableDeclaration> parseVariableDeclaration(bool _allowVar); + ASTPointer<ModifierDefinition> parseModifierDefinition(); ASTPointer<TypeName> parseTypeName(bool _allowVar); ASTPointer<Mapping> parseMapping(); ASTPointer<ParameterList> parseParameterList(bool _allowEmpty = true); @@ -90,6 +91,8 @@ private: ParserError createParserError(std::string const& _description) const; std::shared_ptr<Scanner> m_scanner; + /// Flag that signifies whether '_' is parsed as a PlaceholderStatement or a regular identifier. + bool m_insideModifier = false; }; } |