mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove parsing of why3 doc strings
This commit is contained in:
parent
c5947ae6e3
commit
a46b3479bb
@ -26,7 +26,7 @@ class SolidityLexer(RegexLexer):
|
|||||||
(r'/\*.*?\*/', Comment.Multiline)
|
(r'/\*.*?\*/', Comment.Multiline)
|
||||||
],
|
],
|
||||||
'natspec': [
|
'natspec': [
|
||||||
(r'@author|@dev|@notice|@return|@param|@why3|@title', Keyword),
|
(r'@author|@dev|@notice|@return|@param|@title', Keyword),
|
||||||
(r'.[^@*\n]*?', Comment.Special)
|
(r'.[^@*\n]*?', Comment.Special)
|
||||||
],
|
],
|
||||||
'docstringsingle': [
|
'docstringsingle': [
|
||||||
|
@ -40,7 +40,7 @@ bool DocStringAnalyser::analyseDocStrings(SourceUnit const& _sourceUnit)
|
|||||||
|
|
||||||
bool DocStringAnalyser::visit(ContractDefinition const& _node)
|
bool DocStringAnalyser::visit(ContractDefinition const& _node)
|
||||||
{
|
{
|
||||||
static const set<string> validTags = set<string>{"author", "title", "dev", "notice", "why3"};
|
static const set<string> validTags = set<string>{"author", "title", "dev", "notice"};
|
||||||
parseDocStrings(_node, _node.annotation(), validTags, "contracts");
|
parseDocStrings(_node, _node.annotation(), validTags, "contracts");
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -66,16 +66,6 @@ bool DocStringAnalyser::visit(EventDefinition const& _node)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool DocStringAnalyser::visitNode(ASTNode const& _node)
|
|
||||||
{
|
|
||||||
if (auto node = dynamic_cast<Statement const*>(&_node))
|
|
||||||
{
|
|
||||||
static const set<string> validTags = {"why3"};
|
|
||||||
parseDocStrings(*node, node->annotation(), validTags, "statements");
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
void DocStringAnalyser::handleCallable(
|
void DocStringAnalyser::handleCallable(
|
||||||
CallableDeclaration const& _callable,
|
CallableDeclaration const& _callable,
|
||||||
Documented const& _node,
|
Documented const& _node,
|
||||||
|
@ -48,8 +48,6 @@ private:
|
|||||||
virtual bool visit(ModifierDefinition const& _modifier) override;
|
virtual bool visit(ModifierDefinition const& _modifier) override;
|
||||||
virtual bool visit(EventDefinition const& _event) override;
|
virtual bool visit(EventDefinition const& _event) override;
|
||||||
|
|
||||||
virtual bool visitNode(ASTNode const&) override;
|
|
||||||
|
|
||||||
void handleCallable(
|
void handleCallable(
|
||||||
CallableDeclaration const& _callable,
|
CallableDeclaration const& _callable,
|
||||||
Documented const& _node,
|
Documented const& _node,
|
||||||
|
Loading…
Reference in New Issue
Block a user