2022-03-28 14:14:00 +00:00
|
|
|
const QUERY = ['A<B<C<D>, E>', 'p<> u8', '"p"<a>'];
|
2021-12-20 16:45:52 +00:00
|
|
|
|
|
|
|
const PARSED = [
|
|
|
|
{
|
2022-02-09 19:56:37 +00:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
2022-01-09 14:12:46 +00:00
|
|
|
original: 'A<B<C<D>, E>',
|
2021-12-20 16:45:52 +00:00
|
|
|
returned: [],
|
|
|
|
typeFilter: -1,
|
2022-01-09 14:12:46 +00:00
|
|
|
userQuery: 'a<b<c<d>, e>',
|
2022-02-09 19:56:37 +00:00
|
|
|
error: 'Unexpected `<` after `<`',
|
2022-01-04 14:44:00 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 2,
|
|
|
|
original: "p<> u8",
|
|
|
|
returned: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
userQuery: "p<> u8",
|
|
|
|
error: null,
|
|
|
|
},
|
2022-03-28 14:14:00 +00:00
|
|
|
{
|
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
|
|
|
original: '"p"<a>',
|
|
|
|
returned: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
userQuery: '"p"<a>',
|
|
|
|
error: null,
|
|
|
|
},
|
2021-12-20 16:45:52 +00:00
|
|
|
];
|