2022-01-09 14:12:46 +00:00
|
|
|
const QUERY = ['<P>', 'A<B<C<D>, E>', 'p<> u8'];
|
2021-12-20 16:45:52 +00: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 15:43:30 +00:00
|
|
|
userQuery: "<p>",
|
2021-12-20 16:45:52 +00: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,
|
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>',
|
2021-12-20 16:45:52 +00:00
|
|
|
error: null,
|
2022-01-04 14:44:00 +00: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 16:45:52 +00:00
|
|
|
];
|