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/ast/ASTAnnotations.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/ast/ASTAnnotations.h')
-rw-r--r-- | libsolidity/ast/ASTAnnotations.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index 094a178e..bb59ceae 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -90,7 +90,11 @@ struct VariableDeclarationAnnotation: ASTAnnotation TypePointer type; }; -struct ReturnAnnotation: ASTAnnotation +struct StatementAnnotation: ASTAnnotation, DocumentedAnnotation +{ +}; + +struct ReturnAnnotation: StatementAnnotation { /// Reference to the return parameters of the function. ParameterList const* functionReturnParameters = nullptr; @@ -109,7 +113,7 @@ struct UserDefinedTypeNameAnnotation: TypeNameAnnotation Declaration const* referencedDeclaration = nullptr; }; -struct VariableDeclarationStatementAnnotation: ASTAnnotation +struct VariableDeclarationStatementAnnotation: StatementAnnotation { /// Information about which component of the value is assigned to which variable. /// The pointer can be null to signify that the component is discarded. |