aboutsummaryrefslogtreecommitdiffstats
path: root/Parser.h
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-21 18:16:18 +0800
committerChristian <c@ethdev.com>2015-01-26 17:23:39 +0800
commit19793dab093ae36b5f2b4d1cabfbf54bed3125b1 (patch)
tree94070079e892a1681fa82a0d4a9db315ce152573 /Parser.h
parent570e49c03ab9e09d538218839696fc6159b0a2f1 (diff)
downloaddexon-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Parser.h b/Parser.h
index 5905a042..cccf3b3b 100644
--- a/Parser.h
+++ b/Parser.h
@@ -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;
};
}