diff --git a/test/libsolidity/natspecJSON/docstring_double_empty.sol b/test/libsolidity/natspecJSON/docstring_double_empty.sol index a84d5d928338..16222d0ac76f 100644 --- a/test/libsolidity/natspecJSON/docstring_double_empty.sol +++ b/test/libsolidity/natspecJSON/docstring_double_empty.sol @@ -5,3 +5,17 @@ contract C { } } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": {}, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/docstring_enum.sol b/test/libsolidity/natspecJSON/docstring_enum.sol index d80484446b1f..d5ace6b14192 100644 --- a/test/libsolidity/natspecJSON/docstring_enum.sol +++ b/test/libsolidity/natspecJSON/docstring_enum.sol @@ -9,3 +9,17 @@ contract C { } } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": {}, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/docstring_named_return_parameter.sol b/test/libsolidity/natspecJSON/docstring_named_return_parameter.sol index b7cbad67712e..01e0368d4988 100644 --- a/test/libsolidity/natspecJSON/docstring_named_return_parameter.sol +++ b/test/libsolidity/natspecJSON/docstring_named_return_parameter.sol @@ -3,3 +3,26 @@ abstract contract C { function vote() public virtual returns (uint value); } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": +// { +// "vote()": +// { +// "returns": +// { +// "value": "The value returned by this function." +// } +// } +// }, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/docstring_parameter.sol b/test/libsolidity/natspecJSON/docstring_parameter.sol index 84a2c2ae0d73..deacbbcaa51f 100644 --- a/test/libsolidity/natspecJSON/docstring_parameter.sol +++ b/test/libsolidity/natspecJSON/docstring_parameter.sol @@ -10,3 +10,17 @@ contract C { } } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": {}, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/docstring_private_state_variable.sol b/test/libsolidity/natspecJSON/docstring_private_state_variable.sol index 5b6cfcce4ef2..2ea1747e0220 100644 --- a/test/libsolidity/natspecJSON/docstring_private_state_variable.sol +++ b/test/libsolidity/natspecJSON/docstring_private_state_variable.sol @@ -4,3 +4,24 @@ contract C { uint private state; } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": {}, +// "stateVariables": +// { +// "state": +// { +// "details": "example of dev" +// } +// }, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/docstring_state_variable.sol b/test/libsolidity/natspecJSON/docstring_state_variable.sol index deb7bf22cff8..5627c20602e6 100644 --- a/test/libsolidity/natspecJSON/docstring_state_variable.sol +++ b/test/libsolidity/natspecJSON/docstring_state_variable.sol @@ -4,3 +4,30 @@ contract C { uint public state; } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": {}, +// "stateVariables": +// { +// "state": +// { +// "details": "example of dev" +// } +// }, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": +// { +// "state()": +// { +// "notice": "example of notice" +// } +// }, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/docstring_struct.sol b/test/libsolidity/natspecJSON/docstring_struct.sol index 621a88a539d0..91e5802dd2a1 100644 --- a/test/libsolidity/natspecJSON/docstring_struct.sol +++ b/test/libsolidity/natspecJSON/docstring_struct.sol @@ -10,3 +10,17 @@ contract C { } } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": {}, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/docstring_variable.sol b/test/libsolidity/natspecJSON/docstring_variable.sol index ccbd4c8a5822..66a143ff8641 100644 --- a/test/libsolidity/natspecJSON/docstring_variable.sol +++ b/test/libsolidity/natspecJSON/docstring_variable.sol @@ -11,3 +11,17 @@ contract C { } } // ---- +// ---- +// :C devdoc +// { +// "kind": "dev", +// "methods": {}, +// "version": 1 +// } +// +// :C userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/return_param_amount_differs.sol b/test/libsolidity/natspecJSON/return_param_amount_differs.sol index 7e40b10b9cb5..2d18ce8a1b40 100644 --- a/test/libsolidity/natspecJSON/return_param_amount_differs.sol +++ b/test/libsolidity/natspecJSON/return_param_amount_differs.sol @@ -12,3 +12,53 @@ contract Thing is IThing { Value public override value; } +// ---- +// ---- +// :IThing devdoc +// { +// "kind": "dev", +// "methods": +// { +// "value()": +// { +// "returns": +// { +// "x": "a number", +// "y": "another number" +// } +// } +// }, +// "version": 1 +// } +// +// :IThing userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } +// +// :Thing devdoc +// { +// "kind": "dev", +// "methods": {}, +// "stateVariables": +// { +// "value": +// { +// "returns": +// { +// "x": "a number", +// "y": "another number" +// } +// } +// }, +// "version": 1 +// } +// +// :Thing userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } diff --git a/test/libsolidity/natspecJSON/return_param_amount_differs2.sol b/test/libsolidity/natspecJSON/return_param_amount_differs2.sol index cffe2b390fd7..e10802c100bd 100644 --- a/test/libsolidity/natspecJSON/return_param_amount_differs2.sol +++ b/test/libsolidity/natspecJSON/return_param_amount_differs2.sol @@ -14,3 +14,60 @@ contract Thing is IThing { mapping(uint256=>Value) public override value; } // ---- +// ---- +// :IThing devdoc +// { +// "kind": "dev", +// "methods": +// { +// "value(uint256)": +// { +// "params": +// { +// "v": "value to search for" +// }, +// "returns": +// { +// "x": "a number", +// "y": "another number" +// } +// } +// }, +// "version": 1 +// } +// +// :IThing userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// } +// +// :Thing devdoc +// { +// "kind": "dev", +// "methods": {}, +// "stateVariables": +// { +// "value": +// { +// "params": +// { +// "v": "value to search for" +// }, +// "returns": +// { +// "x": "a number", +// "y": "another number" +// } +// } +// }, +// "version": 1 +// } +// +// :Thing userdoc +// { +// "kind": "user", +// "methods": {}, +// "version": 1 +// }