diff options
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. |