rust/tests/rustdoc-js-std/parser-returned.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

157 lines
3.5 KiB
JavaScript
Raw Normal View History

2021-12-20 16:45:52 +00:00
const PARSED = [
{
2023-06-09 14:49:38 +00:00
query: "-> F<P>",
2021-12-20 16:45:52 +00:00
elems: [],
foundElems: 1,
userQuery: "-> F<P>",
2021-12-20 16:45:52 +00:00
returned: [{
name: "F",
fullPath: ["f"],
2021-12-20 16:45:52 +00:00
pathWithoutLast: [],
pathLast: "f",
2021-12-20 16:45:52 +00:00
generics: [
{
name: "P",
2021-12-20 16:45:52 +00:00
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [],
},
],
typeFilter: -1,
2021-12-20 16:45:52 +00:00
}],
error: null,
},
{
2023-06-09 14:49:38 +00:00
query: "-> P",
2021-12-20 16:45:52 +00:00
elems: [],
foundElems: 1,
userQuery: "-> P",
2021-12-20 16:45:52 +00:00
returned: [{
name: "P",
2021-12-20 16:45:52 +00:00
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [],
typeFilter: -1,
2021-12-20 16:45:52 +00:00
}],
error: null,
},
{
2023-06-09 14:49:38 +00:00
query: "->,a",
elems: [],
foundElems: 1,
userQuery: "->,a",
returned: [{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
typeFilter: -1,
}],
error: null,
},
{
2023-06-09 14:49:38 +00:00
query: "aaaaa->a",
elems: [{
name: "aaaaa",
fullPath: ["aaaaa"],
pathWithoutLast: [],
pathLast: "aaaaa",
generics: [],
typeFilter: -1,
}],
foundElems: 2,
userQuery: "aaaaa->a",
returned: [{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
typeFilter: -1,
}],
error: null,
},
{
2023-06-09 14:49:38 +00:00
query: "-> !",
elems: [],
foundElems: 1,
userQuery: "-> !",
returned: [{
name: "never",
fullPath: ["never"],
pathWithoutLast: [],
pathLast: "never",
generics: [],
typeFilter: 1,
}],
error: null,
},
{
query: "a->",
elems: [{
name: "a",
fullPath: ["a"],
pathWithoutLast: [],
pathLast: "a",
generics: [],
typeFilter: -1,
}],
foundElems: 1,
userQuery: "a->",
returned: [],
hasReturnArrow: true,
error: null,
},
{
query: "!->",
elems: [{
name: "never",
fullPath: ["never"],
pathWithoutLast: [],
pathLast: "never",
generics: [],
typeFilter: 1,
}],
foundElems: 1,
userQuery: "!->",
returned: [],
hasReturnArrow: true,
error: null,
},
{
query: "! ->",
elems: [{
name: "never",
fullPath: ["never"],
pathWithoutLast: [],
pathLast: "never",
generics: [],
typeFilter: 1,
}],
foundElems: 1,
userQuery: "! ->",
returned: [],
hasReturnArrow: true,
error: null,
},
{
query: "primitive:!->",
elems: [{
name: "never",
fullPath: ["never"],
pathWithoutLast: [],
pathLast: "never",
generics: [],
typeFilter: 1,
}],
foundElems: 1,
userQuery: "primitive:!->",
returned: [],
hasReturnArrow: true,
error: null,
},
2021-12-20 16:45:52 +00:00
];