2021-12-20 10:45:52 -06:00
|
|
|
const QUERY = ['fn:foo', 'enum : foo', 'macro<f>:foo'];
|
|
|
|
|
|
|
|
const PARSED = [
|
|
|
|
{
|
|
|
|
elems: [{
|
|
|
|
name: "foo",
|
|
|
|
fullPath: ["foo"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "foo",
|
|
|
|
generics: [],
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "fn:foo",
|
|
|
|
returned: [],
|
|
|
|
typeFilter: 5,
|
2022-01-03 09:43:30 -06:00
|
|
|
userQuery: "fn:foo",
|
2021-12-20 10:45:52 -06:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
elems: [{
|
|
|
|
name: "foo",
|
|
|
|
fullPath: ["foo"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "foo",
|
|
|
|
generics: [],
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
original: "enum : foo",
|
|
|
|
returned: [],
|
|
|
|
typeFilter: 4,
|
2022-01-03 09:43:30 -06:00
|
|
|
userQuery: "enum : foo",
|
2021-12-20 10:45:52 -06:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
2022-01-09 08:12:46 -06:00
|
|
|
elems: [],
|
|
|
|
foundElems: 0,
|
2021-12-20 10:45:52 -06:00
|
|
|
original: "macro<f>:foo",
|
|
|
|
returned: [],
|
2022-01-09 08:12:46 -06:00
|
|
|
typeFilter: -1,
|
2022-01-03 09:43:30 -06:00
|
|
|
userQuery: "macro<f>:foo",
|
2022-01-09 08:12:46 -06:00
|
|
|
error: "Unexpected `:`",
|
2021-12-20 10:45:52 -06:00
|
|
|
},
|
|
|
|
];
|