diff options
author | chriseth <c@ethdev.com> | 2015-10-27 00:20:29 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-10-27 02:47:25 +0800 |
commit | 8fb49d85f9464bfa0d17ac77d2e19b3ba371c53c (patch) | |
tree | cbe785c7e483fb83d9ed5148273f3cc93d602914 /libsolidity/parsing/Parser.h | |
parent | e77deccfb3373f5cc7208a0d2579a76f31379952 (diff) | |
download | dexon-solidity-8fb49d85f9464bfa0d17ac77d2e19b3ba371c53c.tar.gz dexon-solidity-8fb49d85f9464bfa0d17ac77d2e19b3ba371c53c.tar.zst dexon-solidity-8fb49d85f9464bfa0d17ac77d2e19b3ba371c53c.zip |
Allow docstrings for statements.
Diffstat (limited to 'libsolidity/parsing/Parser.h')
-rw-r--r-- | libsolidity/parsing/Parser.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libsolidity/parsing/Parser.h b/libsolidity/parsing/Parser.h index 5e226ba5..663c0f92 100644 --- a/libsolidity/parsing/Parser.h +++ b/libsolidity/parsing/Parser.h @@ -82,17 +82,19 @@ private: VarDeclParserOptions const& _options, bool _allowEmpty = true ); - ASTPointer<Block> parseBlock(); + ASTPointer<Block> parseBlock(ASTPointer<ASTString> const& _docString = {}); ASTPointer<Statement> parseStatement(); - ASTPointer<IfStatement> parseIfStatement(); - ASTPointer<WhileStatement> parseWhileStatement(); - ASTPointer<ForStatement> parseForStatement(); + ASTPointer<IfStatement> parseIfStatement(ASTPointer<ASTString> const& _docString); + ASTPointer<WhileStatement> parseWhileStatement(ASTPointer<ASTString> const& _docString); + ASTPointer<ForStatement> parseForStatement(ASTPointer<ASTString> const& _docString); /// A "simple statement" can be a variable declaration statement or an expression statement. - ASTPointer<Statement> parseSimpleStatement(); + ASTPointer<Statement> parseSimpleStatement(ASTPointer<ASTString> const& _docString); ASTPointer<VariableDeclarationStatement> parseVariableDeclarationStatement( + ASTPointer<ASTString> const& _docString, ASTPointer<TypeName> const& _lookAheadArrayType = ASTPointer<TypeName>() ); ASTPointer<ExpressionStatement> parseExpressionStatement( + ASTPointer<ASTString> const& _docString, ASTPointer<Expression> const& _lookAheadIndexAccessStructure = ASTPointer<Expression>() ); ASTPointer<Expression> parseExpression( |