Add reference to contract in FunctionDefinition annotation

This commit is contained in:
Mathias Baumann
2019-10-30 17:31:33 +01:00
parent 20e227afb5
commit 5ff02c12e2
3 changed files with 6 additions and 0 deletions
+2
View File
@@ -109,6 +109,8 @@ struct FunctionDefinitionAnnotation: ASTAnnotation, DocumentedAnnotation
/// The function this function overrides, if any. This is always the closest
/// in the linearized inheritance hierarchy.
FunctionDefinition const* superFunction = nullptr;
/// Reference to the contract this function is defined in
ContractDefinition const* contract = nullptr;
};
struct EventDefinitionAnnotation: ASTAnnotation, DocumentedAnnotation