diff options
author | chriseth <chris@ethereum.org> | 2018-04-10 17:39:31 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-10 17:39:31 +0800 |
commit | b52614116e9c72d840b375b0bbb1c56a63df3680 (patch) | |
tree | f60709e1daf118eb20598598b2497270e4ffa299 /libsolidity/ast | |
parent | 27385d6dedca067f0e234f0301c2bb0e914cff15 (diff) | |
parent | 549ba801fb2a175cfb24e3c83b63030f47984e95 (diff) | |
download | dexon-solidity-b52614116e9c72d840b375b0bbb1c56a63df3680.tar dexon-solidity-b52614116e9c72d840b375b0bbb1c56a63df3680.tar.gz dexon-solidity-b52614116e9c72d840b375b0bbb1c56a63df3680.tar.bz2 dexon-solidity-b52614116e9c72d840b375b0bbb1c56a63df3680.tar.lz dexon-solidity-b52614116e9c72d840b375b0bbb1c56a63df3680.tar.xz dexon-solidity-b52614116e9c72d840b375b0bbb1c56a63df3680.tar.zst dexon-solidity-b52614116e9c72d840b375b0bbb1c56a63df3680.zip |
Merge pull request #3821 from ethereum/warn-constructor-override
Warn constructor override
Diffstat (limited to 'libsolidity/ast')
-rw-r--r-- | libsolidity/ast/ASTAnnotations.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libsolidity/ast/ASTAnnotations.h b/libsolidity/ast/ASTAnnotations.h index 3d4236cc..5cbe42bd 100644 --- a/libsolidity/ast/ASTAnnotations.h +++ b/libsolidity/ast/ASTAnnotations.h @@ -90,6 +90,9 @@ struct ContractDefinitionAnnotation: TypeDeclarationAnnotation, DocumentedAnnota /// List of contracts this contract creates, i.e. which need to be compiled first. /// Also includes all contracts from @a linearizedBaseContracts. std::set<ContractDefinition const*> contractDependencies; + /// Mapping containing the nodes that define the arguments for base constructors. + /// These can either be inheritance specifiers or modifier invocations. + std::map<FunctionDefinition const*, ASTNode const*> baseConstructorArguments; }; struct FunctionDefinitionAnnotation: ASTAnnotation, DocumentedAnnotation |