2023-05-25 14:58:36 -05:00
|
|
|
const PARSED = [
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[[[D, []]]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
2024-09-24 14:33:09 -05:00
|
|
|
userQuery: '[[[D, []]]',
|
2023-05-25 14:58:36 -05:00
|
|
|
returned: [],
|
|
|
|
error: 'Unclosed `[`',
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[[[D, []]]]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [
|
|
|
|
{
|
2024-09-24 14:33:09 -05:00
|
|
|
name: "D",
|
2023-05-25 14:58:36 -05:00
|
|
|
fullPath: ["d"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "d",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
2024-09-24 14:33:09 -05:00
|
|
|
userQuery: '[[[D, []]]]',
|
2023-05-25 14:58:36 -05:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-12 09:05:00 -05:00
|
|
|
query: '[],u8',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 2,
|
2023-06-12 09:05:00 -05:00
|
|
|
userQuery: "[],u8",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[u8]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "[u8]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[u8,u8]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "[u8,u8]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[u8<u8>]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "[u8<u8>]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "[]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[>',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "[>",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Unexpected `>` after `[`",
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[<',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "[<",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Found generics without a path",
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[a>',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "[a>",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Unexpected `>` after `[`",
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[a<',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "[a<",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Unclosed `<`",
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[a',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "[a",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Unclosed `[`",
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: '[',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "[",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Unclosed `[`",
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: ']',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Unexpected `]`",
|
|
|
|
},
|
2023-09-29 14:52:30 -05:00
|
|
|
{
|
|
|
|
query: '[a<b>',
|
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "[a<b>",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-09-29 14:52:30 -05:00
|
|
|
error: "Unclosed `[`",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: 'a<b>]',
|
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "a<b>]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-09-29 14:52:30 -05:00
|
|
|
error: "Unexpected `]` after `>`",
|
|
|
|
},
|
2023-05-25 14:58:36 -05:00
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: 'primitive:[u8]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "[]",
|
|
|
|
fullPath: ["[]"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "[]",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "u8",
|
|
|
|
fullPath: ["u8"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "u8",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
2023-11-20 14:37:57 -06:00
|
|
|
typeFilter: 1,
|
2023-05-25 14:58:36 -05:00
|
|
|
},
|
|
|
|
],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "primitive:[u8]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2023-06-06 19:21:06 -05:00
|
|
|
query: 'macro:[u8]',
|
2023-05-25 14:58:36 -05:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
|
|
|
userQuery: "macro:[u8]",
|
2024-09-24 14:33:09 -05:00
|
|
|
returned: [],
|
2023-05-25 14:58:36 -05:00
|
|
|
error: "Invalid search type: primitive `[]` and `macro` both specified",
|
|
|
|
},
|
|
|
|
];
|