doc/commands: introduce commands results to json translation
[nit.git] / src / doc / commands / tests / test_commands_json.sav / test_cmd_search.res
1 {
2         "results": [{
3                 "name": "Career",
4                 "class_name": "MClass",
5                 "full_name": "test_prog::Career",
6                 "mdoc": {
7                         "content": "A `Career` gives a characteristic bonus or malus to the character.",
8                         "location": {
9                                 "column_end": 0,
10                                 "column_start": 1,
11                                 "line_end": 30,
12                                 "line_start": 29,
13                                 "file": "test_location"
14                         }
15                 },
16                 "visibility": "public",
17                 "modifiers": ["abstract class"],
18                 "location": {
19                         "column_end": 3,
20                         "column_start": 1,
21                         "line_end": 36,
22                         "line_start": 29,
23                         "file": "test_location"
24                 },
25                 "mparameters": []
26         }, {
27                 "name": "career",
28                 "class_name": "MMethod",
29                 "full_name": "test_prog::Character::career",
30                 "mdoc": {
31                         "content": "The current `Career` of the character.\nReturns `null` if character is unemployed.",
32                         "location": {
33                                 "column_end": 0,
34                                 "column_start": 2,
35                                 "line_end": 29,
36                                 "line_start": 27,
37                                 "file": "test_location"
38                         }
39                 },
40                 "visibility": "public",
41                 "modifiers": ["fun"],
42                 "location": {
43                         "column_end": 47,
44                         "column_start": 2,
45                         "line_end": 29,
46                         "line_start": 27,
47                         "file": "test_location"
48                 },
49                 "is_init": false,
50                 "msignature": {
51                         "arity": 0,
52                         "mparams": [],
53                         "return_mtype": {
54                                 "full_name": "nullable test_prog::Career"
55                         },
56                         "vararg_rank": -1
57                 }
58         }, {
59                 "name": "game",
60                 "class_name": "MGroup",
61                 "full_name": "test_prog>game>",
62                 "mdoc": {
63                         "content": "Gaming group",
64                         "location": {
65                                 "column_end": 0,
66                                 "column_start": 0,
67                                 "line_end": 1,
68                                 "line_start": 1,
69                                 "file": "test_location"
70                         }
71                 },
72                 "visibility": "public",
73                 "modifiers": ["group"],
74                 "location": {
75                         "column_end": 0,
76                         "column_start": 0,
77                         "line_end": 0,
78                         "line_start": 0,
79                         "file": "test_location"
80                 }
81         }, {
82                 "name": "game",
83                 "class_name": "MModule",
84                 "full_name": "test_prog::game",
85                 "mdoc": {
86                         "content": "A game abstraction for RPG.",
87                         "location": {
88                                 "column_end": 0,
89                                 "column_start": 1,
90                                 "line_end": 16,
91                                 "line_start": 15,
92                                 "file": "test_location"
93                         }
94                 },
95                 "visibility": "public",
96                 "modifiers": ["module"],
97                 "location": {
98                         "column_end": 3,
99                         "column_start": 1,
100                         "line_end": 45,
101                         "line_start": 15,
102                         "file": "test_location"
103                 }
104         }, {
105                 "name": "races",
106                 "class_name": "MModule",
107                 "full_name": "test_prog::races",
108                 "mdoc": {
109                         "content": "Races of the game.\n\nAll characters belong to a `Race`.\n\nAvailable races:\n\n * `Human`\n * `Dwarf`\n * `Elf`",
110                         "location": {
111                                 "column_end": 0,
112                                 "column_start": 1,
113                                 "line_end": 24,
114                                 "line_start": 15,
115                                 "file": "test_location"
116                         }
117                 },
118                 "visibility": "public",
119                 "modifiers": ["module"],
120                 "location": {
121                         "column_end": 3,
122                         "column_start": 1,
123                         "line_end": 78,
124                         "line_start": 15,
125                         "file": "test_location"
126                 }
127         }, {
128                 "name": "careers",
129                 "class_name": "MModule",
130                 "full_name": "test_prog::careers",
131                 "mdoc": {
132                         "content": "Careers of the game.\n\nAll characters can have a `Career`.\nA character can also quit its current career and start a new one.\n\nAvailable careers:\n\n * `Warrior`\n * `Magician`\n * `Alcoholic`",
133                         "location": {
134                                 "column_end": 0,
135                                 "column_start": 1,
136                                 "line_end": 25,
137                                 "line_start": 15,
138                                 "file": "test_location"
139                         }
140                 },
141                 "visibility": "public",
142                 "modifiers": ["module"],
143                 "location": {
144                         "column_end": 3,
145                         "column_start": 1,
146                         "line_end": 69,
147                         "line_start": 15,
148                         "file": "test_location"
149                 }
150         }, {
151                 "name": "Game",
152                 "class_name": "MClass",
153                 "full_name": "test_prog::Game",
154                 "mdoc": {
155                         "content": "This is the interface you have to implement to use ure gaming platform.\n\nsee http://our.platform.com",
156                         "location": {
157                                 "column_end": 0,
158                                 "column_start": 1,
159                                 "line_end": 23,
160                                 "line_start": 20,
161                                 "file": "test_location"
162                         }
163                 },
164                 "visibility": "public",
165                 "modifiers": ["interface"],
166                 "location": {
167                         "column_end": 3,
168                         "column_start": 1,
169                         "line_end": 45,
170                         "line_start": 20,
171                         "file": "test_location"
172                 },
173                 "mparameters": []
174         }, {
175                 "name": "Race",
176                 "class_name": "MClass",
177                 "full_name": "test_prog::Race",
178                 "mdoc": {
179                         "content": "Race determines basic characteristics and what the character will be able to do in life.\n\nThese are base characteristics, they cannot be changed\nbut you can add new ones if needed using refinement.\nObjects and spells cannot change those characteristics.",
180                         "location": {
181                                 "column_end": 0,
182                                 "column_start": 1,
183                                 "line_end": 33,
184                                 "line_start": 28,
185                                 "file": "test_location"
186                         }
187                 },
188                 "visibility": "public",
189                 "modifiers": ["abstract class"],
190                 "location": {
191                         "column_end": 3,
192                         "column_start": 1,
193                         "line_end": 45,
194                         "line_start": 28,
195                         "file": "test_location"
196                 },
197                 "mparameters": []
198         }, {
199                 "name": "Starter",
200                 "class_name": "MClass",
201                 "full_name": "test_prog::Starter",
202                 "mdoc": null,
203                 "visibility": "public",
204                 "modifiers": ["class"],
205                 "location": {
206                         "column_end": 3,
207                         "column_start": 1,
208                         "line_end": 23,
209                         "line_start": 21,
210                         "file": "test_location"
211                 },
212                 "mparameters": []
213         }, {
214                 "name": "age",
215                 "class_name": "MMethod",
216                 "full_name": "test_prog::Character::age",
217                 "mdoc": null,
218                 "visibility": "public",
219                 "modifiers": ["fun"],
220                 "location": {
221                         "column_end": 13,
222                         "column_start": 2,
223                         "line_end": 36,
224                         "line_start": 36,
225                         "file": "test_location"
226                 },
227                 "is_init": false,
228                 "msignature": {
229                         "arity": 0,
230                         "mparams": [],
231                         "return_mtype": {
232                                 "full_name": "test_prog::Int"
233                         },
234                         "vararg_rank": -1
235                 }
236         }],
237         "page": 1,
238         "count": 106,
239         "limit": 10,
240         "max": 10
241 }