diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-08-23 01:24:02 +0800 |
---|---|---|
committer | Alex Beregszaszi <alex@rtfs.hu> | 2017-09-20 08:23:21 +0800 |
commit | aad829948a7b21d7664a43c1127679b53ae40bdc (patch) | |
tree | 9809a49c773d3e7cfbe2bb2c1db926ad0b6810ca /libsolidity/analysis/DocStringAnalyser.cpp | |
parent | 137b214be471dd690aeadaf0e02b9ad0915d9e84 (diff) | |
download | dexon-solidity-aad829948a7b21d7664a43c1127679b53ae40bdc.tar dexon-solidity-aad829948a7b21d7664a43c1127679b53ae40bdc.tar.gz dexon-solidity-aad829948a7b21d7664a43c1127679b53ae40bdc.tar.bz2 dexon-solidity-aad829948a7b21d7664a43c1127679b53ae40bdc.tar.lz dexon-solidity-aad829948a7b21d7664a43c1127679b53ae40bdc.tar.xz dexon-solidity-aad829948a7b21d7664a43c1127679b53ae40bdc.tar.zst dexon-solidity-aad829948a7b21d7664a43c1127679b53ae40bdc.zip |
Ensure parameter names match between headers and implementation
Diffstat (limited to 'libsolidity/analysis/DocStringAnalyser.cpp')
-rw-r--r-- | libsolidity/analysis/DocStringAnalyser.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/libsolidity/analysis/DocStringAnalyser.cpp b/libsolidity/analysis/DocStringAnalyser.cpp index d08c4eb5..b3fb5258 100644 --- a/libsolidity/analysis/DocStringAnalyser.cpp +++ b/libsolidity/analysis/DocStringAnalyser.cpp @@ -38,30 +38,30 @@ bool DocStringAnalyser::analyseDocStrings(SourceUnit const& _sourceUnit) return !m_errorOccured; } -bool DocStringAnalyser::visit(ContractDefinition const& _node) +bool DocStringAnalyser::visit(ContractDefinition const& _contract) { static const set<string> validTags = set<string>{"author", "title", "dev", "notice"}; - parseDocStrings(_node, _node.annotation(), validTags, "contracts"); + parseDocStrings(_contract, _contract.annotation(), validTags, "contracts"); return true; } -bool DocStringAnalyser::visit(FunctionDefinition const& _node) +bool DocStringAnalyser::visit(FunctionDefinition const& _function) { - handleCallable(_node, _node, _node.annotation()); + handleCallable(_function, _function, _function.annotation()); return true; } -bool DocStringAnalyser::visit(ModifierDefinition const& _node) +bool DocStringAnalyser::visit(ModifierDefinition const& _modifier) { - handleCallable(_node, _node, _node.annotation()); + handleCallable(_modifier, _modifier, _modifier.annotation()); return true; } -bool DocStringAnalyser::visit(EventDefinition const& _node) +bool DocStringAnalyser::visit(EventDefinition const& _event) { - handleCallable(_node, _node, _node.annotation()); + handleCallable(_event, _event, _event.annotation()); return true; } |