-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
1,006 additions
and
216 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,12 +14,6 @@ | |
You should have received a copy of the GNU General Public License | ||
along with solidity. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/** | ||
* @author Christian <[email protected]> | ||
* @date 2015 | ||
* Parses and analyses the doc strings. | ||
* Stores the parsing results in the AST annotations and reports errors. | ||
*/ | ||
|
||
#pragma once | ||
|
||
|
@@ -34,7 +28,7 @@ namespace solidity::frontend | |
{ | ||
|
||
/** | ||
* Parses and analyses the doc strings. | ||
* Analyses and validates the doc strings. | ||
* Stores the parsing results in the AST annotations and reports errors. | ||
*/ | ||
class DocStringAnalyser: private ASTConstVisitor | ||
|
@@ -44,20 +38,13 @@ class DocStringAnalyser: private ASTConstVisitor | |
bool analyseDocStrings(SourceUnit const& _sourceUnit); | ||
|
||
private: | ||
bool visit(ContractDefinition const& _contract) override; | ||
bool visit(FunctionDefinition const& _function) override; | ||
bool visit(VariableDeclaration const& _variable) override; | ||
bool visit(ModifierDefinition const& _modifier) override; | ||
bool visit(EventDefinition const& _event) override; | ||
|
||
void checkParameters( | ||
CallableDeclaration const& _callable, | ||
StructurallyDocumented const& _node, | ||
StructurallyDocumentedAnnotation& _annotation | ||
); | ||
|
||
void handleConstructor( | ||
CallableDeclaration const& _callable, | ||
CallableDeclaration const* resolveInheritDoc( | ||
std::set<CallableDeclaration const*>& _baseFunctions, | ||
StructurallyDocumented const& _node, | ||
StructurallyDocumentedAnnotation& _annotation | ||
); | ||
|
@@ -68,19 +55,6 @@ class DocStringAnalyser: private ASTConstVisitor | |
StructurallyDocumentedAnnotation& _annotation | ||
); | ||
|
||
void handleDeclaration( | ||
Declaration const& _declaration, | ||
StructurallyDocumented const& _node, | ||
StructurallyDocumentedAnnotation& _annotation | ||
); | ||
|
||
void parseDocStrings( | ||
StructurallyDocumented const& _node, | ||
StructurallyDocumentedAnnotation& _annotation, | ||
std::set<std::string> const& _validTags, | ||
std::string const& _nodeName | ||
); | ||
|
||
langutil::ErrorReporter& m_errorReporter; | ||
}; | ||
|
||
|
Oops, something went wrong.