]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-js-std/parser-returned.js
Rollup merge of #107777 - compiler-errors:derive_const-actually-derive-const, r=fee1...
[rust.git] / tests / rustdoc-js-std / parser-returned.js
1 const QUERY = [
2     "-> F<P>",
3     "-> P",
4     "->,a",
5     "aaaaa->a",
6     "-> !",
7 ];
8
9 const PARSED = [
10     {
11         elems: [],
12         foundElems: 1,
13         original: "-> F<P>",
14         returned: [{
15             name: "f",
16             fullPath: ["f"],
17             pathWithoutLast: [],
18             pathLast: "f",
19             generics: [
20                 {
21                     name: "p",
22                     fullPath: ["p"],
23                     pathWithoutLast: [],
24                     pathLast: "p",
25                     generics: [],
26                 },
27             ],
28         }],
29         typeFilter: -1,
30         userQuery: "-> f<p>",
31         error: null,
32     },
33     {
34         elems: [],
35         foundElems: 1,
36         original: "-> P",
37         returned: [{
38             name: "p",
39             fullPath: ["p"],
40             pathWithoutLast: [],
41             pathLast: "p",
42             generics: [],
43         }],
44         typeFilter: -1,
45         userQuery: "-> p",
46         error: null,
47     },
48     {
49         elems: [],
50         foundElems: 1,
51         original: "->,a",
52         returned: [{
53             name: "a",
54             fullPath: ["a"],
55             pathWithoutLast: [],
56             pathLast: "a",
57             generics: [],
58         }],
59         typeFilter: -1,
60         userQuery: "->,a",
61         error: null,
62     },
63     {
64         elems: [{
65             name: "aaaaa",
66             fullPath: ["aaaaa"],
67             pathWithoutLast: [],
68             pathLast: "aaaaa",
69             generics: [],
70         }],
71         foundElems: 2,
72         original: "aaaaa->a",
73         returned: [{
74             name: "a",
75             fullPath: ["a"],
76             pathWithoutLast: [],
77             pathLast: "a",
78             generics: [],
79         }],
80         typeFilter: -1,
81         userQuery: "aaaaa->a",
82         error: null,
83     },
84     {
85         elems: [],
86         foundElems: 1,
87         original: "-> !",
88         returned: [{
89             name: "!",
90             fullPath: ["!"],
91             pathWithoutLast: [],
92             pathLast: "!",
93             generics: [],
94         }],
95         typeFilter: -1,
96         userQuery: "-> !",
97         error: null,
98     },
99 ];