2024-01-06 20:17:51 +00:00
|
|
|
const PARSED = [
|
2024-01-06 23:01:10 +00:00
|
|
|
// ML-style HOF
|
2024-01-06 20:17:51 +00:00
|
|
|
{
|
|
|
|
query: "(-> F<P>)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "F",
|
2024-01-06 20:17:51 +00:00
|
|
|
fullPath: ["f"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "f",
|
|
|
|
generics: [
|
|
|
|
{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 20:17:51 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "(-> F<P>)",
|
2024-01-06 20:17:51 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(-> P)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 20:17:51 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "(-> P)",
|
2024-01-06 20:17:51 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(->,a)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "(->,a)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 20:17:51 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(F<P> ->)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "F",
|
2024-01-06 20:17:51 +00:00
|
|
|
fullPath: ["f"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "f",
|
|
|
|
generics: [
|
|
|
|
{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 20:17:51 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "(F<P> ->)",
|
2024-01-06 20:17:51 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(P ->)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 20:17:51 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "(P ->)",
|
2024-01-06 20:17:51 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(,a->)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "(,a->)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 20:17:51 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(aaaaa->a)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "(aaaaa->a)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 20:17:51 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(aaaaa, b -> a)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "(aaaaa, b -> a)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 20:17:51 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "primitive:(aaaaa, b -> a)",
|
|
|
|
elems: [{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: 1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "primitive:(aaaaa, b -> a)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 20:17:51 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "x, trait:(aaaaa, b -> a)",
|
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "x",
|
|
|
|
fullPath: ["x"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "x",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: 10,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
foundElems: 2,
|
|
|
|
userQuery: "x, trait:(aaaaa, b -> a)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 20:17:51 +00:00
|
|
|
error: null,
|
|
|
|
},
|
2024-01-06 23:01:10 +00:00
|
|
|
// Rust-style HOF
|
|
|
|
{
|
|
|
|
query: "Fn () -> F<P>",
|
|
|
|
elems: [{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "Fn",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["fn"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "fn",
|
|
|
|
generics: [],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "F",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["f"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "f",
|
|
|
|
generics: [
|
|
|
|
{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "Fn () -> F<P>",
|
2024-01-06 23:01:10 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "FnMut() -> P",
|
|
|
|
elems: [{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "FnMut",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["fnmut"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "fnmut",
|
|
|
|
generics: [],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "FnMut() -> P",
|
2024-01-06 23:01:10 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "(FnMut() -> P)",
|
|
|
|
elems: [{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "FnMut",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["fnmut"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "fnmut",
|
|
|
|
generics: [],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "(FnMut() -> P)",
|
2024-01-06 23:01:10 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "Fn(F<P>)",
|
|
|
|
elems: [{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "Fn",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["fn"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "fn",
|
|
|
|
generics: [{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "F",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["f"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "f",
|
|
|
|
generics: [
|
|
|
|
{
|
2024-09-24 19:33:09 +00:00
|
|
|
name: "P",
|
2024-01-06 23:01:10 +00:00
|
|
|
fullPath: ["p"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "p",
|
|
|
|
generics: [],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
2024-09-24 19:33:09 +00:00
|
|
|
userQuery: "Fn(F<P>)",
|
2024-01-06 23:01:10 +00:00
|
|
|
returned: [],
|
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "primitive:fnonce(aaaaa, b) -> a",
|
|
|
|
elems: [{
|
|
|
|
name: "fnonce",
|
|
|
|
fullPath: ["fnonce"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "fnonce",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: 1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "primitive:fnonce(aaaaa, b) -> a",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 23:01:10 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "primitive:fnonce(aaaaa, keyword:b) -> trait:a",
|
|
|
|
elems: [{
|
|
|
|
name: "fnonce",
|
|
|
|
fullPath: ["fnonce"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "fnonce",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: 0,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: 10,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: 1,
|
|
|
|
}],
|
|
|
|
foundElems: 1,
|
|
|
|
userQuery: "primitive:fnonce(aaaaa, keyword:b) -> trait:a",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 23:01:10 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: "x, trait:fn(aaaaa, b -> a)",
|
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "x",
|
|
|
|
fullPath: ["x"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "x",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "fn",
|
|
|
|
fullPath: ["fn"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "fn",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "->",
|
|
|
|
fullPath: ["->"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "->",
|
|
|
|
generics: [
|
|
|
|
{
|
|
|
|
name: "aaaaa",
|
|
|
|
fullPath: ["aaaaa"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "aaaaa",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
],
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[],
|
|
|
|
]
|
|
|
|
],
|
|
|
|
typeFilter: 10,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
foundElems: 2,
|
|
|
|
userQuery: "x, trait:fn(aaaaa, b -> a)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 23:01:10 +00:00
|
|
|
error: null,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
query: 'a,b(c)',
|
|
|
|
elems: [
|
|
|
|
{
|
|
|
|
name: "a",
|
|
|
|
fullPath: ["a"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "a",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "b",
|
|
|
|
fullPath: ["b"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "b",
|
|
|
|
generics: [{
|
|
|
|
name: "c",
|
|
|
|
fullPath: ["c"],
|
|
|
|
pathWithoutLast: [],
|
|
|
|
pathLast: "c",
|
|
|
|
generics: [],
|
|
|
|
typeFilter: -1,
|
|
|
|
}],
|
|
|
|
bindings: [
|
|
|
|
[
|
|
|
|
"output",
|
|
|
|
[],
|
|
|
|
]
|
|
|
|
],
|
|
|
|
typeFilter: -1,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
foundElems: 2,
|
|
|
|
userQuery: "a,b(c)",
|
2024-09-24 19:33:09 +00:00
|
|
|
returned: [],
|
2024-01-06 23:01:10 +00:00
|
|
|
error: null,
|
|
|
|
},
|
2024-01-06 20:17:51 +00:00
|
|
|
];
|