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

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

44 lines
954 B
JavaScript
Raw Normal View History

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,
},
{
elems: [],
foundElems: 0,
2021-12-20 10:45:52 -06:00
original: "macro<f>:foo",
returned: [],
typeFilter: -1,
2022-01-03 09:43:30 -06:00
userQuery: "macro<f>:foo",
error: "Unexpected `:`",
2021-12-20 10:45:52 -06:00
},
];