Allow notice tag for non-public state variable.

This won't be part of NatSpec JSON, but will show up under documentation node in AST.
This commit is contained in:
hrkrshnn 2021-04-01 14:28:19 +02:00
parent 39e3da1905
commit b7795b86c1

View File

@ -71,7 +71,7 @@ bool DocStringTagParser::visit(VariableDeclaration const& _variable)
if (_variable.isPublic())
parseDocStrings(_variable, _variable.annotation(), {"dev", "notice", "return", "inheritdoc"}, "public state variables");
else
parseDocStrings(_variable, _variable.annotation(), {"dev", "inheritdoc"}, "non-public state variables");
parseDocStrings(_variable, _variable.annotation(), {"dev", "notice", "inheritdoc"}, "non-public state variables");
}
else if (_variable.isFileLevelVariable())
parseDocStrings(_variable, _variable.annotation(), {"dev"}, "file-level variables");