diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-05 02:46:09 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-05 02:46:09 +0800 |
commit | a372941a442fe1029d212ebf7b097bdea7534fad (patch) | |
tree | fe00baa257d974c65545886c266bf7348cd0cbf2 /libsolidity/ast/ASTAnnotations.h | |
parent | f3af014afd1e6e70ab25ea30bff6f272cc73b0a9 (diff) | |
parent | 2186401479d0d41b5fb45d7316a479c1c9bfa7ad (diff) | |
download | dexon-solidity-a372941a442fe1029d212ebf7b097bdea7534fad.tar dexon-solidity-a372941a442fe1029d212ebf7b097bdea7534fad.tar.gz dexon-solidity-a372941a442fe1029d212ebf7b097bdea7534fad.tar.bz2 dexon-solidity-a372941a442fe1029d212ebf7b097bdea7534fad.tar.lz dexon-solidity-a372941a442fe1029d212ebf7b097bdea7534fad.tar.xz dexon-solidity-a372941a442fe1029d212ebf7b097bdea7534fad.tar.zst dexon-solidity-a372941a442fe1029d212ebf7b097bdea7534fad.zip |
Merge pull request #2687 from ethereum/show-unimplemented-funcs
Show unimplemented function if trying to instantiate an abstract class
Diffstat (limited to 'libsolidity/ast/ASTAnnotations.h')
-rw-r--r-- | libsolidity/ast/ASTAnnotations.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index 45a6dd1a..ecddbe21 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -79,8 +79,9 @@ struct TypeDeclarationAnnotation: ASTAnnotation struct ContractDefinitionAnnotation: TypeDeclarationAnnotation, DocumentedAnnotation { - /// Whether all functions are implemented. - bool isFullyImplemented = true; + /// List of functions without a body. Can also contain functions from base classes, + /// especially constructors. + std::vector<FunctionDefinition const*> unimplementedFunctions; /// List of all (direct and indirect) base contracts in order from derived to /// base, including the contract itself. std::vector<ContractDefinition const*> linearizedBaseContracts; |