2022-04-26 06:58:43 -05:00
|
|
|
const QUERY = [
|
|
|
|
"R<!>",
|
|
|
|
"!",
|
|
|
|
"a!",
|
|
|
|
"a!::b",
|
2023-02-16 16:32:38 -06:00
|
|
|
"!::b",
|
2022-04-26 06:58:43 -05:00
|
|
|
"a!::b!",
|
|
|
|
];
|
|
|
|
|
|
|
|
const PARSED = [
|
|
|
|
{
|
|
|
|
elems: [{
|
|
|
|
name: "r",
|
|
|
|
fullPath: ["r"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "r",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "!",
|
|
|
|
fullPath: ["!"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "!",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-04-26 06:58:43 -05:00
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "R<!>",
|
|
|
|
returned: [],
|
|
|
|
userQuery: "r<!>",
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [{
|
|
|
|
name: "!",
|
|
|
|
fullPath: ["!"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "!",
|
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-04-26 06:58:43 -05:00
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "!",
|
|
|
|
returned: [],
|
|
|
|
userQuery: "!",
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [{
|
2023-02-16 16:32:38 -06:00
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
2022-04-26 06:58:43 -05:00
|
|
|
pathWithoutLast: [],
|
2023-02-16 16:32:38 -06:00
|
|
|
pathLast: "a",
|
2022-04-26 06:58:43 -05:00
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: 14,
|
2022-04-26 06:58:43 -05:00
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "a!",
|
|
|
|
returned: [],
|
|
|
|
userQuery: "a!",
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-02-16 16:32:38 -06:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
2022-04-26 06:58:43 -05:00
|
|
|
original: "a!::b",
|
|
|
|
returned: [],
|
|
|
|
userQuery: "a!::b",
|
2023-02-16 16:32:38 -06:00
|
|
|
error: "Cannot have associated items in macros",
|
2022-04-26 06:58:43 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [{
|
2023-02-16 16:32:38 -06:00
|
|
|
name: "!::b",
|
|
|
|
fullPath: ["!", "b"],
|
|
|
|
pathWithoutLast: ["!"],
|
|
|
|
pathLast: "b",
|
2022-04-26 06:58:43 -05:00
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-04-26 06:58:43 -05:00
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2023-02-16 16:32:38 -06:00
|
|
|
original: "!::b",
|
|
|
|
returned: [],
|
|
|
|
userQuery: "!::b",
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
2022-04-26 06:58:43 -05:00
|
|
|
original: "a!::b!",
|
|
|
|
returned: [],
|
|
|
|
userQuery: "a!::b!",
|
2023-02-16 16:32:38 -06:00
|
|
|
error: "Cannot have associated items in macros",
|
2022-04-26 06:58:43 -05:00
|
|
|
},
|
|
|
|
];
|