2021-12-20 10:45:52 -06:00
|
|
|
const PARSED = [
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '-> "p"',
|
2021-12-20 10:45:52 -06:00
|
|
|
elems: [],
|
|
|
|
foundElems: 1,
|
2024-09-24 14:33:09 -05:00
|
|
|
userQuery: '-> "p"',
|
2021-12-20 10:45:52 -06:00
|
|
|
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-04-16 09:33:54 -05:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '"p",',
|
2022-04-16 09:33:54 -05:00
|
|
|
elems: [{
|
|
|
|
name: "p",
|
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
2023-02-28 19:17:59 -06:00
|
|
|
typeFilter: -1,
|
2022-04-16 09:33:54 -05:00
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: '"p",',
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2021-12-20 10:45:52 -06:00
|
|
|
error: null,
|
|
|
|
},
|
2022-04-16 09:33:54 -05:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '"p" -> a',
|
2022-04-16 09:33:54 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: '"p" -> a',
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-06-12 09:05:00 -05:00
|
|
|
error: "Cannot have more than one element if you use quotes",
|
2022-04-16 09:33:54 -05:00
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '"a" -> "p"',
|
2022-04-16 09:33:54 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: '"a" -> "p"',
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2022-04-16 09:33:54 -05:00
|
|
|
error: "Cannot have more than one literal search element",
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '->"-"',
|
2022-04-16 09:33:54 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: '->"-"',
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2022-04-16 09:33:54 -05:00
|
|
|
error: 'Unexpected `-` in a string element',
|
|
|
|
},
|
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '"a',
|
2022-04-16 09:33:54 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: '"a',
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2022-04-16 09:33:54 -05:00
|
|
|
error: 'Unclosed `"`',
|
|
|
|
},
|
2022-04-16 18:43:26 -05:00
|
|
|
{
|
2023-06-09 09:49:38 -05:00
|
|
|
query: '""',
|
2022-04-16 18:43:26 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: '""',
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2022-04-16 18:43:26 -05:00
|
|
|
error: 'Cannot have empty string element',
|
|
|
|
},
|
2021-12-20 10:45:52 -06:00
|
|
|
];
|