rust/tests/rustdoc-js-std/parser-generics.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

174 lines
4.8 KiB
JavaScript
Raw Permalink Normal View History

2021-12-20 10:45:52 -06:00
const PARSED = [
{
2023-06-09 09:49:38 -05:00
query: 'A<B<C<D>, E>',
2022-02-09 13:56:37 -06:00
elems: [],
foundElems: 0,
userQuery: 'A<B<C<D>, E>',
2021-12-20 10:45:52 -06:00
returned: [],
error: 'Unclosed `<`',
},
{
2023-06-12 09:05:00 -05:00
query: 'p<>,u8',
elems: [
{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [],
typeFilter: -1,
},
{
name: "u8",
fullPath: ["u8"],
pathWithoutLast: [],
pathLast: "u8",
generics: [],
typeFilter: -1,
},
],
foundElems: 2,
2023-06-12 09:05:00 -05:00
userQuery: "p<>,u8",
returned: [],
error: null,
},
{
2023-06-09 09:49:38 -05:00
query: '"p"<a>',
elems: [
{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [
{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
},
],
typeFilter: -1,
},
],
foundElems: 1,
userQuery: '"p"<a>',
returned: [],
error: null,
},
{
2023-06-09 09:49:38 -05:00
query: 'p<u<x>>',
elems: [
{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [
{
name: "u",
fullPath: ["u"],
pathWithoutLast: [],
pathLast: "u",
generics: [
{
name: "x",
fullPath: ["x"],
pathWithoutLast: [],
pathLast: "x",
generics: [],
},
],
},
],
typeFilter: -1,
},
],
foundElems: 1,
userQuery: 'p<u<x>>',
returned: [],
error: null,
},
{
2023-06-09 09:49:38 -05:00
query: 'p<u<x>, r>',
elems: [
{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [
{
name: "u",
fullPath: ["u"],
pathWithoutLast: [],
pathLast: "u",
generics: [
{
name: "x",
fullPath: ["x"],
pathWithoutLast: [],
pathLast: "x",
generics: [],
},
],
},
{
name: "r",
fullPath: ["r"],
pathWithoutLast: [],
pathLast: "r",
generics: [],
},
],
typeFilter: -1,
},
],
foundElems: 1,
userQuery: 'p<u<x>, r>',
returned: [],
error: null,
},
{
2023-06-09 09:49:38 -05:00
query: 'p<u<x, r>>',
elems: [
{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [
{
name: "u",
fullPath: ["u"],
pathWithoutLast: [],
pathLast: "u",
generics: [
{
name: "x",
fullPath: ["x"],
pathWithoutLast: [],
pathLast: "x",
generics: [],
},
{
name: "r",
fullPath: ["r"],
pathWithoutLast: [],
pathLast: "r",
generics: [],
},
],
},
],
typeFilter: -1,
},
],
foundElems: 1,
userQuery: 'p<u<x, r>>',
returned: [],
error: null,
},
2021-12-20 10:45:52 -06:00
];