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,
|
2022-01-09 08:12:46 -06:00
|
|
|
original: 'A<B<C<D>, E>',
|
2021-12-20 10:45:52 -06:00
|
|
|
returned: [],
|
2022-01-09 08:12:46 -06:00
|
|
|
userQuery: 'a<b<c<d>, e>',
|
2023-03-30 23:53:11 -05:00
|
|
|
error: 'Unclosed `<`',
|
2022-01-04 08:44:00 -06:00
|
|
|
},
|
|
|
|
{
|
2023-06-12 09:05:00 -05:00
|
|
|
query: 'p<>,u8',
|
2022-01-04 08:44:00 -06:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-01-04 08:44:00 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-01-04 08:44:00 -06:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 2,
|
2023-06-12 09:05:00 -05:00
|
|
|
original: "p<>,u8",
|
2022-01-04 08:44:00 -06:00
|
|
|
returned: [],
|
2023-06-12 09:05:00 -05:00
|
|
|
userQuery: "p<>,u8",
|
2022-01-04 08:44:00 -06:00
|
|
|
error: null,
|
|
|
|
},
|
2022-03-28 09:14:00 -05:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '"p"<a>',
|
2022-03-28 09:14:00 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-03-28 09:14:00 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
|
|
|
original: '"p"<a>',
|
|
|
|
returned: [],
|
|
|
|
userQuery: '"p"<a>',
|
|
|
|
error: null,
|
|
|
|
},
|
2023-03-30 23:53:11 -05:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: 'p<u<x>>',
|
2023-03-30 23:53:11 -05:00
|
|
|
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,
|
|
|
|
original: 'p<u<x>>',
|
|
|
|
returned: [],
|
|
|
|
userQuery: 'p<u<x>>',
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: 'p<u<x>, r>',
|
2023-03-30 23:53:11 -05:00
|
|
|
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,
|
|
|
|
original: 'p<u<x>, r>',
|
|
|
|
returned: [],
|
|
|
|
userQuery: 'p<u<x>, r>',
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: 'p<u<x, r>>',
|
2023-03-30 23:53:11 -05:00
|
|
|
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,
|
|
|
|
original: 'p<u<x, r>>',
|
|
|
|
returned: [],
|
|
|
|
userQuery: 'p<u<x, r>>',
|
|
|
|
error: null,
|
|
|
|
},
|
2021-12-20 10:45:52 -06:00
|
|
|
];
|