mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
95 lines
2.2 KiB
JavaScript
95 lines
2.2 KiB
JavaScript
const PARSED = [
|
|
{
|
|
query: 'A::B',
|
|
elems: [{
|
|
name: "a::b",
|
|
fullPath: ["a", "b"],
|
|
pathWithoutLast: ["a"],
|
|
pathLast: "b",
|
|
generics: [],
|
|
typeFilter: -1,
|
|
}],
|
|
foundElems: 1,
|
|
original: "A::B",
|
|
returned: [],
|
|
userQuery: "a::b",
|
|
error: null,
|
|
},
|
|
{
|
|
query: 'A::B,C',
|
|
elems: [
|
|
{
|
|
name: "a::b",
|
|
fullPath: ["a", "b"],
|
|
pathWithoutLast: ["a"],
|
|
pathLast: "b",
|
|
generics: [],
|
|
typeFilter: -1,
|
|
},
|
|
{
|
|
name: "c",
|
|
fullPath: ["c"],
|
|
pathWithoutLast: [],
|
|
pathLast: "c",
|
|
generics: [],
|
|
typeFilter: -1,
|
|
},
|
|
],
|
|
foundElems: 2,
|
|
original: 'A::B,C',
|
|
returned: [],
|
|
userQuery: 'a::b,c',
|
|
error: null,
|
|
},
|
|
{
|
|
query: 'A::B<f>,C',
|
|
elems: [
|
|
{
|
|
name: "a::b",
|
|
fullPath: ["a", "b"],
|
|
pathWithoutLast: ["a"],
|
|
pathLast: "b",
|
|
generics: [
|
|
{
|
|
name: "f",
|
|
fullPath: ["f"],
|
|
pathWithoutLast: [],
|
|
pathLast: "f",
|
|
generics: [],
|
|
},
|
|
],
|
|
typeFilter: -1,
|
|
},
|
|
{
|
|
name: "c",
|
|
fullPath: ["c"],
|
|
pathWithoutLast: [],
|
|
pathLast: "c",
|
|
generics: [],
|
|
typeFilter: -1,
|
|
},
|
|
],
|
|
foundElems: 2,
|
|
original: 'A::B<f>,C',
|
|
returned: [],
|
|
userQuery: 'a::b<f>,c',
|
|
error: null,
|
|
},
|
|
{
|
|
query: 'mod::a',
|
|
elems: [{
|
|
name: "mod::a",
|
|
fullPath: ["mod", "a"],
|
|
pathWithoutLast: ["mod"],
|
|
pathLast: "a",
|
|
generics: [],
|
|
typeFilter: -1,
|
|
}],
|
|
foundElems: 1,
|
|
original: "mod::a",
|
|
returned: [],
|
|
userQuery: "mod::a",
|
|
error: null,
|
|
},
|
|
];
|