Adjusts tests to source locations for structured documentation errors.

This commit is contained in:
Erik Kundt 2020-01-25 17:54:41 +01:00
parent cfc70ede5c
commit 85fc0b597b
3 changed files with 8 additions and 4 deletions

View File

@ -7,5 +7,5 @@ contract C {
}
}
// ----
// DocstringParsingError: Documented parameter "" not found in the parameter list of the function.
// DocstringParsingError: Documented parameter "_" not found in the parameter list of the function.
// DocstringParsingError: (17-101): Documented parameter "" not found in the parameter list of the function.
// DocstringParsingError: (17-101): Documented parameter "_" not found in the parameter list of the function.

View File

@ -4,4 +4,4 @@ abstract contract C {
function vote(uint id) public virtual returns (uint value);
}
// ----
// DocstringParsingError: Documentation tag "@return No value returned" does not contain the name of its return parameter.
// DocstringParsingError: (26-89): Documentation tag "@return No value returned" does not contain the name of its return parameter.

View File

@ -2,6 +2,10 @@ abstract contract C {
/// @param id Some identifier
/// @return No value returned
function vote(uint id) public virtual returns (uint value);
/// @return No value returned
function unvote(uint id) public virtual returns (uint value);
}
// ----
// DocstringParsingError: Documentation tag "@return No value returned" does not contain the name of its return parameter.
// DocstringParsingError: (26-89): Documentation tag "@return No value returned" does not contain the name of its return parameter.
// DocstringParsingError: (159-188): Documentation tag "@return No value returned" does not contain the name of its return parameter.