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

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

80 lines
1.7 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: '-> "p"',
2021-12-20 16:45:52 +00:00
elems: [],
foundElems: 1,
2022-04-16 14:33:54 +00:00
original: '-> "p"',
2021-12-20 16:45:52 +00:00
returned: [{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [],
typeFilter: -1,
2021-12-20 16:45:52 +00:00
}],
2022-04-16 14:33:54 +00:00
userQuery: '-> "p"',
error: null,
},
{
2023-06-09 14:49:38 +00:00
query: '"p",',
2022-04-16 14:33:54 +00:00
elems: [{
name: "p",
fullPath: ["p"],
pathWithoutLast: [],
pathLast: "p",
generics: [],
typeFilter: -1,
2022-04-16 14:33:54 +00:00
}],
foundElems: 1,
original: '"p",',
returned: [],
userQuery: '"p",',
2021-12-20 16:45:52 +00:00
error: null,
},
2022-04-16 14:33:54 +00:00
{
2023-06-09 14:49:38 +00:00
query: '"p" -> a',
2022-04-16 14:33:54 +00:00
elems: [],
foundElems: 0,
original: '"p" -> a',
returned: [],
userQuery: '"p" -> a',
2023-06-12 14:05:00 +00:00
error: "Cannot have more than one element if you use quotes",
2022-04-16 14:33:54 +00:00
},
{
2023-06-09 14:49:38 +00:00
query: '"a" -> "p"',
2022-04-16 14:33:54 +00:00
elems: [],
foundElems: 0,
original: '"a" -> "p"',
returned: [],
userQuery: '"a" -> "p"',
error: "Cannot have more than one literal search element",
},
{
2023-06-09 14:49:38 +00:00
query: '->"-"',
2022-04-16 14:33:54 +00:00
elems: [],
foundElems: 0,
original: '->"-"',
returned: [],
userQuery: '->"-"',
error: 'Unexpected `-` in a string element',
},
{
2023-06-09 14:49:38 +00:00
query: '"a',
2022-04-16 14:33:54 +00:00
elems: [],
foundElems: 0,
original: '"a',
returned: [],
userQuery: '"a',
error: 'Unclosed `"`',
},
2022-04-16 23:43:26 +00:00
{
2023-06-09 14:49:38 +00:00
query: '""',
2022-04-16 23:43:26 +00:00
elems: [],
foundElems: 0,
original: '""',
returned: [],
userQuery: '""',
error: 'Cannot have empty string element',
},
2021-12-20 16:45:52 +00:00
];