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