2022-01-04 08:44:00 -06:00
|
|
|
const QUERY = ['<P>', 'A<B<C<D>, E>', 'p<> u8'];
|
2021-12-20 10:45:52 -06:00
|
|
|
|
|
|
|
const PARSED = [
|
|
|
|
{
|
|
|
|
args: [],
|
|
|
|
elems: [{
|
|
|
|
name: "",
|
|
|
|
fullPath: [""],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "<P>",
|
|
|
|
returned: [],
|
|
|
|
typeFilter: -1,
|
2022-01-03 09:43:30 -06:00
|
|
|
userQuery: "<p>",
|
2021-12-20 10:45:52 -06:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
args: [],
|
|
|
|
elems: [{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "c",
|
|
|
|
fullPath: ["c"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "c",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "d",
|
|
|
|
fullPath: ["d"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "d",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "e",
|
|
|
|
fullPath: ["e"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "e",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
original: 'A<B<C<D>, E>',
|
|
|
|
returned: [],
|
|
|
|
typeFilter: -1,
|
2022-01-03 09:43:30 -06:00
|
|
|
userQuery: 'a<b<c<d>, e>',
|
2021-12-20 10:45:52 -06:00
|
|
|
error: null,
|
2022-01-04 08:44:00 -06:00
|
|
|
},
|
|
|
|
{
|
|
|
|
args: [],
|
|
|
|
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,
|
|
|
|
},
|
2021-12-20 10:45:52 -06:00
|
|
|
];
|