2022-04-26 06:58:43 -05:00
|
|
|
const QUERY = [
|
|
|
|
"-> F<P>",
|
|
|
|
"-> P",
|
|
|
|
"->,a",
|
|
|
|
"aaaaa->a",
|
|
|
|
"-> !",
|
|
|
|
];
|
2021-12-20 10:45:52 -06:00
|
|
|
|
|
|
|
const PARSED = [
|
|
|
|
{
|
|
|
|
elems: [],
|
|
|
|
foundElems: 1,
|
2022-03-20 09:03:17 -05:00
|
|
|
original: "-> F<P>",
|
2021-12-20 10:45:52 -06:00
|
|
|
returned: [{
|
2022-03-20 09:03:17 -05:00
|
|
|
name: "f",
|
|
|
|
fullPath: ["f"],
|
2021-12-20 10:45:52 -06:00
|
|
|
pathWithoutLast: [],
|
2022-03-20 09:03:17 -05:00
|
|
|
pathLast: "f",
|
2021-12-20 10:45:52 -06:00
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2021-12-20 10:45:52 -06:00
|
|
|
}],
|
2022-03-20 09:03:17 -05:00
|
|
|
userQuery: "-> f<p>",
|
2021-12-20 10:45:52 -06:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "-> P",
|
|
|
|
returned: [{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2021-12-20 10:45:52 -06:00
|
|
|
}],
|
2022-01-03 09:43:30 -06:00
|
|
|
userQuery: "-> p",
|
2021-12-20 10:45:52 -06:00
|
|
|
error: null,
|
|
|
|
},
|
2022-03-28 09:14:00 -05:00
|
|
|
{
|
|
|
|
elems: [],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "->,a",
|
|
|
|
returned: [{
|
|
|
|
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
|
|
|
}],
|
|
|
|
userQuery: "->,a",
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-03-28 09:14:00 -05:00
|
|
|
}],
|
|
|
|
foundElems: 2,
|
|
|
|
original: "aaaaa->a",
|
|
|
|
returned: [{
|
|
|
|
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
|
|
|
}],
|
|
|
|
userQuery: "aaaaa->a",
|
|
|
|
error: null,
|
|
|
|
},
|
2022-04-26 06:58:43 -05:00
|
|
|
{
|
|
|
|
elems: [],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "-> !",
|
|
|
|
returned: [{
|
|
|
|
name: "!",
|
|
|
|
fullPath: ["!"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "!",
|
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-04-26 06:58:43 -05:00
|
|
|
}],
|
|
|
|
userQuery: "-> !",
|
|
|
|
error: null,
|
|
|
|
},
|
2021-12-20 10:45:52 -06:00
|
|
|
];
|