rustdoc-search: add support for nested generics
This commit is contained in:
parent
276fa29480
commit
afee2411e3
4 changed files with 184 additions and 13 deletions
33
tests/rustdoc-js/generics-nested.js
Normal file
33
tests/rustdoc-js/generics-nested.js
Normal file
|
@ -0,0 +1,33 @@
|
|||
// exact-check
|
||||
|
||||
const QUERY = [
|
||||
'-> Out<First<Second>>',
|
||||
'-> Out<Second<First>>',
|
||||
'-> Out<First, Second>',
|
||||
'-> Out<Second, First>',
|
||||
];
|
||||
|
||||
const EXPECTED = [
|
||||
{
|
||||
// -> Out<First<Second>>
|
||||
'others': [
|
||||
{ 'path': 'generics_nested', 'name': 'alef' },
|
||||
],
|
||||
},
|
||||
{
|
||||
// -> Out<Second<First>>
|
||||
'others': [],
|
||||
},
|
||||
{
|
||||
// -> Out<First, Second>
|
||||
'others': [
|
||||
{ 'path': 'generics_nested', 'name': 'bet' },
|
||||
],
|
||||
},
|
||||
{
|
||||
// -> Out<Second, First>
|
||||
'others': [
|
||||
{ 'path': 'generics_nested', 'name': 'bet' },
|
||||
],
|
||||
},
|
||||
];
|
Loading…
Add table
Add a link
Reference in a new issue