1 /* documentationparser.c generated by valac, the Vala compiler
2 * generated from documentationparser.vala, do not modify */
3
4 /* documentationparser.vala
5 *
6 * Copyright (C) 2008-2009 Didier Villevalois
7 * Copyright (C) 2008-2012 Florian Brosch
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Lesser General Public
11 * License as published by the Free Software Foundation; either
12 * version 2.1 of the License, or (at your option) any later version.
13 *
14 * This library is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17 * Lesser General Public License for more details.
18 *
19 * You should have received a copy of the GNU Lesser General Public
20 * License along with this library; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 *
23 * Author:
24 * Didier 'Ptitjes Villevalois <ptitjes@free.fr>
25 */
26
27 #include "valadoc.h"
28 #include <valagee.h>
29 #include <glib-object.h>
30 #include <glib.h>
31 #include <stdlib.h>
32 #include <string.h>
33
34 enum {
35 VALADOC_DOCUMENTATION_PARSER_0_PROPERTY,
36 VALADOC_DOCUMENTATION_PARSER_NUM_PROPERTIES
37 };
38 static GParamSpec* valadoc_documentation_parser_properties[VALADOC_DOCUMENTATION_PARSER_NUM_PROPERTIES];
39 #define _vala_map_unref0(var) ((var == NULL) ? NULL : (var = (vala_map_unref (var), NULL)))
40 #define _valadoc_importer_internal_id_registrar_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_importer_internal_id_registrar_unref (var), NULL)))
41 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
42 #define _valadoc_api_tree_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_api_tree_unref (var), NULL)))
43 #define _valadoc_parser_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_parser_unref (var), NULL)))
44 #define _valadoc_api_source_comment_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_api_source_comment_unref (var), NULL)))
45 #define _g_free0(var) (var = (g_free (var), NULL))
46 #define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
47 #define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
48 #define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
49 #define _vala_return_val_if_fail(expr, msg, val) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return val; }
50 #define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
51
52 struct _ValadocDocumentationParserPrivate {
53 ValaHashMap* metadata;
54 ValadocImporterInternalIdRegistrar* id_registrar;
55 ValadocGtkdocParser* gtkdoc_parser;
56 ValadocGtkdocMarkdownParser* gtkdoc_markdown_parser;
57 ValadocSettings* _settings;
58 ValadocErrorReporter* _reporter;
59 ValadocApiTree* _tree;
60 ValadocModuleLoader* _modules;
61 ValadocContentContentFactory* _factory;
62 ValadocWikiScanner* _wiki_scanner;
63 ValadocCommentScanner* _comment_scanner;
64 ValadocParser* _wiki_parser;
65 ValadocParser* _comment_parser;
66 ValadocParser* _parser;
67 ValadocScanner* _scanner;
68 ValaArrayList* _stack;
69 ValadocRule* multiline_block_run;
70 ValadocRule* multiline_run;
71 gint current_level;
72 gint* levels;
73 gint levels_length1;
74 gint _levels_size_;
75 };
76
77 static gint ValadocDocumentationParser_private_offset;
78 static gpointer valadoc_documentation_parser_parent_class = NULL;
79 static ValadocResourceLocatorIface * valadoc_documentation_parser_valadoc_resource_locator_parent_iface = NULL;
80
81 static void valadoc_documentation_parser_init_valadoc_rules (ValadocDocumentationParser* self);
82 static ValadocGirMetaData* valadoc_documentation_parser_get_metadata_for_comment (ValadocDocumentationParser* self,
83 ValadocApiGirSourceComment* gir_comment);
84 static ValadocContentComment* valadoc_documentation_parser_parse_comment (ValadocDocumentationParser* self,
85 const gchar* content,
86 const gchar* filename,
87 gint first_line,
88 gint first_column,
89 GError** error);
90 static ValadocContentPage* valadoc_documentation_parser_parse_wiki (ValadocDocumentationParser* self,
91 const gchar* content,
92 const gchar* filename,
93 GError** error);
94 static GObject* valadoc_documentation_parser_pop (ValadocDocumentationParser* self);
95 G_GNUC_INTERNAL void valadoc_api_item_parse_comments (ValadocApiItem* self,
96 ValadocSettings* settings,
97 ValadocDocumentationParser* parser);
98 G_GNUC_INTERNAL void valadoc_api_item_check_comments (ValadocApiItem* self,
99 ValadocSettings* settings,
100 ValadocDocumentationParser* parser);
101 G_GNUC_INTERNAL void valadoc_taglets_inherit_doc_transform (ValadocTagletsInheritDoc* self,
102 ValadocApiTree* api_root,
103 ValadocApiNode* container,
104 const gchar* file_path,
105 ValadocErrorReporter* reporter,
106 ValadocSettings* settings);
107 static gchar* valadoc_documentation_parser_real_resolve (ValadocResourceLocator* base,
108 const gchar* path);
109 static void valadoc_documentation_parser_push (ValadocDocumentationParser* self,
110 GObject* element);
111 static GObject* valadoc_documentation_parser_peek (ValadocDocumentationParser* self,
112 gint offset);
113 static void valadoc_documentation_parser_new_list_item (ValadocDocumentationParser* self,
114 ValadocContentListBullet bullet,
115 GError** error);
116 static void _vala_array_add1 (gint* * array,
117 gint* length,
118 gint* size,
119 gint value);
120 static gchar* valadoc_documentation_parser_bullet_type_string (ValadocDocumentationParser* self,
121 ValadocContentListBullet bullet);
122 static void _vala_array_add2 (gint* * array,
123 gint* length,
124 gint* size,
125 gint value);
126 static void valadoc_documentation_parser_finish_list (ValadocDocumentationParser* self);
127 static void valadoc_documentation_parser_add_content_string (ValadocDocumentationParser* self,
128 const gchar* str);
129 static void valadoc_documentation_parser_add_content_space (ValadocDocumentationParser* self,
130 ValadocToken* token,
131 GError** error);
132 static void valadoc_documentation_parser_add_text (ValadocDocumentationParser* self,
133 ValadocToken* token,
134 GError** error);
135 static void _valadoc_documentation_parser_add_content_space_valadoc_token_type_action (ValadocToken* token,
136 gpointer self,
137 GError** error);
138 static void _valadoc_documentation_parser_add_text_valadoc_token_type_action (ValadocToken* token,
139 gpointer self,
140 GError** error);
141 static void __lambda56_ (ValadocDocumentationParser* self,
142 ValadocToken* token,
143 GError** error);
144 static void ___lambda56__valadoc_token_type_action (ValadocToken* token,
145 gpointer self,
146 GError** error);
147 static void __lambda57_ (ValadocDocumentationParser* self,
148 GError** error);
149 static void ___lambda57__valadoc_rule_action (gpointer self,
150 GError** error);
151 static void __lambda58_ (ValadocDocumentationParser* self,
152 ValadocToken* token,
153 GError** error);
154 static void ___lambda58__valadoc_token_type_action (ValadocToken* token,
155 gpointer self,
156 GError** error);
157 static void __lambda59_ (ValadocDocumentationParser* self,
158 GError** error);
159 static void ___lambda59__valadoc_rule_action (gpointer self,
160 GError** error);
161 static void __lambda60_ (ValadocDocumentationParser* self,
162 GError** error);
163 static void ___lambda60__valadoc_rule_action (gpointer self,
164 GError** error);
165 static void __lambda61_ (ValadocDocumentationParser* self,
166 GError** error);
167 static void ___lambda61__valadoc_rule_action (gpointer self,
168 GError** error);
169 static void __lambda62_ (ValadocDocumentationParser* self,
170 GError** error);
171 static void ___lambda62__valadoc_rule_action (gpointer self,
172 GError** error);
173 static void __lambda63_ (ValadocDocumentationParser* self,
174 GError** error);
175 static void ___lambda63__valadoc_rule_action (gpointer self,
176 GError** error);
177 static void __lambda64_ (ValadocDocumentationParser* self,
178 GError** error);
179 static void ___lambda64__valadoc_token_type_action (ValadocToken* token,
180 gpointer self,
181 GError** error);
182 static void __lambda65_ (ValadocDocumentationParser* self,
183 ValadocToken* token,
184 GError** error);
185 static void ___lambda65__valadoc_token_type_action (ValadocToken* token,
186 gpointer self,
187 GError** error);
188 static void __lambda66_ (ValadocDocumentationParser* self,
189 GError** error);
190 static void ___lambda66__valadoc_token_type_action (ValadocToken* token,
191 gpointer self,
192 GError** error);
193 static void __lambda67_ (ValadocDocumentationParser* self,
194 GError** error);
195 static void ___lambda67__valadoc_rule_action (gpointer self,
196 GError** error);
197 static void __lambda68_ (ValadocDocumentationParser* self,
198 GError** error);
199 static void ___lambda68__valadoc_token_type_action (ValadocToken* token,
200 gpointer self,
201 GError** error);
202 static void __lambda69_ (ValadocDocumentationParser* self,
203 GError** error);
204 static void ___lambda69__valadoc_rule_action (gpointer self,
205 GError** error);
206 static void __lambda70_ (ValadocDocumentationParser* self,
207 GError** error);
208 static void ___lambda70__valadoc_token_type_action (ValadocToken* token,
209 gpointer self,
210 GError** error);
211 static void __lambda71_ (ValadocDocumentationParser* self,
212 ValadocToken* token,
213 GError** error);
214 static void ___lambda71__valadoc_token_type_action (ValadocToken* token,
215 gpointer self,
216 GError** error);
217 static void __lambda72_ (ValadocDocumentationParser* self,
218 GError** error);
219 static void ___lambda72__valadoc_token_type_action (ValadocToken* token,
220 gpointer self,
221 GError** error);
222 static void __lambda73_ (ValadocDocumentationParser* self,
223 GError** error);
224 static void ___lambda73__valadoc_token_type_action (ValadocToken* token,
225 gpointer self,
226 GError** error);
227 static void __lambda74_ (ValadocDocumentationParser* self,
228 ValadocToken* token,
229 GError** error);
230 static void ___lambda74__valadoc_token_type_action (ValadocToken* token,
231 gpointer self,
232 GError** error);
233 static void __lambda75_ (ValadocDocumentationParser* self,
234 ValadocToken* token,
235 GError** error);
236 static void ___lambda75__valadoc_token_type_action (ValadocToken* token,
237 gpointer self,
238 GError** error);
239 static void __lambda76_ (ValadocDocumentationParser* self,
240 ValadocToken* token,
241 GError** error);
242 static void ___lambda76__valadoc_token_type_action (ValadocToken* token,
243 gpointer self,
244 GError** error);
245 static void __lambda77_ (ValadocDocumentationParser* self,
246 GError** error);
247 static void ___lambda77__valadoc_rule_action (gpointer self,
248 GError** error);
249 static void __lambda78_ (ValadocDocumentationParser* self,
250 GError** error);
251 static void ___lambda78__valadoc_rule_action (gpointer self,
252 GError** error);
253 static void __lambda79_ (ValadocDocumentationParser* self,
254 GError** error);
255 static void ___lambda79__valadoc_rule_action (gpointer self,
256 GError** error);
257 static void __lambda80_ (ValadocDocumentationParser* self,
258 GError** error);
259 static void ___lambda80__valadoc_token_type_action (ValadocToken* token,
260 gpointer self,
261 GError** error);
262 static void __lambda81_ (ValadocDocumentationParser* self,
263 GError** error);
264 static void ___lambda81__valadoc_token_type_action (ValadocToken* token,
265 gpointer self,
266 GError** error);
267 static void __lambda82_ (ValadocDocumentationParser* self,
268 GError** error);
269 static void ___lambda82__valadoc_rule_action (gpointer self,
270 GError** error);
271 static void __lambda83_ (ValadocDocumentationParser* self,
272 GError** error);
273 static void ___lambda83__valadoc_rule_action (gpointer self,
274 GError** error);
275 static void __lambda84_ (ValadocDocumentationParser* self,
276 GError** error);
277 static void ___lambda84__valadoc_rule_action (gpointer self,
278 GError** error);
279 static void __lambda85_ (ValadocDocumentationParser* self,
280 GError** error);
281 static void ___lambda85__valadoc_rule_action (gpointer self,
282 GError** error);
283 static void __lambda86_ (ValadocDocumentationParser* self,
284 GError** error);
285 static void ___lambda86__valadoc_rule_action (gpointer self,
286 GError** error);
287 static void __lambda87_ (ValadocDocumentationParser* self,
288 ValadocToken* token,
289 GError** error);
290 static void ___lambda87__valadoc_token_type_action (ValadocToken* token,
291 gpointer self,
292 GError** error);
293 static void __lambda88_ (ValadocDocumentationParser* self,
294 ValadocToken* token,
295 GError** error);
296 static void ___lambda88__valadoc_token_type_action (ValadocToken* token,
297 gpointer self,
298 GError** error);
299 static void __lambda89_ (ValadocDocumentationParser* self,
300 ValadocToken* token,
301 GError** error);
302 static void ___lambda89__valadoc_token_type_action (ValadocToken* token,
303 gpointer self,
304 GError** error);
305 static void __lambda90_ (ValadocDocumentationParser* self,
306 ValadocToken* token,
307 GError** error);
308 static void ___lambda90__valadoc_token_type_action (ValadocToken* token,
309 gpointer self,
310 GError** error);
311 static void __lambda91_ (ValadocDocumentationParser* self,
312 ValadocToken* token,
313 GError** error);
314 static void ___lambda91__valadoc_token_type_action (ValadocToken* token,
315 gpointer self,
316 GError** error);
317 static void __lambda92_ (ValadocDocumentationParser* self,
318 ValadocToken* token,
319 GError** error);
320 static void ___lambda92__valadoc_token_type_action (ValadocToken* token,
321 gpointer self,
322 GError** error);
323 static void __lambda93_ (ValadocDocumentationParser* self,
324 ValadocToken* token,
325 GError** error);
326 static void ___lambda93__valadoc_token_type_action (ValadocToken* token,
327 gpointer self,
328 GError** error);
329 static void __lambda94_ (ValadocDocumentationParser* self,
330 ValadocToken* token,
331 GError** error);
332 static void ___lambda94__valadoc_token_type_action (ValadocToken* token,
333 gpointer self,
334 GError** error);
335 static void __lambda95_ (ValadocDocumentationParser* self,
336 ValadocToken* token,
337 GError** error);
338 static void ___lambda95__valadoc_token_type_action (ValadocToken* token,
339 gpointer self,
340 GError** error);
341 static void __lambda96_ (ValadocDocumentationParser* self,
342 GError** error);
343 static void ___lambda96__valadoc_rule_action (gpointer self,
344 GError** error);
345 static void __lambda97_ (ValadocDocumentationParser* self,
346 GError** error);
347 static void ___lambda97__valadoc_rule_action (gpointer self,
348 GError** error);
349 static void __lambda98_ (ValadocDocumentationParser* self,
350 GError** error);
351 static void ___lambda98__valadoc_rule_action (gpointer self,
352 GError** error);
353 static void __lambda99_ (ValadocDocumentationParser* self,
354 GError** error);
355 static void ___lambda99__valadoc_rule_action (gpointer self,
356 GError** error);
357 static void __lambda100_ (ValadocDocumentationParser* self,
358 GError** error);
359 static void ___lambda100__valadoc_rule_action (gpointer self,
360 GError** error);
361 static void __lambda101_ (ValadocDocumentationParser* self,
362 ValadocToken* token,
363 GError** error);
364 static void ___lambda101__valadoc_token_type_action (ValadocToken* token,
365 gpointer self,
366 GError** error);
367 static void __lambda102_ (ValadocDocumentationParser* self,
368 ValadocToken* token,
369 GError** error);
370 static void ___lambda102__valadoc_token_type_action (ValadocToken* token,
371 gpointer self,
372 GError** error);
373 static void __lambda103_ (ValadocDocumentationParser* self,
374 ValadocToken* token,
375 GError** error);
376 static void ___lambda103__valadoc_token_type_action (ValadocToken* token,
377 gpointer self,
378 GError** error);
379 static void __lambda104_ (ValadocDocumentationParser* self,
380 ValadocToken* token,
381 GError** error);
382 static void ___lambda104__valadoc_token_type_action (ValadocToken* token,
383 gpointer self,
384 GError** error);
385 static void __lambda105_ (ValadocDocumentationParser* self,
386 ValadocToken* token,
387 GError** error);
388 static void ___lambda105__valadoc_token_type_action (ValadocToken* token,
389 gpointer self,
390 GError** error);
391 static void __lambda106_ (ValadocDocumentationParser* self,
392 ValadocToken* token,
393 GError** error);
394 static void ___lambda106__valadoc_token_type_action (ValadocToken* token,
395 gpointer self,
396 GError** error);
397 static void __lambda107_ (ValadocDocumentationParser* self,
398 ValadocToken* token,
399 GError** error);
400 static void ___lambda107__valadoc_token_type_action (ValadocToken* token,
401 gpointer self,
402 GError** error);
403 static void __lambda108_ (ValadocDocumentationParser* self,
404 GError** error);
405 static void ___lambda108__valadoc_rule_action (gpointer self,
406 GError** error);
407 static void __lambda109_ (ValadocDocumentationParser* self,
408 GError** error);
409 static void ___lambda109__valadoc_rule_action (gpointer self,
410 GError** error);
411 static void __lambda110_ (ValadocDocumentationParser* self,
412 GError** error);
413 static void ___lambda110__valadoc_rule_action (gpointer self,
414 GError** error);
415 static void __lambda111_ (ValadocDocumentationParser* self,
416 GError** error);
417 static void ___lambda111__valadoc_rule_action (gpointer self,
418 GError** error);
419 static void __lambda112_ (ValadocDocumentationParser* self,
420 GError** error);
421 static void ___lambda112__valadoc_rule_action (gpointer self,
422 GError** error);
423 static void __lambda113_ (ValadocDocumentationParser* self,
424 GError** error);
425 static void ___lambda113__valadoc_rule_action (gpointer self,
426 GError** error);
427 static void __lambda114_ (ValadocDocumentationParser* self,
428 ValadocToken* token,
429 GError** error);
430 static void ___lambda114__valadoc_token_type_action (ValadocToken* token,
431 gpointer self,
432 GError** error);
433 static void __lambda115_ (ValadocDocumentationParser* self,
434 ValadocToken* token,
435 GError** error);
436 static void ___lambda115__valadoc_token_type_action (ValadocToken* token,
437 gpointer self,
438 GError** error);
439 static void __lambda116_ (ValadocDocumentationParser* self,
440 ValadocToken* token,
441 GError** error);
442 static void ___lambda116__valadoc_token_type_action (ValadocToken* token,
443 gpointer self,
444 GError** error);
445 static void __lambda117_ (ValadocDocumentationParser* self,
446 ValadocToken* token,
447 GError** error);
448 static void ___lambda117__valadoc_token_type_action (ValadocToken* token,
449 gpointer self,
450 GError** error);
451 static void __lambda118_ (ValadocDocumentationParser* self,
452 ValadocToken* token,
453 GError** error);
454 static void ___lambda118__valadoc_token_type_action (ValadocToken* token,
455 gpointer self,
456 GError** error);
457 static void __lambda119_ (ValadocDocumentationParser* self,
458 GError** error);
459 static void ___lambda119__valadoc_rule_action (gpointer self,
460 GError** error);
461 static void __lambda120_ (ValadocDocumentationParser* self,
462 GError** error);
463 static void ___lambda120__valadoc_rule_action (gpointer self,
464 GError** error);
465 static void __lambda121_ (ValadocDocumentationParser* self,
466 GError** error);
467 static void ___lambda121__valadoc_rule_action (gpointer self,
468 GError** error);
469 static void __lambda122_ (ValadocDocumentationParser* self,
470 GError** error);
471 static void ___lambda122__valadoc_rule_action (gpointer self,
472 GError** error);
473 static void __lambda123_ (ValadocDocumentationParser* self,
474 GError** error);
475 static void ___lambda123__valadoc_rule_action (gpointer self,
476 GError** error);
477 static void __lambda124_ (ValadocDocumentationParser* self,
478 ValadocToken* token,
479 GError** error);
480 static void ___lambda124__valadoc_token_type_action (ValadocToken* token,
481 gpointer self,
482 GError** error);
483 static void __lambda125_ (ValadocDocumentationParser* self,
484 GError** error);
485 static void ___lambda125__valadoc_rule_action (gpointer self,
486 GError** error);
487 static void __lambda126_ (ValadocDocumentationParser* self,
488 GError** error);
489 static void ___lambda126__valadoc_rule_action (gpointer self,
490 GError** error);
491 static void __lambda127_ (ValadocDocumentationParser* self,
492 GError** error);
493 static void ___lambda127__valadoc_rule_action (gpointer self,
494 GError** error);
495 static void valadoc_documentation_parser_finalize (GObject * obj);
496 static GType valadoc_documentation_parser_get_type_once (void);
497 static void _vala_array_destroy (gpointer array,
498 gint array_length,
499 GDestroyNotify destroy_func);
500 static void _vala_array_free (gpointer array,
501 gint array_length,
502 GDestroyNotify destroy_func);
503
504 static inline gpointer
valadoc_documentation_parser_get_instance_private(ValadocDocumentationParser * self)505 valadoc_documentation_parser_get_instance_private (ValadocDocumentationParser* self)
506 {
507 return G_STRUCT_MEMBER_P (self, ValadocDocumentationParser_private_offset);
508 }
509
510 static gpointer
_g_object_ref0(gpointer self)511 _g_object_ref0 (gpointer self)
512 {
513 return self ? g_object_ref (self) : NULL;
514 }
515
516 static gpointer
_valadoc_api_tree_ref0(gpointer self)517 _valadoc_api_tree_ref0 (gpointer self)
518 {
519 return self ? valadoc_api_tree_ref (self) : NULL;
520 }
521
522 ValadocDocumentationParser*
valadoc_documentation_parser_construct(GType object_type,ValadocSettings * settings,ValadocErrorReporter * reporter,ValadocApiTree * tree,ValadocModuleLoader * modules)523 valadoc_documentation_parser_construct (GType object_type,
524 ValadocSettings* settings,
525 ValadocErrorReporter* reporter,
526 ValadocApiTree* tree,
527 ValadocModuleLoader* modules)
528 {
529 ValadocDocumentationParser * self = NULL;
530 ValadocSettings* _tmp0_;
531 ValadocErrorReporter* _tmp1_;
532 ValadocApiTree* _tmp2_;
533 ValadocModuleLoader* _tmp3_;
534 ValadocSettings* _tmp4_;
535 ValadocModuleLoader* _tmp5_;
536 ValadocContentContentFactory* _tmp6_;
537 ValadocSettings* _tmp7_;
538 ValadocWikiScanner* _tmp8_;
539 ValadocSettings* _tmp9_;
540 ValadocWikiScanner* _tmp10_;
541 ValadocErrorReporter* _tmp11_;
542 ValadocParser* _tmp12_;
543 ValadocWikiScanner* _tmp13_;
544 ValadocParser* _tmp14_;
545 ValadocSettings* _tmp15_;
546 ValadocCommentScanner* _tmp16_;
547 ValadocSettings* _tmp17_;
548 ValadocCommentScanner* _tmp18_;
549 ValadocErrorReporter* _tmp19_;
550 ValadocParser* _tmp20_;
551 ValadocCommentScanner* _tmp21_;
552 ValadocParser* _tmp22_;
553 ValadocGtkdocParser* _tmp23_;
554 ValadocGtkdocMarkdownParser* _tmp24_;
555 GHashFunc _tmp25_;
556 GEqualFunc _tmp26_;
557 GEqualFunc _tmp27_;
558 ValaHashMap* _tmp28_;
559 ValadocImporterInternalIdRegistrar* _tmp29_;
560 g_return_val_if_fail (settings != NULL, NULL);
561 g_return_val_if_fail (reporter != NULL, NULL);
562 g_return_val_if_fail (tree != NULL, NULL);
563 g_return_val_if_fail (modules != NULL, NULL);
564 self = (ValadocDocumentationParser*) g_object_new (object_type, NULL);
565 _tmp0_ = _g_object_ref0 (settings);
566 _g_object_unref0 (self->priv->_settings);
567 self->priv->_settings = _tmp0_;
568 _tmp1_ = _g_object_ref0 (reporter);
569 _g_object_unref0 (self->priv->_reporter);
570 self->priv->_reporter = _tmp1_;
571 _tmp2_ = _valadoc_api_tree_ref0 (tree);
572 _valadoc_api_tree_unref0 (self->priv->_tree);
573 self->priv->_tree = _tmp2_;
574 _tmp3_ = _g_object_ref0 (modules);
575 _g_object_unref0 (self->priv->_modules);
576 self->priv->_modules = _tmp3_;
577 _tmp4_ = self->priv->_settings;
578 _tmp5_ = self->priv->_modules;
579 _tmp6_ = valadoc_content_content_factory_new (_tmp4_, (ValadocResourceLocator*) self, _tmp5_);
580 _g_object_unref0 (self->priv->_factory);
581 self->priv->_factory = _tmp6_;
582 _tmp7_ = self->priv->_settings;
583 _tmp8_ = valadoc_wiki_scanner_new (_tmp7_);
584 _g_object_unref0 (self->priv->_wiki_scanner);
585 self->priv->_wiki_scanner = _tmp8_;
586 _tmp9_ = self->priv->_settings;
587 _tmp10_ = self->priv->_wiki_scanner;
588 _tmp11_ = self->priv->_reporter;
589 _tmp12_ = valadoc_parser_new (_tmp9_, (ValadocScanner*) _tmp10_, _tmp11_);
590 _valadoc_parser_unref0 (self->priv->_wiki_parser);
591 self->priv->_wiki_parser = _tmp12_;
592 _tmp13_ = self->priv->_wiki_scanner;
593 _tmp14_ = self->priv->_wiki_parser;
594 valadoc_scanner_set_parser ((ValadocScanner*) _tmp13_, _tmp14_);
595 _tmp15_ = self->priv->_settings;
596 _tmp16_ = valadoc_comment_scanner_new (_tmp15_);
597 _g_object_unref0 (self->priv->_comment_scanner);
598 self->priv->_comment_scanner = _tmp16_;
599 _tmp17_ = self->priv->_settings;
600 _tmp18_ = self->priv->_comment_scanner;
601 _tmp19_ = self->priv->_reporter;
602 _tmp20_ = valadoc_parser_new (_tmp17_, (ValadocScanner*) _tmp18_, _tmp19_);
603 _valadoc_parser_unref0 (self->priv->_comment_parser);
604 self->priv->_comment_parser = _tmp20_;
605 _tmp21_ = self->priv->_comment_scanner;
606 _tmp22_ = self->priv->_comment_parser;
607 valadoc_scanner_set_parser ((ValadocScanner*) _tmp21_, _tmp22_);
608 _tmp23_ = valadoc_gtkdoc_parser_new (settings, reporter, tree, modules);
609 _g_object_unref0 (self->priv->gtkdoc_parser);
610 self->priv->gtkdoc_parser = _tmp23_;
611 _tmp24_ = valadoc_gtkdoc_markdown_parser_new (settings, reporter, tree, modules);
612 _g_object_unref0 (self->priv->gtkdoc_markdown_parser);
613 self->priv->gtkdoc_markdown_parser = _tmp24_;
614 _tmp25_ = g_direct_hash;
615 _tmp26_ = g_direct_equal;
616 _tmp27_ = g_direct_equal;
617 _tmp28_ = vala_hash_map_new (VALADOC_API_TYPE_SOURCE_FILE, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, VALADOC_TYPE_GIR_META_DATA, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp25_, _tmp26_, _tmp27_);
618 _vala_map_unref0 (self->priv->metadata);
619 self->priv->metadata = _tmp28_;
620 _tmp29_ = valadoc_importer_internal_id_registrar_new ();
621 _valadoc_importer_internal_id_registrar_unref0 (self->priv->id_registrar);
622 self->priv->id_registrar = _tmp29_;
623 valadoc_documentation_parser_init_valadoc_rules (self);
624 return self;
625 }
626
627 ValadocDocumentationParser*
valadoc_documentation_parser_new(ValadocSettings * settings,ValadocErrorReporter * reporter,ValadocApiTree * tree,ValadocModuleLoader * modules)628 valadoc_documentation_parser_new (ValadocSettings* settings,
629 ValadocErrorReporter* reporter,
630 ValadocApiTree* tree,
631 ValadocModuleLoader* modules)
632 {
633 return valadoc_documentation_parser_construct (VALADOC_TYPE_DOCUMENTATION_PARSER, settings, reporter, tree, modules);
634 }
635
636 static gpointer
_valadoc_api_source_comment_ref0(gpointer self)637 _valadoc_api_source_comment_ref0 (gpointer self)
638 {
639 return self ? valadoc_api_source_comment_ref (self) : NULL;
640 }
641
642 ValadocContentComment*
valadoc_documentation_parser_parse(ValadocDocumentationParser * self,ValadocApiNode * element,ValadocApiSourceComment * comment)643 valadoc_documentation_parser_parse (ValadocDocumentationParser* self,
644 ValadocApiNode* element,
645 ValadocApiSourceComment* comment)
646 {
647 ValadocContentComment* result = NULL;
648 g_return_val_if_fail (self != NULL, NULL);
649 g_return_val_if_fail (element != NULL, NULL);
650 g_return_val_if_fail (comment != NULL, NULL);
651 if (VALADOC_API_IS_GIR_SOURCE_COMMENT (comment)) {
652 ValadocApiGirSourceComment* gir_comment = NULL;
653 ValadocApiGirSourceComment* _tmp0_;
654 ValadocGirMetaData* metadata = NULL;
655 ValadocApiGirSourceComment* _tmp1_;
656 ValadocGirMetaData* _tmp2_;
657 ValadocGirMetaData* _tmp3_;
658 gboolean _tmp4_;
659 gboolean _tmp5_;
660 _tmp0_ = _valadoc_api_source_comment_ref0 (G_TYPE_CHECK_INSTANCE_CAST (comment, VALADOC_API_TYPE_GIR_SOURCE_COMMENT, ValadocApiGirSourceComment));
661 gir_comment = _tmp0_;
662 _tmp1_ = gir_comment;
663 _tmp2_ = valadoc_documentation_parser_get_metadata_for_comment (self, _tmp1_);
664 metadata = _tmp2_;
665 _tmp3_ = metadata;
666 _tmp4_ = valadoc_gir_meta_data_get_is_docbook (_tmp3_);
667 _tmp5_ = _tmp4_;
668 if (_tmp5_) {
669 ValadocContentComment* doc_comment = NULL;
670 ValadocGtkdocParser* _tmp6_;
671 ValadocApiGirSourceComment* _tmp7_;
672 ValadocGirMetaData* _tmp8_;
673 ValadocImporterInternalIdRegistrar* _tmp9_;
674 ValadocContentComment* _tmp10_;
675 _tmp6_ = self->priv->gtkdoc_parser;
676 _tmp7_ = gir_comment;
677 _tmp8_ = metadata;
678 _tmp9_ = self->priv->id_registrar;
679 _tmp10_ = valadoc_gtkdoc_parser_parse (_tmp6_, element, _tmp7_, _tmp8_, _tmp9_);
680 doc_comment = _tmp10_;
681 result = doc_comment;
682 _g_object_unref0 (metadata);
683 _valadoc_api_source_comment_unref0 (gir_comment);
684 return result;
685 } else {
686 ValadocContentComment* doc_comment = NULL;
687 ValadocGtkdocMarkdownParser* _tmp11_;
688 ValadocApiGirSourceComment* _tmp12_;
689 ValadocGirMetaData* _tmp13_;
690 ValadocImporterInternalIdRegistrar* _tmp14_;
691 ValadocContentComment* _tmp15_;
692 _tmp11_ = self->priv->gtkdoc_markdown_parser;
693 _tmp12_ = gir_comment;
694 _tmp13_ = metadata;
695 _tmp14_ = self->priv->id_registrar;
696 _tmp15_ = valadoc_gtkdoc_markdown_parser_parse (_tmp11_, element, _tmp12_, _tmp13_, _tmp14_, NULL);
697 doc_comment = _tmp15_;
698 result = doc_comment;
699 _g_object_unref0 (metadata);
700 _valadoc_api_source_comment_unref0 (gir_comment);
701 return result;
702 }
703 _g_object_unref0 (metadata);
704 _valadoc_api_source_comment_unref0 (gir_comment);
705 } else {
706 const gchar* _tmp16_;
707 const gchar* _tmp17_;
708 ValadocApiSourceFile* _tmp18_;
709 ValadocApiSourceFile* _tmp19_;
710 gchar* _tmp20_;
711 gchar* _tmp21_;
712 gint _tmp22_;
713 gint _tmp23_;
714 gint _tmp24_;
715 gint _tmp25_;
716 ValadocContentComment* _tmp26_;
717 ValadocContentComment* _tmp27_;
718 _tmp16_ = valadoc_api_source_comment_get_content (comment);
719 _tmp17_ = _tmp16_;
720 _tmp18_ = valadoc_api_source_comment_get_file (comment);
721 _tmp19_ = _tmp18_;
722 _tmp20_ = valadoc_api_source_file_get_name (_tmp19_);
723 _tmp21_ = _tmp20_;
724 _tmp22_ = valadoc_api_source_comment_get_first_line (comment);
725 _tmp23_ = _tmp22_;
726 _tmp24_ = valadoc_api_source_comment_get_first_column (comment);
727 _tmp25_ = _tmp24_;
728 _tmp26_ = valadoc_documentation_parser_parse_comment_str (self, element, _tmp17_, _tmp21_, _tmp23_, _tmp25_);
729 _tmp27_ = _tmp26_;
730 _g_free0 (_tmp21_);
731 result = _tmp27_;
732 return result;
733 }
734 }
735
736 ValadocContentComment*
valadoc_documentation_parser_parse_comment_str(ValadocDocumentationParser * self,ValadocApiNode * element,const gchar * content,const gchar * filename,gint first_line,gint first_column)737 valadoc_documentation_parser_parse_comment_str (ValadocDocumentationParser* self,
738 ValadocApiNode* element,
739 const gchar* content,
740 const gchar* filename,
741 gint first_line,
742 gint first_column)
743 {
744 GError* _inner_error0_ = NULL;
745 ValadocContentComment* result = NULL;
746 g_return_val_if_fail (self != NULL, NULL);
747 g_return_val_if_fail (element != NULL, NULL);
748 g_return_val_if_fail (content != NULL, NULL);
749 g_return_val_if_fail (filename != NULL, NULL);
750 {
751 ValadocContentComment* doc_comment = NULL;
752 ValadocContentComment* _tmp0_;
753 _tmp0_ = valadoc_documentation_parser_parse_comment (self, content, filename, first_line, first_column, &_inner_error0_);
754 doc_comment = _tmp0_;
755 if (G_UNLIKELY (_inner_error0_ != NULL)) {
756 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
757 goto __catch0_valadoc_parser_error;
758 }
759 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
760 g_clear_error (&_inner_error0_);
761 return NULL;
762 }
763 result = doc_comment;
764 return result;
765 }
766 goto __finally0;
767 __catch0_valadoc_parser_error:
768 {
769 g_clear_error (&_inner_error0_);
770 result = NULL;
771 return result;
772 }
773 __finally0:
774 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
775 g_clear_error (&_inner_error0_);
776 return NULL;
777 }
778
779 ValadocContentPage*
valadoc_documentation_parser_parse_wikipage(ValadocDocumentationParser * self,ValadocApiPackage * pkg,ValadocWikiPage * page)780 valadoc_documentation_parser_parse_wikipage (ValadocDocumentationParser* self,
781 ValadocApiPackage* pkg,
782 ValadocWikiPage* page)
783 {
784 ValadocContentPage* _tmp0_;
785 ValadocContentPage* _tmp1_;
786 const gchar* _tmp5_;
787 const gchar* _tmp6_;
788 GError* _inner_error0_ = NULL;
789 ValadocContentPage* result = NULL;
790 g_return_val_if_fail (self != NULL, NULL);
791 g_return_val_if_fail (pkg != NULL, NULL);
792 g_return_val_if_fail (page != NULL, NULL);
793 _tmp0_ = valadoc_wiki_page_get_documentation (page);
794 _tmp1_ = _tmp0_;
795 if (_tmp1_ != NULL) {
796 ValadocContentPage* _tmp2_;
797 ValadocContentPage* _tmp3_;
798 ValadocContentPage* _tmp4_;
799 _tmp2_ = valadoc_wiki_page_get_documentation (page);
800 _tmp3_ = _tmp2_;
801 _tmp4_ = _g_object_ref0 (_tmp3_);
802 result = _tmp4_;
803 return result;
804 }
805 _tmp5_ = valadoc_wiki_page_get_documentation_str (page);
806 _tmp6_ = _tmp5_;
807 if (_tmp6_ == NULL) {
808 result = NULL;
809 return result;
810 }
811 {
812 ValadocContentPage* documentation = NULL;
813 const gchar* _tmp7_;
814 const gchar* _tmp8_;
815 gchar* _tmp9_;
816 gchar* _tmp10_;
817 ValadocContentPage* _tmp11_;
818 ValadocContentPage* _tmp12_;
819 _tmp7_ = valadoc_wiki_page_get_documentation_str (page);
820 _tmp8_ = _tmp7_;
821 _tmp9_ = valadoc_documentation_get_filename ((ValadocDocumentation*) page);
822 _tmp10_ = _tmp9_;
823 _tmp11_ = valadoc_documentation_parser_parse_wiki (self, _tmp8_, _tmp10_, &_inner_error0_);
824 _tmp12_ = _tmp11_;
825 _g_free0 (_tmp10_);
826 documentation = _tmp12_;
827 if (G_UNLIKELY (_inner_error0_ != NULL)) {
828 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
829 goto __catch0_valadoc_parser_error;
830 }
831 g_critical ("file %s: line %d: unexpected error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
832 g_clear_error (&_inner_error0_);
833 return NULL;
834 }
835 result = documentation;
836 return result;
837 }
838 goto __finally0;
839 __catch0_valadoc_parser_error:
840 {
841 g_clear_error (&_inner_error0_);
842 result = NULL;
843 return result;
844 }
845 __finally0:
846 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
847 g_clear_error (&_inner_error0_);
848 return NULL;
849 }
850
851 static gpointer
_valadoc_parser_ref0(gpointer self)852 _valadoc_parser_ref0 (gpointer self)
853 {
854 return self ? valadoc_parser_ref (self) : NULL;
855 }
856
857 static ValadocContentComment*
valadoc_documentation_parser_parse_comment(ValadocDocumentationParser * self,const gchar * content,const gchar * filename,gint first_line,gint first_column,GError ** error)858 valadoc_documentation_parser_parse_comment (ValadocDocumentationParser* self,
859 const gchar* content,
860 const gchar* filename,
861 gint first_line,
862 gint first_column,
863 GError** error)
864 {
865 ValadocParser* _tmp0_;
866 ValadocParser* _tmp1_;
867 ValadocCommentScanner* _tmp2_;
868 ValadocScanner* _tmp3_;
869 ValaArrayList* _tmp4_;
870 ValadocParser* _tmp5_;
871 GObject* _tmp6_;
872 GError* _inner_error0_ = NULL;
873 ValadocContentComment* result = NULL;
874 g_return_val_if_fail (self != NULL, NULL);
875 g_return_val_if_fail (content != NULL, NULL);
876 g_return_val_if_fail (filename != NULL, NULL);
877 _tmp0_ = self->priv->_comment_parser;
878 _tmp1_ = _valadoc_parser_ref0 (_tmp0_);
879 _valadoc_parser_unref0 (self->priv->_parser);
880 self->priv->_parser = _tmp1_;
881 _tmp2_ = self->priv->_comment_scanner;
882 _tmp3_ = _g_object_ref0 ((ValadocScanner*) _tmp2_);
883 _g_object_unref0 (self->priv->_scanner);
884 self->priv->_scanner = _tmp3_;
885 _tmp4_ = self->priv->_stack;
886 vala_collection_clear ((ValaCollection*) _tmp4_);
887 _tmp5_ = self->priv->_comment_parser;
888 valadoc_parser_parse (_tmp5_, content, filename, first_line, first_column, &_inner_error0_);
889 if (G_UNLIKELY (_inner_error0_ != NULL)) {
890 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
891 g_propagate_error (error, _inner_error0_);
892 return NULL;
893 } else {
894 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
895 g_clear_error (&_inner_error0_);
896 return NULL;
897 }
898 }
899 _tmp6_ = valadoc_documentation_parser_pop (self);
900 result = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, VALADOC_CONTENT_TYPE_COMMENT, ValadocContentComment);
901 return result;
902 }
903
904 static ValadocContentPage*
valadoc_documentation_parser_parse_wiki(ValadocDocumentationParser * self,const gchar * content,const gchar * filename,GError ** error)905 valadoc_documentation_parser_parse_wiki (ValadocDocumentationParser* self,
906 const gchar* content,
907 const gchar* filename,
908 GError** error)
909 {
910 ValadocParser* _tmp0_;
911 ValadocParser* _tmp1_;
912 ValadocWikiScanner* _tmp2_;
913 ValadocScanner* _tmp3_;
914 ValaArrayList* _tmp4_;
915 ValadocParser* _tmp5_;
916 GObject* _tmp6_;
917 GError* _inner_error0_ = NULL;
918 ValadocContentPage* result = NULL;
919 g_return_val_if_fail (self != NULL, NULL);
920 g_return_val_if_fail (content != NULL, NULL);
921 g_return_val_if_fail (filename != NULL, NULL);
922 _tmp0_ = self->priv->_wiki_parser;
923 _tmp1_ = _valadoc_parser_ref0 (_tmp0_);
924 _valadoc_parser_unref0 (self->priv->_parser);
925 self->priv->_parser = _tmp1_;
926 _tmp2_ = self->priv->_wiki_scanner;
927 _tmp3_ = _g_object_ref0 ((ValadocScanner*) _tmp2_);
928 _g_object_unref0 (self->priv->_scanner);
929 self->priv->_scanner = _tmp3_;
930 _tmp4_ = self->priv->_stack;
931 vala_collection_clear ((ValaCollection*) _tmp4_);
932 _tmp5_ = self->priv->_wiki_parser;
933 valadoc_parser_parse (_tmp5_, content, filename, 0, 0, &_inner_error0_);
934 if (G_UNLIKELY (_inner_error0_ != NULL)) {
935 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
936 g_propagate_error (error, _inner_error0_);
937 return NULL;
938 } else {
939 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
940 g_clear_error (&_inner_error0_);
941 return NULL;
942 }
943 }
944 _tmp6_ = valadoc_documentation_parser_pop (self);
945 result = G_TYPE_CHECK_INSTANCE_CAST (_tmp6_, VALADOC_CONTENT_TYPE_PAGE, ValadocContentPage);
946 return result;
947 }
948
949 void
valadoc_documentation_parser_check(ValadocDocumentationParser * self,ValadocApiNode * element,ValadocContentComment * comment)950 valadoc_documentation_parser_check (ValadocDocumentationParser* self,
951 ValadocApiNode* element,
952 ValadocContentComment* comment)
953 {
954 ValadocApiTree* _tmp0_;
955 ValadocApiSourceFile* _tmp1_;
956 ValadocApiSourceFile* _tmp2_;
957 const gchar* _tmp3_;
958 const gchar* _tmp4_;
959 ValadocErrorReporter* _tmp5_;
960 ValadocSettings* _tmp6_;
961 g_return_if_fail (self != NULL);
962 g_return_if_fail (element != NULL);
963 g_return_if_fail (comment != NULL);
964 _tmp0_ = self->priv->_tree;
965 _tmp1_ = valadoc_api_node_get_source_file (element);
966 _tmp2_ = _tmp1_;
967 _tmp3_ = valadoc_api_source_file_get_relative_path (_tmp2_);
968 _tmp4_ = _tmp3_;
969 _tmp5_ = self->priv->_reporter;
970 _tmp6_ = self->priv->_settings;
971 valadoc_content_content_element_check ((ValadocContentContentElement*) comment, _tmp0_, element, _tmp4_, _tmp5_, _tmp6_);
972 _g_object_unref0 (_tmp2_);
973 }
974
975 void
valadoc_documentation_parser_check_wikipage(ValadocDocumentationParser * self,ValadocApiPackage * package,ValadocWikiPage * page)976 valadoc_documentation_parser_check_wikipage (ValadocDocumentationParser* self,
977 ValadocApiPackage* package,
978 ValadocWikiPage* page)
979 {
980 ValadocContentPage* _tmp0_;
981 ValadocContentPage* _tmp1_;
982 ValadocApiTree* _tmp2_;
983 const gchar* _tmp3_;
984 const gchar* _tmp4_;
985 ValadocErrorReporter* _tmp5_;
986 ValadocSettings* _tmp6_;
987 g_return_if_fail (self != NULL);
988 g_return_if_fail (package != NULL);
989 g_return_if_fail (page != NULL);
990 _tmp0_ = valadoc_wiki_page_get_documentation (page);
991 _tmp1_ = _tmp0_;
992 _tmp2_ = self->priv->_tree;
993 _tmp3_ = valadoc_wiki_page_get_path (page);
994 _tmp4_ = _tmp3_;
995 _tmp5_ = self->priv->_reporter;
996 _tmp6_ = self->priv->_settings;
997 valadoc_content_content_element_check ((ValadocContentContentElement*) _tmp1_, _tmp2_, (ValadocApiNode*) package, _tmp4_, _tmp5_, _tmp6_);
998 }
999
1000 void
valadoc_documentation_parser_transform_inheritdoc(ValadocDocumentationParser * self,ValadocApiNode * taglet_owner,ValadocTagletsInheritDoc * taglet)1001 valadoc_documentation_parser_transform_inheritdoc (ValadocDocumentationParser* self,
1002 ValadocApiNode* taglet_owner,
1003 ValadocTagletsInheritDoc* taglet)
1004 {
1005 ValadocApiNode* _tmp0_;
1006 ValadocApiNode* _tmp1_;
1007 ValadocApiNode* _tmp2_;
1008 ValadocApiNode* _tmp3_;
1009 ValadocSettings* _tmp4_;
1010 ValadocApiNode* _tmp5_;
1011 ValadocApiNode* _tmp6_;
1012 ValadocContentComment* _tmp7_;
1013 ValadocContentComment* _tmp8_;
1014 ValadocApiNode* _tmp9_;
1015 ValadocApiNode* _tmp10_;
1016 ValadocSettings* _tmp11_;
1017 ValadocApiTree* _tmp12_;
1018 ValadocApiSourceFile* _tmp13_;
1019 ValadocApiSourceFile* _tmp14_;
1020 gchar* _tmp15_;
1021 gchar* _tmp16_;
1022 ValadocErrorReporter* _tmp17_;
1023 ValadocSettings* _tmp18_;
1024 g_return_if_fail (self != NULL);
1025 g_return_if_fail (taglet_owner != NULL);
1026 g_return_if_fail (taglet != NULL);
1027 _tmp0_ = valadoc_taglets_inherit_doc_get_inherited (taglet);
1028 _tmp1_ = _tmp0_;
1029 if (_tmp1_ == NULL) {
1030 return;
1031 }
1032 _tmp2_ = valadoc_taglets_inherit_doc_get_inherited (taglet);
1033 _tmp3_ = _tmp2_;
1034 _tmp4_ = self->priv->_settings;
1035 valadoc_api_item_parse_comments ((ValadocApiItem*) _tmp3_, _tmp4_, self);
1036 _tmp5_ = valadoc_taglets_inherit_doc_get_inherited (taglet);
1037 _tmp6_ = _tmp5_;
1038 _tmp7_ = valadoc_api_node_get_documentation (_tmp6_);
1039 _tmp8_ = _tmp7_;
1040 if (_tmp8_ == NULL) {
1041 return;
1042 }
1043 _tmp9_ = valadoc_taglets_inherit_doc_get_inherited (taglet);
1044 _tmp10_ = _tmp9_;
1045 _tmp11_ = self->priv->_settings;
1046 valadoc_api_item_check_comments ((ValadocApiItem*) _tmp10_, _tmp11_, self);
1047 _tmp12_ = self->priv->_tree;
1048 _tmp13_ = valadoc_api_node_get_source_file (taglet_owner);
1049 _tmp14_ = _tmp13_;
1050 _tmp15_ = valadoc_api_source_file_get_name (_tmp14_);
1051 _tmp16_ = _tmp15_;
1052 _tmp17_ = self->priv->_reporter;
1053 _tmp18_ = self->priv->_settings;
1054 valadoc_taglets_inherit_doc_transform (taglet, _tmp12_, taglet_owner, _tmp16_, _tmp17_, _tmp18_);
1055 _g_free0 (_tmp16_);
1056 _g_object_unref0 (_tmp14_);
1057 }
1058
1059 static ValadocGirMetaData*
valadoc_documentation_parser_get_metadata_for_comment(ValadocDocumentationParser * self,ValadocApiGirSourceComment * gir_comment)1060 valadoc_documentation_parser_get_metadata_for_comment (ValadocDocumentationParser* self,
1061 ValadocApiGirSourceComment* gir_comment)
1062 {
1063 ValadocGirMetaData* metadata = NULL;
1064 ValaHashMap* _tmp0_;
1065 ValadocApiSourceFile* _tmp1_;
1066 ValadocApiSourceFile* _tmp2_;
1067 gpointer _tmp3_;
1068 ValadocGirMetaData* _tmp4_;
1069 ValadocApiSourceFile* _tmp5_;
1070 ValadocApiSourceFile* _tmp6_;
1071 const gchar* _tmp7_;
1072 const gchar* _tmp8_;
1073 ValadocSettings* _tmp9_;
1074 gchar** _tmp10_;
1075 gint _tmp10__length1;
1076 ValadocErrorReporter* _tmp11_;
1077 ValadocGirMetaData* _tmp12_;
1078 ValadocGirMetaData* _tmp13_;
1079 const gchar* _tmp14_;
1080 const gchar* _tmp15_;
1081 ValaHashMap* _tmp24_;
1082 ValadocApiSourceFile* _tmp25_;
1083 ValadocApiSourceFile* _tmp26_;
1084 ValadocGirMetaData* _tmp27_;
1085 ValadocGirMetaData* result = NULL;
1086 g_return_val_if_fail (self != NULL, NULL);
1087 g_return_val_if_fail (gir_comment != NULL, NULL);
1088 _tmp0_ = self->priv->metadata;
1089 _tmp1_ = valadoc_api_source_comment_get_file ((ValadocApiSourceComment*) gir_comment);
1090 _tmp2_ = _tmp1_;
1091 _tmp3_ = vala_map_get ((ValaMap*) _tmp0_, _tmp2_);
1092 metadata = (ValadocGirMetaData*) _tmp3_;
1093 _tmp4_ = metadata;
1094 if (_tmp4_ != NULL) {
1095 result = metadata;
1096 return result;
1097 }
1098 _tmp5_ = valadoc_api_source_comment_get_file ((ValadocApiSourceComment*) gir_comment);
1099 _tmp6_ = _tmp5_;
1100 _tmp7_ = valadoc_api_source_file_get_relative_path (_tmp6_);
1101 _tmp8_ = _tmp7_;
1102 _tmp9_ = self->priv->_settings;
1103 _tmp10_ = _tmp9_->metadata_directories;
1104 _tmp10__length1 = _tmp9_->metadata_directories_length1;
1105 _tmp11_ = self->priv->_reporter;
1106 _tmp12_ = valadoc_gir_meta_data_new (_tmp8_, _tmp10_, _tmp10__length1, _tmp11_);
1107 _g_object_unref0 (metadata);
1108 metadata = _tmp12_;
1109 _tmp13_ = metadata;
1110 _tmp14_ = valadoc_gir_meta_data_get_index_sgml (_tmp13_);
1111 _tmp15_ = _tmp14_;
1112 if (_tmp15_ != NULL) {
1113 ValadocImporterInternalIdRegistrar* _tmp16_;
1114 ValadocGirMetaData* _tmp17_;
1115 const gchar* _tmp18_;
1116 const gchar* _tmp19_;
1117 ValadocGirMetaData* _tmp20_;
1118 const gchar* _tmp21_;
1119 const gchar* _tmp22_;
1120 ValadocErrorReporter* _tmp23_;
1121 _tmp16_ = self->priv->id_registrar;
1122 _tmp17_ = metadata;
1123 _tmp18_ = valadoc_gir_meta_data_get_index_sgml (_tmp17_);
1124 _tmp19_ = _tmp18_;
1125 _tmp20_ = metadata;
1126 _tmp21_ = valadoc_gir_meta_data_get_index_sgml_online (_tmp20_);
1127 _tmp22_ = _tmp21_;
1128 _tmp23_ = self->priv->_reporter;
1129 valadoc_importer_internal_id_registrar_read_index_sgml_file (_tmp16_, _tmp19_, _tmp22_, _tmp23_);
1130 }
1131 _tmp24_ = self->priv->metadata;
1132 _tmp25_ = valadoc_api_source_comment_get_file ((ValadocApiSourceComment*) gir_comment);
1133 _tmp26_ = _tmp25_;
1134 _tmp27_ = metadata;
1135 vala_map_set ((ValaMap*) _tmp24_, _tmp26_, _tmp27_);
1136 result = metadata;
1137 return result;
1138 }
1139
1140 static gchar*
valadoc_documentation_parser_real_resolve(ValadocResourceLocator * base,const gchar * path)1141 valadoc_documentation_parser_real_resolve (ValadocResourceLocator* base,
1142 const gchar* path)
1143 {
1144 ValadocDocumentationParser * self;
1145 gchar* _tmp0_;
1146 gchar* result = NULL;
1147 self = (ValadocDocumentationParser*) base;
1148 g_return_val_if_fail (path != NULL, NULL);
1149 _tmp0_ = g_strdup (path);
1150 result = _tmp0_;
1151 return result;
1152 }
1153
1154 static void
valadoc_documentation_parser_push(ValadocDocumentationParser * self,GObject * element)1155 valadoc_documentation_parser_push (ValadocDocumentationParser* self,
1156 GObject* element)
1157 {
1158 ValaArrayList* _tmp0_;
1159 g_return_if_fail (self != NULL);
1160 g_return_if_fail (element != NULL);
1161 _tmp0_ = self->priv->_stack;
1162 vala_collection_add ((ValaCollection*) _tmp0_, element);
1163 }
1164
1165 static GObject*
valadoc_documentation_parser_peek(ValadocDocumentationParser * self,gint offset)1166 valadoc_documentation_parser_peek (ValadocDocumentationParser* self,
1167 gint offset)
1168 {
1169 ValaArrayList* _tmp0_;
1170 gint _tmp1_;
1171 gint _tmp2_;
1172 ValaArrayList* _tmp3_;
1173 ValaArrayList* _tmp4_;
1174 gint _tmp5_;
1175 gint _tmp6_;
1176 gpointer _tmp7_;
1177 GObject* result = NULL;
1178 g_return_val_if_fail (self != NULL, NULL);
1179 _tmp0_ = self->priv->_stack;
1180 _tmp1_ = vala_collection_get_size ((ValaCollection*) _tmp0_);
1181 _tmp2_ = _tmp1_;
1182 _vala_assert (_tmp2_ >= (-offset), "_stack.size >= - offset");
1183 _tmp3_ = self->priv->_stack;
1184 _tmp4_ = self->priv->_stack;
1185 _tmp5_ = vala_collection_get_size ((ValaCollection*) _tmp4_);
1186 _tmp6_ = _tmp5_;
1187 _tmp7_ = vala_list_get ((ValaList*) _tmp3_, _tmp6_ + offset);
1188 result = (GObject*) _tmp7_;
1189 return result;
1190 }
1191
1192 static GObject*
valadoc_documentation_parser_pop(ValadocDocumentationParser * self)1193 valadoc_documentation_parser_pop (ValadocDocumentationParser* self)
1194 {
1195 GObject* node = NULL;
1196 GObject* _tmp0_;
1197 ValaArrayList* _tmp1_;
1198 ValaArrayList* _tmp2_;
1199 gint _tmp3_;
1200 gint _tmp4_;
1201 gpointer _tmp5_;
1202 GObject* _tmp6_;
1203 GObject* result = NULL;
1204 g_return_val_if_fail (self != NULL, NULL);
1205 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
1206 node = _tmp0_;
1207 _tmp1_ = self->priv->_stack;
1208 _tmp2_ = self->priv->_stack;
1209 _tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
1210 _tmp4_ = _tmp3_;
1211 _tmp5_ = vala_list_remove_at ((ValaList*) _tmp1_, _tmp4_ - 1);
1212 _tmp6_ = (GObject*) _tmp5_;
1213 _g_object_unref0 (_tmp6_);
1214 result = node;
1215 return result;
1216 }
1217
1218 static void
_vala_array_add1(gint ** array,gint * length,gint * size,gint value)1219 _vala_array_add1 (gint* * array,
1220 gint* length,
1221 gint* size,
1222 gint value)
1223 {
1224 if ((*length) == (*size)) {
1225 *size = (*size) ? (2 * (*size)) : 4;
1226 *array = g_renew (gint, *array, *size);
1227 }
1228 (*array)[(*length)++] = value;
1229 }
1230
1231 static void
_vala_array_add2(gint ** array,gint * length,gint * size,gint value)1232 _vala_array_add2 (gint* * array,
1233 gint* length,
1234 gint* size,
1235 gint value)
1236 {
1237 if ((*length) == (*size)) {
1238 *size = (*size) ? (2 * (*size)) : 4;
1239 *array = g_renew (gint, *array, *size);
1240 }
1241 (*array)[(*length)++] = value;
1242 }
1243
1244 static void
valadoc_documentation_parser_new_list_item(ValadocDocumentationParser * self,ValadocContentListBullet bullet,GError ** error)1245 valadoc_documentation_parser_new_list_item (ValadocDocumentationParser* self,
1246 ValadocContentListBullet bullet,
1247 GError** error)
1248 {
1249 ValadocContentListItem* new_item = NULL;
1250 ValadocContentContentFactory* _tmp0_;
1251 ValadocContentListItem* _tmp1_;
1252 ValadocContentList* list = NULL;
1253 gint* _tmp2_;
1254 gint _tmp2__length1;
1255 ValadocContentList* _tmp64_;
1256 ValaList* _tmp65_;
1257 ValaList* _tmp66_;
1258 ValadocContentListItem* _tmp67_;
1259 ValadocContentListItem* _tmp68_;
1260 GError* _inner_error0_ = NULL;
1261 g_return_if_fail (self != NULL);
1262 _tmp0_ = self->priv->_factory;
1263 _tmp1_ = valadoc_content_content_factory_create_list_item (_tmp0_);
1264 new_item = _tmp1_;
1265 list = NULL;
1266 _tmp2_ = self->priv->levels;
1267 _tmp2__length1 = self->priv->levels_length1;
1268 if (_tmp2__length1 >= 1) {
1269 gint* _tmp3_;
1270 gint _tmp3__length1;
1271 gint* _tmp4_;
1272 gint _tmp4__length1;
1273 gint _tmp5_;
1274 _tmp3_ = self->priv->levels;
1275 _tmp3__length1 = self->priv->levels_length1;
1276 _tmp4_ = self->priv->levels;
1277 _tmp4__length1 = self->priv->levels_length1;
1278 _tmp5_ = _tmp3_[_tmp4__length1 - 1];
1279 if (self->priv->current_level > _tmp5_) {
1280 ValadocContentContentFactory* _tmp6_;
1281 ValadocContentList* _tmp7_;
1282 ValadocContentList* _tmp8_;
1283 ValadocContentListItem* current_item = NULL;
1284 GObject* _tmp9_;
1285 ValadocContentListItem* _tmp10_;
1286 ValadocContentListItem* _tmp11_;
1287 ValaList* _tmp12_;
1288 ValaList* _tmp13_;
1289 ValadocContentList* _tmp14_;
1290 ValadocContentList* _tmp15_;
1291 _tmp6_ = self->priv->_factory;
1292 _tmp7_ = valadoc_content_content_factory_create_list (_tmp6_);
1293 _g_object_unref0 (list);
1294 list = _tmp7_;
1295 _tmp8_ = list;
1296 valadoc_content_list_set_bullet (_tmp8_, bullet);
1297 _tmp9_ = valadoc_documentation_parser_peek (self, -1);
1298 _tmp10_ = VALADOC_CONTENT_IS_LIST_ITEM (_tmp9_) ? ((ValadocContentListItem*) _tmp9_) : NULL;
1299 if (_tmp10_ == NULL) {
1300 _g_object_unref0 (_tmp9_);
1301 }
1302 current_item = _tmp10_;
1303 _tmp11_ = current_item;
1304 _tmp12_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp11_);
1305 _tmp13_ = _tmp12_;
1306 _tmp14_ = list;
1307 vala_collection_add ((ValaCollection*) _tmp13_, (ValadocContentBlock*) _tmp14_);
1308 _tmp15_ = list;
1309 valadoc_documentation_parser_push (self, (GObject*) _tmp15_);
1310 _vala_array_add1 (&self->priv->levels, &self->priv->levels_length1, &self->priv->_levels_size_, self->priv->current_level);
1311 _g_object_unref0 (current_item);
1312 } else {
1313 gboolean poped_some_lists = FALSE;
1314 GObject* _tmp25_;
1315 ValadocContentList* _tmp26_;
1316 gboolean _tmp27_ = FALSE;
1317 GObject* _tmp52_;
1318 GObject* _tmp53_;
1319 poped_some_lists = FALSE;
1320 while (TRUE) {
1321 gint* _tmp16_;
1322 gint _tmp16__length1;
1323 gint* _tmp17_;
1324 gint _tmp17__length1;
1325 gint _tmp18_;
1326 GObject* _tmp19_;
1327 GObject* _tmp20_;
1328 GObject* _tmp21_;
1329 GObject* _tmp22_;
1330 gint* _tmp23_;
1331 gint _tmp23__length1;
1332 gint _tmp24_;
1333 _tmp16_ = self->priv->levels;
1334 _tmp16__length1 = self->priv->levels_length1;
1335 _tmp17_ = self->priv->levels;
1336 _tmp17__length1 = self->priv->levels_length1;
1337 _tmp18_ = _tmp16_[_tmp17__length1 - 1];
1338 if (!(self->priv->current_level < _tmp18_)) {
1339 break;
1340 }
1341 _tmp19_ = valadoc_documentation_parser_pop (self);
1342 _tmp20_ = _tmp19_;
1343 _g_object_unref0 (_tmp20_);
1344 _tmp21_ = valadoc_documentation_parser_pop (self);
1345 _tmp22_ = _tmp21_;
1346 _g_object_unref0 (_tmp22_);
1347 _tmp23_ = self->priv->levels;
1348 _tmp23__length1 = self->priv->levels_length1;
1349 _tmp24_ = _tmp23__length1 - 1;
1350 self->priv->levels = g_renew (gint, self->priv->levels, _tmp23__length1 - 1);
1351 (_tmp24_ > self->priv->levels_length1) ? memset (self->priv->levels + self->priv->levels_length1, 0, sizeof (gint) * (_tmp24_ - self->priv->levels_length1)) : NULL;
1352 self->priv->levels_length1 = _tmp24_;
1353 self->priv->_levels_size_ = _tmp24_;
1354 poped_some_lists = TRUE;
1355 }
1356 _tmp25_ = valadoc_documentation_parser_peek (self, -2);
1357 _tmp26_ = VALADOC_CONTENT_IS_LIST (_tmp25_) ? ((ValadocContentList*) _tmp25_) : NULL;
1358 if (_tmp26_ == NULL) {
1359 _g_object_unref0 (_tmp25_);
1360 }
1361 _g_object_unref0 (list);
1362 list = _tmp26_;
1363 if (!poped_some_lists) {
1364 _tmp27_ = bullet == VALADOC_CONTENT_LIST_BULLET_NONE;
1365 } else {
1366 _tmp27_ = FALSE;
1367 }
1368 if (_tmp27_) {
1369 GObject* _tmp28_;
1370 ValadocContentListItem* _tmp29_;
1371 ValaList* _tmp30_;
1372 ValaList* _tmp31_;
1373 gpointer _tmp32_;
1374 ValadocContentParagraph* _tmp33_;
1375 ValaList* _tmp34_;
1376 ValaList* _tmp35_;
1377 ValadocContentContentFactory* _tmp36_;
1378 ValadocContentText* _tmp37_;
1379 ValadocContentText* _tmp38_;
1380 _tmp28_ = valadoc_documentation_parser_peek (self, -1);
1381 _tmp29_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp28_, VALADOC_CONTENT_TYPE_LIST_ITEM, ValadocContentListItem);
1382 _tmp30_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp29_);
1383 _tmp31_ = _tmp30_;
1384 _tmp32_ = vala_list_get (_tmp31_, 0);
1385 _tmp33_ = G_TYPE_CHECK_INSTANCE_CAST ((ValadocContentBlock*) _tmp32_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
1386 _tmp34_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp33_);
1387 _tmp35_ = _tmp34_;
1388 _tmp36_ = self->priv->_factory;
1389 _tmp37_ = valadoc_content_content_factory_create_text (_tmp36_, " ");
1390 _tmp38_ = _tmp37_;
1391 vala_collection_add ((ValaCollection*) _tmp35_, (ValadocContentInline*) _tmp38_);
1392 _g_object_unref0 (_tmp38_);
1393 _g_object_unref0 (_tmp33_);
1394 _g_object_unref0 (_tmp29_);
1395 _g_object_unref0 (list);
1396 _g_object_unref0 (new_item);
1397 return;
1398 } else {
1399 ValadocContentList* _tmp39_;
1400 ValadocContentListBullet _tmp40_;
1401 ValadocContentListBullet _tmp41_;
1402 _tmp39_ = list;
1403 _tmp40_ = valadoc_content_list_get_bullet (_tmp39_);
1404 _tmp41_ = _tmp40_;
1405 if (_tmp41_ != bullet) {
1406 ValadocParser* _tmp42_;
1407 gchar* _tmp43_;
1408 gchar* _tmp44_;
1409 ValadocContentList* _tmp45_;
1410 ValadocContentListBullet _tmp46_;
1411 ValadocContentListBullet _tmp47_;
1412 gchar* _tmp48_;
1413 gchar* _tmp49_;
1414 gchar* _tmp50_;
1415 gchar* _tmp51_;
1416 _tmp42_ = self->priv->_parser;
1417 _tmp43_ = valadoc_documentation_parser_bullet_type_string (self, bullet);
1418 _tmp44_ = _tmp43_;
1419 _tmp45_ = list;
1420 _tmp46_ = valadoc_content_list_get_bullet (_tmp45_);
1421 _tmp47_ = _tmp46_;
1422 _tmp48_ = valadoc_documentation_parser_bullet_type_string (self, _tmp47_);
1423 _tmp49_ = _tmp48_;
1424 _tmp50_ = g_strdup_printf ("Invalid bullet type '%s': expected '%s'", _tmp44_, _tmp49_);
1425 _tmp51_ = _tmp50_;
1426 valadoc_parser_callback_error ((ValadocParserCallback*) _tmp42_, NULL, _tmp51_, &_inner_error0_);
1427 _g_free0 (_tmp51_);
1428 _g_free0 (_tmp49_);
1429 _g_free0 (_tmp44_);
1430 if (G_UNLIKELY (_inner_error0_ != NULL)) {
1431 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
1432 g_propagate_error (error, _inner_error0_);
1433 _g_object_unref0 (list);
1434 _g_object_unref0 (new_item);
1435 return;
1436 } else {
1437 _g_object_unref0 (list);
1438 _g_object_unref0 (new_item);
1439 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
1440 g_clear_error (&_inner_error0_);
1441 return;
1442 }
1443 }
1444 _g_object_unref0 (list);
1445 _g_object_unref0 (new_item);
1446 return;
1447 }
1448 }
1449 _tmp52_ = valadoc_documentation_parser_pop (self);
1450 _tmp53_ = _tmp52_;
1451 _g_object_unref0 (_tmp53_);
1452 }
1453 } else {
1454 ValadocContentContentFactory* _tmp54_;
1455 ValadocContentList* _tmp55_;
1456 ValadocContentList* _tmp56_;
1457 GObject* _tmp57_;
1458 ValadocContentBlockContent* _tmp58_;
1459 ValaList* _tmp59_;
1460 ValaList* _tmp60_;
1461 ValadocContentList* _tmp61_;
1462 ValadocContentList* _tmp62_;
1463 gint* _tmp63_;
1464 _tmp54_ = self->priv->_factory;
1465 _tmp55_ = valadoc_content_content_factory_create_list (_tmp54_);
1466 _g_object_unref0 (list);
1467 list = _tmp55_;
1468 _tmp56_ = list;
1469 valadoc_content_list_set_bullet (_tmp56_, bullet);
1470 _tmp57_ = valadoc_documentation_parser_peek (self, -1);
1471 _tmp58_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp57_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
1472 _tmp59_ = valadoc_content_block_content_get_content (_tmp58_);
1473 _tmp60_ = _tmp59_;
1474 _tmp61_ = list;
1475 vala_collection_add ((ValaCollection*) _tmp60_, (ValadocContentBlock*) _tmp61_);
1476 _g_object_unref0 (_tmp58_);
1477 _tmp62_ = list;
1478 valadoc_documentation_parser_push (self, (GObject*) _tmp62_);
1479 _tmp63_ = g_new0 (gint, 0);
1480 self->priv->levels = (g_free (self->priv->levels), NULL);
1481 self->priv->levels = _tmp63_;
1482 self->priv->levels_length1 = 0;
1483 self->priv->_levels_size_ = self->priv->levels_length1;
1484 _vala_array_add2 (&self->priv->levels, &self->priv->levels_length1, &self->priv->_levels_size_, self->priv->current_level);
1485 }
1486 _tmp64_ = list;
1487 _tmp65_ = valadoc_content_list_get_items (_tmp64_);
1488 _tmp66_ = _tmp65_;
1489 _tmp67_ = new_item;
1490 vala_collection_add ((ValaCollection*) _tmp66_, _tmp67_);
1491 _tmp68_ = new_item;
1492 valadoc_documentation_parser_push (self, (GObject*) _tmp68_);
1493 _g_object_unref0 (list);
1494 _g_object_unref0 (new_item);
1495 }
1496
1497 static gchar*
valadoc_documentation_parser_bullet_type_string(ValadocDocumentationParser * self,ValadocContentListBullet bullet)1498 valadoc_documentation_parser_bullet_type_string (ValadocDocumentationParser* self,
1499 ValadocContentListBullet bullet)
1500 {
1501 gchar* _tmp8_;
1502 gchar* result = NULL;
1503 g_return_val_if_fail (self != NULL, NULL);
1504 switch (bullet) {
1505 case VALADOC_CONTENT_LIST_BULLET_NONE:
1506 {
1507 gchar* _tmp0_;
1508 _tmp0_ = g_strdup (".");
1509 result = _tmp0_;
1510 return result;
1511 }
1512 case VALADOC_CONTENT_LIST_BULLET_UNORDERED:
1513 {
1514 gchar* _tmp1_;
1515 _tmp1_ = g_strdup ("*");
1516 result = _tmp1_;
1517 return result;
1518 }
1519 case VALADOC_CONTENT_LIST_BULLET_ORDERED:
1520 {
1521 gchar* _tmp2_;
1522 _tmp2_ = g_strdup ("#");
1523 result = _tmp2_;
1524 return result;
1525 }
1526 case VALADOC_CONTENT_LIST_BULLET_ORDERED_NUMBER:
1527 {
1528 gchar* _tmp3_;
1529 _tmp3_ = g_strdup ("1.");
1530 result = _tmp3_;
1531 return result;
1532 }
1533 case VALADOC_CONTENT_LIST_BULLET_ORDERED_LOWER_CASE_ALPHA:
1534 {
1535 gchar* _tmp4_;
1536 _tmp4_ = g_strdup ("a.");
1537 result = _tmp4_;
1538 return result;
1539 }
1540 case VALADOC_CONTENT_LIST_BULLET_ORDERED_UPPER_CASE_ALPHA:
1541 {
1542 gchar* _tmp5_;
1543 _tmp5_ = g_strdup ("A.");
1544 result = _tmp5_;
1545 return result;
1546 }
1547 case VALADOC_CONTENT_LIST_BULLET_ORDERED_LOWER_CASE_ROMAN:
1548 {
1549 gchar* _tmp6_;
1550 _tmp6_ = g_strdup ("i.");
1551 result = _tmp6_;
1552 return result;
1553 }
1554 case VALADOC_CONTENT_LIST_BULLET_ORDERED_UPPER_CASE_ROMAN:
1555 {
1556 gchar* _tmp7_;
1557 _tmp7_ = g_strdup ("I.");
1558 result = _tmp7_;
1559 return result;
1560 }
1561 default:
1562 break;
1563 }
1564 _tmp8_ = g_strdup ("");
1565 result = _tmp8_;
1566 return result;
1567 }
1568
1569 static void
valadoc_documentation_parser_finish_list(ValadocDocumentationParser * self)1570 valadoc_documentation_parser_finish_list (ValadocDocumentationParser* self)
1571 {
1572 g_return_if_fail (self != NULL);
1573 while (TRUE) {
1574 GObject* _tmp0_;
1575 GObject* _tmp1_;
1576 gboolean _tmp2_;
1577 GObject* _tmp3_;
1578 GObject* _tmp4_;
1579 GObject* _tmp5_;
1580 GObject* _tmp6_;
1581 gint* _tmp7_;
1582 gint _tmp7__length1;
1583 gint _tmp8_;
1584 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
1585 _tmp1_ = _tmp0_;
1586 _tmp2_ = !VALADOC_CONTENT_IS_LIST_ITEM (_tmp1_);
1587 _g_object_unref0 (_tmp1_);
1588 if (_tmp2_) {
1589 break;
1590 }
1591 _tmp3_ = valadoc_documentation_parser_pop (self);
1592 _tmp4_ = _tmp3_;
1593 _g_object_unref0 (_tmp4_);
1594 _tmp5_ = valadoc_documentation_parser_pop (self);
1595 _tmp6_ = _tmp5_;
1596 _g_object_unref0 (_tmp6_);
1597 _tmp7_ = self->priv->levels;
1598 _tmp7__length1 = self->priv->levels_length1;
1599 _tmp8_ = _tmp7__length1 - 1;
1600 self->priv->levels = g_renew (gint, self->priv->levels, _tmp7__length1 - 1);
1601 (_tmp8_ > self->priv->levels_length1) ? memset (self->priv->levels + self->priv->levels_length1, 0, sizeof (gint) * (_tmp8_ - self->priv->levels_length1)) : NULL;
1602 self->priv->levels_length1 = _tmp8_;
1603 self->priv->_levels_size_ = _tmp8_;
1604 }
1605 }
1606
1607 static void
valadoc_documentation_parser_add_content_string(ValadocDocumentationParser * self,const gchar * str)1608 valadoc_documentation_parser_add_content_string (ValadocDocumentationParser* self,
1609 const gchar* str)
1610 {
1611 ValadocContentText* text = NULL;
1612 GObject* _tmp0_;
1613 ValadocContentText* _tmp1_;
1614 ValadocContentText* _tmp2_;
1615 ValadocContentText* _tmp6_;
1616 ValadocContentText* _tmp7_;
1617 const gchar* _tmp8_;
1618 const gchar* _tmp9_;
1619 gchar* _tmp10_;
1620 gchar* _tmp11_;
1621 g_return_if_fail (self != NULL);
1622 g_return_if_fail (str != NULL);
1623 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
1624 _tmp1_ = VALADOC_CONTENT_IS_TEXT (_tmp0_) ? ((ValadocContentText*) _tmp0_) : NULL;
1625 if (_tmp1_ == NULL) {
1626 _g_object_unref0 (_tmp0_);
1627 }
1628 text = _tmp1_;
1629 _tmp2_ = text;
1630 if (_tmp2_ == NULL) {
1631 ValadocContentContentFactory* _tmp3_;
1632 ValadocContentText* _tmp4_;
1633 ValadocContentText* _tmp5_;
1634 _tmp3_ = self->priv->_factory;
1635 _tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, NULL);
1636 _g_object_unref0 (text);
1637 text = _tmp4_;
1638 _tmp5_ = text;
1639 valadoc_documentation_parser_push (self, (GObject*) _tmp5_);
1640 }
1641 _tmp6_ = text;
1642 _tmp7_ = text;
1643 _tmp8_ = valadoc_content_text_get_content (_tmp7_);
1644 _tmp9_ = _tmp8_;
1645 _tmp10_ = g_strconcat (_tmp9_, str, NULL);
1646 _tmp11_ = _tmp10_;
1647 valadoc_content_text_set_content (_tmp7_, _tmp11_);
1648 _g_free0 (_tmp11_);
1649 _g_object_unref0 (text);
1650 }
1651
1652 static void
valadoc_documentation_parser_add_content_space(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)1653 valadoc_documentation_parser_add_content_space (ValadocDocumentationParser* self,
1654 ValadocToken* token,
1655 GError** error)
1656 {
1657 GObject* head = NULL;
1658 GObject* _tmp0_;
1659 ValadocContentText* text_node = NULL;
1660 GObject* _tmp1_;
1661 ValadocContentText* _tmp28_;
1662 const gchar* _tmp29_;
1663 const gchar* _tmp30_;
1664 g_return_if_fail (self != NULL);
1665 g_return_if_fail (token != NULL);
1666 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
1667 head = _tmp0_;
1668 text_node = NULL;
1669 _tmp1_ = head;
1670 if (VALADOC_CONTENT_IS_TEXT (_tmp1_)) {
1671 GObject* _tmp2_;
1672 ValadocContentText* _tmp3_;
1673 _tmp2_ = head;
1674 _tmp3_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_TEXT, ValadocContentText));
1675 _g_object_unref0 (text_node);
1676 text_node = _tmp3_;
1677 } else {
1678 gboolean _tmp4_ = FALSE;
1679 gboolean _tmp5_ = FALSE;
1680 GObject* _tmp6_;
1681 _tmp6_ = head;
1682 if (VALADOC_CONTENT_IS_INLINE_CONTENT (_tmp6_)) {
1683 GObject* _tmp7_;
1684 ValaList* _tmp8_;
1685 ValaList* _tmp9_;
1686 gint _tmp10_;
1687 gint _tmp11_;
1688 _tmp7_ = head;
1689 _tmp8_ = valadoc_content_inline_content_get_content (G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, VALADOC_CONTENT_TYPE_INLINE_CONTENT, ValadocContentInlineContent));
1690 _tmp9_ = _tmp8_;
1691 _tmp10_ = vala_collection_get_size ((ValaCollection*) _tmp9_);
1692 _tmp11_ = _tmp10_;
1693 _tmp5_ = _tmp11_ > 0;
1694 } else {
1695 _tmp5_ = FALSE;
1696 }
1697 if (_tmp5_) {
1698 GObject* _tmp12_;
1699 ValaList* _tmp13_;
1700 ValaList* _tmp14_;
1701 gpointer _tmp15_;
1702 ValadocContentInline* _tmp16_;
1703 _tmp12_ = head;
1704 _tmp13_ = valadoc_content_inline_content_get_content (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, VALADOC_CONTENT_TYPE_INLINE_CONTENT, ValadocContentInlineContent));
1705 _tmp14_ = _tmp13_;
1706 _tmp15_ = vala_list_last (_tmp14_);
1707 _tmp16_ = (ValadocContentInline*) _tmp15_;
1708 _tmp4_ = VALADOC_CONTENT_IS_TEXT (_tmp16_);
1709 _g_object_unref0 (_tmp16_);
1710 } else {
1711 _tmp4_ = FALSE;
1712 }
1713 if (_tmp4_) {
1714 GObject* _tmp17_;
1715 ValaList* _tmp18_;
1716 ValaList* _tmp19_;
1717 gpointer _tmp20_;
1718 _tmp17_ = head;
1719 _tmp18_ = valadoc_content_inline_content_get_content (G_TYPE_CHECK_INSTANCE_CAST (_tmp17_, VALADOC_CONTENT_TYPE_INLINE_CONTENT, ValadocContentInlineContent));
1720 _tmp19_ = _tmp18_;
1721 _tmp20_ = vala_list_last (_tmp19_);
1722 _g_object_unref0 (text_node);
1723 text_node = G_TYPE_CHECK_INSTANCE_CAST ((ValadocContentInline*) _tmp20_, VALADOC_CONTENT_TYPE_TEXT, ValadocContentText);
1724 } else {
1725 ValadocContentContentFactory* _tmp21_;
1726 ValadocContentText* _tmp22_;
1727 GObject* _tmp23_;
1728 ValadocContentInlineContent* _tmp24_;
1729 ValaList* _tmp25_;
1730 ValaList* _tmp26_;
1731 ValadocContentText* _tmp27_;
1732 _tmp21_ = self->priv->_factory;
1733 _tmp22_ = valadoc_content_content_factory_create_text (_tmp21_, NULL);
1734 _g_object_unref0 (text_node);
1735 text_node = _tmp22_;
1736 _tmp23_ = valadoc_documentation_parser_peek (self, -1);
1737 _tmp24_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp23_, VALADOC_CONTENT_TYPE_INLINE_CONTENT, ValadocContentInlineContent);
1738 _tmp25_ = valadoc_content_inline_content_get_content (_tmp24_);
1739 _tmp26_ = _tmp25_;
1740 _tmp27_ = text_node;
1741 vala_collection_add ((ValaCollection*) _tmp26_, (ValadocContentInline*) _tmp27_);
1742 _g_object_unref0 (_tmp24_);
1743 }
1744 }
1745 _tmp28_ = text_node;
1746 _tmp29_ = valadoc_content_text_get_content (_tmp28_);
1747 _tmp30_ = _tmp29_;
1748 if (!g_str_has_suffix (_tmp30_, " ")) {
1749 ValadocContentText* _tmp31_;
1750 ValadocContentText* _tmp32_;
1751 const gchar* _tmp33_;
1752 const gchar* _tmp34_;
1753 gchar* _tmp35_;
1754 gchar* _tmp36_;
1755 _tmp31_ = text_node;
1756 _tmp32_ = text_node;
1757 _tmp33_ = valadoc_content_text_get_content (_tmp32_);
1758 _tmp34_ = _tmp33_;
1759 _tmp35_ = g_strconcat (_tmp34_, " ", NULL);
1760 _tmp36_ = _tmp35_;
1761 valadoc_content_text_set_content (_tmp32_, _tmp36_);
1762 _g_free0 (_tmp36_);
1763 }
1764 _g_object_unref0 (text_node);
1765 _g_object_unref0 (head);
1766 }
1767
1768 static void
valadoc_documentation_parser_add_text(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)1769 valadoc_documentation_parser_add_text (ValadocDocumentationParser* self,
1770 ValadocToken* token,
1771 GError** error)
1772 {
1773 const gchar* _tmp0_;
1774 g_return_if_fail (self != NULL);
1775 g_return_if_fail (token != NULL);
1776 _tmp0_ = valadoc_token_to_string (token);
1777 valadoc_documentation_parser_add_content_string (self, _tmp0_);
1778 }
1779
1780 static void
_valadoc_documentation_parser_add_content_space_valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)1781 _valadoc_documentation_parser_add_content_space_valadoc_token_type_action (ValadocToken* token,
1782 gpointer self,
1783 GError** error)
1784 {
1785 valadoc_documentation_parser_add_content_space ((ValadocDocumentationParser*) self, token, error);
1786 }
1787
1788 static void
_valadoc_documentation_parser_add_text_valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)1789 _valadoc_documentation_parser_add_text_valadoc_token_type_action (ValadocToken* token,
1790 gpointer self,
1791 GError** error)
1792 {
1793 valadoc_documentation_parser_add_text ((ValadocDocumentationParser*) self, token, error);
1794 }
1795
1796 static void
__lambda56_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)1797 __lambda56_ (ValadocDocumentationParser* self,
1798 ValadocToken* token,
1799 GError** error)
1800 {
1801 g_return_if_fail (token != NULL);
1802 valadoc_documentation_parser_add_content_string (self, "\n");
1803 }
1804
1805 static void
___lambda56__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)1806 ___lambda56__valadoc_token_type_action (ValadocToken* token,
1807 gpointer self,
1808 GError** error)
1809 {
1810 __lambda56_ ((ValadocDocumentationParser*) self, token, error);
1811 }
1812
1813 static void
__lambda57_(ValadocDocumentationParser * self,GError ** error)1814 __lambda57_ (ValadocDocumentationParser* self,
1815 GError** error)
1816 {
1817 ValadocContentContentFactory* _tmp0_;
1818 ValadocContentText* _tmp1_;
1819 ValadocContentText* _tmp2_;
1820 _tmp0_ = self->priv->_factory;
1821 _tmp1_ = valadoc_content_content_factory_create_text (_tmp0_, NULL);
1822 _tmp2_ = _tmp1_;
1823 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
1824 _g_object_unref0 (_tmp2_);
1825 }
1826
1827 static void
___lambda57__valadoc_rule_action(gpointer self,GError ** error)1828 ___lambda57__valadoc_rule_action (gpointer self,
1829 GError** error)
1830 {
1831 __lambda57_ ((ValadocDocumentationParser*) self, error);
1832 }
1833
1834 static void
__lambda58_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)1835 __lambda58_ (ValadocDocumentationParser* self,
1836 ValadocToken* token,
1837 GError** error)
1838 {
1839 ValadocContentTaglet* taglet = NULL;
1840 ValadocContentContentFactory* _tmp0_;
1841 const gchar* _tmp1_;
1842 ValadocContentTaglet* _tmp2_;
1843 ValadocContentTaglet* _tmp3_;
1844 ValadocContentTaglet* _tmp8_;
1845 ValadocRule* taglet_rule = NULL;
1846 ValadocContentTaglet* _tmp9_;
1847 ValadocRule* _tmp10_;
1848 ValadocRule* _tmp11_;
1849 ValadocRule* _tmp12_;
1850 GError* _inner_error0_ = NULL;
1851 g_return_if_fail (token != NULL);
1852 _tmp0_ = self->priv->_factory;
1853 _tmp1_ = valadoc_token_to_string (token);
1854 _tmp2_ = valadoc_content_content_factory_create_taglet (_tmp0_, _tmp1_);
1855 taglet = _tmp2_;
1856 _tmp3_ = taglet;
1857 if (!VALADOC_CONTENT_IS_INLINE (_tmp3_)) {
1858 ValadocParser* _tmp4_;
1859 const gchar* _tmp5_;
1860 gchar* _tmp6_;
1861 gchar* _tmp7_;
1862 _tmp4_ = self->priv->_parser;
1863 _tmp5_ = valadoc_token_to_string (token);
1864 _tmp6_ = g_strdup_printf ("Invalid taglet in this context: %s", _tmp5_);
1865 _tmp7_ = _tmp6_;
1866 valadoc_parser_callback_error ((ValadocParserCallback*) _tmp4_, NULL, _tmp7_, &_inner_error0_);
1867 _g_free0 (_tmp7_);
1868 if (G_UNLIKELY (_inner_error0_ != NULL)) {
1869 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
1870 g_propagate_error (error, _inner_error0_);
1871 _g_object_unref0 (taglet);
1872 return;
1873 } else {
1874 _g_object_unref0 (taglet);
1875 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
1876 g_clear_error (&_inner_error0_);
1877 return;
1878 }
1879 }
1880 }
1881 _tmp8_ = taglet;
1882 valadoc_documentation_parser_push (self, (GObject*) _tmp8_);
1883 _tmp9_ = taglet;
1884 _tmp10_ = self->priv->multiline_run;
1885 _tmp11_ = valadoc_content_taglet_get_parser_rule (_tmp9_, _tmp10_);
1886 taglet_rule = _tmp11_;
1887 _tmp12_ = taglet_rule;
1888 if (_tmp12_ != NULL) {
1889 ValadocParser* _tmp13_;
1890 ValadocTokenType* _tmp14_;
1891 GObject* _tmp15_;
1892 ValadocTokenType* _tmp16_;
1893 GObject* _tmp17_;
1894 GObject** _tmp18_;
1895 GObject** _tmp19_;
1896 gint _tmp19__length1;
1897 ValadocRule* _tmp20_;
1898 ValadocRule* _tmp21_;
1899 GObject* _tmp22_;
1900 GObject** _tmp23_;
1901 GObject** _tmp24_;
1902 gint _tmp24__length1;
1903 ValadocRule* _tmp25_;
1904 ValadocRule* _tmp26_;
1905 _tmp13_ = self->priv->_parser;
1906 _tmp14_ = valadoc_token_type_SPACE;
1907 _tmp15_ = _g_object_ref0 ((GObject*) _tmp14_);
1908 _tmp16_ = valadoc_token_type_EOL;
1909 _tmp17_ = _g_object_ref0 ((GObject*) _tmp16_);
1910 _tmp18_ = g_new0 (GObject*, 2 + 1);
1911 _tmp18_[0] = _tmp15_;
1912 _tmp18_[1] = _tmp17_;
1913 _tmp19_ = _tmp18_;
1914 _tmp19__length1 = 2;
1915 _tmp20_ = valadoc_rule_one_of (_tmp19_, (gint) 2);
1916 _tmp21_ = taglet_rule;
1917 _tmp22_ = _g_object_ref0 ((GObject*) _tmp21_);
1918 _tmp23_ = g_new0 (GObject*, 2 + 1);
1919 _tmp23_[0] = (GObject*) _tmp20_;
1920 _tmp23_[1] = _tmp22_;
1921 _tmp24_ = _tmp23_;
1922 _tmp24__length1 = 2;
1923 _tmp25_ = valadoc_rule_seq (_tmp24_, (gint) 2);
1924 _tmp26_ = _tmp25_;
1925 valadoc_parser_callback_push_rule ((ValadocParserCallback*) _tmp13_, _tmp26_);
1926 _g_object_unref0 (_tmp26_);
1927 _tmp24_ = (_vala_array_free (_tmp24_, _tmp24__length1, (GDestroyNotify) g_object_unref), NULL);
1928 _tmp19_ = (_vala_array_free (_tmp19_, _tmp19__length1, (GDestroyNotify) g_object_unref), NULL);
1929 }
1930 _g_object_unref0 (taglet_rule);
1931 _g_object_unref0 (taglet);
1932 }
1933
1934 static void
___lambda58__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)1935 ___lambda58__valadoc_token_type_action (ValadocToken* token,
1936 gpointer self,
1937 GError** error)
1938 {
1939 __lambda58_ ((ValadocDocumentationParser*) self, token, error);
1940 }
1941
1942 static void
__lambda59_(ValadocDocumentationParser * self,GError ** error)1943 __lambda59_ (ValadocDocumentationParser* self,
1944 GError** error)
1945 {
1946 valadoc_documentation_parser_add_content_string (self, "{");
1947 }
1948
1949 static void
___lambda59__valadoc_rule_action(gpointer self,GError ** error)1950 ___lambda59__valadoc_rule_action (gpointer self,
1951 GError** error)
1952 {
1953 __lambda59_ ((ValadocDocumentationParser*) self, error);
1954 }
1955
1956 static void
__lambda60_(ValadocDocumentationParser * self,GError ** error)1957 __lambda60_ (ValadocDocumentationParser* self,
1958 GError** error)
1959 {
1960 ValadocContentContentFactory* _tmp0_;
1961 ValadocContentRun* _tmp1_;
1962 ValadocContentRun* _tmp2_;
1963 _tmp0_ = self->priv->_factory;
1964 _tmp1_ = valadoc_content_content_factory_create_run (_tmp0_, VALADOC_CONTENT_RUN_STYLE_BOLD);
1965 _tmp2_ = _tmp1_;
1966 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
1967 _g_object_unref0 (_tmp2_);
1968 }
1969
1970 static void
___lambda60__valadoc_rule_action(gpointer self,GError ** error)1971 ___lambda60__valadoc_rule_action (gpointer self,
1972 GError** error)
1973 {
1974 __lambda60_ ((ValadocDocumentationParser*) self, error);
1975 }
1976
1977 static void
__lambda61_(ValadocDocumentationParser * self,GError ** error)1978 __lambda61_ (ValadocDocumentationParser* self,
1979 GError** error)
1980 {
1981 ValadocContentContentFactory* _tmp0_;
1982 ValadocContentRun* _tmp1_;
1983 ValadocContentRun* _tmp2_;
1984 _tmp0_ = self->priv->_factory;
1985 _tmp1_ = valadoc_content_content_factory_create_run (_tmp0_, VALADOC_CONTENT_RUN_STYLE_ITALIC);
1986 _tmp2_ = _tmp1_;
1987 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
1988 _g_object_unref0 (_tmp2_);
1989 }
1990
1991 static void
___lambda61__valadoc_rule_action(gpointer self,GError ** error)1992 ___lambda61__valadoc_rule_action (gpointer self,
1993 GError** error)
1994 {
1995 __lambda61_ ((ValadocDocumentationParser*) self, error);
1996 }
1997
1998 static void
__lambda62_(ValadocDocumentationParser * self,GError ** error)1999 __lambda62_ (ValadocDocumentationParser* self,
2000 GError** error)
2001 {
2002 ValadocContentContentFactory* _tmp0_;
2003 ValadocContentRun* _tmp1_;
2004 ValadocContentRun* _tmp2_;
2005 _tmp0_ = self->priv->_factory;
2006 _tmp1_ = valadoc_content_content_factory_create_run (_tmp0_, VALADOC_CONTENT_RUN_STYLE_UNDERLINED);
2007 _tmp2_ = _tmp1_;
2008 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
2009 _g_object_unref0 (_tmp2_);
2010 }
2011
2012 static void
___lambda62__valadoc_rule_action(gpointer self,GError ** error)2013 ___lambda62__valadoc_rule_action (gpointer self,
2014 GError** error)
2015 {
2016 __lambda62_ ((ValadocDocumentationParser*) self, error);
2017 }
2018
2019 static void
__lambda63_(ValadocDocumentationParser * self,GError ** error)2020 __lambda63_ (ValadocDocumentationParser* self,
2021 GError** error)
2022 {
2023 ValadocContentContentFactory* _tmp0_;
2024 ValadocContentRun* _tmp1_;
2025 ValadocContentRun* _tmp2_;
2026 _tmp0_ = self->priv->_factory;
2027 _tmp1_ = valadoc_content_content_factory_create_run (_tmp0_, VALADOC_CONTENT_RUN_STYLE_MONOSPACED);
2028 _tmp2_ = _tmp1_;
2029 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
2030 _g_object_unref0 (_tmp2_);
2031 }
2032
2033 static void
___lambda63__valadoc_rule_action(gpointer self,GError ** error)2034 ___lambda63__valadoc_rule_action (gpointer self,
2035 GError** error)
2036 {
2037 __lambda63_ ((ValadocDocumentationParser*) self, error);
2038 }
2039
2040 static void
__lambda64_(ValadocDocumentationParser * self,GError ** error)2041 __lambda64_ (ValadocDocumentationParser* self,
2042 GError** error)
2043 {
2044 ValadocScanner* _tmp0_;
2045 _tmp0_ = self->priv->_scanner;
2046 valadoc_wiki_scanner_set_url_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), TRUE);
2047 }
2048
2049 static void
___lambda64__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2050 ___lambda64__valadoc_token_type_action (ValadocToken* token,
2051 gpointer self,
2052 GError** error)
2053 {
2054 __lambda64_ ((ValadocDocumentationParser*) self, error);
2055 }
2056
2057 static void
__lambda65_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2058 __lambda65_ (ValadocDocumentationParser* self,
2059 ValadocToken* token,
2060 GError** error)
2061 {
2062 GObject* _tmp0_;
2063 ValadocContentEmbedded* _tmp1_;
2064 const gchar* _tmp2_;
2065 g_return_if_fail (token != NULL);
2066 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
2067 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_EMBEDDED, ValadocContentEmbedded);
2068 _tmp2_ = valadoc_token_to_string (token);
2069 valadoc_content_embedded_set_url (_tmp1_, _tmp2_);
2070 _g_object_unref0 (_tmp1_);
2071 }
2072
2073 static void
___lambda65__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2074 ___lambda65__valadoc_token_type_action (ValadocToken* token,
2075 gpointer self,
2076 GError** error)
2077 {
2078 __lambda65_ ((ValadocDocumentationParser*) self, token, error);
2079 }
2080
2081 static void
__lambda66_(ValadocDocumentationParser * self,GError ** error)2082 __lambda66_ (ValadocDocumentationParser* self,
2083 GError** error)
2084 {
2085 ValadocScanner* _tmp0_;
2086 _tmp0_ = self->priv->_scanner;
2087 valadoc_wiki_scanner_set_url_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), FALSE);
2088 }
2089
2090 static void
___lambda66__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2091 ___lambda66__valadoc_token_type_action (ValadocToken* token,
2092 gpointer self,
2093 GError** error)
2094 {
2095 __lambda66_ ((ValadocDocumentationParser*) self, error);
2096 }
2097
2098 static void
__lambda67_(ValadocDocumentationParser * self,GError ** error)2099 __lambda67_ (ValadocDocumentationParser* self,
2100 GError** error)
2101 {
2102 ValadocContentText* caption = NULL;
2103 GObject* _tmp0_;
2104 ValadocContentText* _tmp1_;
2105 GObject* _tmp2_;
2106 ValadocContentEmbedded* _tmp3_;
2107 const gchar* _tmp4_;
2108 const gchar* _tmp5_;
2109 _tmp0_ = valadoc_documentation_parser_pop (self);
2110 _tmp1_ = VALADOC_CONTENT_IS_TEXT (_tmp0_) ? ((ValadocContentText*) _tmp0_) : NULL;
2111 if (_tmp1_ == NULL) {
2112 _g_object_unref0 (_tmp0_);
2113 }
2114 caption = _tmp1_;
2115 _tmp2_ = valadoc_documentation_parser_peek (self, -1);
2116 _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_EMBEDDED, ValadocContentEmbedded);
2117 _tmp4_ = valadoc_content_text_get_content (caption);
2118 _tmp5_ = _tmp4_;
2119 valadoc_content_embedded_set_caption (_tmp3_, _tmp5_);
2120 _g_object_unref0 (_tmp3_);
2121 _g_object_unref0 (caption);
2122 }
2123
2124 static void
___lambda67__valadoc_rule_action(gpointer self,GError ** error)2125 ___lambda67__valadoc_rule_action (gpointer self,
2126 GError** error)
2127 {
2128 __lambda67_ ((ValadocDocumentationParser*) self, error);
2129 }
2130
2131 static void
__lambda68_(ValadocDocumentationParser * self,GError ** error)2132 __lambda68_ (ValadocDocumentationParser* self,
2133 GError** error)
2134 {
2135 ValadocScanner* _tmp0_;
2136 _tmp0_ = self->priv->_scanner;
2137 valadoc_wiki_scanner_set_url_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), FALSE);
2138 }
2139
2140 static void
___lambda68__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2141 ___lambda68__valadoc_token_type_action (ValadocToken* token,
2142 gpointer self,
2143 GError** error)
2144 {
2145 __lambda68_ ((ValadocDocumentationParser*) self, error);
2146 }
2147
2148 static void
__lambda69_(ValadocDocumentationParser * self,GError ** error)2149 __lambda69_ (ValadocDocumentationParser* self,
2150 GError** error)
2151 {
2152 ValadocContentContentFactory* _tmp0_;
2153 ValadocContentEmbedded* _tmp1_;
2154 ValadocContentEmbedded* _tmp2_;
2155 _tmp0_ = self->priv->_factory;
2156 _tmp1_ = valadoc_content_content_factory_create_embedded (_tmp0_);
2157 _tmp2_ = _tmp1_;
2158 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
2159 _g_object_unref0 (_tmp2_);
2160 }
2161
2162 static void
___lambda69__valadoc_rule_action(gpointer self,GError ** error)2163 ___lambda69__valadoc_rule_action (gpointer self,
2164 GError** error)
2165 {
2166 __lambda69_ ((ValadocDocumentationParser*) self, error);
2167 }
2168
2169 static void
__lambda70_(ValadocDocumentationParser * self,GError ** error)2170 __lambda70_ (ValadocDocumentationParser* self,
2171 GError** error)
2172 {
2173 ValadocScanner* _tmp0_;
2174 _tmp0_ = self->priv->_scanner;
2175 valadoc_wiki_scanner_set_url_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), TRUE);
2176 }
2177
2178 static void
___lambda70__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2179 ___lambda70__valadoc_token_type_action (ValadocToken* token,
2180 gpointer self,
2181 GError** error)
2182 {
2183 __lambda70_ ((ValadocDocumentationParser*) self, error);
2184 }
2185
2186 static void
__lambda71_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2187 __lambda71_ (ValadocDocumentationParser* self,
2188 ValadocToken* token,
2189 GError** error)
2190 {
2191 gchar* url = NULL;
2192 const gchar* _tmp0_;
2193 gchar* _tmp1_;
2194 const gchar* _tmp2_;
2195 g_return_if_fail (token != NULL);
2196 _tmp0_ = valadoc_token_to_string (token);
2197 _tmp1_ = g_strdup (_tmp0_);
2198 url = _tmp1_;
2199 _tmp2_ = url;
2200 if (g_str_has_suffix (_tmp2_, ".valadoc")) {
2201 ValadocContentWikiLink* link = NULL;
2202 ValadocContentContentFactory* _tmp3_;
2203 ValadocContentWikiLink* _tmp4_;
2204 ValadocContentWikiLink* _tmp5_;
2205 const gchar* _tmp6_;
2206 ValadocContentWikiLink* _tmp7_;
2207 _tmp3_ = self->priv->_factory;
2208 _tmp4_ = valadoc_content_content_factory_create_wiki_link (_tmp3_);
2209 link = _tmp4_;
2210 _tmp5_ = link;
2211 _tmp6_ = url;
2212 valadoc_content_wiki_link_set_name (_tmp5_, _tmp6_);
2213 _tmp7_ = link;
2214 valadoc_documentation_parser_push (self, (GObject*) _tmp7_);
2215 _g_object_unref0 (link);
2216 } else {
2217 ValadocContentLink* link = NULL;
2218 ValadocContentContentFactory* _tmp8_;
2219 ValadocContentLink* _tmp9_;
2220 ValadocContentLink* _tmp10_;
2221 const gchar* _tmp11_;
2222 ValadocContentLink* _tmp12_;
2223 _tmp8_ = self->priv->_factory;
2224 _tmp9_ = valadoc_content_content_factory_create_link (_tmp8_);
2225 link = _tmp9_;
2226 _tmp10_ = link;
2227 _tmp11_ = url;
2228 valadoc_content_link_set_url (_tmp10_, _tmp11_);
2229 _tmp12_ = link;
2230 valadoc_documentation_parser_push (self, (GObject*) _tmp12_);
2231 _g_object_unref0 (link);
2232 }
2233 _g_free0 (url);
2234 }
2235
2236 static void
___lambda71__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2237 ___lambda71__valadoc_token_type_action (ValadocToken* token,
2238 gpointer self,
2239 GError** error)
2240 {
2241 __lambda71_ ((ValadocDocumentationParser*) self, token, error);
2242 }
2243
2244 static void
__lambda72_(ValadocDocumentationParser * self,GError ** error)2245 __lambda72_ (ValadocDocumentationParser* self,
2246 GError** error)
2247 {
2248 ValadocScanner* _tmp0_;
2249 _tmp0_ = self->priv->_scanner;
2250 valadoc_wiki_scanner_set_url_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), FALSE);
2251 }
2252
2253 static void
___lambda72__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2254 ___lambda72__valadoc_token_type_action (ValadocToken* token,
2255 gpointer self,
2256 GError** error)
2257 {
2258 __lambda72_ ((ValadocDocumentationParser*) self, error);
2259 }
2260
2261 static void
__lambda73_(ValadocDocumentationParser * self,GError ** error)2262 __lambda73_ (ValadocDocumentationParser* self,
2263 GError** error)
2264 {
2265 ValadocScanner* _tmp0_;
2266 _tmp0_ = self->priv->_scanner;
2267 valadoc_wiki_scanner_set_url_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), FALSE);
2268 }
2269
2270 static void
___lambda73__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2271 ___lambda73__valadoc_token_type_action (ValadocToken* token,
2272 gpointer self,
2273 GError** error)
2274 {
2275 __lambda73_ ((ValadocDocumentationParser*) self, error);
2276 }
2277
2278 static void
__lambda74_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2279 __lambda74_ (ValadocDocumentationParser* self,
2280 ValadocToken* token,
2281 GError** error)
2282 {
2283 ValadocScanner* _tmp0_;
2284 g_return_if_fail (token != NULL);
2285 _tmp0_ = self->priv->_scanner;
2286 valadoc_wiki_scanner_set_code_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), TRUE);
2287 }
2288
2289 static void
___lambda74__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2290 ___lambda74__valadoc_token_type_action (ValadocToken* token,
2291 gpointer self,
2292 GError** error)
2293 {
2294 __lambda74_ ((ValadocDocumentationParser*) self, token, error);
2295 }
2296
2297 static void
__lambda75_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2298 __lambda75_ (ValadocDocumentationParser* self,
2299 ValadocToken* token,
2300 GError** error)
2301 {
2302 GObject* _tmp0_;
2303 ValadocContentSourceCode* _tmp1_;
2304 const gchar* _tmp2_;
2305 g_return_if_fail (token != NULL);
2306 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
2307 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_SOURCE_CODE, ValadocContentSourceCode);
2308 _tmp2_ = valadoc_token_to_string (token);
2309 valadoc_content_source_code_set_code (_tmp1_, _tmp2_);
2310 _g_object_unref0 (_tmp1_);
2311 }
2312
2313 static void
___lambda75__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2314 ___lambda75__valadoc_token_type_action (ValadocToken* token,
2315 gpointer self,
2316 GError** error)
2317 {
2318 __lambda75_ ((ValadocDocumentationParser*) self, token, error);
2319 }
2320
2321 static void
__lambda76_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2322 __lambda76_ (ValadocDocumentationParser* self,
2323 ValadocToken* token,
2324 GError** error)
2325 {
2326 ValadocScanner* _tmp0_;
2327 g_return_if_fail (token != NULL);
2328 _tmp0_ = self->priv->_scanner;
2329 valadoc_wiki_scanner_set_code_escape_mode (G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_TYPE_WIKI_SCANNER, ValadocWikiScanner), FALSE);
2330 }
2331
2332 static void
___lambda76__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2333 ___lambda76__valadoc_token_type_action (ValadocToken* token,
2334 gpointer self,
2335 GError** error)
2336 {
2337 __lambda76_ ((ValadocDocumentationParser*) self, token, error);
2338 }
2339
2340 static void
__lambda77_(ValadocDocumentationParser * self,GError ** error)2341 __lambda77_ (ValadocDocumentationParser* self,
2342 GError** error)
2343 {
2344 ValadocContentContentFactory* _tmp0_;
2345 ValadocContentSourceCode* _tmp1_;
2346 ValadocContentSourceCode* _tmp2_;
2347 _tmp0_ = self->priv->_factory;
2348 _tmp1_ = valadoc_content_content_factory_create_source_code (_tmp0_);
2349 _tmp2_ = _tmp1_;
2350 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
2351 _g_object_unref0 (_tmp2_);
2352 }
2353
2354 static void
___lambda77__valadoc_rule_action(gpointer self,GError ** error)2355 ___lambda77__valadoc_rule_action (gpointer self,
2356 GError** error)
2357 {
2358 __lambda77_ ((ValadocDocumentationParser*) self, error);
2359 }
2360
2361 static void
__lambda78_(ValadocDocumentationParser * self,GError ** error)2362 __lambda78_ (ValadocDocumentationParser* self,
2363 GError** error)
2364 {
2365 ValadocContentInline* head = NULL;
2366 GObject* _tmp0_;
2367 GObject* _tmp1_;
2368 ValadocContentInlineContent* _tmp2_;
2369 ValaList* _tmp3_;
2370 ValaList* _tmp4_;
2371 _tmp0_ = valadoc_documentation_parser_pop (self);
2372 head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_INLINE, ValadocContentInline);
2373 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
2374 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_INLINE_CONTENT, ValadocContentInlineContent);
2375 _tmp3_ = valadoc_content_inline_content_get_content (_tmp2_);
2376 _tmp4_ = _tmp3_;
2377 vala_collection_add ((ValaCollection*) _tmp4_, head);
2378 _g_object_unref0 (_tmp2_);
2379 _g_object_unref0 (head);
2380 }
2381
2382 static void
___lambda78__valadoc_rule_action(gpointer self,GError ** error)2383 ___lambda78__valadoc_rule_action (gpointer self,
2384 GError** error)
2385 {
2386 __lambda78_ ((ValadocDocumentationParser*) self, error);
2387 }
2388
2389 static void
__lambda79_(ValadocDocumentationParser * self,GError ** error)2390 __lambda79_ (ValadocDocumentationParser* self,
2391 GError** error)
2392 {
2393 ValadocContentParagraph* head = NULL;
2394 GObject* _tmp0_;
2395 GObject* _tmp1_;
2396 ValadocContentBlockContent* _tmp2_;
2397 ValaList* _tmp3_;
2398 ValaList* _tmp4_;
2399 ValadocContentParagraph* _tmp5_;
2400 ValadocContentText* last_element = NULL;
2401 ValadocContentParagraph* _tmp6_;
2402 ValaList* _tmp7_;
2403 ValaList* _tmp8_;
2404 gpointer _tmp9_;
2405 ValadocContentInline* _tmp10_;
2406 ValadocContentText* _tmp11_;
2407 ValadocContentText* _tmp12_;
2408 _tmp0_ = valadoc_documentation_parser_pop (self);
2409 head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
2410 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
2411 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2412 _tmp3_ = valadoc_content_block_content_get_content (_tmp2_);
2413 _tmp4_ = _tmp3_;
2414 _tmp5_ = head;
2415 vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentBlock*) _tmp5_);
2416 _g_object_unref0 (_tmp2_);
2417 _tmp6_ = head;
2418 _tmp7_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp6_);
2419 _tmp8_ = _tmp7_;
2420 _tmp9_ = vala_list_last (_tmp8_);
2421 _tmp10_ = (ValadocContentInline*) _tmp9_;
2422 _tmp11_ = VALADOC_CONTENT_IS_TEXT (_tmp10_) ? ((ValadocContentText*) _tmp10_) : NULL;
2423 if (_tmp11_ == NULL) {
2424 _g_object_unref0 (_tmp10_);
2425 }
2426 last_element = _tmp11_;
2427 _tmp12_ = last_element;
2428 if (_tmp12_ != NULL) {
2429 ValadocContentText* _tmp13_;
2430 const gchar* _tmp14_;
2431 const gchar* _tmp15_;
2432 _tmp13_ = last_element;
2433 _tmp14_ = valadoc_content_text_get_content (_tmp13_);
2434 _tmp15_ = _tmp14_;
2435 g_strchomp (_tmp15_);
2436 }
2437 _g_object_unref0 (last_element);
2438 _g_object_unref0 (head);
2439 }
2440
2441 static void
___lambda79__valadoc_rule_action(gpointer self,GError ** error)2442 ___lambda79__valadoc_rule_action (gpointer self,
2443 GError** error)
2444 {
2445 __lambda79_ ((ValadocDocumentationParser*) self, error);
2446 }
2447
2448 static void
__lambda80_(ValadocDocumentationParser * self,GError ** error)2449 __lambda80_ (ValadocDocumentationParser* self,
2450 GError** error)
2451 {
2452 GObject* _tmp0_;
2453 ValadocContentParagraph* _tmp1_;
2454 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
2455 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
2456 valadoc_content_style_attributes_set_horizontal_align ((ValadocContentStyleAttributes*) _tmp1_, VALADOC_CONTENT_HORIZONTAL_ALIGN_CENTER);
2457 _g_object_unref0 (_tmp1_);
2458 }
2459
2460 static void
___lambda80__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2461 ___lambda80__valadoc_token_type_action (ValadocToken* token,
2462 gpointer self,
2463 GError** error)
2464 {
2465 __lambda80_ ((ValadocDocumentationParser*) self, error);
2466 }
2467
2468 static void
__lambda81_(ValadocDocumentationParser * self,GError ** error)2469 __lambda81_ (ValadocDocumentationParser* self,
2470 GError** error)
2471 {
2472 GObject* _tmp0_;
2473 ValadocContentParagraph* _tmp1_;
2474 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
2475 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
2476 valadoc_content_style_attributes_set_horizontal_align ((ValadocContentStyleAttributes*) _tmp1_, VALADOC_CONTENT_HORIZONTAL_ALIGN_RIGHT);
2477 _g_object_unref0 (_tmp1_);
2478 }
2479
2480 static void
___lambda81__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2481 ___lambda81__valadoc_token_type_action (ValadocToken* token,
2482 gpointer self,
2483 GError** error)
2484 {
2485 __lambda81_ ((ValadocDocumentationParser*) self, error);
2486 }
2487
2488 static void
__lambda82_(ValadocDocumentationParser * self,GError ** error)2489 __lambda82_ (ValadocDocumentationParser* self,
2490 GError** error)
2491 {
2492 ValadocContentContentFactory* _tmp0_;
2493 ValadocContentParagraph* _tmp1_;
2494 ValadocContentParagraph* _tmp2_;
2495 _tmp0_ = self->priv->_factory;
2496 _tmp1_ = valadoc_content_content_factory_create_paragraph (_tmp0_);
2497 _tmp2_ = _tmp1_;
2498 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
2499 _g_object_unref0 (_tmp2_);
2500 }
2501
2502 static void
___lambda82__valadoc_rule_action(gpointer self,GError ** error)2503 ___lambda82__valadoc_rule_action (gpointer self,
2504 GError** error)
2505 {
2506 __lambda82_ ((ValadocDocumentationParser*) self, error);
2507 }
2508
2509 static void
__lambda83_(ValadocDocumentationParser * self,GError ** error)2510 __lambda83_ (ValadocDocumentationParser* self,
2511 GError** error)
2512 {
2513 ValadocContentContentFactory* _tmp0_;
2514 ValadocContentParagraph* _tmp1_;
2515 ValadocContentParagraph* _tmp2_;
2516 _tmp0_ = self->priv->_factory;
2517 _tmp1_ = valadoc_content_content_factory_create_paragraph (_tmp0_);
2518 _tmp2_ = _tmp1_;
2519 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
2520 _g_object_unref0 (_tmp2_);
2521 }
2522
2523 static void
___lambda83__valadoc_rule_action(gpointer self,GError ** error)2524 ___lambda83__valadoc_rule_action (gpointer self,
2525 GError** error)
2526 {
2527 __lambda83_ ((ValadocDocumentationParser*) self, error);
2528 }
2529
2530 static void
__lambda84_(ValadocDocumentationParser * self,GError ** error)2531 __lambda84_ (ValadocDocumentationParser* self,
2532 GError** error)
2533 {
2534 ValadocContentWarning* head = NULL;
2535 ValadocContentContentFactory* _tmp0_;
2536 ValadocContentWarning* _tmp1_;
2537 ValadocContentWarning* _tmp2_;
2538 ValaList* _tmp3_;
2539 ValaList* _tmp4_;
2540 GObject* _tmp5_;
2541 ValadocContentParagraph* _tmp6_;
2542 GObject* _tmp7_;
2543 ValadocContentBlockContent* _tmp8_;
2544 ValaList* _tmp9_;
2545 ValaList* _tmp10_;
2546 ValadocContentWarning* _tmp11_;
2547 ValadocContentText* last_element = NULL;
2548 ValadocContentWarning* _tmp12_;
2549 ValaList* _tmp13_;
2550 ValaList* _tmp14_;
2551 gpointer _tmp15_;
2552 ValadocContentBlock* _tmp16_;
2553 ValadocContentText* _tmp17_;
2554 ValadocContentText* _tmp18_;
2555 _tmp0_ = self->priv->_factory;
2556 _tmp1_ = valadoc_content_content_factory_create_warning (_tmp0_);
2557 head = _tmp1_;
2558 _tmp2_ = head;
2559 _tmp3_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp2_);
2560 _tmp4_ = _tmp3_;
2561 _tmp5_ = valadoc_documentation_parser_pop (self);
2562 _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
2563 vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentBlock*) _tmp6_);
2564 _g_object_unref0 (_tmp6_);
2565 _tmp7_ = valadoc_documentation_parser_peek (self, -1);
2566 _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2567 _tmp9_ = valadoc_content_block_content_get_content (_tmp8_);
2568 _tmp10_ = _tmp9_;
2569 _tmp11_ = head;
2570 vala_collection_add ((ValaCollection*) _tmp10_, (ValadocContentBlock*) _tmp11_);
2571 _g_object_unref0 (_tmp8_);
2572 _tmp12_ = head;
2573 _tmp13_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp12_);
2574 _tmp14_ = _tmp13_;
2575 _tmp15_ = vala_list_last (_tmp14_);
2576 _tmp16_ = (ValadocContentBlock*) _tmp15_;
2577 _tmp17_ = VALADOC_CONTENT_IS_TEXT (_tmp16_) ? ((ValadocContentText*) _tmp16_) : NULL;
2578 if (_tmp17_ == NULL) {
2579 _g_object_unref0 (_tmp16_);
2580 }
2581 last_element = _tmp17_;
2582 _tmp18_ = last_element;
2583 if (_tmp18_ != NULL) {
2584 ValadocContentText* _tmp19_;
2585 const gchar* _tmp20_;
2586 const gchar* _tmp21_;
2587 _tmp19_ = last_element;
2588 _tmp20_ = valadoc_content_text_get_content (_tmp19_);
2589 _tmp21_ = _tmp20_;
2590 g_strchomp (_tmp21_);
2591 }
2592 _g_object_unref0 (last_element);
2593 _g_object_unref0 (head);
2594 }
2595
2596 static void
___lambda84__valadoc_rule_action(gpointer self,GError ** error)2597 ___lambda84__valadoc_rule_action (gpointer self,
2598 GError** error)
2599 {
2600 __lambda84_ ((ValadocDocumentationParser*) self, error);
2601 }
2602
2603 static void
__lambda85_(ValadocDocumentationParser * self,GError ** error)2604 __lambda85_ (ValadocDocumentationParser* self,
2605 GError** error)
2606 {
2607 ValadocContentContentFactory* _tmp0_;
2608 ValadocContentParagraph* _tmp1_;
2609 ValadocContentParagraph* _tmp2_;
2610 _tmp0_ = self->priv->_factory;
2611 _tmp1_ = valadoc_content_content_factory_create_paragraph (_tmp0_);
2612 _tmp2_ = _tmp1_;
2613 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
2614 _g_object_unref0 (_tmp2_);
2615 }
2616
2617 static void
___lambda85__valadoc_rule_action(gpointer self,GError ** error)2618 ___lambda85__valadoc_rule_action (gpointer self,
2619 GError** error)
2620 {
2621 __lambda85_ ((ValadocDocumentationParser*) self, error);
2622 }
2623
2624 static void
__lambda86_(ValadocDocumentationParser * self,GError ** error)2625 __lambda86_ (ValadocDocumentationParser* self,
2626 GError** error)
2627 {
2628 ValadocContentNote* head = NULL;
2629 ValadocContentContentFactory* _tmp0_;
2630 ValadocContentNote* _tmp1_;
2631 ValadocContentNote* _tmp2_;
2632 ValaList* _tmp3_;
2633 ValaList* _tmp4_;
2634 GObject* _tmp5_;
2635 ValadocContentParagraph* _tmp6_;
2636 GObject* _tmp7_;
2637 ValadocContentBlockContent* _tmp8_;
2638 ValaList* _tmp9_;
2639 ValaList* _tmp10_;
2640 ValadocContentNote* _tmp11_;
2641 ValadocContentText* last_element = NULL;
2642 ValadocContentNote* _tmp12_;
2643 ValaList* _tmp13_;
2644 ValaList* _tmp14_;
2645 gpointer _tmp15_;
2646 ValadocContentBlock* _tmp16_;
2647 ValadocContentText* _tmp17_;
2648 ValadocContentText* _tmp18_;
2649 _tmp0_ = self->priv->_factory;
2650 _tmp1_ = valadoc_content_content_factory_create_note (_tmp0_);
2651 head = _tmp1_;
2652 _tmp2_ = head;
2653 _tmp3_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp2_);
2654 _tmp4_ = _tmp3_;
2655 _tmp5_ = valadoc_documentation_parser_pop (self);
2656 _tmp6_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
2657 vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentBlock*) _tmp6_);
2658 _g_object_unref0 (_tmp6_);
2659 _tmp7_ = valadoc_documentation_parser_peek (self, -1);
2660 _tmp8_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp7_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2661 _tmp9_ = valadoc_content_block_content_get_content (_tmp8_);
2662 _tmp10_ = _tmp9_;
2663 _tmp11_ = head;
2664 vala_collection_add ((ValaCollection*) _tmp10_, (ValadocContentBlock*) _tmp11_);
2665 _g_object_unref0 (_tmp8_);
2666 _tmp12_ = head;
2667 _tmp13_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp12_);
2668 _tmp14_ = _tmp13_;
2669 _tmp15_ = vala_list_last (_tmp14_);
2670 _tmp16_ = (ValadocContentBlock*) _tmp15_;
2671 _tmp17_ = VALADOC_CONTENT_IS_TEXT (_tmp16_) ? ((ValadocContentText*) _tmp16_) : NULL;
2672 if (_tmp17_ == NULL) {
2673 _g_object_unref0 (_tmp16_);
2674 }
2675 last_element = _tmp17_;
2676 _tmp18_ = last_element;
2677 if (_tmp18_ != NULL) {
2678 ValadocContentText* _tmp19_;
2679 const gchar* _tmp20_;
2680 const gchar* _tmp21_;
2681 _tmp19_ = last_element;
2682 _tmp20_ = valadoc_content_text_get_content (_tmp19_);
2683 _tmp21_ = _tmp20_;
2684 g_strchomp (_tmp21_);
2685 }
2686 _g_object_unref0 (last_element);
2687 _g_object_unref0 (head);
2688 }
2689
2690 static void
___lambda86__valadoc_rule_action(gpointer self,GError ** error)2691 ___lambda86__valadoc_rule_action (gpointer self,
2692 GError** error)
2693 {
2694 __lambda86_ ((ValadocDocumentationParser*) self, error);
2695 }
2696
2697 static void
__lambda87_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2698 __lambda87_ (ValadocDocumentationParser* self,
2699 ValadocToken* token,
2700 GError** error)
2701 {
2702 gint _tmp0_;
2703 g_return_if_fail (token != NULL);
2704 _tmp0_ = self->priv->current_level;
2705 self->priv->current_level = _tmp0_ + 1;
2706 }
2707
2708 static void
___lambda87__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2709 ___lambda87__valadoc_token_type_action (ValadocToken* token,
2710 gpointer self,
2711 GError** error)
2712 {
2713 __lambda87_ ((ValadocDocumentationParser*) self, token, error);
2714 }
2715
2716 static void
__lambda88_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2717 __lambda88_ (ValadocDocumentationParser* self,
2718 ValadocToken* token,
2719 GError** error)
2720 {
2721 GError* _inner_error0_ = NULL;
2722 g_return_if_fail (token != NULL);
2723 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_NONE, &_inner_error0_);
2724 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2725 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2726 g_propagate_error (error, _inner_error0_);
2727 return;
2728 } else {
2729 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2730 g_clear_error (&_inner_error0_);
2731 return;
2732 }
2733 }
2734 }
2735
2736 static void
___lambda88__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2737 ___lambda88__valadoc_token_type_action (ValadocToken* token,
2738 gpointer self,
2739 GError** error)
2740 {
2741 __lambda88_ ((ValadocDocumentationParser*) self, token, error);
2742 }
2743
2744 static void
__lambda89_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2745 __lambda89_ (ValadocDocumentationParser* self,
2746 ValadocToken* token,
2747 GError** error)
2748 {
2749 GError* _inner_error0_ = NULL;
2750 g_return_if_fail (token != NULL);
2751 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_UNORDERED, &_inner_error0_);
2752 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2753 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2754 g_propagate_error (error, _inner_error0_);
2755 return;
2756 } else {
2757 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2758 g_clear_error (&_inner_error0_);
2759 return;
2760 }
2761 }
2762 }
2763
2764 static void
___lambda89__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2765 ___lambda89__valadoc_token_type_action (ValadocToken* token,
2766 gpointer self,
2767 GError** error)
2768 {
2769 __lambda89_ ((ValadocDocumentationParser*) self, token, error);
2770 }
2771
2772 static void
__lambda90_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2773 __lambda90_ (ValadocDocumentationParser* self,
2774 ValadocToken* token,
2775 GError** error)
2776 {
2777 GError* _inner_error0_ = NULL;
2778 g_return_if_fail (token != NULL);
2779 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_ORDERED, &_inner_error0_);
2780 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2781 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2782 g_propagate_error (error, _inner_error0_);
2783 return;
2784 } else {
2785 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2786 g_clear_error (&_inner_error0_);
2787 return;
2788 }
2789 }
2790 }
2791
2792 static void
___lambda90__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2793 ___lambda90__valadoc_token_type_action (ValadocToken* token,
2794 gpointer self,
2795 GError** error)
2796 {
2797 __lambda90_ ((ValadocDocumentationParser*) self, token, error);
2798 }
2799
2800 static void
__lambda91_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2801 __lambda91_ (ValadocDocumentationParser* self,
2802 ValadocToken* token,
2803 GError** error)
2804 {
2805 GError* _inner_error0_ = NULL;
2806 g_return_if_fail (token != NULL);
2807 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_ORDERED_NUMBER, &_inner_error0_);
2808 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2809 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2810 g_propagate_error (error, _inner_error0_);
2811 return;
2812 } else {
2813 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2814 g_clear_error (&_inner_error0_);
2815 return;
2816 }
2817 }
2818 }
2819
2820 static void
___lambda91__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2821 ___lambda91__valadoc_token_type_action (ValadocToken* token,
2822 gpointer self,
2823 GError** error)
2824 {
2825 __lambda91_ ((ValadocDocumentationParser*) self, token, error);
2826 }
2827
2828 static void
__lambda92_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2829 __lambda92_ (ValadocDocumentationParser* self,
2830 ValadocToken* token,
2831 GError** error)
2832 {
2833 GError* _inner_error0_ = NULL;
2834 g_return_if_fail (token != NULL);
2835 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_ORDERED_LOWER_CASE_ALPHA, &_inner_error0_);
2836 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2837 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2838 g_propagate_error (error, _inner_error0_);
2839 return;
2840 } else {
2841 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2842 g_clear_error (&_inner_error0_);
2843 return;
2844 }
2845 }
2846 }
2847
2848 static void
___lambda92__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2849 ___lambda92__valadoc_token_type_action (ValadocToken* token,
2850 gpointer self,
2851 GError** error)
2852 {
2853 __lambda92_ ((ValadocDocumentationParser*) self, token, error);
2854 }
2855
2856 static void
__lambda93_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2857 __lambda93_ (ValadocDocumentationParser* self,
2858 ValadocToken* token,
2859 GError** error)
2860 {
2861 GError* _inner_error0_ = NULL;
2862 g_return_if_fail (token != NULL);
2863 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_ORDERED_UPPER_CASE_ALPHA, &_inner_error0_);
2864 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2865 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2866 g_propagate_error (error, _inner_error0_);
2867 return;
2868 } else {
2869 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2870 g_clear_error (&_inner_error0_);
2871 return;
2872 }
2873 }
2874 }
2875
2876 static void
___lambda93__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2877 ___lambda93__valadoc_token_type_action (ValadocToken* token,
2878 gpointer self,
2879 GError** error)
2880 {
2881 __lambda93_ ((ValadocDocumentationParser*) self, token, error);
2882 }
2883
2884 static void
__lambda94_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2885 __lambda94_ (ValadocDocumentationParser* self,
2886 ValadocToken* token,
2887 GError** error)
2888 {
2889 GError* _inner_error0_ = NULL;
2890 g_return_if_fail (token != NULL);
2891 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_ORDERED_LOWER_CASE_ROMAN, &_inner_error0_);
2892 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2893 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2894 g_propagate_error (error, _inner_error0_);
2895 return;
2896 } else {
2897 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2898 g_clear_error (&_inner_error0_);
2899 return;
2900 }
2901 }
2902 }
2903
2904 static void
___lambda94__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2905 ___lambda94__valadoc_token_type_action (ValadocToken* token,
2906 gpointer self,
2907 GError** error)
2908 {
2909 __lambda94_ ((ValadocDocumentationParser*) self, token, error);
2910 }
2911
2912 static void
__lambda95_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)2913 __lambda95_ (ValadocDocumentationParser* self,
2914 ValadocToken* token,
2915 GError** error)
2916 {
2917 GError* _inner_error0_ = NULL;
2918 g_return_if_fail (token != NULL);
2919 valadoc_documentation_parser_new_list_item (self, VALADOC_CONTENT_LIST_BULLET_ORDERED_UPPER_CASE_ROMAN, &_inner_error0_);
2920 if (G_UNLIKELY (_inner_error0_ != NULL)) {
2921 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
2922 g_propagate_error (error, _inner_error0_);
2923 return;
2924 } else {
2925 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
2926 g_clear_error (&_inner_error0_);
2927 return;
2928 }
2929 }
2930 }
2931
2932 static void
___lambda95__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2933 ___lambda95__valadoc_token_type_action (ValadocToken* token,
2934 gpointer self,
2935 GError** error)
2936 {
2937 __lambda95_ ((ValadocDocumentationParser*) self, token, error);
2938 }
2939
2940 static void
__lambda96_(ValadocDocumentationParser * self,GError ** error)2941 __lambda96_ (ValadocDocumentationParser* self,
2942 GError** error)
2943 {
2944 ValadocContentParagraph* content = NULL;
2945 ValadocContentContentFactory* _tmp0_;
2946 ValadocContentParagraph* _tmp1_;
2947 GObject* _tmp2_;
2948 ValadocContentBlockContent* _tmp3_;
2949 ValaList* _tmp4_;
2950 ValaList* _tmp5_;
2951 _tmp0_ = self->priv->_factory;
2952 _tmp1_ = valadoc_content_content_factory_create_paragraph (_tmp0_);
2953 content = _tmp1_;
2954 _tmp2_ = valadoc_documentation_parser_peek (self, -1);
2955 _tmp3_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp2_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2956 _tmp4_ = valadoc_content_block_content_get_content (_tmp3_);
2957 _tmp5_ = _tmp4_;
2958 vala_collection_add ((ValaCollection*) _tmp5_, (ValadocContentBlock*) content);
2959 _g_object_unref0 (_tmp3_);
2960 valadoc_documentation_parser_push (self, (GObject*) content);
2961 _g_object_unref0 (content);
2962 }
2963
2964 static void
___lambda96__valadoc_rule_action(gpointer self,GError ** error)2965 ___lambda96__valadoc_rule_action (gpointer self,
2966 GError** error)
2967 {
2968 __lambda96_ ((ValadocDocumentationParser*) self, error);
2969 }
2970
2971 static void
__lambda97_(ValadocDocumentationParser * self,GError ** error)2972 __lambda97_ (ValadocDocumentationParser* self,
2973 GError** error)
2974 {
2975 GObject* _tmp0_;
2976 GObject* _tmp1_;
2977 _tmp0_ = valadoc_documentation_parser_pop (self);
2978 _tmp1_ = _tmp0_;
2979 _g_object_unref0 (_tmp1_);
2980 }
2981
2982 static void
___lambda97__valadoc_rule_action(gpointer self,GError ** error)2983 ___lambda97__valadoc_rule_action (gpointer self,
2984 GError** error)
2985 {
2986 __lambda97_ ((ValadocDocumentationParser*) self, error);
2987 }
2988
2989 static void
__lambda98_(ValadocDocumentationParser * self,GError ** error)2990 __lambda98_ (ValadocDocumentationParser* self,
2991 GError** error)
2992 {
2993 self->priv->current_level = 0;
2994 }
2995
2996 static void
___lambda98__valadoc_rule_action(gpointer self,GError ** error)2997 ___lambda98__valadoc_rule_action (gpointer self,
2998 GError** error)
2999 {
3000 __lambda98_ ((ValadocDocumentationParser*) self, error);
3001 }
3002
3003 static gpointer
_vala_iterable_ref0(gpointer self)3004 _vala_iterable_ref0 (gpointer self)
3005 {
3006 return self ? vala_iterable_ref (self) : NULL;
3007 }
3008
3009 static void
__lambda99_(ValadocDocumentationParser * self,GError ** error)3010 __lambda99_ (ValadocDocumentationParser* self,
3011 GError** error)
3012 {
3013 ValaList* content_list = NULL;
3014 GObject* _tmp0_;
3015 ValadocContentBlockContent* _tmp1_;
3016 ValaList* _tmp2_;
3017 ValaList* _tmp3_;
3018 ValaList* _tmp4_;
3019 ValaList* _tmp5_;
3020 gboolean _tmp6_ = FALSE;
3021 ValaList* _tmp7_;
3022 gint _tmp8_;
3023 gint _tmp9_;
3024 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3025 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
3026 _tmp2_ = valadoc_content_block_content_get_content (_tmp1_);
3027 _tmp3_ = _tmp2_;
3028 _tmp4_ = _vala_iterable_ref0 (_tmp3_);
3029 _tmp5_ = _tmp4_;
3030 _g_object_unref0 (_tmp1_);
3031 content_list = _tmp5_;
3032 _tmp7_ = content_list;
3033 _tmp8_ = vala_collection_get_size ((ValaCollection*) _tmp7_);
3034 _tmp9_ = _tmp8_;
3035 if (_tmp9_ > 0) {
3036 ValaList* _tmp10_;
3037 gpointer _tmp11_;
3038 ValadocContentBlock* _tmp12_;
3039 _tmp10_ = content_list;
3040 _tmp11_ = vala_list_last (_tmp10_);
3041 _tmp12_ = (ValadocContentBlock*) _tmp11_;
3042 _tmp6_ = VALADOC_CONTENT_IS_TEXT (_tmp12_);
3043 _g_object_unref0 (_tmp12_);
3044 } else {
3045 _tmp6_ = FALSE;
3046 }
3047 if (_tmp6_) {
3048 ValaList* _tmp13_;
3049 gpointer _tmp14_;
3050 ValadocContentText* _tmp15_;
3051 const gchar* _tmp16_;
3052 const gchar* _tmp17_;
3053 _tmp13_ = content_list;
3054 _tmp14_ = vala_list_last (_tmp13_);
3055 _tmp15_ = G_TYPE_CHECK_INSTANCE_CAST ((ValadocContentBlock*) _tmp14_, VALADOC_CONTENT_TYPE_TEXT, ValadocContentText);
3056 _tmp16_ = valadoc_content_text_get_content (_tmp15_);
3057 _tmp17_ = _tmp16_;
3058 g_strchomp (_tmp17_);
3059 _g_object_unref0 (_tmp15_);
3060 }
3061 _vala_iterable_unref0 (content_list);
3062 }
3063
3064 static void
___lambda99__valadoc_rule_action(gpointer self,GError ** error)3065 ___lambda99__valadoc_rule_action (gpointer self,
3066 GError** error)
3067 {
3068 __lambda99_ ((ValadocDocumentationParser*) self, error);
3069 }
3070
3071 static void
__lambda100_(ValadocDocumentationParser * self,GError ** error)3072 __lambda100_ (ValadocDocumentationParser* self,
3073 GError** error)
3074 {
3075 valadoc_documentation_parser_finish_list (self);
3076 }
3077
3078 static void
___lambda100__valadoc_rule_action(gpointer self,GError ** error)3079 ___lambda100__valadoc_rule_action (gpointer self,
3080 GError** error)
3081 {
3082 __lambda100_ ((ValadocDocumentationParser*) self, error);
3083 }
3084
3085 static void
__lambda101_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3086 __lambda101_ (ValadocDocumentationParser* self,
3087 ValadocToken* token,
3088 GError** error)
3089 {
3090 GObject* _tmp0_;
3091 ValadocContentTableCell* _tmp1_;
3092 g_return_if_fail (token != NULL);
3093 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3094 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3095 valadoc_content_style_attributes_set_horizontal_align ((ValadocContentStyleAttributes*) _tmp1_, VALADOC_CONTENT_HORIZONTAL_ALIGN_RIGHT);
3096 _g_object_unref0 (_tmp1_);
3097 }
3098
3099 static void
___lambda101__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3100 ___lambda101__valadoc_token_type_action (ValadocToken* token,
3101 gpointer self,
3102 GError** error)
3103 {
3104 __lambda101_ ((ValadocDocumentationParser*) self, token, error);
3105 }
3106
3107 static void
__lambda102_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3108 __lambda102_ (ValadocDocumentationParser* self,
3109 ValadocToken* token,
3110 GError** error)
3111 {
3112 GObject* _tmp0_;
3113 ValadocContentTableCell* _tmp1_;
3114 g_return_if_fail (token != NULL);
3115 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3116 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3117 valadoc_content_style_attributes_set_horizontal_align ((ValadocContentStyleAttributes*) _tmp1_, VALADOC_CONTENT_HORIZONTAL_ALIGN_CENTER);
3118 _g_object_unref0 (_tmp1_);
3119 }
3120
3121 static void
___lambda102__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3122 ___lambda102__valadoc_token_type_action (ValadocToken* token,
3123 gpointer self,
3124 GError** error)
3125 {
3126 __lambda102_ ((ValadocDocumentationParser*) self, token, error);
3127 }
3128
3129 static void
__lambda103_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3130 __lambda103_ (ValadocDocumentationParser* self,
3131 ValadocToken* token,
3132 GError** error)
3133 {
3134 GObject* _tmp0_;
3135 ValadocContentTableCell* _tmp1_;
3136 g_return_if_fail (token != NULL);
3137 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3138 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3139 valadoc_content_style_attributes_set_vertical_align ((ValadocContentStyleAttributes*) _tmp1_, VALADOC_CONTENT_VERTICAL_ALIGN_TOP);
3140 _g_object_unref0 (_tmp1_);
3141 }
3142
3143 static void
___lambda103__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3144 ___lambda103__valadoc_token_type_action (ValadocToken* token,
3145 gpointer self,
3146 GError** error)
3147 {
3148 __lambda103_ ((ValadocDocumentationParser*) self, token, error);
3149 }
3150
3151 static void
__lambda104_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3152 __lambda104_ (ValadocDocumentationParser* self,
3153 ValadocToken* token,
3154 GError** error)
3155 {
3156 GObject* _tmp0_;
3157 ValadocContentTableCell* _tmp1_;
3158 g_return_if_fail (token != NULL);
3159 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3160 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3161 valadoc_content_style_attributes_set_vertical_align ((ValadocContentStyleAttributes*) _tmp1_, VALADOC_CONTENT_VERTICAL_ALIGN_BOTTOM);
3162 _g_object_unref0 (_tmp1_);
3163 }
3164
3165 static void
___lambda104__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3166 ___lambda104__valadoc_token_type_action (ValadocToken* token,
3167 gpointer self,
3168 GError** error)
3169 {
3170 __lambda104_ ((ValadocDocumentationParser*) self, token, error);
3171 }
3172
3173 static void
__lambda105_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3174 __lambda105_ (ValadocDocumentationParser* self,
3175 ValadocToken* token,
3176 GError** error)
3177 {
3178 GObject* _tmp0_;
3179 ValadocContentTableCell* _tmp1_;
3180 const gchar* _tmp2_;
3181 g_return_if_fail (token != NULL);
3182 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3183 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3184 _tmp2_ = valadoc_token_to_string (token);
3185 valadoc_content_style_attributes_set_style ((ValadocContentStyleAttributes*) _tmp1_, _tmp2_);
3186 _g_object_unref0 (_tmp1_);
3187 }
3188
3189 static void
___lambda105__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3190 ___lambda105__valadoc_token_type_action (ValadocToken* token,
3191 gpointer self,
3192 GError** error)
3193 {
3194 __lambda105_ ((ValadocDocumentationParser*) self, token, error);
3195 }
3196
3197 static void
__lambda106_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3198 __lambda106_ (ValadocDocumentationParser* self,
3199 ValadocToken* token,
3200 GError** error)
3201 {
3202 GObject* _tmp0_;
3203 ValadocContentTableCell* _tmp1_;
3204 g_return_if_fail (token != NULL);
3205 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3206 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3207 valadoc_content_table_cell_set_rowspan (_tmp1_, valadoc_token_to_int (token));
3208 _g_object_unref0 (_tmp1_);
3209 }
3210
3211 static void
___lambda106__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3212 ___lambda106__valadoc_token_type_action (ValadocToken* token,
3213 gpointer self,
3214 GError** error)
3215 {
3216 __lambda106_ ((ValadocDocumentationParser*) self, token, error);
3217 }
3218
3219 static void
__lambda107_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3220 __lambda107_ (ValadocDocumentationParser* self,
3221 ValadocToken* token,
3222 GError** error)
3223 {
3224 GObject* _tmp0_;
3225 ValadocContentTableCell* _tmp1_;
3226 g_return_if_fail (token != NULL);
3227 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3228 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3229 valadoc_content_table_cell_set_colspan (_tmp1_, valadoc_token_to_int (token));
3230 _g_object_unref0 (_tmp1_);
3231 }
3232
3233 static void
___lambda107__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3234 ___lambda107__valadoc_token_type_action (ValadocToken* token,
3235 gpointer self,
3236 GError** error)
3237 {
3238 __lambda107_ ((ValadocDocumentationParser*) self, token, error);
3239 }
3240
3241 static void
__lambda108_(ValadocDocumentationParser * self,GError ** error)3242 __lambda108_ (ValadocDocumentationParser* self,
3243 GError** error)
3244 {
3245 ValadocContentContentFactory* _tmp0_;
3246 ValadocContentTableCell* _tmp1_;
3247 ValadocContentTableCell* _tmp2_;
3248 _tmp0_ = self->priv->_factory;
3249 _tmp1_ = valadoc_content_content_factory_create_table_cell (_tmp0_);
3250 _tmp2_ = _tmp1_;
3251 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3252 _g_object_unref0 (_tmp2_);
3253 }
3254
3255 static void
___lambda108__valadoc_rule_action(gpointer self,GError ** error)3256 ___lambda108__valadoc_rule_action (gpointer self,
3257 GError** error)
3258 {
3259 __lambda108_ ((ValadocDocumentationParser*) self, error);
3260 }
3261
3262 static void
__lambda109_(ValadocDocumentationParser * self,GError ** error)3263 __lambda109_ (ValadocDocumentationParser* self,
3264 GError** error)
3265 {
3266 ValadocContentTableCell* head = NULL;
3267 GObject* _tmp0_;
3268 GObject* _tmp1_;
3269 ValadocContentTableRow* _tmp2_;
3270 ValaList* _tmp3_;
3271 ValaList* _tmp4_;
3272 ValadocContentTableCell* _tmp5_;
3273 gboolean _tmp6_ = FALSE;
3274 ValadocContentTableCell* _tmp7_;
3275 ValaList* _tmp8_;
3276 ValaList* _tmp9_;
3277 gint _tmp10_;
3278 gint _tmp11_;
3279 _tmp0_ = valadoc_documentation_parser_pop (self);
3280 head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_CELL, ValadocContentTableCell);
3281 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
3282 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_TABLE_ROW, ValadocContentTableRow);
3283 _tmp3_ = valadoc_content_table_row_get_cells (_tmp2_);
3284 _tmp4_ = _tmp3_;
3285 _tmp5_ = head;
3286 vala_collection_add ((ValaCollection*) _tmp4_, _tmp5_);
3287 _g_object_unref0 (_tmp2_);
3288 _tmp7_ = head;
3289 _tmp8_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp7_);
3290 _tmp9_ = _tmp8_;
3291 _tmp10_ = vala_collection_get_size ((ValaCollection*) _tmp9_);
3292 _tmp11_ = _tmp10_;
3293 if (_tmp11_ > 0) {
3294 ValadocContentTableCell* _tmp12_;
3295 ValaList* _tmp13_;
3296 ValaList* _tmp14_;
3297 gpointer _tmp15_;
3298 ValadocContentInline* _tmp16_;
3299 _tmp12_ = head;
3300 _tmp13_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp12_);
3301 _tmp14_ = _tmp13_;
3302 _tmp15_ = vala_list_last (_tmp14_);
3303 _tmp16_ = (ValadocContentInline*) _tmp15_;
3304 _tmp6_ = VALADOC_CONTENT_IS_TEXT (_tmp16_);
3305 _g_object_unref0 (_tmp16_);
3306 } else {
3307 _tmp6_ = FALSE;
3308 }
3309 if (_tmp6_) {
3310 ValadocContentTableCell* _tmp17_;
3311 ValaList* _tmp18_;
3312 ValaList* _tmp19_;
3313 gpointer _tmp20_;
3314 ValadocContentText* _tmp21_;
3315 const gchar* _tmp22_;
3316 const gchar* _tmp23_;
3317 _tmp17_ = head;
3318 _tmp18_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp17_);
3319 _tmp19_ = _tmp18_;
3320 _tmp20_ = vala_list_last (_tmp19_);
3321 _tmp21_ = G_TYPE_CHECK_INSTANCE_CAST ((ValadocContentInline*) _tmp20_, VALADOC_CONTENT_TYPE_TEXT, ValadocContentText);
3322 _tmp22_ = valadoc_content_text_get_content (_tmp21_);
3323 _tmp23_ = _tmp22_;
3324 g_strchomp (_tmp23_);
3325 _g_object_unref0 (_tmp21_);
3326 }
3327 _g_object_unref0 (head);
3328 }
3329
3330 static void
___lambda109__valadoc_rule_action(gpointer self,GError ** error)3331 ___lambda109__valadoc_rule_action (gpointer self,
3332 GError** error)
3333 {
3334 __lambda109_ ((ValadocDocumentationParser*) self, error);
3335 }
3336
3337 static void
__lambda110_(ValadocDocumentationParser * self,GError ** error)3338 __lambda110_ (ValadocDocumentationParser* self,
3339 GError** error)
3340 {
3341 ValadocContentContentFactory* _tmp0_;
3342 ValadocContentTableRow* _tmp1_;
3343 ValadocContentTableRow* _tmp2_;
3344 _tmp0_ = self->priv->_factory;
3345 _tmp1_ = valadoc_content_content_factory_create_table_row (_tmp0_);
3346 _tmp2_ = _tmp1_;
3347 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3348 _g_object_unref0 (_tmp2_);
3349 }
3350
3351 static void
___lambda110__valadoc_rule_action(gpointer self,GError ** error)3352 ___lambda110__valadoc_rule_action (gpointer self,
3353 GError** error)
3354 {
3355 __lambda110_ ((ValadocDocumentationParser*) self, error);
3356 }
3357
3358 static void
__lambda111_(ValadocDocumentationParser * self,GError ** error)3359 __lambda111_ (ValadocDocumentationParser* self,
3360 GError** error)
3361 {
3362 ValadocContentTableRow* head = NULL;
3363 GObject* _tmp0_;
3364 GObject* _tmp1_;
3365 ValadocContentTable* _tmp2_;
3366 ValaList* _tmp3_;
3367 ValaList* _tmp4_;
3368 _tmp0_ = valadoc_documentation_parser_pop (self);
3369 head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TABLE_ROW, ValadocContentTableRow);
3370 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
3371 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_TABLE, ValadocContentTable);
3372 _tmp3_ = valadoc_content_table_get_rows (_tmp2_);
3373 _tmp4_ = _tmp3_;
3374 vala_collection_add ((ValaCollection*) _tmp4_, head);
3375 _g_object_unref0 (_tmp2_);
3376 _g_object_unref0 (head);
3377 }
3378
3379 static void
___lambda111__valadoc_rule_action(gpointer self,GError ** error)3380 ___lambda111__valadoc_rule_action (gpointer self,
3381 GError** error)
3382 {
3383 __lambda111_ ((ValadocDocumentationParser*) self, error);
3384 }
3385
3386 static void
__lambda112_(ValadocDocumentationParser * self,GError ** error)3387 __lambda112_ (ValadocDocumentationParser* self,
3388 GError** error)
3389 {
3390 ValadocContentContentFactory* _tmp0_;
3391 ValadocContentTable* _tmp1_;
3392 ValadocContentTable* _tmp2_;
3393 _tmp0_ = self->priv->_factory;
3394 _tmp1_ = valadoc_content_content_factory_create_table (_tmp0_);
3395 _tmp2_ = _tmp1_;
3396 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3397 _g_object_unref0 (_tmp2_);
3398 }
3399
3400 static void
___lambda112__valadoc_rule_action(gpointer self,GError ** error)3401 ___lambda112__valadoc_rule_action (gpointer self,
3402 GError** error)
3403 {
3404 __lambda112_ ((ValadocDocumentationParser*) self, error);
3405 }
3406
3407 static void
__lambda113_(ValadocDocumentationParser * self,GError ** error)3408 __lambda113_ (ValadocDocumentationParser* self,
3409 GError** error)
3410 {
3411 ValadocContentBlock* head = NULL;
3412 GObject* _tmp0_;
3413 GObject* _tmp1_;
3414 ValadocContentBlockContent* _tmp2_;
3415 ValaList* _tmp3_;
3416 ValaList* _tmp4_;
3417 _tmp0_ = valadoc_documentation_parser_pop (self);
3418 head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_BLOCK, ValadocContentBlock);
3419 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
3420 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
3421 _tmp3_ = valadoc_content_block_content_get_content (_tmp2_);
3422 _tmp4_ = _tmp3_;
3423 vala_collection_add ((ValaCollection*) _tmp4_, head);
3424 _g_object_unref0 (_tmp2_);
3425 _g_object_unref0 (head);
3426 }
3427
3428 static void
___lambda113__valadoc_rule_action(gpointer self,GError ** error)3429 ___lambda113__valadoc_rule_action (gpointer self,
3430 GError** error)
3431 {
3432 __lambda113_ ((ValadocDocumentationParser*) self, error);
3433 }
3434
3435 static void
__lambda114_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3436 __lambda114_ (ValadocDocumentationParser* self,
3437 ValadocToken* token,
3438 GError** error)
3439 {
3440 GObject* _tmp0_;
3441 ValadocContentHeadline* _tmp1_;
3442 g_return_if_fail (token != NULL);
3443 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3444 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
3445 valadoc_content_headline_set_level (_tmp1_, 1);
3446 _g_object_unref0 (_tmp1_);
3447 }
3448
3449 static void
___lambda114__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3450 ___lambda114__valadoc_token_type_action (ValadocToken* token,
3451 gpointer self,
3452 GError** error)
3453 {
3454 __lambda114_ ((ValadocDocumentationParser*) self, token, error);
3455 }
3456
3457 static void
__lambda115_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3458 __lambda115_ (ValadocDocumentationParser* self,
3459 ValadocToken* token,
3460 GError** error)
3461 {
3462 GObject* _tmp0_;
3463 ValadocContentHeadline* _tmp1_;
3464 g_return_if_fail (token != NULL);
3465 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3466 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
3467 valadoc_content_headline_set_level (_tmp1_, 2);
3468 _g_object_unref0 (_tmp1_);
3469 }
3470
3471 static void
___lambda115__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3472 ___lambda115__valadoc_token_type_action (ValadocToken* token,
3473 gpointer self,
3474 GError** error)
3475 {
3476 __lambda115_ ((ValadocDocumentationParser*) self, token, error);
3477 }
3478
3479 static void
__lambda116_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3480 __lambda116_ (ValadocDocumentationParser* self,
3481 ValadocToken* token,
3482 GError** error)
3483 {
3484 GObject* _tmp0_;
3485 ValadocContentHeadline* _tmp1_;
3486 g_return_if_fail (token != NULL);
3487 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3488 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
3489 valadoc_content_headline_set_level (_tmp1_, 3);
3490 _g_object_unref0 (_tmp1_);
3491 }
3492
3493 static void
___lambda116__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3494 ___lambda116__valadoc_token_type_action (ValadocToken* token,
3495 gpointer self,
3496 GError** error)
3497 {
3498 __lambda116_ ((ValadocDocumentationParser*) self, token, error);
3499 }
3500
3501 static void
__lambda117_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3502 __lambda117_ (ValadocDocumentationParser* self,
3503 ValadocToken* token,
3504 GError** error)
3505 {
3506 GObject* _tmp0_;
3507 ValadocContentHeadline* _tmp1_;
3508 g_return_if_fail (token != NULL);
3509 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3510 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
3511 valadoc_content_headline_set_level (_tmp1_, 4);
3512 _g_object_unref0 (_tmp1_);
3513 }
3514
3515 static void
___lambda117__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3516 ___lambda117__valadoc_token_type_action (ValadocToken* token,
3517 gpointer self,
3518 GError** error)
3519 {
3520 __lambda117_ ((ValadocDocumentationParser*) self, token, error);
3521 }
3522
3523 static void
__lambda118_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3524 __lambda118_ (ValadocDocumentationParser* self,
3525 ValadocToken* token,
3526 GError** error)
3527 {
3528 GObject* _tmp0_;
3529 ValadocContentHeadline* _tmp1_;
3530 g_return_if_fail (token != NULL);
3531 _tmp0_ = valadoc_documentation_parser_peek (self, -1);
3532 _tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
3533 valadoc_content_headline_set_level (_tmp1_, 5);
3534 _g_object_unref0 (_tmp1_);
3535 }
3536
3537 static void
___lambda118__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3538 ___lambda118__valadoc_token_type_action (ValadocToken* token,
3539 gpointer self,
3540 GError** error)
3541 {
3542 __lambda118_ ((ValadocDocumentationParser*) self, token, error);
3543 }
3544
3545 static void
__lambda119_(ValadocDocumentationParser * self,GError ** error)3546 __lambda119_ (ValadocDocumentationParser* self,
3547 GError** error)
3548 {
3549 ValadocContentContentFactory* _tmp0_;
3550 ValadocContentHeadline* _tmp1_;
3551 ValadocContentHeadline* _tmp2_;
3552 _tmp0_ = self->priv->_factory;
3553 _tmp1_ = valadoc_content_content_factory_create_headline (_tmp0_);
3554 _tmp2_ = _tmp1_;
3555 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3556 _g_object_unref0 (_tmp2_);
3557 }
3558
3559 static void
___lambda119__valadoc_rule_action(gpointer self,GError ** error)3560 ___lambda119__valadoc_rule_action (gpointer self,
3561 GError** error)
3562 {
3563 __lambda119_ ((ValadocDocumentationParser*) self, error);
3564 }
3565
3566 static void
__lambda120_(ValadocDocumentationParser * self,GError ** error)3567 __lambda120_ (ValadocDocumentationParser* self,
3568 GError** error)
3569 {
3570 ValadocContentBlock* head = NULL;
3571 GObject* _tmp0_;
3572 GObject* _tmp1_;
3573 ValadocContentBlockContent* _tmp2_;
3574 ValaList* _tmp3_;
3575 ValaList* _tmp4_;
3576 _tmp0_ = valadoc_documentation_parser_pop (self);
3577 head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_BLOCK, ValadocContentBlock);
3578 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
3579 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
3580 _tmp3_ = valadoc_content_block_content_get_content (_tmp2_);
3581 _tmp4_ = _tmp3_;
3582 vala_collection_add ((ValaCollection*) _tmp4_, head);
3583 _g_object_unref0 (_tmp2_);
3584 _g_object_unref0 (head);
3585 }
3586
3587 static void
___lambda120__valadoc_rule_action(gpointer self,GError ** error)3588 ___lambda120__valadoc_rule_action (gpointer self,
3589 GError** error)
3590 {
3591 __lambda120_ ((ValadocDocumentationParser*) self, error);
3592 }
3593
3594 static void
__lambda121_(ValadocDocumentationParser * self,GError ** error)3595 __lambda121_ (ValadocDocumentationParser* self,
3596 GError** error)
3597 {
3598 ValadocContentContentFactory* _tmp0_;
3599 ValadocContentPage* _tmp1_;
3600 ValadocContentPage* _tmp2_;
3601 _tmp0_ = self->priv->_factory;
3602 _tmp1_ = valadoc_content_content_factory_create_page (_tmp0_);
3603 _tmp2_ = _tmp1_;
3604 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3605 _g_object_unref0 (_tmp2_);
3606 }
3607
3608 static void
___lambda121__valadoc_rule_action(gpointer self,GError ** error)3609 ___lambda121__valadoc_rule_action (gpointer self,
3610 GError** error)
3611 {
3612 __lambda121_ ((ValadocDocumentationParser*) self, error);
3613 }
3614
3615 static void
__lambda122_(ValadocDocumentationParser * self,GError ** error)3616 __lambda122_ (ValadocDocumentationParser* self,
3617 GError** error)
3618 {
3619 ValadocContentContentFactory* _tmp0_;
3620 ValadocContentParagraph* _tmp1_;
3621 ValadocContentParagraph* _tmp2_;
3622 _tmp0_ = self->priv->_factory;
3623 _tmp1_ = valadoc_content_content_factory_create_paragraph (_tmp0_);
3624 _tmp2_ = _tmp1_;
3625 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3626 _g_object_unref0 (_tmp2_);
3627 }
3628
3629 static void
___lambda122__valadoc_rule_action(gpointer self,GError ** error)3630 ___lambda122__valadoc_rule_action (gpointer self,
3631 GError** error)
3632 {
3633 __lambda122_ ((ValadocDocumentationParser*) self, error);
3634 }
3635
3636 static void
__lambda123_(ValadocDocumentationParser * self,GError ** error)3637 __lambda123_ (ValadocDocumentationParser* self,
3638 GError** error)
3639 {
3640 ValadocContentParagraph* p = NULL;
3641 GObject* _tmp0_;
3642 GObject* _tmp1_;
3643 ValadocContentBlockContent* _tmp2_;
3644 ValaList* _tmp3_;
3645 ValaList* _tmp4_;
3646 _tmp0_ = valadoc_documentation_parser_pop (self);
3647 p = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
3648 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
3649 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
3650 _tmp3_ = valadoc_content_block_content_get_content (_tmp2_);
3651 _tmp4_ = _tmp3_;
3652 vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentBlock*) p);
3653 _g_object_unref0 (_tmp2_);
3654 _g_object_unref0 (p);
3655 }
3656
3657 static void
___lambda123__valadoc_rule_action(gpointer self,GError ** error)3658 ___lambda123__valadoc_rule_action (gpointer self,
3659 GError** error)
3660 {
3661 __lambda123_ ((ValadocDocumentationParser*) self, error);
3662 }
3663
3664 static void
__lambda124_(ValadocDocumentationParser * self,ValadocToken * token,GError ** error)3665 __lambda124_ (ValadocDocumentationParser* self,
3666 ValadocToken* token,
3667 GError** error)
3668 {
3669 gchar* tag_name = NULL;
3670 const gchar* _tmp0_;
3671 gchar* _tmp1_;
3672 ValadocContentTaglet* taglet = NULL;
3673 ValadocContentContentFactory* _tmp2_;
3674 const gchar* _tmp3_;
3675 ValadocContentTaglet* _tmp4_;
3676 ValadocContentTaglet* _tmp5_;
3677 ValadocContentTaglet* _tmp7_;
3678 ValadocRule* taglet_rule = NULL;
3679 ValadocContentTaglet* _tmp8_;
3680 ValadocRule* _tmp15_;
3681 GError* _inner_error0_ = NULL;
3682 g_return_if_fail (token != NULL);
3683 _tmp0_ = valadoc_token_to_string (token);
3684 _tmp1_ = g_strdup (_tmp0_);
3685 tag_name = _tmp1_;
3686 _tmp2_ = self->priv->_factory;
3687 _tmp3_ = tag_name;
3688 _tmp4_ = valadoc_content_content_factory_create_taglet (_tmp2_, _tmp3_);
3689 taglet = _tmp4_;
3690 _tmp5_ = taglet;
3691 if (!VALADOC_CONTENT_IS_BLOCK (_tmp5_)) {
3692 ValadocParser* _tmp6_;
3693 _tmp6_ = self->priv->_parser;
3694 valadoc_parser_callback_error ((ValadocParserCallback*) _tmp6_, token, "Invalid taglet in this context", &_inner_error0_);
3695 if (G_UNLIKELY (_inner_error0_ != NULL)) {
3696 if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
3697 g_propagate_error (error, _inner_error0_);
3698 _g_object_unref0 (taglet);
3699 _g_free0 (tag_name);
3700 return;
3701 } else {
3702 _g_object_unref0 (taglet);
3703 _g_free0 (tag_name);
3704 g_critical ("file %s: line %d: uncaught error: %s (%s, %d)", __FILE__, __LINE__, _inner_error0_->message, g_quark_to_string (_inner_error0_->domain), _inner_error0_->code);
3705 g_clear_error (&_inner_error0_);
3706 return;
3707 }
3708 }
3709 }
3710 _tmp7_ = taglet;
3711 valadoc_documentation_parser_push (self, (GObject*) _tmp7_);
3712 _tmp8_ = taglet;
3713 if (VALADOC_CONTENT_IS_BLOCK_CONTENT (_tmp8_)) {
3714 ValadocContentTaglet* _tmp9_;
3715 ValadocRule* _tmp10_;
3716 ValadocRule* _tmp11_;
3717 _tmp9_ = taglet;
3718 _tmp10_ = self->priv->multiline_block_run;
3719 _tmp11_ = valadoc_content_taglet_get_parser_rule (_tmp9_, _tmp10_);
3720 _g_object_unref0 (taglet_rule);
3721 taglet_rule = _tmp11_;
3722 } else {
3723 ValadocContentTaglet* _tmp12_;
3724 ValadocRule* _tmp13_;
3725 ValadocRule* _tmp14_;
3726 _tmp12_ = taglet;
3727 _tmp13_ = self->priv->multiline_run;
3728 _tmp14_ = valadoc_content_taglet_get_parser_rule (_tmp12_, _tmp13_);
3729 _g_object_unref0 (taglet_rule);
3730 taglet_rule = _tmp14_;
3731 }
3732 _tmp15_ = taglet_rule;
3733 if (_tmp15_ != NULL) {
3734 ValadocParser* _tmp16_;
3735 ValadocTokenType* _tmp17_;
3736 GObject* _tmp18_;
3737 ValadocRule* _tmp19_;
3738 GObject* _tmp20_;
3739 GObject** _tmp21_;
3740 GObject** _tmp22_;
3741 gint _tmp22__length1;
3742 ValadocRule* _tmp23_;
3743 ValadocRule* _tmp24_;
3744 _tmp16_ = self->priv->_parser;
3745 _tmp17_ = valadoc_token_type_SPACE;
3746 _tmp18_ = _g_object_ref0 ((GObject*) _tmp17_);
3747 _tmp19_ = taglet_rule;
3748 _tmp20_ = _g_object_ref0 ((GObject*) _tmp19_);
3749 _tmp21_ = g_new0 (GObject*, 2 + 1);
3750 _tmp21_[0] = _tmp18_;
3751 _tmp21_[1] = _tmp20_;
3752 _tmp22_ = _tmp21_;
3753 _tmp22__length1 = 2;
3754 _tmp23_ = valadoc_rule_seq (_tmp22_, (gint) 2);
3755 _tmp24_ = _tmp23_;
3756 valadoc_parser_callback_push_rule ((ValadocParserCallback*) _tmp16_, _tmp24_);
3757 _g_object_unref0 (_tmp24_);
3758 _tmp22_ = (_vala_array_free (_tmp22_, _tmp22__length1, (GDestroyNotify) g_object_unref), NULL);
3759 }
3760 _g_object_unref0 (taglet_rule);
3761 _g_object_unref0 (taglet);
3762 _g_free0 (tag_name);
3763 }
3764
3765 static void
___lambda124__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)3766 ___lambda124__valadoc_token_type_action (ValadocToken* token,
3767 gpointer self,
3768 GError** error)
3769 {
3770 __lambda124_ ((ValadocDocumentationParser*) self, token, error);
3771 }
3772
3773 static void
__lambda125_(ValadocDocumentationParser * self,GError ** error)3774 __lambda125_ (ValadocDocumentationParser* self,
3775 GError** error)
3776 {
3777 ValadocContentTaglet* head = NULL;
3778 GObject* _tmp0_;
3779 GObject* _tmp1_;
3780 ValadocContentComment* _tmp2_;
3781 ValaList* _tmp3_;
3782 ValaList* _tmp4_;
3783 _tmp0_ = valadoc_documentation_parser_pop (self);
3784 head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_TAGLET, ValadocContentTaglet);
3785 _tmp1_ = valadoc_documentation_parser_peek (self, -1);
3786 _tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_COMMENT, ValadocContentComment);
3787 _tmp3_ = valadoc_content_comment_get_taglets (_tmp2_);
3788 _tmp4_ = _tmp3_;
3789 vala_collection_add ((ValaCollection*) _tmp4_, head);
3790 _g_object_unref0 (_tmp2_);
3791 _g_object_unref0 (head);
3792 }
3793
3794 static void
___lambda125__valadoc_rule_action(gpointer self,GError ** error)3795 ___lambda125__valadoc_rule_action (gpointer self,
3796 GError** error)
3797 {
3798 __lambda125_ ((ValadocDocumentationParser*) self, error);
3799 }
3800
3801 static void
__lambda126_(ValadocDocumentationParser * self,GError ** error)3802 __lambda126_ (ValadocDocumentationParser* self,
3803 GError** error)
3804 {
3805 ValadocContentContentFactory* _tmp0_;
3806 ValadocContentParagraph* _tmp1_;
3807 ValadocContentParagraph* _tmp2_;
3808 _tmp0_ = self->priv->_factory;
3809 _tmp1_ = valadoc_content_content_factory_create_paragraph (_tmp0_);
3810 _tmp2_ = _tmp1_;
3811 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3812 _g_object_unref0 (_tmp2_);
3813 }
3814
3815 static void
___lambda126__valadoc_rule_action(gpointer self,GError ** error)3816 ___lambda126__valadoc_rule_action (gpointer self,
3817 GError** error)
3818 {
3819 __lambda126_ ((ValadocDocumentationParser*) self, error);
3820 }
3821
3822 static void
__lambda127_(ValadocDocumentationParser * self,GError ** error)3823 __lambda127_ (ValadocDocumentationParser* self,
3824 GError** error)
3825 {
3826 ValadocContentContentFactory* _tmp0_;
3827 ValadocContentComment* _tmp1_;
3828 ValadocContentComment* _tmp2_;
3829 _tmp0_ = self->priv->_factory;
3830 _tmp1_ = valadoc_content_content_factory_create_comment (_tmp0_);
3831 _tmp2_ = _tmp1_;
3832 valadoc_documentation_parser_push (self, (GObject*) _tmp2_);
3833 _g_object_unref0 (_tmp2_);
3834 }
3835
3836 static void
___lambda127__valadoc_rule_action(gpointer self,GError ** error)3837 ___lambda127__valadoc_rule_action (gpointer self,
3838 GError** error)
3839 {
3840 __lambda127_ ((ValadocDocumentationParser*) self, error);
3841 }
3842
3843 static void
valadoc_documentation_parser_init_valadoc_rules(ValadocDocumentationParser * self)3844 valadoc_documentation_parser_init_valadoc_rules (ValadocDocumentationParser* self)
3845 {
3846 ValadocStubRule* run = NULL;
3847 ValadocStubRule* _tmp0_;
3848 ValadocRule* _tmp1_;
3849 ValadocRule* _tmp2_;
3850 ValadocTokenType* space = NULL;
3851 ValadocTokenType* _tmp3_;
3852 ValadocTokenType* _tmp4_;
3853 ValadocTokenType* word = NULL;
3854 ValadocTokenType* _tmp5_;
3855 ValadocTokenType* _tmp6_;
3856 ValadocTokenType* _tmp7_;
3857 ValadocTokenType* _tmp8_;
3858 ValadocRule* optional_invisible_spaces = NULL;
3859 ValadocTokenType* _tmp9_;
3860 GObject* _tmp10_;
3861 GObject** _tmp11_;
3862 GObject** _tmp12_;
3863 gint _tmp12__length1;
3864 ValadocRule* _tmp13_;
3865 GObject** _tmp14_;
3866 GObject** _tmp15_;
3867 gint _tmp15__length1;
3868 ValadocRule* _tmp16_;
3869 ValadocRule* _tmp17_;
3870 ValadocRule* optional_spaces = NULL;
3871 ValadocTokenType* _tmp18_;
3872 ValadocTokenType* _tmp19_;
3873 GObject** _tmp20_;
3874 GObject** _tmp21_;
3875 gint _tmp21__length1;
3876 ValadocRule* _tmp22_;
3877 GObject** _tmp23_;
3878 GObject** _tmp24_;
3879 gint _tmp24__length1;
3880 ValadocRule* _tmp25_;
3881 ValadocRule* _tmp26_;
3882 ValadocRule* text = NULL;
3883 ValadocTokenType* _tmp27_;
3884 ValadocTokenType* _tmp28_;
3885 ValadocTokenType* _tmp29_;
3886 ValadocTokenType* _tmp30_;
3887 ValadocTokenType* _tmp31_;
3888 ValadocTokenType* _tmp32_;
3889 ValadocTokenType* _tmp33_;
3890 ValadocTokenType* _tmp34_;
3891 ValadocTokenType* _tmp35_;
3892 ValadocTokenType* _tmp36_;
3893 ValadocTokenType* _tmp37_;
3894 ValadocTokenType* _tmp38_;
3895 ValadocTokenType* _tmp39_;
3896 ValadocTokenType* _tmp40_;
3897 ValadocTokenType* _tmp41_;
3898 ValadocTokenType* _tmp42_;
3899 ValadocTokenType* _tmp43_;
3900 ValadocTokenType* _tmp44_;
3901 ValadocTokenType* _tmp45_;
3902 ValadocTokenType* _tmp46_;
3903 ValadocTokenType* _tmp47_;
3904 ValadocTokenType* _tmp48_;
3905 ValadocTokenType* _tmp49_;
3906 ValadocTokenType* _tmp50_;
3907 ValadocTokenType* _tmp51_;
3908 ValadocTokenType* _tmp52_;
3909 ValadocTokenType* _tmp53_;
3910 ValadocTokenType* _tmp54_;
3911 ValadocTokenType* _tmp55_;
3912 ValadocTokenType* _tmp56_;
3913 ValadocTokenType* _tmp57_;
3914 ValadocTokenType* _tmp58_;
3915 GObject* _tmp59_;
3916 GObject** _tmp60_;
3917 GObject** _tmp61_;
3918 gint _tmp61__length1;
3919 ValadocRule* _tmp62_;
3920 GObject* _tmp63_;
3921 GObject** _tmp64_;
3922 GObject** _tmp65_;
3923 gint _tmp65__length1;
3924 ValadocRule* _tmp66_;
3925 GObject** _tmp67_;
3926 GObject** _tmp68_;
3927 gint _tmp68__length1;
3928 ValadocRule* _tmp69_;
3929 ValadocRule* _tmp70_;
3930 ValadocRule* _tmp71_;
3931 ValadocRule* _tmp72_;
3932 ValadocRule* _tmp73_;
3933 ValadocRule* _tmp74_;
3934 ValadocRule* run_with_spaces = NULL;
3935 GObject* _tmp75_;
3936 GObject* _tmp76_;
3937 GObject** _tmp77_;
3938 GObject** _tmp78_;
3939 gint _tmp78__length1;
3940 ValadocRule* _tmp79_;
3941 GObject** _tmp80_;
3942 GObject** _tmp81_;
3943 gint _tmp81__length1;
3944 ValadocRule* _tmp82_;
3945 GObject** _tmp83_;
3946 GObject** _tmp84_;
3947 gint _tmp84__length1;
3948 ValadocRule* _tmp85_;
3949 ValadocRule* _tmp86_;
3950 ValadocRule* _tmp87_;
3951 ValadocRule* _tmp88_;
3952 GObject* _tmp89_;
3953 ValadocTokenType* _tmp90_;
3954 ValadocTokenType* _tmp91_;
3955 GObject** _tmp92_;
3956 GObject** _tmp93_;
3957 gint _tmp93__length1;
3958 ValadocRule* _tmp94_;
3959 ValadocRule* _tmp95_;
3960 ValadocRule* _tmp96_;
3961 ValadocRule* inline_taglet = NULL;
3962 ValadocTokenType* _tmp97_;
3963 GObject* _tmp98_;
3964 ValadocTokenType* _tmp99_;
3965 GObject* _tmp100_;
3966 ValadocTokenType* _tmp101_;
3967 ValadocTokenType* _tmp102_;
3968 ValadocTokenType* _tmp103_;
3969 ValadocTokenType* _tmp104_;
3970 GObject* _tmp105_;
3971 GObject** _tmp106_;
3972 GObject** _tmp107_;
3973 gint _tmp107__length1;
3974 ValadocRule* _tmp108_;
3975 ValadocRule* _tmp109_;
3976 ValadocRule* _tmp110_;
3977 GObject** _tmp111_;
3978 GObject** _tmp112_;
3979 gint _tmp112__length1;
3980 ValadocRule* _tmp113_;
3981 ValadocRule* _tmp114_;
3982 ValadocRule* _tmp115_;
3983 ValadocRule* _tmp116_;
3984 ValadocRule* bold = NULL;
3985 ValadocTokenType* _tmp117_;
3986 GObject* _tmp118_;
3987 ValadocTokenType* _tmp119_;
3988 GObject* _tmp120_;
3989 GObject* _tmp121_;
3990 GObject* _tmp122_;
3991 ValadocTokenType* _tmp123_;
3992 GObject* _tmp124_;
3993 GObject** _tmp125_;
3994 GObject** _tmp126_;
3995 gint _tmp126__length1;
3996 ValadocRule* _tmp127_;
3997 GObject** _tmp128_;
3998 GObject** _tmp129_;
3999 gint _tmp129__length1;
4000 ValadocRule* _tmp130_;
4001 GObject** _tmp131_;
4002 GObject** _tmp132_;
4003 gint _tmp132__length1;
4004 ValadocRule* _tmp133_;
4005 ValadocRule* _tmp134_;
4006 ValadocRule* _tmp135_;
4007 ValadocRule* _tmp136_;
4008 ValadocRule* _tmp137_;
4009 ValadocRule* _tmp138_;
4010 ValadocRule* italic = NULL;
4011 ValadocTokenType* _tmp139_;
4012 GObject* _tmp140_;
4013 ValadocTokenType* _tmp141_;
4014 GObject* _tmp142_;
4015 GObject* _tmp143_;
4016 GObject* _tmp144_;
4017 ValadocTokenType* _tmp145_;
4018 GObject* _tmp146_;
4019 GObject** _tmp147_;
4020 GObject** _tmp148_;
4021 gint _tmp148__length1;
4022 ValadocRule* _tmp149_;
4023 GObject** _tmp150_;
4024 GObject** _tmp151_;
4025 gint _tmp151__length1;
4026 ValadocRule* _tmp152_;
4027 GObject** _tmp153_;
4028 GObject** _tmp154_;
4029 gint _tmp154__length1;
4030 ValadocRule* _tmp155_;
4031 ValadocRule* _tmp156_;
4032 ValadocRule* _tmp157_;
4033 ValadocRule* _tmp158_;
4034 ValadocRule* _tmp159_;
4035 ValadocRule* _tmp160_;
4036 ValadocRule* underlined = NULL;
4037 ValadocTokenType* _tmp161_;
4038 GObject* _tmp162_;
4039 ValadocTokenType* _tmp163_;
4040 GObject* _tmp164_;
4041 GObject* _tmp165_;
4042 GObject* _tmp166_;
4043 ValadocTokenType* _tmp167_;
4044 GObject* _tmp168_;
4045 GObject** _tmp169_;
4046 GObject** _tmp170_;
4047 gint _tmp170__length1;
4048 ValadocRule* _tmp171_;
4049 GObject** _tmp172_;
4050 GObject** _tmp173_;
4051 gint _tmp173__length1;
4052 ValadocRule* _tmp174_;
4053 GObject** _tmp175_;
4054 GObject** _tmp176_;
4055 gint _tmp176__length1;
4056 ValadocRule* _tmp177_;
4057 ValadocRule* _tmp178_;
4058 ValadocRule* _tmp179_;
4059 ValadocRule* _tmp180_;
4060 ValadocRule* _tmp181_;
4061 ValadocRule* _tmp182_;
4062 ValadocRule* monospace = NULL;
4063 ValadocTokenType* _tmp183_;
4064 GObject* _tmp184_;
4065 ValadocTokenType* _tmp185_;
4066 GObject* _tmp186_;
4067 GObject* _tmp187_;
4068 GObject* _tmp188_;
4069 ValadocTokenType* _tmp189_;
4070 GObject* _tmp190_;
4071 GObject** _tmp191_;
4072 GObject** _tmp192_;
4073 gint _tmp192__length1;
4074 ValadocRule* _tmp193_;
4075 GObject** _tmp194_;
4076 GObject** _tmp195_;
4077 gint _tmp195__length1;
4078 ValadocRule* _tmp196_;
4079 GObject** _tmp197_;
4080 GObject** _tmp198_;
4081 gint _tmp198__length1;
4082 ValadocRule* _tmp199_;
4083 ValadocRule* _tmp200_;
4084 ValadocRule* _tmp201_;
4085 ValadocRule* _tmp202_;
4086 ValadocRule* _tmp203_;
4087 ValadocRule* _tmp204_;
4088 ValadocRule* embedded = NULL;
4089 ValadocTokenType* _tmp205_;
4090 ValadocTokenType* _tmp206_;
4091 ValadocTokenType* _tmp207_;
4092 ValadocTokenType* _tmp208_;
4093 ValadocTokenType* _tmp209_;
4094 ValadocTokenType* _tmp210_;
4095 ValadocTokenType* _tmp211_;
4096 GObject* _tmp212_;
4097 GObject** _tmp213_;
4098 GObject** _tmp214_;
4099 gint _tmp214__length1;
4100 ValadocRule* _tmp215_;
4101 ValadocRule* _tmp216_;
4102 ValadocRule* _tmp217_;
4103 ValadocTokenType* _tmp218_;
4104 ValadocTokenType* _tmp219_;
4105 GObject** _tmp220_;
4106 GObject** _tmp221_;
4107 gint _tmp221__length1;
4108 ValadocRule* _tmp222_;
4109 ValadocRule* _tmp223_;
4110 ValadocRule* _tmp224_;
4111 ValadocRule* _tmp225_;
4112 ValadocRule* _tmp226_;
4113 ValadocRule* _tmp227_;
4114 ValadocRule* link = NULL;
4115 ValadocTokenType* _tmp228_;
4116 ValadocTokenType* _tmp229_;
4117 ValadocTokenType* _tmp230_;
4118 ValadocTokenType* _tmp231_;
4119 ValadocTokenType* _tmp232_;
4120 ValadocTokenType* _tmp233_;
4121 ValadocTokenType* _tmp234_;
4122 GObject* _tmp235_;
4123 GObject** _tmp236_;
4124 GObject** _tmp237_;
4125 gint _tmp237__length1;
4126 ValadocRule* _tmp238_;
4127 ValadocTokenType* _tmp239_;
4128 ValadocTokenType* _tmp240_;
4129 GObject** _tmp241_;
4130 GObject** _tmp242_;
4131 gint _tmp242__length1;
4132 ValadocRule* _tmp243_;
4133 ValadocRule* _tmp244_;
4134 ValadocRule* _tmp245_;
4135 ValadocRule* _tmp246_;
4136 ValadocRule* source_code = NULL;
4137 ValadocTokenType* _tmp247_;
4138 ValadocTokenType* _tmp248_;
4139 ValadocTokenType* _tmp249_;
4140 ValadocTokenType* _tmp250_;
4141 ValadocTokenType* _tmp251_;
4142 ValadocTokenType* _tmp252_;
4143 ValadocTokenType* _tmp253_;
4144 GObject** _tmp254_;
4145 GObject** _tmp255_;
4146 gint _tmp255__length1;
4147 ValadocRule* _tmp256_;
4148 ValadocRule* _tmp257_;
4149 ValadocRule* _tmp258_;
4150 ValadocRule* _tmp259_;
4151 ValadocRule* _tmp260_;
4152 ValadocRule* _tmp261_;
4153 ValadocRuleAction append_head_to_head2 = NULL;
4154 gpointer append_head_to_head2_target;
4155 GDestroyNotify append_head_to_head2_target_destroy_notify;
4156 ValadocRule* run_subrules = NULL;
4157 GObject* _tmp262_;
4158 GObject** _tmp263_;
4159 GObject** _tmp264_;
4160 gint _tmp264__length1;
4161 ValadocRule* _tmp265_;
4162 ValadocRule* _tmp266_;
4163 ValadocRule* _tmp267_;
4164 GObject* _tmp268_;
4165 GObject* _tmp269_;
4166 GObject* _tmp270_;
4167 GObject* _tmp271_;
4168 GObject* _tmp272_;
4169 GObject* _tmp273_;
4170 GObject* _tmp274_;
4171 GObject* _tmp275_;
4172 GObject** _tmp276_;
4173 GObject** _tmp277_;
4174 gint _tmp277__length1;
4175 ValadocRule* _tmp278_;
4176 ValadocRule* _tmp279_;
4177 ValadocRule* _tmp280_;
4178 GObject* _tmp281_;
4179 GObject** _tmp282_;
4180 GObject** _tmp283_;
4181 gint _tmp283__length1;
4182 ValadocRule* _tmp284_;
4183 GObject** _tmp285_;
4184 GObject** _tmp286_;
4185 gint _tmp286__length1;
4186 ValadocRule* _tmp287_;
4187 ValadocRule* _tmp288_;
4188 ValadocRule* run_arobase = NULL;
4189 ValadocTokenType* _tmp289_;
4190 ValadocTokenType* _tmp290_;
4191 GObject** _tmp291_;
4192 GObject** _tmp292_;
4193 gint _tmp292__length1;
4194 ValadocRule* _tmp293_;
4195 ValadocRule* _tmp294_;
4196 ValadocRule* _tmp295_;
4197 ValadocRule* _tmp296_;
4198 GObject* _tmp297_;
4199 GObject* _tmp298_;
4200 GObject* _tmp299_;
4201 GObject* _tmp300_;
4202 GObject* _tmp301_;
4203 GObject** _tmp302_;
4204 GObject** _tmp303_;
4205 gint _tmp303__length1;
4206 ValadocRule* _tmp304_;
4207 GObject** _tmp305_;
4208 GObject** _tmp306_;
4209 gint _tmp306__length1;
4210 ValadocRule* _tmp307_;
4211 GObject** _tmp308_;
4212 GObject** _tmp309_;
4213 gint _tmp309__length1;
4214 ValadocRule* _tmp310_;
4215 GObject** _tmp311_;
4216 GObject** _tmp312_;
4217 gint _tmp312__length1;
4218 ValadocRule* _tmp313_;
4219 ValadocRule* _tmp314_;
4220 ValadocRule* _tmp315_;
4221 ValadocRule* _tmp316_;
4222 ValadocRule* _tmp317_;
4223 ValadocRule* _tmp318_;
4224 ValadocRuleAction reduce_paragraph = NULL;
4225 gpointer reduce_paragraph_target;
4226 GDestroyNotify reduce_paragraph_target_destroy_notify;
4227 ValadocRule* paragraph = NULL;
4228 ValadocTokenType* _tmp319_;
4229 ValadocTokenType* _tmp320_;
4230 ValadocTokenType* _tmp321_;
4231 ValadocTokenType* _tmp322_;
4232 GObject** _tmp323_;
4233 GObject** _tmp324_;
4234 gint _tmp324__length1;
4235 ValadocRule* _tmp325_;
4236 GObject** _tmp326_;
4237 GObject** _tmp327_;
4238 gint _tmp327__length1;
4239 ValadocRule* _tmp328_;
4240 GObject* _tmp329_;
4241 ValadocTokenType* _tmp330_;
4242 ValadocTokenType* _tmp331_;
4243 GObject** _tmp332_;
4244 GObject** _tmp333_;
4245 gint _tmp333__length1;
4246 ValadocRule* _tmp334_;
4247 GObject** _tmp335_;
4248 GObject** _tmp336_;
4249 gint _tmp336__length1;
4250 ValadocRule* _tmp337_;
4251 ValadocRule* _tmp338_;
4252 ValadocRule* _tmp339_;
4253 ValadocRule* _tmp340_;
4254 ValadocRule* _tmp341_;
4255 ValadocRule* _tmp342_;
4256 ValadocRule* _tmp343_;
4257 ValadocRule* _tmp344_;
4258 ValadocRule* warning = NULL;
4259 ValadocTokenType* _tmp345_;
4260 GObject* _tmp346_;
4261 GObject* _tmp347_;
4262 GObject* _tmp348_;
4263 GObject** _tmp349_;
4264 GObject** _tmp350_;
4265 gint _tmp350__length1;
4266 ValadocRule* _tmp351_;
4267 ValadocTokenType* _tmp352_;
4268 ValadocTokenType* _tmp353_;
4269 GObject** _tmp354_;
4270 GObject** _tmp355_;
4271 gint _tmp355__length1;
4272 ValadocRule* _tmp356_;
4273 GObject** _tmp357_;
4274 GObject** _tmp358_;
4275 gint _tmp358__length1;
4276 ValadocRule* _tmp359_;
4277 ValadocRule* _tmp360_;
4278 ValadocRule* _tmp361_;
4279 ValadocRule* _tmp362_;
4280 ValadocRule* _tmp363_;
4281 ValadocRule* _tmp364_;
4282 ValadocRule* _tmp365_;
4283 ValadocRule* _tmp366_;
4284 ValadocRule* note = NULL;
4285 ValadocTokenType* _tmp367_;
4286 GObject* _tmp368_;
4287 GObject* _tmp369_;
4288 GObject* _tmp370_;
4289 GObject** _tmp371_;
4290 GObject** _tmp372_;
4291 gint _tmp372__length1;
4292 ValadocRule* _tmp373_;
4293 ValadocTokenType* _tmp374_;
4294 ValadocTokenType* _tmp375_;
4295 GObject** _tmp376_;
4296 GObject** _tmp377_;
4297 gint _tmp377__length1;
4298 ValadocRule* _tmp378_;
4299 GObject** _tmp379_;
4300 GObject** _tmp380_;
4301 gint _tmp380__length1;
4302 ValadocRule* _tmp381_;
4303 ValadocRule* _tmp382_;
4304 ValadocRule* _tmp383_;
4305 ValadocRule* _tmp384_;
4306 ValadocRule* _tmp385_;
4307 ValadocRule* _tmp386_;
4308 ValadocRule* _tmp387_;
4309 ValadocRule* _tmp388_;
4310 ValadocRule* indented_item = NULL;
4311 ValadocTokenType* _tmp389_;
4312 ValadocTokenType* _tmp390_;
4313 GObject** _tmp391_;
4314 GObject** _tmp392_;
4315 gint _tmp392__length1;
4316 ValadocRule* _tmp393_;
4317 ValadocTokenType* _tmp394_;
4318 ValadocTokenType* _tmp395_;
4319 ValadocTokenType* _tmp396_;
4320 ValadocTokenType* _tmp397_;
4321 ValadocTokenType* _tmp398_;
4322 ValadocTokenType* _tmp399_;
4323 ValadocTokenType* _tmp400_;
4324 ValadocTokenType* _tmp401_;
4325 ValadocTokenType* _tmp402_;
4326 ValadocTokenType* _tmp403_;
4327 ValadocTokenType* _tmp404_;
4328 ValadocTokenType* _tmp405_;
4329 ValadocTokenType* _tmp406_;
4330 ValadocTokenType* _tmp407_;
4331 ValadocTokenType* _tmp408_;
4332 ValadocTokenType* _tmp409_;
4333 ValadocTokenType* _tmp410_;
4334 ValadocTokenType* _tmp411_;
4335 ValadocTokenType* _tmp412_;
4336 ValadocTokenType* _tmp413_;
4337 ValadocTokenType* _tmp414_;
4338 ValadocTokenType* _tmp415_;
4339 ValadocTokenType* _tmp416_;
4340 ValadocTokenType* _tmp417_;
4341 GObject** _tmp418_;
4342 GObject** _tmp419_;
4343 gint _tmp419__length1;
4344 ValadocRule* _tmp420_;
4345 GObject* _tmp421_;
4346 GObject** _tmp422_;
4347 GObject** _tmp423_;
4348 gint _tmp423__length1;
4349 ValadocRule* _tmp424_;
4350 GObject* _tmp425_;
4351 GObject** _tmp426_;
4352 GObject** _tmp427_;
4353 gint _tmp427__length1;
4354 ValadocRule* _tmp428_;
4355 ValadocRule* _tmp429_;
4356 ValadocRule* _tmp430_;
4357 ValadocRule* _tmp431_;
4358 ValadocRule* _tmp432_;
4359 ValadocTokenType* _tmp433_;
4360 GObject* _tmp434_;
4361 GObject** _tmp435_;
4362 GObject** _tmp436_;
4363 gint _tmp436__length1;
4364 ValadocRule* _tmp437_;
4365 ValadocRule* _tmp438_;
4366 ValadocRule* _tmp439_;
4367 ValadocRule* _tmp440_;
4368 ValadocRule* _tmp441_;
4369 ValadocRule* _tmp442_;
4370 ValadocRule* _tmp443_;
4371 ValadocRule* _tmp444_;
4372 ValadocRule* indented_blocks = NULL;
4373 GObject* _tmp445_;
4374 GObject** _tmp446_;
4375 GObject** _tmp447_;
4376 gint _tmp447__length1;
4377 ValadocRule* _tmp448_;
4378 ValadocRule* _tmp449_;
4379 ValadocRule* _tmp450_;
4380 ValadocRule* _tmp451_;
4381 ValadocRule* _tmp452_;
4382 ValadocRule* _tmp453_;
4383 ValadocRule* table_cell_attributes = NULL;
4384 ValadocTokenType* _tmp454_;
4385 GObject* _tmp455_;
4386 ValadocTokenType* _tmp456_;
4387 ValadocTokenType* _tmp457_;
4388 ValadocTokenType* _tmp458_;
4389 ValadocTokenType* _tmp459_;
4390 GObject** _tmp460_;
4391 GObject** _tmp461_;
4392 gint _tmp461__length1;
4393 ValadocRule* _tmp462_;
4394 GObject** _tmp463_;
4395 GObject** _tmp464_;
4396 gint _tmp464__length1;
4397 ValadocRule* _tmp465_;
4398 ValadocTokenType* _tmp466_;
4399 ValadocTokenType* _tmp467_;
4400 ValadocTokenType* _tmp468_;
4401 ValadocTokenType* _tmp469_;
4402 GObject** _tmp470_;
4403 GObject** _tmp471_;
4404 gint _tmp471__length1;
4405 ValadocRule* _tmp472_;
4406 GObject** _tmp473_;
4407 GObject** _tmp474_;
4408 gint _tmp474__length1;
4409 ValadocRule* _tmp475_;
4410 GObject** _tmp476_;
4411 GObject** _tmp477_;
4412 gint _tmp477__length1;
4413 ValadocRule* _tmp478_;
4414 ValadocTokenType* _tmp479_;
4415 ValadocTokenType* _tmp480_;
4416 ValadocTokenType* _tmp481_;
4417 GObject** _tmp482_;
4418 GObject** _tmp483_;
4419 gint _tmp483__length1;
4420 ValadocRule* _tmp484_;
4421 GObject** _tmp485_;
4422 GObject** _tmp486_;
4423 gint _tmp486__length1;
4424 ValadocRule* _tmp487_;
4425 ValadocTokenType* _tmp488_;
4426 GObject* _tmp489_;
4427 ValadocTokenType* _tmp490_;
4428 ValadocTokenType* _tmp491_;
4429 ValadocTokenType* _tmp492_;
4430 GObject** _tmp493_;
4431 GObject** _tmp494_;
4432 gint _tmp494__length1;
4433 ValadocRule* _tmp495_;
4434 ValadocTokenType* _tmp496_;
4435 GObject* _tmp497_;
4436 ValadocTokenType* _tmp498_;
4437 ValadocTokenType* _tmp499_;
4438 ValadocTokenType* _tmp500_;
4439 GObject** _tmp501_;
4440 GObject** _tmp502_;
4441 gint _tmp502__length1;
4442 ValadocRule* _tmp503_;
4443 GObject** _tmp504_;
4444 GObject** _tmp505_;
4445 gint _tmp505__length1;
4446 ValadocRule* _tmp506_;
4447 GObject** _tmp507_;
4448 GObject** _tmp508_;
4449 gint _tmp508__length1;
4450 ValadocRule* _tmp509_;
4451 ValadocTokenType* _tmp510_;
4452 GObject* _tmp511_;
4453 GObject** _tmp512_;
4454 GObject** _tmp513_;
4455 gint _tmp513__length1;
4456 ValadocRule* _tmp514_;
4457 ValadocRule* _tmp515_;
4458 ValadocRule* _tmp516_;
4459 ValadocRule* _tmp517_;
4460 ValadocRule* table_cell = NULL;
4461 GObject* _tmp518_;
4462 GObject** _tmp519_;
4463 GObject** _tmp520_;
4464 gint _tmp520__length1;
4465 ValadocRule* _tmp521_;
4466 GObject* _tmp522_;
4467 GObject* _tmp523_;
4468 GObject** _tmp524_;
4469 GObject** _tmp525_;
4470 gint _tmp525__length1;
4471 ValadocRule* _tmp526_;
4472 ValadocTokenType* _tmp527_;
4473 GObject* _tmp528_;
4474 GObject** _tmp529_;
4475 GObject** _tmp530_;
4476 gint _tmp530__length1;
4477 ValadocRule* _tmp531_;
4478 ValadocRule* _tmp532_;
4479 ValadocRule* _tmp533_;
4480 ValadocRule* _tmp534_;
4481 ValadocRule* _tmp535_;
4482 ValadocRule* _tmp536_;
4483 ValadocRule* _tmp537_;
4484 ValadocRule* _tmp538_;
4485 ValadocRule* table_row = NULL;
4486 ValadocTokenType* _tmp539_;
4487 GObject* _tmp540_;
4488 GObject* _tmp541_;
4489 GObject** _tmp542_;
4490 GObject** _tmp543_;
4491 gint _tmp543__length1;
4492 ValadocRule* _tmp544_;
4493 ValadocTokenType* _tmp545_;
4494 GObject* _tmp546_;
4495 GObject** _tmp547_;
4496 GObject** _tmp548_;
4497 gint _tmp548__length1;
4498 ValadocRule* _tmp549_;
4499 ValadocRule* _tmp550_;
4500 ValadocRule* _tmp551_;
4501 ValadocRule* _tmp552_;
4502 ValadocRule* _tmp553_;
4503 ValadocRule* _tmp554_;
4504 ValadocRule* _tmp555_;
4505 ValadocRule* _tmp556_;
4506 ValadocRule* table = NULL;
4507 GObject* _tmp557_;
4508 GObject** _tmp558_;
4509 GObject** _tmp559_;
4510 gint _tmp559__length1;
4511 ValadocRule* _tmp560_;
4512 GObject** _tmp561_;
4513 GObject** _tmp562_;
4514 gint _tmp562__length1;
4515 ValadocRule* _tmp563_;
4516 ValadocRule* _tmp564_;
4517 ValadocRule* _tmp565_;
4518 ValadocRule* _tmp566_;
4519 ValadocRule* _tmp567_;
4520 ValadocRule* _tmp568_;
4521 ValadocRule* _tmp569_;
4522 ValadocRule* _tmp570_;
4523 ValadocRule* headline = NULL;
4524 ValadocTokenType* _tmp571_;
4525 ValadocTokenType* _tmp572_;
4526 GObject* _tmp573_;
4527 GObject* _tmp574_;
4528 GObject* _tmp575_;
4529 ValadocTokenType* _tmp576_;
4530 GObject* _tmp577_;
4531 ValadocTokenType* _tmp578_;
4532 GObject* _tmp579_;
4533 GObject** _tmp580_;
4534 GObject** _tmp581_;
4535 gint _tmp581__length1;
4536 ValadocRule* _tmp582_;
4537 ValadocTokenType* _tmp583_;
4538 ValadocTokenType* _tmp584_;
4539 GObject* _tmp585_;
4540 GObject* _tmp586_;
4541 GObject* _tmp587_;
4542 ValadocTokenType* _tmp588_;
4543 GObject* _tmp589_;
4544 ValadocTokenType* _tmp590_;
4545 GObject* _tmp591_;
4546 GObject** _tmp592_;
4547 GObject** _tmp593_;
4548 gint _tmp593__length1;
4549 ValadocRule* _tmp594_;
4550 ValadocTokenType* _tmp595_;
4551 ValadocTokenType* _tmp596_;
4552 GObject* _tmp597_;
4553 GObject* _tmp598_;
4554 GObject* _tmp599_;
4555 ValadocTokenType* _tmp600_;
4556 GObject* _tmp601_;
4557 ValadocTokenType* _tmp602_;
4558 GObject* _tmp603_;
4559 GObject** _tmp604_;
4560 GObject** _tmp605_;
4561 gint _tmp605__length1;
4562 ValadocRule* _tmp606_;
4563 ValadocTokenType* _tmp607_;
4564 ValadocTokenType* _tmp608_;
4565 GObject* _tmp609_;
4566 GObject* _tmp610_;
4567 GObject* _tmp611_;
4568 ValadocTokenType* _tmp612_;
4569 GObject* _tmp613_;
4570 ValadocTokenType* _tmp614_;
4571 GObject* _tmp615_;
4572 GObject** _tmp616_;
4573 GObject** _tmp617_;
4574 gint _tmp617__length1;
4575 ValadocRule* _tmp618_;
4576 ValadocTokenType* _tmp619_;
4577 ValadocTokenType* _tmp620_;
4578 GObject* _tmp621_;
4579 GObject* _tmp622_;
4580 GObject* _tmp623_;
4581 ValadocTokenType* _tmp624_;
4582 GObject* _tmp625_;
4583 ValadocTokenType* _tmp626_;
4584 GObject* _tmp627_;
4585 GObject** _tmp628_;
4586 GObject** _tmp629_;
4587 gint _tmp629__length1;
4588 ValadocRule* _tmp630_;
4589 GObject** _tmp631_;
4590 GObject** _tmp632_;
4591 gint _tmp632__length1;
4592 ValadocRule* _tmp633_;
4593 ValadocRule* _tmp634_;
4594 ValadocRule* _tmp635_;
4595 ValadocRule* _tmp636_;
4596 ValadocRule* _tmp637_;
4597 ValadocRule* _tmp638_;
4598 ValadocRule* _tmp639_;
4599 ValadocRule* _tmp640_;
4600 ValadocRule* blocks = NULL;
4601 GObject* _tmp641_;
4602 GObject* _tmp642_;
4603 GObject* _tmp643_;
4604 GObject* _tmp644_;
4605 GObject* _tmp645_;
4606 GObject* _tmp646_;
4607 GObject** _tmp647_;
4608 GObject** _tmp648_;
4609 gint _tmp648__length1;
4610 ValadocRule* _tmp649_;
4611 ValadocRule* _tmp650_;
4612 ValadocRule* _tmp651_;
4613 ValadocRule* _tmp652_;
4614 ValadocRule* page = NULL;
4615 GObject* _tmp653_;
4616 ValadocTokenType* _tmp654_;
4617 GObject* _tmp655_;
4618 GObject* _tmp656_;
4619 GObject** _tmp657_;
4620 GObject** _tmp658_;
4621 gint _tmp658__length1;
4622 ValadocRule* _tmp659_;
4623 GObject** _tmp660_;
4624 GObject** _tmp661_;
4625 gint _tmp661__length1;
4626 ValadocRule* _tmp662_;
4627 GObject** _tmp663_;
4628 GObject** _tmp664_;
4629 gint _tmp664__length1;
4630 ValadocRule* _tmp665_;
4631 GObject** _tmp666_;
4632 GObject** _tmp667_;
4633 gint _tmp667__length1;
4634 ValadocRule* _tmp668_;
4635 ValadocRule* _tmp669_;
4636 ValadocRule* _tmp670_;
4637 ValadocRule* _tmp671_;
4638 ValadocRule* _tmp672_;
4639 ValadocRule* _tmp673_;
4640 ValadocRule* description = NULL;
4641 GObject* _tmp674_;
4642 ValadocTokenType* _tmp675_;
4643 GObject* _tmp676_;
4644 GObject* _tmp677_;
4645 GObject** _tmp678_;
4646 GObject** _tmp679_;
4647 gint _tmp679__length1;
4648 ValadocRule* _tmp680_;
4649 GObject** _tmp681_;
4650 GObject** _tmp682_;
4651 gint _tmp682__length1;
4652 ValadocRule* _tmp683_;
4653 GObject** _tmp684_;
4654 GObject** _tmp685_;
4655 gint _tmp685__length1;
4656 ValadocRule* _tmp686_;
4657 GObject** _tmp687_;
4658 GObject** _tmp688_;
4659 gint _tmp688__length1;
4660 ValadocRule* _tmp689_;
4661 ValadocRule* _tmp690_;
4662 ValadocRule* _tmp691_;
4663 ValadocRule* _tmp692_;
4664 ValadocRule* _tmp693_;
4665 GObject* _tmp694_;
4666 GObject** _tmp695_;
4667 GObject** _tmp696_;
4668 gint _tmp696__length1;
4669 ValadocRule* _tmp697_;
4670 ValadocRule* _tmp698_;
4671 ValadocRule* _tmp699_;
4672 ValadocRule* _tmp700_;
4673 ValadocRule* _tmp701_;
4674 ValadocRule* _tmp702_;
4675 ValadocRule* _tmp703_;
4676 ValadocRule* taglet = NULL;
4677 ValadocTokenType* _tmp704_;
4678 GObject* _tmp705_;
4679 ValadocTokenType* _tmp706_;
4680 ValadocTokenType* _tmp707_;
4681 ValadocTokenType* _tmp708_;
4682 ValadocTokenType* _tmp709_;
4683 GObject* _tmp710_;
4684 GObject** _tmp711_;
4685 GObject** _tmp712_;
4686 gint _tmp712__length1;
4687 ValadocRule* _tmp713_;
4688 GObject** _tmp714_;
4689 GObject** _tmp715_;
4690 gint _tmp715__length1;
4691 ValadocRule* _tmp716_;
4692 GObject** _tmp717_;
4693 GObject** _tmp718_;
4694 gint _tmp718__length1;
4695 ValadocRule* _tmp719_;
4696 ValadocRule* _tmp720_;
4697 ValadocRule* _tmp721_;
4698 ValadocRule* _tmp722_;
4699 ValadocRule* _tmp723_;
4700 ValadocRule* _tmp724_;
4701 ValadocRule* ml_comment = NULL;
4702 ValadocTokenType* _tmp725_;
4703 GObject* _tmp726_;
4704 GObject* _tmp727_;
4705 GObject** _tmp728_;
4706 GObject** _tmp729_;
4707 gint _tmp729__length1;
4708 ValadocRule* _tmp730_;
4709 GObject* _tmp731_;
4710 GObject** _tmp732_;
4711 GObject** _tmp733_;
4712 gint _tmp733__length1;
4713 ValadocRule* _tmp734_;
4714 GObject** _tmp735_;
4715 GObject** _tmp736_;
4716 gint _tmp736__length1;
4717 ValadocRule* _tmp737_;
4718 GObject** _tmp738_;
4719 GObject** _tmp739_;
4720 gint _tmp739__length1;
4721 ValadocRule* _tmp740_;
4722 ValadocRule* _tmp741_;
4723 ValadocRule* _tmp742_;
4724 ValadocRule* _tmp743_;
4725 ValadocRule* sl_comment = NULL;
4726 GObject* _tmp744_;
4727 GObject** _tmp745_;
4728 GObject** _tmp746_;
4729 gint _tmp746__length1;
4730 ValadocRule* _tmp747_;
4731 ValadocRule* _tmp748_;
4732 ValadocRule* _tmp749_;
4733 ValadocRule* _tmp750_;
4734 ValadocRule* _tmp751_;
4735 ValadocRule* _tmp752_;
4736 ValadocRule* _tmp753_;
4737 ValadocRule* _tmp754_;
4738 ValadocRule* comment = NULL;
4739 GObject* _tmp755_;
4740 GObject* _tmp756_;
4741 GObject** _tmp757_;
4742 GObject** _tmp758_;
4743 gint _tmp758__length1;
4744 ValadocRule* _tmp759_;
4745 ValadocRule* _tmp760_;
4746 ValadocRule* _tmp761_;
4747 ValadocRule* _tmp762_;
4748 ValadocRule* _tmp763_;
4749 ValadocRule* _tmp764_;
4750 ValadocParser* _tmp765_;
4751 ValadocParser* _tmp766_;
4752 g_return_if_fail (self != NULL);
4753 _tmp0_ = valadoc_stub_rule_new ();
4754 run = _tmp0_;
4755 _tmp1_ = valadoc_rule_set_name ((ValadocRule*) run, "Run");
4756 _tmp2_ = _tmp1_;
4757 _g_object_unref0 (_tmp2_);
4758 _tmp3_ = valadoc_token_type_SPACE;
4759 _tmp4_ = valadoc_token_type_action (_tmp3_, _valadoc_documentation_parser_add_content_space_valadoc_token_type_action, self);
4760 space = _tmp4_;
4761 _tmp5_ = valadoc_token_type_any_word ();
4762 _tmp6_ = _tmp5_;
4763 _tmp7_ = valadoc_token_type_action (_tmp6_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4764 _tmp8_ = _tmp7_;
4765 _g_object_unref0 (_tmp6_);
4766 word = _tmp8_;
4767 _tmp9_ = valadoc_token_type_SPACE;
4768 _tmp10_ = _g_object_ref0 ((GObject*) _tmp9_);
4769 _tmp11_ = g_new0 (GObject*, 1 + 1);
4770 _tmp11_[0] = _tmp10_;
4771 _tmp12_ = _tmp11_;
4772 _tmp12__length1 = 1;
4773 _tmp13_ = valadoc_rule_many (_tmp12_, (gint) 1);
4774 _tmp14_ = g_new0 (GObject*, 1 + 1);
4775 _tmp14_[0] = (GObject*) _tmp13_;
4776 _tmp15_ = _tmp14_;
4777 _tmp15__length1 = 1;
4778 _tmp16_ = valadoc_rule_option (_tmp15_, (gint) 1);
4779 _tmp17_ = _tmp16_;
4780 _tmp15_ = (_vala_array_free (_tmp15_, _tmp15__length1, (GDestroyNotify) g_object_unref), NULL);
4781 _tmp12_ = (_vala_array_free (_tmp12_, _tmp12__length1, (GDestroyNotify) g_object_unref), NULL);
4782 optional_invisible_spaces = _tmp17_;
4783 _tmp18_ = valadoc_token_type_SPACE;
4784 _tmp19_ = valadoc_token_type_action (_tmp18_, _valadoc_documentation_parser_add_content_space_valadoc_token_type_action, self);
4785 _tmp20_ = g_new0 (GObject*, 1 + 1);
4786 _tmp20_[0] = (GObject*) _tmp19_;
4787 _tmp21_ = _tmp20_;
4788 _tmp21__length1 = 1;
4789 _tmp22_ = valadoc_rule_many (_tmp21_, (gint) 1);
4790 _tmp23_ = g_new0 (GObject*, 1 + 1);
4791 _tmp23_[0] = (GObject*) _tmp22_;
4792 _tmp24_ = _tmp23_;
4793 _tmp24__length1 = 1;
4794 _tmp25_ = valadoc_rule_option (_tmp24_, (gint) 1);
4795 _tmp26_ = _tmp25_;
4796 _tmp24_ = (_vala_array_free (_tmp24_, _tmp24__length1, (GDestroyNotify) g_object_unref), NULL);
4797 _tmp21_ = (_vala_array_free (_tmp21_, _tmp21__length1, (GDestroyNotify) g_object_unref), NULL);
4798 optional_spaces = _tmp26_;
4799 _tmp27_ = valadoc_token_type_BREAK;
4800 _tmp28_ = valadoc_token_type_action (_tmp27_, ___lambda56__valadoc_token_type_action, self);
4801 _tmp29_ = valadoc_token_type_CLOSED_BRACE;
4802 _tmp30_ = valadoc_token_type_action (_tmp29_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4803 _tmp31_ = valadoc_token_type_MINUS;
4804 _tmp32_ = valadoc_token_type_action (_tmp31_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4805 _tmp33_ = valadoc_token_type_ALIGN_BOTTOM;
4806 _tmp34_ = valadoc_token_type_action (_tmp33_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4807 _tmp35_ = valadoc_token_type_ALIGN_TOP;
4808 _tmp36_ = valadoc_token_type_action (_tmp35_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4809 _tmp37_ = valadoc_token_type_GREATER_THAN;
4810 _tmp38_ = valadoc_token_type_action (_tmp37_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4811 _tmp39_ = valadoc_token_type_LESS_THAN;
4812 _tmp40_ = valadoc_token_type_action (_tmp39_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4813 _tmp41_ = valadoc_token_type_DOUBLE_PIPE;
4814 _tmp42_ = valadoc_token_type_action (_tmp41_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4815 _tmp43_ = valadoc_token_type_PIPE;
4816 _tmp44_ = valadoc_token_type_action (_tmp43_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4817 _tmp45_ = valadoc_token_type_ALIGN_RIGHT;
4818 _tmp46_ = valadoc_token_type_action (_tmp45_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4819 _tmp47_ = valadoc_token_type_ALIGN_CENTER;
4820 _tmp48_ = valadoc_token_type_action (_tmp47_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4821 _tmp49_ = valadoc_token_type_EQUAL_1;
4822 _tmp50_ = valadoc_token_type_action (_tmp49_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4823 _tmp51_ = valadoc_token_type_EQUAL_2;
4824 _tmp52_ = valadoc_token_type_action (_tmp51_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4825 _tmp53_ = valadoc_token_type_EQUAL_3;
4826 _tmp54_ = valadoc_token_type_action (_tmp53_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4827 _tmp55_ = valadoc_token_type_EQUAL_4;
4828 _tmp56_ = valadoc_token_type_action (_tmp55_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4829 _tmp57_ = valadoc_token_type_EQUAL_5;
4830 _tmp58_ = valadoc_token_type_action (_tmp57_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
4831 _tmp59_ = _g_object_ref0 ((GObject*) word);
4832 _tmp60_ = g_new0 (GObject*, 17 + 1);
4833 _tmp60_[0] = (GObject*) _tmp28_;
4834 _tmp60_[1] = (GObject*) _tmp30_;
4835 _tmp60_[2] = (GObject*) _tmp32_;
4836 _tmp60_[3] = (GObject*) _tmp34_;
4837 _tmp60_[4] = (GObject*) _tmp36_;
4838 _tmp60_[5] = (GObject*) _tmp38_;
4839 _tmp60_[6] = (GObject*) _tmp40_;
4840 _tmp60_[7] = (GObject*) _tmp42_;
4841 _tmp60_[8] = (GObject*) _tmp44_;
4842 _tmp60_[9] = (GObject*) _tmp46_;
4843 _tmp60_[10] = (GObject*) _tmp48_;
4844 _tmp60_[11] = (GObject*) _tmp50_;
4845 _tmp60_[12] = (GObject*) _tmp52_;
4846 _tmp60_[13] = (GObject*) _tmp54_;
4847 _tmp60_[14] = (GObject*) _tmp56_;
4848 _tmp60_[15] = (GObject*) _tmp58_;
4849 _tmp60_[16] = _tmp59_;
4850 _tmp61_ = _tmp60_;
4851 _tmp61__length1 = 17;
4852 _tmp62_ = valadoc_rule_one_of (_tmp61_, (gint) 17);
4853 _tmp63_ = _g_object_ref0 ((GObject*) space);
4854 _tmp64_ = g_new0 (GObject*, 1 + 1);
4855 _tmp64_[0] = _tmp63_;
4856 _tmp65_ = _tmp64_;
4857 _tmp65__length1 = 1;
4858 _tmp66_ = valadoc_rule_option (_tmp65_, (gint) 1);
4859 _tmp67_ = g_new0 (GObject*, 2 + 1);
4860 _tmp67_[0] = (GObject*) _tmp62_;
4861 _tmp67_[1] = (GObject*) _tmp66_;
4862 _tmp68_ = _tmp67_;
4863 _tmp68__length1 = 2;
4864 _tmp69_ = valadoc_rule_many (_tmp68_, (gint) 2);
4865 _tmp70_ = _tmp69_;
4866 _tmp71_ = valadoc_rule_set_name (_tmp70_, "Text");
4867 _tmp72_ = _tmp71_;
4868 _tmp73_ = valadoc_rule_set_start (_tmp72_, ___lambda57__valadoc_rule_action, self);
4869 _tmp74_ = _tmp73_;
4870 _g_object_unref0 (_tmp72_);
4871 _g_object_unref0 (_tmp70_);
4872 _tmp68_ = (_vala_array_free (_tmp68_, _tmp68__length1, (GDestroyNotify) g_object_unref), NULL);
4873 _tmp65_ = (_vala_array_free (_tmp65_, _tmp65__length1, (GDestroyNotify) g_object_unref), NULL);
4874 _tmp61_ = (_vala_array_free (_tmp61_, _tmp61__length1, (GDestroyNotify) g_object_unref), NULL);
4875 text = _tmp74_;
4876 _tmp75_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
4877 _tmp76_ = _g_object_ref0 ((GObject*) run);
4878 _tmp77_ = g_new0 (GObject*, 2 + 1);
4879 _tmp77_[0] = _tmp75_;
4880 _tmp77_[1] = _tmp76_;
4881 _tmp78_ = _tmp77_;
4882 _tmp78__length1 = 2;
4883 _tmp79_ = valadoc_rule_one_of (_tmp78_, (gint) 2);
4884 _tmp80_ = g_new0 (GObject*, 1 + 1);
4885 _tmp80_[0] = (GObject*) _tmp79_;
4886 _tmp81_ = _tmp80_;
4887 _tmp81__length1 = 1;
4888 _tmp82_ = valadoc_rule_many (_tmp81_, (gint) 1);
4889 _tmp83_ = g_new0 (GObject*, 1 + 1);
4890 _tmp83_[0] = (GObject*) _tmp82_;
4891 _tmp84_ = _tmp83_;
4892 _tmp84__length1 = 1;
4893 _tmp85_ = valadoc_rule_seq (_tmp84_, (gint) 1);
4894 _tmp86_ = _tmp85_;
4895 _tmp87_ = valadoc_rule_set_name (_tmp86_, "RunWithSpaces");
4896 _tmp88_ = _tmp87_;
4897 _g_object_unref0 (_tmp86_);
4898 _tmp84_ = (_vala_array_free (_tmp84_, _tmp84__length1, (GDestroyNotify) g_object_unref), NULL);
4899 _tmp81_ = (_vala_array_free (_tmp81_, _tmp81__length1, (GDestroyNotify) g_object_unref), NULL);
4900 _tmp78_ = (_vala_array_free (_tmp78_, _tmp78__length1, (GDestroyNotify) g_object_unref), NULL);
4901 run_with_spaces = _tmp88_;
4902 _tmp89_ = _g_object_ref0 ((GObject*) run_with_spaces);
4903 _tmp90_ = valadoc_token_type_EOL;
4904 _tmp91_ = valadoc_token_type_action (_tmp90_, _valadoc_documentation_parser_add_content_space_valadoc_token_type_action, self);
4905 _tmp92_ = g_new0 (GObject*, 2 + 1);
4906 _tmp92_[0] = _tmp89_;
4907 _tmp92_[1] = (GObject*) _tmp91_;
4908 _tmp93_ = _tmp92_;
4909 _tmp93__length1 = 2;
4910 _tmp94_ = valadoc_rule_many (_tmp93_, (gint) 2);
4911 _tmp95_ = _tmp94_;
4912 _tmp96_ = valadoc_rule_set_name (_tmp95_, "MultiLineRun");
4913 _g_object_unref0 (self->priv->multiline_run);
4914 self->priv->multiline_run = _tmp96_;
4915 _g_object_unref0 (_tmp95_);
4916 _tmp93_ = (_vala_array_free (_tmp93_, _tmp93__length1, (GDestroyNotify) g_object_unref), NULL);
4917 _tmp97_ = valadoc_token_type_OPEN_BRACE;
4918 _tmp98_ = _g_object_ref0 ((GObject*) _tmp97_);
4919 _tmp99_ = valadoc_token_type_AROBASE;
4920 _tmp100_ = _g_object_ref0 ((GObject*) _tmp99_);
4921 _tmp101_ = valadoc_token_type_any_word ();
4922 _tmp102_ = _tmp101_;
4923 _tmp103_ = valadoc_token_type_action (_tmp102_, ___lambda58__valadoc_token_type_action, self);
4924 _tmp104_ = valadoc_token_type_CLOSED_BRACE;
4925 _tmp105_ = _g_object_ref0 ((GObject*) _tmp104_);
4926 _tmp106_ = g_new0 (GObject*, 3 + 1);
4927 _tmp106_[0] = _tmp100_;
4928 _tmp106_[1] = (GObject*) _tmp103_;
4929 _tmp106_[2] = _tmp105_;
4930 _tmp107_ = _tmp106_;
4931 _tmp107__length1 = 3;
4932 _tmp108_ = valadoc_rule_option (_tmp107_, (gint) 3);
4933 _tmp109_ = _tmp108_;
4934 _tmp110_ = valadoc_rule_set_skip (_tmp109_, ___lambda59__valadoc_rule_action, self);
4935 _tmp111_ = g_new0 (GObject*, 2 + 1);
4936 _tmp111_[0] = _tmp98_;
4937 _tmp111_[1] = (GObject*) _tmp110_;
4938 _tmp112_ = _tmp111_;
4939 _tmp112__length1 = 2;
4940 _tmp113_ = valadoc_rule_seq (_tmp112_, (gint) 2);
4941 _tmp114_ = _tmp113_;
4942 _tmp115_ = valadoc_rule_set_name (_tmp114_, "InlineTaglet");
4943 _tmp116_ = _tmp115_;
4944 _g_object_unref0 (_tmp114_);
4945 _tmp112_ = (_vala_array_free (_tmp112_, _tmp112__length1, (GDestroyNotify) g_object_unref), NULL);
4946 _g_object_unref0 (_tmp109_);
4947 _tmp107_ = (_vala_array_free (_tmp107_, _tmp107__length1, (GDestroyNotify) g_object_unref), NULL);
4948 _g_object_unref0 (_tmp102_);
4949 inline_taglet = _tmp116_;
4950 _tmp117_ = valadoc_token_type_SINGLE_QUOTE_2;
4951 _tmp118_ = _g_object_ref0 ((GObject*) _tmp117_);
4952 _tmp119_ = valadoc_token_type_SINGLE_QUOTE_2;
4953 _tmp120_ = _g_object_ref0 ((GObject*) _tmp119_);
4954 _tmp121_ = _g_object_ref0 ((GObject*) optional_spaces);
4955 _tmp122_ = _g_object_ref0 ((GObject*) run);
4956 _tmp123_ = valadoc_token_type_SINGLE_QUOTE_2;
4957 _tmp124_ = _g_object_ref0 ((GObject*) _tmp123_);
4958 _tmp125_ = g_new0 (GObject*, 3 + 1);
4959 _tmp125_[0] = _tmp121_;
4960 _tmp125_[1] = _tmp122_;
4961 _tmp125_[2] = _tmp124_;
4962 _tmp126_ = _tmp125_;
4963 _tmp126__length1 = 3;
4964 _tmp127_ = valadoc_rule_seq (_tmp126_, (gint) 3);
4965 _tmp128_ = g_new0 (GObject*, 2 + 1);
4966 _tmp128_[0] = _tmp120_;
4967 _tmp128_[1] = (GObject*) _tmp127_;
4968 _tmp129_ = _tmp128_;
4969 _tmp129__length1 = 2;
4970 _tmp130_ = valadoc_rule_one_of (_tmp129_, (gint) 2);
4971 _tmp131_ = g_new0 (GObject*, 2 + 1);
4972 _tmp131_[0] = _tmp118_;
4973 _tmp131_[1] = (GObject*) _tmp130_;
4974 _tmp132_ = _tmp131_;
4975 _tmp132__length1 = 2;
4976 _tmp133_ = valadoc_rule_seq (_tmp132_, (gint) 2);
4977 _tmp134_ = _tmp133_;
4978 _tmp135_ = valadoc_rule_set_name (_tmp134_, "Bold");
4979 _tmp136_ = _tmp135_;
4980 _tmp137_ = valadoc_rule_set_start (_tmp136_, ___lambda60__valadoc_rule_action, self);
4981 _tmp138_ = _tmp137_;
4982 _g_object_unref0 (_tmp136_);
4983 _g_object_unref0 (_tmp134_);
4984 _tmp132_ = (_vala_array_free (_tmp132_, _tmp132__length1, (GDestroyNotify) g_object_unref), NULL);
4985 _tmp129_ = (_vala_array_free (_tmp129_, _tmp129__length1, (GDestroyNotify) g_object_unref), NULL);
4986 _tmp126_ = (_vala_array_free (_tmp126_, _tmp126__length1, (GDestroyNotify) g_object_unref), NULL);
4987 bold = _tmp138_;
4988 _tmp139_ = valadoc_token_type_SLASH_2;
4989 _tmp140_ = _g_object_ref0 ((GObject*) _tmp139_);
4990 _tmp141_ = valadoc_token_type_SLASH_2;
4991 _tmp142_ = _g_object_ref0 ((GObject*) _tmp141_);
4992 _tmp143_ = _g_object_ref0 ((GObject*) optional_spaces);
4993 _tmp144_ = _g_object_ref0 ((GObject*) run);
4994 _tmp145_ = valadoc_token_type_SLASH_2;
4995 _tmp146_ = _g_object_ref0 ((GObject*) _tmp145_);
4996 _tmp147_ = g_new0 (GObject*, 3 + 1);
4997 _tmp147_[0] = _tmp143_;
4998 _tmp147_[1] = _tmp144_;
4999 _tmp147_[2] = _tmp146_;
5000 _tmp148_ = _tmp147_;
5001 _tmp148__length1 = 3;
5002 _tmp149_ = valadoc_rule_seq (_tmp148_, (gint) 3);
5003 _tmp150_ = g_new0 (GObject*, 2 + 1);
5004 _tmp150_[0] = _tmp142_;
5005 _tmp150_[1] = (GObject*) _tmp149_;
5006 _tmp151_ = _tmp150_;
5007 _tmp151__length1 = 2;
5008 _tmp152_ = valadoc_rule_one_of (_tmp151_, (gint) 2);
5009 _tmp153_ = g_new0 (GObject*, 2 + 1);
5010 _tmp153_[0] = _tmp140_;
5011 _tmp153_[1] = (GObject*) _tmp152_;
5012 _tmp154_ = _tmp153_;
5013 _tmp154__length1 = 2;
5014 _tmp155_ = valadoc_rule_seq (_tmp154_, (gint) 2);
5015 _tmp156_ = _tmp155_;
5016 _tmp157_ = valadoc_rule_set_name (_tmp156_, "Italic");
5017 _tmp158_ = _tmp157_;
5018 _tmp159_ = valadoc_rule_set_start (_tmp158_, ___lambda61__valadoc_rule_action, self);
5019 _tmp160_ = _tmp159_;
5020 _g_object_unref0 (_tmp158_);
5021 _g_object_unref0 (_tmp156_);
5022 _tmp154_ = (_vala_array_free (_tmp154_, _tmp154__length1, (GDestroyNotify) g_object_unref), NULL);
5023 _tmp151_ = (_vala_array_free (_tmp151_, _tmp151__length1, (GDestroyNotify) g_object_unref), NULL);
5024 _tmp148_ = (_vala_array_free (_tmp148_, _tmp148__length1, (GDestroyNotify) g_object_unref), NULL);
5025 italic = _tmp160_;
5026 _tmp161_ = valadoc_token_type_UNDERSCORE_2;
5027 _tmp162_ = _g_object_ref0 ((GObject*) _tmp161_);
5028 _tmp163_ = valadoc_token_type_UNDERSCORE_2;
5029 _tmp164_ = _g_object_ref0 ((GObject*) _tmp163_);
5030 _tmp165_ = _g_object_ref0 ((GObject*) optional_spaces);
5031 _tmp166_ = _g_object_ref0 ((GObject*) run);
5032 _tmp167_ = valadoc_token_type_UNDERSCORE_2;
5033 _tmp168_ = _g_object_ref0 ((GObject*) _tmp167_);
5034 _tmp169_ = g_new0 (GObject*, 3 + 1);
5035 _tmp169_[0] = _tmp165_;
5036 _tmp169_[1] = _tmp166_;
5037 _tmp169_[2] = _tmp168_;
5038 _tmp170_ = _tmp169_;
5039 _tmp170__length1 = 3;
5040 _tmp171_ = valadoc_rule_seq (_tmp170_, (gint) 3);
5041 _tmp172_ = g_new0 (GObject*, 2 + 1);
5042 _tmp172_[0] = _tmp164_;
5043 _tmp172_[1] = (GObject*) _tmp171_;
5044 _tmp173_ = _tmp172_;
5045 _tmp173__length1 = 2;
5046 _tmp174_ = valadoc_rule_one_of (_tmp173_, (gint) 2);
5047 _tmp175_ = g_new0 (GObject*, 2 + 1);
5048 _tmp175_[0] = _tmp162_;
5049 _tmp175_[1] = (GObject*) _tmp174_;
5050 _tmp176_ = _tmp175_;
5051 _tmp176__length1 = 2;
5052 _tmp177_ = valadoc_rule_seq (_tmp176_, (gint) 2);
5053 _tmp178_ = _tmp177_;
5054 _tmp179_ = valadoc_rule_set_name (_tmp178_, "Underlined");
5055 _tmp180_ = _tmp179_;
5056 _tmp181_ = valadoc_rule_set_start (_tmp180_, ___lambda62__valadoc_rule_action, self);
5057 _tmp182_ = _tmp181_;
5058 _g_object_unref0 (_tmp180_);
5059 _g_object_unref0 (_tmp178_);
5060 _tmp176_ = (_vala_array_free (_tmp176_, _tmp176__length1, (GDestroyNotify) g_object_unref), NULL);
5061 _tmp173_ = (_vala_array_free (_tmp173_, _tmp173__length1, (GDestroyNotify) g_object_unref), NULL);
5062 _tmp170_ = (_vala_array_free (_tmp170_, _tmp170__length1, (GDestroyNotify) g_object_unref), NULL);
5063 underlined = _tmp182_;
5064 _tmp183_ = valadoc_token_type_BACK_QUOTE_2;
5065 _tmp184_ = _g_object_ref0 ((GObject*) _tmp183_);
5066 _tmp185_ = valadoc_token_type_BACK_QUOTE_2;
5067 _tmp186_ = _g_object_ref0 ((GObject*) _tmp185_);
5068 _tmp187_ = _g_object_ref0 ((GObject*) optional_spaces);
5069 _tmp188_ = _g_object_ref0 ((GObject*) run);
5070 _tmp189_ = valadoc_token_type_BACK_QUOTE_2;
5071 _tmp190_ = _g_object_ref0 ((GObject*) _tmp189_);
5072 _tmp191_ = g_new0 (GObject*, 3 + 1);
5073 _tmp191_[0] = _tmp187_;
5074 _tmp191_[1] = _tmp188_;
5075 _tmp191_[2] = _tmp190_;
5076 _tmp192_ = _tmp191_;
5077 _tmp192__length1 = 3;
5078 _tmp193_ = valadoc_rule_seq (_tmp192_, (gint) 3);
5079 _tmp194_ = g_new0 (GObject*, 2 + 1);
5080 _tmp194_[0] = _tmp186_;
5081 _tmp194_[1] = (GObject*) _tmp193_;
5082 _tmp195_ = _tmp194_;
5083 _tmp195__length1 = 2;
5084 _tmp196_ = valadoc_rule_one_of (_tmp195_, (gint) 2);
5085 _tmp197_ = g_new0 (GObject*, 2 + 1);
5086 _tmp197_[0] = _tmp184_;
5087 _tmp197_[1] = (GObject*) _tmp196_;
5088 _tmp198_ = _tmp197_;
5089 _tmp198__length1 = 2;
5090 _tmp199_ = valadoc_rule_seq (_tmp198_, (gint) 2);
5091 _tmp200_ = _tmp199_;
5092 _tmp201_ = valadoc_rule_set_name (_tmp200_, "Monospace");
5093 _tmp202_ = _tmp201_;
5094 _tmp203_ = valadoc_rule_set_start (_tmp202_, ___lambda63__valadoc_rule_action, self);
5095 _tmp204_ = _tmp203_;
5096 _g_object_unref0 (_tmp202_);
5097 _g_object_unref0 (_tmp200_);
5098 _tmp198_ = (_vala_array_free (_tmp198_, _tmp198__length1, (GDestroyNotify) g_object_unref), NULL);
5099 _tmp195_ = (_vala_array_free (_tmp195_, _tmp195__length1, (GDestroyNotify) g_object_unref), NULL);
5100 _tmp192_ = (_vala_array_free (_tmp192_, _tmp192__length1, (GDestroyNotify) g_object_unref), NULL);
5101 monospace = _tmp204_;
5102 _tmp205_ = valadoc_token_type_DOUBLE_OPEN_BRACE;
5103 _tmp206_ = valadoc_token_type_action (_tmp205_, ___lambda64__valadoc_token_type_action, self);
5104 _tmp207_ = valadoc_token_type_any_word ();
5105 _tmp208_ = _tmp207_;
5106 _tmp209_ = valadoc_token_type_action (_tmp208_, ___lambda65__valadoc_token_type_action, self);
5107 _tmp210_ = valadoc_token_type_PIPE;
5108 _tmp211_ = valadoc_token_type_action (_tmp210_, ___lambda66__valadoc_token_type_action, self);
5109 _tmp212_ = _g_object_ref0 ((GObject*) text);
5110 _tmp213_ = g_new0 (GObject*, 2 + 1);
5111 _tmp213_[0] = (GObject*) _tmp211_;
5112 _tmp213_[1] = _tmp212_;
5113 _tmp214_ = _tmp213_;
5114 _tmp214__length1 = 2;
5115 _tmp215_ = valadoc_rule_option (_tmp214_, (gint) 2);
5116 _tmp216_ = _tmp215_;
5117 _tmp217_ = valadoc_rule_set_reduce (_tmp216_, ___lambda67__valadoc_rule_action, self);
5118 _tmp218_ = valadoc_token_type_DOUBLE_CLOSED_BRACE;
5119 _tmp219_ = valadoc_token_type_action (_tmp218_, ___lambda68__valadoc_token_type_action, self);
5120 _tmp220_ = g_new0 (GObject*, 4 + 1);
5121 _tmp220_[0] = (GObject*) _tmp206_;
5122 _tmp220_[1] = (GObject*) _tmp209_;
5123 _tmp220_[2] = (GObject*) _tmp217_;
5124 _tmp220_[3] = (GObject*) _tmp219_;
5125 _tmp221_ = _tmp220_;
5126 _tmp221__length1 = 4;
5127 _tmp222_ = valadoc_rule_seq (_tmp221_, (gint) 4);
5128 _tmp223_ = _tmp222_;
5129 _tmp224_ = valadoc_rule_set_name (_tmp223_, "Embedded");
5130 _tmp225_ = _tmp224_;
5131 _tmp226_ = valadoc_rule_set_start (_tmp225_, ___lambda69__valadoc_rule_action, self);
5132 _tmp227_ = _tmp226_;
5133 _g_object_unref0 (_tmp225_);
5134 _g_object_unref0 (_tmp223_);
5135 _tmp221_ = (_vala_array_free (_tmp221_, _tmp221__length1, (GDestroyNotify) g_object_unref), NULL);
5136 _g_object_unref0 (_tmp216_);
5137 _tmp214_ = (_vala_array_free (_tmp214_, _tmp214__length1, (GDestroyNotify) g_object_unref), NULL);
5138 _g_object_unref0 (_tmp208_);
5139 embedded = _tmp227_;
5140 _tmp228_ = valadoc_token_type_DOUBLE_OPEN_BRACKET;
5141 _tmp229_ = valadoc_token_type_action (_tmp228_, ___lambda70__valadoc_token_type_action, self);
5142 _tmp230_ = valadoc_token_type_any_word ();
5143 _tmp231_ = _tmp230_;
5144 _tmp232_ = valadoc_token_type_action (_tmp231_, ___lambda71__valadoc_token_type_action, self);
5145 _tmp233_ = valadoc_token_type_PIPE;
5146 _tmp234_ = valadoc_token_type_action (_tmp233_, ___lambda72__valadoc_token_type_action, self);
5147 _tmp235_ = _g_object_ref0 ((GObject*) run);
5148 _tmp236_ = g_new0 (GObject*, 2 + 1);
5149 _tmp236_[0] = (GObject*) _tmp234_;
5150 _tmp236_[1] = _tmp235_;
5151 _tmp237_ = _tmp236_;
5152 _tmp237__length1 = 2;
5153 _tmp238_ = valadoc_rule_option (_tmp237_, (gint) 2);
5154 _tmp239_ = valadoc_token_type_DOUBLE_CLOSED_BRACKET;
5155 _tmp240_ = valadoc_token_type_action (_tmp239_, ___lambda73__valadoc_token_type_action, self);
5156 _tmp241_ = g_new0 (GObject*, 4 + 1);
5157 _tmp241_[0] = (GObject*) _tmp229_;
5158 _tmp241_[1] = (GObject*) _tmp232_;
5159 _tmp241_[2] = (GObject*) _tmp238_;
5160 _tmp241_[3] = (GObject*) _tmp240_;
5161 _tmp242_ = _tmp241_;
5162 _tmp242__length1 = 4;
5163 _tmp243_ = valadoc_rule_seq (_tmp242_, (gint) 4);
5164 _tmp244_ = _tmp243_;
5165 _tmp245_ = valadoc_rule_set_name (_tmp244_, "Link");
5166 _tmp246_ = _tmp245_;
5167 _g_object_unref0 (_tmp244_);
5168 _tmp242_ = (_vala_array_free (_tmp242_, _tmp242__length1, (GDestroyNotify) g_object_unref), NULL);
5169 _tmp237_ = (_vala_array_free (_tmp237_, _tmp237__length1, (GDestroyNotify) g_object_unref), NULL);
5170 _g_object_unref0 (_tmp231_);
5171 link = _tmp246_;
5172 _tmp247_ = valadoc_token_type_TRIPLE_OPEN_BRACE;
5173 _tmp248_ = valadoc_token_type_action (_tmp247_, ___lambda74__valadoc_token_type_action, self);
5174 _tmp249_ = valadoc_token_type_any_word ();
5175 _tmp250_ = _tmp249_;
5176 _tmp251_ = valadoc_token_type_action (_tmp250_, ___lambda75__valadoc_token_type_action, self);
5177 _tmp252_ = valadoc_token_type_TRIPLE_CLOSED_BRACE;
5178 _tmp253_ = valadoc_token_type_action (_tmp252_, ___lambda76__valadoc_token_type_action, self);
5179 _tmp254_ = g_new0 (GObject*, 3 + 1);
5180 _tmp254_[0] = (GObject*) _tmp248_;
5181 _tmp254_[1] = (GObject*) _tmp251_;
5182 _tmp254_[2] = (GObject*) _tmp253_;
5183 _tmp255_ = _tmp254_;
5184 _tmp255__length1 = 3;
5185 _tmp256_ = valadoc_rule_seq (_tmp255_, (gint) 3);
5186 _tmp257_ = _tmp256_;
5187 _tmp258_ = valadoc_rule_set_name (_tmp257_, "SourceCode");
5188 _tmp259_ = _tmp258_;
5189 _tmp260_ = valadoc_rule_set_start (_tmp259_, ___lambda77__valadoc_rule_action, self);
5190 _tmp261_ = _tmp260_;
5191 _g_object_unref0 (_tmp259_);
5192 _g_object_unref0 (_tmp257_);
5193 _tmp255_ = (_vala_array_free (_tmp255_, _tmp255__length1, (GDestroyNotify) g_object_unref), NULL);
5194 _g_object_unref0 (_tmp250_);
5195 source_code = _tmp261_;
5196 append_head_to_head2 = ___lambda78__valadoc_rule_action;
5197 append_head_to_head2_target = g_object_ref (self);
5198 append_head_to_head2_target_destroy_notify = g_object_unref;
5199 _tmp262_ = _g_object_ref0 ((GObject*) text);
5200 _tmp263_ = g_new0 (GObject*, 1 + 1);
5201 _tmp263_[0] = _tmp262_;
5202 _tmp264_ = _tmp263_;
5203 _tmp264__length1 = 1;
5204 _tmp265_ = valadoc_rule_seq (_tmp264_, (gint) 1);
5205 _tmp266_ = _tmp265_;
5206 _tmp267_ = valadoc_rule_set_reduce (_tmp266_, append_head_to_head2, append_head_to_head2_target);
5207 _tmp268_ = _g_object_ref0 ((GObject*) inline_taglet);
5208 _tmp269_ = _g_object_ref0 ((GObject*) bold);
5209 _tmp270_ = _g_object_ref0 ((GObject*) italic);
5210 _tmp271_ = _g_object_ref0 ((GObject*) underlined);
5211 _tmp272_ = _g_object_ref0 ((GObject*) monospace);
5212 _tmp273_ = _g_object_ref0 ((GObject*) embedded);
5213 _tmp274_ = _g_object_ref0 ((GObject*) link);
5214 _tmp275_ = _g_object_ref0 ((GObject*) source_code);
5215 _tmp276_ = g_new0 (GObject*, 8 + 1);
5216 _tmp276_[0] = _tmp268_;
5217 _tmp276_[1] = _tmp269_;
5218 _tmp276_[2] = _tmp270_;
5219 _tmp276_[3] = _tmp271_;
5220 _tmp276_[4] = _tmp272_;
5221 _tmp276_[5] = _tmp273_;
5222 _tmp276_[6] = _tmp274_;
5223 _tmp276_[7] = _tmp275_;
5224 _tmp277_ = _tmp276_;
5225 _tmp277__length1 = 8;
5226 _tmp278_ = valadoc_rule_one_of (_tmp277_, (gint) 8);
5227 _tmp279_ = _tmp278_;
5228 _tmp280_ = valadoc_rule_set_reduce (_tmp279_, append_head_to_head2, append_head_to_head2_target);
5229 _tmp281_ = _g_object_ref0 ((GObject*) optional_spaces);
5230 _tmp282_ = g_new0 (GObject*, 2 + 1);
5231 _tmp282_[0] = (GObject*) _tmp280_;
5232 _tmp282_[1] = _tmp281_;
5233 _tmp283_ = _tmp282_;
5234 _tmp283__length1 = 2;
5235 _tmp284_ = valadoc_rule_seq (_tmp283_, (gint) 2);
5236 _tmp285_ = g_new0 (GObject*, 2 + 1);
5237 _tmp285_[0] = (GObject*) _tmp267_;
5238 _tmp285_[1] = (GObject*) _tmp284_;
5239 _tmp286_ = _tmp285_;
5240 _tmp286__length1 = 2;
5241 _tmp287_ = valadoc_rule_one_of (_tmp286_, (gint) 2);
5242 _tmp288_ = _tmp287_;
5243 _tmp286_ = (_vala_array_free (_tmp286_, _tmp286__length1, (GDestroyNotify) g_object_unref), NULL);
5244 _tmp283_ = (_vala_array_free (_tmp283_, _tmp283__length1, (GDestroyNotify) g_object_unref), NULL);
5245 _g_object_unref0 (_tmp279_);
5246 _tmp277_ = (_vala_array_free (_tmp277_, _tmp277__length1, (GDestroyNotify) g_object_unref), NULL);
5247 _g_object_unref0 (_tmp266_);
5248 _tmp264_ = (_vala_array_free (_tmp264_, _tmp264__length1, (GDestroyNotify) g_object_unref), NULL);
5249 run_subrules = _tmp288_;
5250 _tmp289_ = valadoc_token_type_AROBASE;
5251 _tmp290_ = valadoc_token_type_action (_tmp289_, _valadoc_documentation_parser_add_text_valadoc_token_type_action, self);
5252 _tmp291_ = g_new0 (GObject*, 1 + 1);
5253 _tmp291_[0] = (GObject*) _tmp290_;
5254 _tmp292_ = _tmp291_;
5255 _tmp292__length1 = 1;
5256 _tmp293_ = valadoc_rule_seq (_tmp292_, (gint) 1);
5257 _tmp294_ = _tmp293_;
5258 _tmp295_ = valadoc_rule_set_reduce (_tmp294_, append_head_to_head2, append_head_to_head2_target);
5259 _tmp296_ = _tmp295_;
5260 _g_object_unref0 (_tmp294_);
5261 _tmp292_ = (_vala_array_free (_tmp292_, _tmp292__length1, (GDestroyNotify) g_object_unref), NULL);
5262 run_arobase = _tmp296_;
5263 _tmp297_ = _g_object_ref0 ((GObject*) run_subrules);
5264 _tmp298_ = _g_object_ref0 ((GObject*) optional_spaces);
5265 _tmp299_ = _g_object_ref0 ((GObject*) run_arobase);
5266 _tmp300_ = _g_object_ref0 ((GObject*) run_subrules);
5267 _tmp301_ = _g_object_ref0 ((GObject*) optional_spaces);
5268 _tmp302_ = g_new0 (GObject*, 3 + 1);
5269 _tmp302_[0] = _tmp299_;
5270 _tmp302_[1] = _tmp300_;
5271 _tmp302_[2] = _tmp301_;
5272 _tmp303_ = _tmp302_;
5273 _tmp303__length1 = 3;
5274 _tmp304_ = valadoc_rule_one_of (_tmp303_, (gint) 3);
5275 _tmp305_ = g_new0 (GObject*, 1 + 1);
5276 _tmp305_[0] = (GObject*) _tmp304_;
5277 _tmp306_ = _tmp305_;
5278 _tmp306__length1 = 1;
5279 _tmp307_ = valadoc_rule_many (_tmp306_, (gint) 1);
5280 _tmp308_ = g_new0 (GObject*, 1 + 1);
5281 _tmp308_[0] = (GObject*) _tmp307_;
5282 _tmp309_ = _tmp308_;
5283 _tmp309__length1 = 1;
5284 _tmp310_ = valadoc_rule_option (_tmp309_, (gint) 1);
5285 _tmp311_ = g_new0 (GObject*, 3 + 1);
5286 _tmp311_[0] = _tmp297_;
5287 _tmp311_[1] = _tmp298_;
5288 _tmp311_[2] = (GObject*) _tmp310_;
5289 _tmp312_ = _tmp311_;
5290 _tmp312__length1 = 3;
5291 _tmp313_ = valadoc_rule_seq (_tmp312_, (gint) 3);
5292 _tmp314_ = _tmp313_;
5293 _tmp315_ = valadoc_rule_set_name (_tmp314_, "Run");
5294 _tmp316_ = _tmp315_;
5295 _tmp317_ = valadoc_stub_rule_set_rule (run, _tmp316_);
5296 _tmp318_ = _tmp317_;
5297 _g_object_unref0 (_tmp318_);
5298 _g_object_unref0 (_tmp316_);
5299 _g_object_unref0 (_tmp314_);
5300 _tmp312_ = (_vala_array_free (_tmp312_, _tmp312__length1, (GDestroyNotify) g_object_unref), NULL);
5301 _tmp309_ = (_vala_array_free (_tmp309_, _tmp309__length1, (GDestroyNotify) g_object_unref), NULL);
5302 _tmp306_ = (_vala_array_free (_tmp306_, _tmp306__length1, (GDestroyNotify) g_object_unref), NULL);
5303 _tmp303_ = (_vala_array_free (_tmp303_, _tmp303__length1, (GDestroyNotify) g_object_unref), NULL);
5304 reduce_paragraph = ___lambda79__valadoc_rule_action;
5305 reduce_paragraph_target = g_object_ref (self);
5306 reduce_paragraph_target_destroy_notify = g_object_unref;
5307 _tmp319_ = valadoc_token_type_ALIGN_CENTER;
5308 _tmp320_ = valadoc_token_type_action (_tmp319_, ___lambda80__valadoc_token_type_action, self);
5309 _tmp321_ = valadoc_token_type_ALIGN_RIGHT;
5310 _tmp322_ = valadoc_token_type_action (_tmp321_, ___lambda81__valadoc_token_type_action, self);
5311 _tmp323_ = g_new0 (GObject*, 2 + 1);
5312 _tmp323_[0] = (GObject*) _tmp320_;
5313 _tmp323_[1] = (GObject*) _tmp322_;
5314 _tmp324_ = _tmp323_;
5315 _tmp324__length1 = 2;
5316 _tmp325_ = valadoc_rule_one_of (_tmp324_, (gint) 2);
5317 _tmp326_ = g_new0 (GObject*, 1 + 1);
5318 _tmp326_[0] = (GObject*) _tmp325_;
5319 _tmp327_ = _tmp326_;
5320 _tmp327__length1 = 1;
5321 _tmp328_ = valadoc_rule_option (_tmp327_, (gint) 1);
5322 _tmp329_ = _g_object_ref0 ((GObject*) run);
5323 _tmp330_ = valadoc_token_type_EOL;
5324 _tmp331_ = valadoc_token_type_action (_tmp330_, _valadoc_documentation_parser_add_content_space_valadoc_token_type_action, self);
5325 _tmp332_ = g_new0 (GObject*, 2 + 1);
5326 _tmp332_[0] = _tmp329_;
5327 _tmp332_[1] = (GObject*) _tmp331_;
5328 _tmp333_ = _tmp332_;
5329 _tmp333__length1 = 2;
5330 _tmp334_ = valadoc_rule_many (_tmp333_, (gint) 2);
5331 _tmp335_ = g_new0 (GObject*, 2 + 1);
5332 _tmp335_[0] = (GObject*) _tmp328_;
5333 _tmp335_[1] = (GObject*) _tmp334_;
5334 _tmp336_ = _tmp335_;
5335 _tmp336__length1 = 2;
5336 _tmp337_ = valadoc_rule_seq (_tmp336_, (gint) 2);
5337 _tmp338_ = _tmp337_;
5338 _tmp339_ = valadoc_rule_set_name (_tmp338_, "Paragraph");
5339 _tmp340_ = _tmp339_;
5340 _tmp341_ = valadoc_rule_set_start (_tmp340_, ___lambda82__valadoc_rule_action, self);
5341 _tmp342_ = _tmp341_;
5342 _tmp343_ = valadoc_rule_set_reduce (_tmp342_, reduce_paragraph, reduce_paragraph_target);
5343 _tmp344_ = _tmp343_;
5344 _g_object_unref0 (_tmp342_);
5345 _g_object_unref0 (_tmp340_);
5346 _g_object_unref0 (_tmp338_);
5347 _tmp336_ = (_vala_array_free (_tmp336_, _tmp336__length1, (GDestroyNotify) g_object_unref), NULL);
5348 _tmp333_ = (_vala_array_free (_tmp333_, _tmp333__length1, (GDestroyNotify) g_object_unref), NULL);
5349 _tmp327_ = (_vala_array_free (_tmp327_, _tmp327__length1, (GDestroyNotify) g_object_unref), NULL);
5350 _tmp324_ = (_vala_array_free (_tmp324_, _tmp324__length1, (GDestroyNotify) g_object_unref), NULL);
5351 paragraph = _tmp344_;
5352 _tmp345_ = valadoc_token_type_str ("Warning:");
5353 _tmp346_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5354 _tmp347_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5355 _tmp348_ = _g_object_ref0 ((GObject*) run);
5356 _tmp349_ = g_new0 (GObject*, 2 + 1);
5357 _tmp349_[0] = _tmp347_;
5358 _tmp349_[1] = _tmp348_;
5359 _tmp350_ = _tmp349_;
5360 _tmp350__length1 = 2;
5361 _tmp351_ = valadoc_rule_seq (_tmp350_, (gint) 2);
5362 _tmp352_ = valadoc_token_type_EOL;
5363 _tmp353_ = valadoc_token_type_action (_tmp352_, _valadoc_documentation_parser_add_content_space_valadoc_token_type_action, self);
5364 _tmp354_ = g_new0 (GObject*, 2 + 1);
5365 _tmp354_[0] = (GObject*) _tmp351_;
5366 _tmp354_[1] = (GObject*) _tmp353_;
5367 _tmp355_ = _tmp354_;
5368 _tmp355__length1 = 2;
5369 _tmp356_ = valadoc_rule_many (_tmp355_, (gint) 2);
5370 _tmp357_ = g_new0 (GObject*, 3 + 1);
5371 _tmp357_[0] = (GObject*) _tmp345_;
5372 _tmp357_[1] = _tmp346_;
5373 _tmp357_[2] = (GObject*) _tmp356_;
5374 _tmp358_ = _tmp357_;
5375 _tmp358__length1 = 3;
5376 _tmp359_ = valadoc_rule_seq (_tmp358_, (gint) 3);
5377 _tmp360_ = _tmp359_;
5378 _tmp361_ = valadoc_rule_set_name (_tmp360_, "Warning");
5379 _tmp362_ = _tmp361_;
5380 _tmp363_ = valadoc_rule_set_start (_tmp362_, ___lambda83__valadoc_rule_action, self);
5381 _tmp364_ = _tmp363_;
5382 _tmp365_ = valadoc_rule_set_reduce (_tmp364_, ___lambda84__valadoc_rule_action, self);
5383 _tmp366_ = _tmp365_;
5384 _g_object_unref0 (_tmp364_);
5385 _g_object_unref0 (_tmp362_);
5386 _g_object_unref0 (_tmp360_);
5387 _tmp358_ = (_vala_array_free (_tmp358_, _tmp358__length1, (GDestroyNotify) g_object_unref), NULL);
5388 _tmp355_ = (_vala_array_free (_tmp355_, _tmp355__length1, (GDestroyNotify) g_object_unref), NULL);
5389 _tmp350_ = (_vala_array_free (_tmp350_, _tmp350__length1, (GDestroyNotify) g_object_unref), NULL);
5390 warning = _tmp366_;
5391 _tmp367_ = valadoc_token_type_str ("Note:");
5392 _tmp368_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5393 _tmp369_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5394 _tmp370_ = _g_object_ref0 ((GObject*) run);
5395 _tmp371_ = g_new0 (GObject*, 2 + 1);
5396 _tmp371_[0] = _tmp369_;
5397 _tmp371_[1] = _tmp370_;
5398 _tmp372_ = _tmp371_;
5399 _tmp372__length1 = 2;
5400 _tmp373_ = valadoc_rule_seq (_tmp372_, (gint) 2);
5401 _tmp374_ = valadoc_token_type_EOL;
5402 _tmp375_ = valadoc_token_type_action (_tmp374_, _valadoc_documentation_parser_add_content_space_valadoc_token_type_action, self);
5403 _tmp376_ = g_new0 (GObject*, 2 + 1);
5404 _tmp376_[0] = (GObject*) _tmp373_;
5405 _tmp376_[1] = (GObject*) _tmp375_;
5406 _tmp377_ = _tmp376_;
5407 _tmp377__length1 = 2;
5408 _tmp378_ = valadoc_rule_many (_tmp377_, (gint) 2);
5409 _tmp379_ = g_new0 (GObject*, 3 + 1);
5410 _tmp379_[0] = (GObject*) _tmp367_;
5411 _tmp379_[1] = _tmp368_;
5412 _tmp379_[2] = (GObject*) _tmp378_;
5413 _tmp380_ = _tmp379_;
5414 _tmp380__length1 = 3;
5415 _tmp381_ = valadoc_rule_seq (_tmp380_, (gint) 3);
5416 _tmp382_ = _tmp381_;
5417 _tmp383_ = valadoc_rule_set_name (_tmp382_, "Note");
5418 _tmp384_ = _tmp383_;
5419 _tmp385_ = valadoc_rule_set_start (_tmp384_, ___lambda85__valadoc_rule_action, self);
5420 _tmp386_ = _tmp385_;
5421 _tmp387_ = valadoc_rule_set_reduce (_tmp386_, ___lambda86__valadoc_rule_action, self);
5422 _tmp388_ = _tmp387_;
5423 _g_object_unref0 (_tmp386_);
5424 _g_object_unref0 (_tmp384_);
5425 _g_object_unref0 (_tmp382_);
5426 _tmp380_ = (_vala_array_free (_tmp380_, _tmp380__length1, (GDestroyNotify) g_object_unref), NULL);
5427 _tmp377_ = (_vala_array_free (_tmp377_, _tmp377__length1, (GDestroyNotify) g_object_unref), NULL);
5428 _tmp372_ = (_vala_array_free (_tmp372_, _tmp372__length1, (GDestroyNotify) g_object_unref), NULL);
5429 note = _tmp388_;
5430 _tmp389_ = valadoc_token_type_SPACE;
5431 _tmp390_ = valadoc_token_type_action (_tmp389_, ___lambda87__valadoc_token_type_action, self);
5432 _tmp391_ = g_new0 (GObject*, 1 + 1);
5433 _tmp391_[0] = (GObject*) _tmp390_;
5434 _tmp392_ = _tmp391_;
5435 _tmp392__length1 = 1;
5436 _tmp393_ = valadoc_rule_many (_tmp392_, (gint) 1);
5437 _tmp394_ = valadoc_token_type_str (".");
5438 _tmp395_ = _tmp394_;
5439 _tmp396_ = valadoc_token_type_action (_tmp395_, ___lambda88__valadoc_token_type_action, self);
5440 _tmp397_ = valadoc_token_type_str ("*");
5441 _tmp398_ = _tmp397_;
5442 _tmp399_ = valadoc_token_type_action (_tmp398_, ___lambda89__valadoc_token_type_action, self);
5443 _tmp400_ = valadoc_token_type_str ("#");
5444 _tmp401_ = _tmp400_;
5445 _tmp402_ = valadoc_token_type_action (_tmp401_, ___lambda90__valadoc_token_type_action, self);
5446 _tmp403_ = valadoc_token_type_str ("1.");
5447 _tmp404_ = _tmp403_;
5448 _tmp405_ = valadoc_token_type_action (_tmp404_, ___lambda91__valadoc_token_type_action, self);
5449 _tmp406_ = valadoc_token_type_str ("a.");
5450 _tmp407_ = _tmp406_;
5451 _tmp408_ = valadoc_token_type_action (_tmp407_, ___lambda92__valadoc_token_type_action, self);
5452 _tmp409_ = valadoc_token_type_str ("A.");
5453 _tmp410_ = _tmp409_;
5454 _tmp411_ = valadoc_token_type_action (_tmp410_, ___lambda93__valadoc_token_type_action, self);
5455 _tmp412_ = valadoc_token_type_str ("i.");
5456 _tmp413_ = _tmp412_;
5457 _tmp414_ = valadoc_token_type_action (_tmp413_, ___lambda94__valadoc_token_type_action, self);
5458 _tmp415_ = valadoc_token_type_str ("I.");
5459 _tmp416_ = _tmp415_;
5460 _tmp417_ = valadoc_token_type_action (_tmp416_, ___lambda95__valadoc_token_type_action, self);
5461 _tmp418_ = g_new0 (GObject*, 8 + 1);
5462 _tmp418_[0] = (GObject*) _tmp396_;
5463 _tmp418_[1] = (GObject*) _tmp399_;
5464 _tmp418_[2] = (GObject*) _tmp402_;
5465 _tmp418_[3] = (GObject*) _tmp405_;
5466 _tmp418_[4] = (GObject*) _tmp408_;
5467 _tmp418_[5] = (GObject*) _tmp411_;
5468 _tmp418_[6] = (GObject*) _tmp414_;
5469 _tmp418_[7] = (GObject*) _tmp417_;
5470 _tmp419_ = _tmp418_;
5471 _tmp419__length1 = 8;
5472 _tmp420_ = valadoc_rule_one_of (_tmp419_, (gint) 8);
5473 _tmp421_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5474 _tmp422_ = g_new0 (GObject*, 2 + 1);
5475 _tmp422_[0] = (GObject*) _tmp420_;
5476 _tmp422_[1] = _tmp421_;
5477 _tmp423_ = _tmp422_;
5478 _tmp423__length1 = 2;
5479 _tmp424_ = valadoc_rule_option (_tmp423_, (gint) 2);
5480 _tmp425_ = _g_object_ref0 ((GObject*) run);
5481 _tmp426_ = g_new0 (GObject*, 1 + 1);
5482 _tmp426_[0] = _tmp425_;
5483 _tmp427_ = _tmp426_;
5484 _tmp427__length1 = 1;
5485 _tmp428_ = valadoc_rule_seq (_tmp427_, (gint) 1);
5486 _tmp429_ = _tmp428_;
5487 _tmp430_ = valadoc_rule_set_start (_tmp429_, ___lambda96__valadoc_rule_action, self);
5488 _tmp431_ = _tmp430_;
5489 _tmp432_ = valadoc_rule_set_reduce (_tmp431_, ___lambda97__valadoc_rule_action, self);
5490 _tmp433_ = valadoc_token_type_EOL;
5491 _tmp434_ = _g_object_ref0 ((GObject*) _tmp433_);
5492 _tmp435_ = g_new0 (GObject*, 4 + 1);
5493 _tmp435_[0] = (GObject*) _tmp393_;
5494 _tmp435_[1] = (GObject*) _tmp424_;
5495 _tmp435_[2] = (GObject*) _tmp432_;
5496 _tmp435_[3] = _tmp434_;
5497 _tmp436_ = _tmp435_;
5498 _tmp436__length1 = 4;
5499 _tmp437_ = valadoc_rule_seq (_tmp436_, (gint) 4);
5500 _tmp438_ = _tmp437_;
5501 _tmp439_ = valadoc_rule_set_name (_tmp438_, "IndentedItem");
5502 _tmp440_ = _tmp439_;
5503 _tmp441_ = valadoc_rule_set_start (_tmp440_, ___lambda98__valadoc_rule_action, self);
5504 _tmp442_ = _tmp441_;
5505 _tmp443_ = valadoc_rule_set_reduce (_tmp442_, ___lambda99__valadoc_rule_action, self);
5506 _tmp444_ = _tmp443_;
5507 _g_object_unref0 (_tmp442_);
5508 _g_object_unref0 (_tmp440_);
5509 _g_object_unref0 (_tmp438_);
5510 _tmp436_ = (_vala_array_free (_tmp436_, _tmp436__length1, (GDestroyNotify) g_object_unref), NULL);
5511 _g_object_unref0 (_tmp431_);
5512 _g_object_unref0 (_tmp429_);
5513 _tmp427_ = (_vala_array_free (_tmp427_, _tmp427__length1, (GDestroyNotify) g_object_unref), NULL);
5514 _tmp423_ = (_vala_array_free (_tmp423_, _tmp423__length1, (GDestroyNotify) g_object_unref), NULL);
5515 _tmp419_ = (_vala_array_free (_tmp419_, _tmp419__length1, (GDestroyNotify) g_object_unref), NULL);
5516 _g_object_unref0 (_tmp416_);
5517 _g_object_unref0 (_tmp413_);
5518 _g_object_unref0 (_tmp410_);
5519 _g_object_unref0 (_tmp407_);
5520 _g_object_unref0 (_tmp404_);
5521 _g_object_unref0 (_tmp401_);
5522 _g_object_unref0 (_tmp398_);
5523 _g_object_unref0 (_tmp395_);
5524 _tmp392_ = (_vala_array_free (_tmp392_, _tmp392__length1, (GDestroyNotify) g_object_unref), NULL);
5525 indented_item = _tmp444_;
5526 _tmp445_ = _g_object_ref0 ((GObject*) indented_item);
5527 _tmp446_ = g_new0 (GObject*, 1 + 1);
5528 _tmp446_[0] = _tmp445_;
5529 _tmp447_ = _tmp446_;
5530 _tmp447__length1 = 1;
5531 _tmp448_ = valadoc_rule_many (_tmp447_, (gint) 1);
5532 _tmp449_ = _tmp448_;
5533 _tmp450_ = valadoc_rule_set_name (_tmp449_, "IndentedBlocks");
5534 _tmp451_ = _tmp450_;
5535 _tmp452_ = valadoc_rule_set_reduce (_tmp451_, ___lambda100__valadoc_rule_action, self);
5536 _tmp453_ = _tmp452_;
5537 _g_object_unref0 (_tmp451_);
5538 _g_object_unref0 (_tmp449_);
5539 _tmp447_ = (_vala_array_free (_tmp447_, _tmp447__length1, (GDestroyNotify) g_object_unref), NULL);
5540 indented_blocks = _tmp453_;
5541 _tmp454_ = valadoc_token_type_LESS_THAN;
5542 _tmp455_ = _g_object_ref0 ((GObject*) _tmp454_);
5543 _tmp456_ = valadoc_token_type_ALIGN_RIGHT;
5544 _tmp457_ = valadoc_token_type_action (_tmp456_, ___lambda101__valadoc_token_type_action, self);
5545 _tmp458_ = valadoc_token_type_ALIGN_CENTER;
5546 _tmp459_ = valadoc_token_type_action (_tmp458_, ___lambda102__valadoc_token_type_action, self);
5547 _tmp460_ = g_new0 (GObject*, 2 + 1);
5548 _tmp460_[0] = (GObject*) _tmp457_;
5549 _tmp460_[1] = (GObject*) _tmp459_;
5550 _tmp461_ = _tmp460_;
5551 _tmp461__length1 = 2;
5552 _tmp462_ = valadoc_rule_one_of (_tmp461_, (gint) 2);
5553 _tmp463_ = g_new0 (GObject*, 1 + 1);
5554 _tmp463_[0] = (GObject*) _tmp462_;
5555 _tmp464_ = _tmp463_;
5556 _tmp464__length1 = 1;
5557 _tmp465_ = valadoc_rule_option (_tmp464_, (gint) 1);
5558 _tmp466_ = valadoc_token_type_ALIGN_TOP;
5559 _tmp467_ = valadoc_token_type_action (_tmp466_, ___lambda103__valadoc_token_type_action, self);
5560 _tmp468_ = valadoc_token_type_ALIGN_BOTTOM;
5561 _tmp469_ = valadoc_token_type_action (_tmp468_, ___lambda104__valadoc_token_type_action, self);
5562 _tmp470_ = g_new0 (GObject*, 2 + 1);
5563 _tmp470_[0] = (GObject*) _tmp467_;
5564 _tmp470_[1] = (GObject*) _tmp469_;
5565 _tmp471_ = _tmp470_;
5566 _tmp471__length1 = 2;
5567 _tmp472_ = valadoc_rule_one_of (_tmp471_, (gint) 2);
5568 _tmp473_ = g_new0 (GObject*, 1 + 1);
5569 _tmp473_[0] = (GObject*) _tmp472_;
5570 _tmp474_ = _tmp473_;
5571 _tmp474__length1 = 1;
5572 _tmp475_ = valadoc_rule_option (_tmp474_, (gint) 1);
5573 _tmp476_ = g_new0 (GObject*, 2 + 1);
5574 _tmp476_[0] = (GObject*) _tmp465_;
5575 _tmp476_[1] = (GObject*) _tmp475_;
5576 _tmp477_ = _tmp476_;
5577 _tmp477__length1 = 2;
5578 _tmp478_ = valadoc_rule_seq (_tmp477_, (gint) 2);
5579 _tmp479_ = valadoc_token_type_any_word ();
5580 _tmp480_ = _tmp479_;
5581 _tmp481_ = valadoc_token_type_action (_tmp480_, ___lambda105__valadoc_token_type_action, self);
5582 _tmp482_ = g_new0 (GObject*, 2 + 1);
5583 _tmp482_[0] = (GObject*) _tmp478_;
5584 _tmp482_[1] = (GObject*) _tmp481_;
5585 _tmp483_ = _tmp482_;
5586 _tmp483__length1 = 2;
5587 _tmp484_ = valadoc_rule_one_of (_tmp483_, (gint) 2);
5588 _tmp485_ = g_new0 (GObject*, 1 + 1);
5589 _tmp485_[0] = (GObject*) _tmp484_;
5590 _tmp486_ = _tmp485_;
5591 _tmp486__length1 = 1;
5592 _tmp487_ = valadoc_rule_option (_tmp486_, (gint) 1);
5593 _tmp488_ = valadoc_token_type_PIPE;
5594 _tmp489_ = _g_object_ref0 ((GObject*) _tmp488_);
5595 _tmp490_ = valadoc_token_type_any_number ();
5596 _tmp491_ = _tmp490_;
5597 _tmp492_ = valadoc_token_type_action (_tmp491_, ___lambda106__valadoc_token_type_action, self);
5598 _tmp493_ = g_new0 (GObject*, 2 + 1);
5599 _tmp493_[0] = _tmp489_;
5600 _tmp493_[1] = (GObject*) _tmp492_;
5601 _tmp494_ = _tmp493_;
5602 _tmp494__length1 = 2;
5603 _tmp495_ = valadoc_rule_seq (_tmp494_, (gint) 2);
5604 _tmp496_ = valadoc_token_type_MINUS;
5605 _tmp497_ = _g_object_ref0 ((GObject*) _tmp496_);
5606 _tmp498_ = valadoc_token_type_any_number ();
5607 _tmp499_ = _tmp498_;
5608 _tmp500_ = valadoc_token_type_action (_tmp499_, ___lambda107__valadoc_token_type_action, self);
5609 _tmp501_ = g_new0 (GObject*, 2 + 1);
5610 _tmp501_[0] = _tmp497_;
5611 _tmp501_[1] = (GObject*) _tmp500_;
5612 _tmp502_ = _tmp501_;
5613 _tmp502__length1 = 2;
5614 _tmp503_ = valadoc_rule_seq (_tmp502_, (gint) 2);
5615 _tmp504_ = g_new0 (GObject*, 2 + 1);
5616 _tmp504_[0] = (GObject*) _tmp495_;
5617 _tmp504_[1] = (GObject*) _tmp503_;
5618 _tmp505_ = _tmp504_;
5619 _tmp505__length1 = 2;
5620 _tmp506_ = valadoc_rule_one_of (_tmp505_, (gint) 2);
5621 _tmp507_ = g_new0 (GObject*, 1 + 1);
5622 _tmp507_[0] = (GObject*) _tmp506_;
5623 _tmp508_ = _tmp507_;
5624 _tmp508__length1 = 1;
5625 _tmp509_ = valadoc_rule_option (_tmp508_, (gint) 1);
5626 _tmp510_ = valadoc_token_type_GREATER_THAN;
5627 _tmp511_ = _g_object_ref0 ((GObject*) _tmp510_);
5628 _tmp512_ = g_new0 (GObject*, 4 + 1);
5629 _tmp512_[0] = _tmp455_;
5630 _tmp512_[1] = (GObject*) _tmp487_;
5631 _tmp512_[2] = (GObject*) _tmp509_;
5632 _tmp512_[3] = _tmp511_;
5633 _tmp513_ = _tmp512_;
5634 _tmp513__length1 = 4;
5635 _tmp514_ = valadoc_rule_seq (_tmp513_, (gint) 4);
5636 _tmp515_ = _tmp514_;
5637 _tmp516_ = valadoc_rule_set_name (_tmp515_, "CellAttributes");
5638 _tmp517_ = _tmp516_;
5639 _g_object_unref0 (_tmp515_);
5640 _tmp513_ = (_vala_array_free (_tmp513_, _tmp513__length1, (GDestroyNotify) g_object_unref), NULL);
5641 _tmp508_ = (_vala_array_free (_tmp508_, _tmp508__length1, (GDestroyNotify) g_object_unref), NULL);
5642 _tmp505_ = (_vala_array_free (_tmp505_, _tmp505__length1, (GDestroyNotify) g_object_unref), NULL);
5643 _tmp502_ = (_vala_array_free (_tmp502_, _tmp502__length1, (GDestroyNotify) g_object_unref), NULL);
5644 _g_object_unref0 (_tmp499_);
5645 _tmp494_ = (_vala_array_free (_tmp494_, _tmp494__length1, (GDestroyNotify) g_object_unref), NULL);
5646 _g_object_unref0 (_tmp491_);
5647 _tmp486_ = (_vala_array_free (_tmp486_, _tmp486__length1, (GDestroyNotify) g_object_unref), NULL);
5648 _tmp483_ = (_vala_array_free (_tmp483_, _tmp483__length1, (GDestroyNotify) g_object_unref), NULL);
5649 _g_object_unref0 (_tmp480_);
5650 _tmp477_ = (_vala_array_free (_tmp477_, _tmp477__length1, (GDestroyNotify) g_object_unref), NULL);
5651 _tmp474_ = (_vala_array_free (_tmp474_, _tmp474__length1, (GDestroyNotify) g_object_unref), NULL);
5652 _tmp471_ = (_vala_array_free (_tmp471_, _tmp471__length1, (GDestroyNotify) g_object_unref), NULL);
5653 _tmp464_ = (_vala_array_free (_tmp464_, _tmp464__length1, (GDestroyNotify) g_object_unref), NULL);
5654 _tmp461_ = (_vala_array_free (_tmp461_, _tmp461__length1, (GDestroyNotify) g_object_unref), NULL);
5655 table_cell_attributes = _tmp517_;
5656 _tmp518_ = _g_object_ref0 ((GObject*) table_cell_attributes);
5657 _tmp519_ = g_new0 (GObject*, 1 + 1);
5658 _tmp519_[0] = _tmp518_;
5659 _tmp520_ = _tmp519_;
5660 _tmp520__length1 = 1;
5661 _tmp521_ = valadoc_rule_option (_tmp520_, (gint) 1);
5662 _tmp522_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5663 _tmp523_ = _g_object_ref0 ((GObject*) run);
5664 _tmp524_ = g_new0 (GObject*, 3 + 1);
5665 _tmp524_[0] = (GObject*) _tmp521_;
5666 _tmp524_[1] = _tmp522_;
5667 _tmp524_[2] = _tmp523_;
5668 _tmp525_ = _tmp524_;
5669 _tmp525__length1 = 3;
5670 _tmp526_ = valadoc_rule_seq (_tmp525_, (gint) 3);
5671 _tmp527_ = valadoc_token_type_DOUBLE_PIPE;
5672 _tmp528_ = _g_object_ref0 ((GObject*) _tmp527_);
5673 _tmp529_ = g_new0 (GObject*, 2 + 1);
5674 _tmp529_[0] = (GObject*) _tmp526_;
5675 _tmp529_[1] = _tmp528_;
5676 _tmp530_ = _tmp529_;
5677 _tmp530__length1 = 2;
5678 _tmp531_ = valadoc_rule_seq (_tmp530_, (gint) 2);
5679 _tmp532_ = _tmp531_;
5680 _tmp533_ = valadoc_rule_set_name (_tmp532_, "Cell");
5681 _tmp534_ = _tmp533_;
5682 _tmp535_ = valadoc_rule_set_start (_tmp534_, ___lambda108__valadoc_rule_action, self);
5683 _tmp536_ = _tmp535_;
5684 _tmp537_ = valadoc_rule_set_reduce (_tmp536_, ___lambda109__valadoc_rule_action, self);
5685 _tmp538_ = _tmp537_;
5686 _g_object_unref0 (_tmp536_);
5687 _g_object_unref0 (_tmp534_);
5688 _g_object_unref0 (_tmp532_);
5689 _tmp530_ = (_vala_array_free (_tmp530_, _tmp530__length1, (GDestroyNotify) g_object_unref), NULL);
5690 _tmp525_ = (_vala_array_free (_tmp525_, _tmp525__length1, (GDestroyNotify) g_object_unref), NULL);
5691 _tmp520_ = (_vala_array_free (_tmp520_, _tmp520__length1, (GDestroyNotify) g_object_unref), NULL);
5692 table_cell = _tmp538_;
5693 _tmp539_ = valadoc_token_type_DOUBLE_PIPE;
5694 _tmp540_ = _g_object_ref0 ((GObject*) _tmp539_);
5695 _tmp541_ = _g_object_ref0 ((GObject*) table_cell);
5696 _tmp542_ = g_new0 (GObject*, 1 + 1);
5697 _tmp542_[0] = _tmp541_;
5698 _tmp543_ = _tmp542_;
5699 _tmp543__length1 = 1;
5700 _tmp544_ = valadoc_rule_many (_tmp543_, (gint) 1);
5701 _tmp545_ = valadoc_token_type_EOL;
5702 _tmp546_ = _g_object_ref0 ((GObject*) _tmp545_);
5703 _tmp547_ = g_new0 (GObject*, 3 + 1);
5704 _tmp547_[0] = _tmp540_;
5705 _tmp547_[1] = (GObject*) _tmp544_;
5706 _tmp547_[2] = _tmp546_;
5707 _tmp548_ = _tmp547_;
5708 _tmp548__length1 = 3;
5709 _tmp549_ = valadoc_rule_seq (_tmp548_, (gint) 3);
5710 _tmp550_ = _tmp549_;
5711 _tmp551_ = valadoc_rule_set_name (_tmp550_, "Row");
5712 _tmp552_ = _tmp551_;
5713 _tmp553_ = valadoc_rule_set_start (_tmp552_, ___lambda110__valadoc_rule_action, self);
5714 _tmp554_ = _tmp553_;
5715 _tmp555_ = valadoc_rule_set_reduce (_tmp554_, ___lambda111__valadoc_rule_action, self);
5716 _tmp556_ = _tmp555_;
5717 _g_object_unref0 (_tmp554_);
5718 _g_object_unref0 (_tmp552_);
5719 _g_object_unref0 (_tmp550_);
5720 _tmp548_ = (_vala_array_free (_tmp548_, _tmp548__length1, (GDestroyNotify) g_object_unref), NULL);
5721 _tmp543_ = (_vala_array_free (_tmp543_, _tmp543__length1, (GDestroyNotify) g_object_unref), NULL);
5722 table_row = _tmp556_;
5723 _tmp557_ = _g_object_ref0 ((GObject*) table_row);
5724 _tmp558_ = g_new0 (GObject*, 1 + 1);
5725 _tmp558_[0] = _tmp557_;
5726 _tmp559_ = _tmp558_;
5727 _tmp559__length1 = 1;
5728 _tmp560_ = valadoc_rule_many (_tmp559_, (gint) 1);
5729 _tmp561_ = g_new0 (GObject*, 1 + 1);
5730 _tmp561_[0] = (GObject*) _tmp560_;
5731 _tmp562_ = _tmp561_;
5732 _tmp562__length1 = 1;
5733 _tmp563_ = valadoc_rule_seq (_tmp562_, (gint) 1);
5734 _tmp564_ = _tmp563_;
5735 _tmp565_ = valadoc_rule_set_name (_tmp564_, "Table");
5736 _tmp566_ = _tmp565_;
5737 _tmp567_ = valadoc_rule_set_start (_tmp566_, ___lambda112__valadoc_rule_action, self);
5738 _tmp568_ = _tmp567_;
5739 _tmp569_ = valadoc_rule_set_reduce (_tmp568_, ___lambda113__valadoc_rule_action, self);
5740 _tmp570_ = _tmp569_;
5741 _g_object_unref0 (_tmp568_);
5742 _g_object_unref0 (_tmp566_);
5743 _g_object_unref0 (_tmp564_);
5744 _tmp562_ = (_vala_array_free (_tmp562_, _tmp562__length1, (GDestroyNotify) g_object_unref), NULL);
5745 _tmp559_ = (_vala_array_free (_tmp559_, _tmp559__length1, (GDestroyNotify) g_object_unref), NULL);
5746 table = _tmp570_;
5747 _tmp571_ = valadoc_token_type_EQUAL_1;
5748 _tmp572_ = valadoc_token_type_action (_tmp571_, ___lambda114__valadoc_token_type_action, self);
5749 _tmp573_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5750 _tmp574_ = _g_object_ref0 ((GObject*) run);
5751 _tmp575_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5752 _tmp576_ = valadoc_token_type_EQUAL_1;
5753 _tmp577_ = _g_object_ref0 ((GObject*) _tmp576_);
5754 _tmp578_ = valadoc_token_type_EOL;
5755 _tmp579_ = _g_object_ref0 ((GObject*) _tmp578_);
5756 _tmp580_ = g_new0 (GObject*, 6 + 1);
5757 _tmp580_[0] = (GObject*) _tmp572_;
5758 _tmp580_[1] = _tmp573_;
5759 _tmp580_[2] = _tmp574_;
5760 _tmp580_[3] = _tmp575_;
5761 _tmp580_[4] = _tmp577_;
5762 _tmp580_[5] = _tmp579_;
5763 _tmp581_ = _tmp580_;
5764 _tmp581__length1 = 6;
5765 _tmp582_ = valadoc_rule_seq (_tmp581_, (gint) 6);
5766 _tmp583_ = valadoc_token_type_EQUAL_2;
5767 _tmp584_ = valadoc_token_type_action (_tmp583_, ___lambda115__valadoc_token_type_action, self);
5768 _tmp585_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5769 _tmp586_ = _g_object_ref0 ((GObject*) run);
5770 _tmp587_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5771 _tmp588_ = valadoc_token_type_EQUAL_2;
5772 _tmp589_ = _g_object_ref0 ((GObject*) _tmp588_);
5773 _tmp590_ = valadoc_token_type_EOL;
5774 _tmp591_ = _g_object_ref0 ((GObject*) _tmp590_);
5775 _tmp592_ = g_new0 (GObject*, 6 + 1);
5776 _tmp592_[0] = (GObject*) _tmp584_;
5777 _tmp592_[1] = _tmp585_;
5778 _tmp592_[2] = _tmp586_;
5779 _tmp592_[3] = _tmp587_;
5780 _tmp592_[4] = _tmp589_;
5781 _tmp592_[5] = _tmp591_;
5782 _tmp593_ = _tmp592_;
5783 _tmp593__length1 = 6;
5784 _tmp594_ = valadoc_rule_seq (_tmp593_, (gint) 6);
5785 _tmp595_ = valadoc_token_type_EQUAL_3;
5786 _tmp596_ = valadoc_token_type_action (_tmp595_, ___lambda116__valadoc_token_type_action, self);
5787 _tmp597_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5788 _tmp598_ = _g_object_ref0 ((GObject*) run);
5789 _tmp599_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5790 _tmp600_ = valadoc_token_type_EQUAL_3;
5791 _tmp601_ = _g_object_ref0 ((GObject*) _tmp600_);
5792 _tmp602_ = valadoc_token_type_EOL;
5793 _tmp603_ = _g_object_ref0 ((GObject*) _tmp602_);
5794 _tmp604_ = g_new0 (GObject*, 6 + 1);
5795 _tmp604_[0] = (GObject*) _tmp596_;
5796 _tmp604_[1] = _tmp597_;
5797 _tmp604_[2] = _tmp598_;
5798 _tmp604_[3] = _tmp599_;
5799 _tmp604_[4] = _tmp601_;
5800 _tmp604_[5] = _tmp603_;
5801 _tmp605_ = _tmp604_;
5802 _tmp605__length1 = 6;
5803 _tmp606_ = valadoc_rule_seq (_tmp605_, (gint) 6);
5804 _tmp607_ = valadoc_token_type_EQUAL_4;
5805 _tmp608_ = valadoc_token_type_action (_tmp607_, ___lambda117__valadoc_token_type_action, self);
5806 _tmp609_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5807 _tmp610_ = _g_object_ref0 ((GObject*) run);
5808 _tmp611_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5809 _tmp612_ = valadoc_token_type_EQUAL_4;
5810 _tmp613_ = _g_object_ref0 ((GObject*) _tmp612_);
5811 _tmp614_ = valadoc_token_type_EOL;
5812 _tmp615_ = _g_object_ref0 ((GObject*) _tmp614_);
5813 _tmp616_ = g_new0 (GObject*, 6 + 1);
5814 _tmp616_[0] = (GObject*) _tmp608_;
5815 _tmp616_[1] = _tmp609_;
5816 _tmp616_[2] = _tmp610_;
5817 _tmp616_[3] = _tmp611_;
5818 _tmp616_[4] = _tmp613_;
5819 _tmp616_[5] = _tmp615_;
5820 _tmp617_ = _tmp616_;
5821 _tmp617__length1 = 6;
5822 _tmp618_ = valadoc_rule_seq (_tmp617_, (gint) 6);
5823 _tmp619_ = valadoc_token_type_EQUAL_5;
5824 _tmp620_ = valadoc_token_type_action (_tmp619_, ___lambda118__valadoc_token_type_action, self);
5825 _tmp621_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5826 _tmp622_ = _g_object_ref0 ((GObject*) run);
5827 _tmp623_ = _g_object_ref0 ((GObject*) optional_invisible_spaces);
5828 _tmp624_ = valadoc_token_type_EQUAL_5;
5829 _tmp625_ = _g_object_ref0 ((GObject*) _tmp624_);
5830 _tmp626_ = valadoc_token_type_EOL;
5831 _tmp627_ = _g_object_ref0 ((GObject*) _tmp626_);
5832 _tmp628_ = g_new0 (GObject*, 6 + 1);
5833 _tmp628_[0] = (GObject*) _tmp620_;
5834 _tmp628_[1] = _tmp621_;
5835 _tmp628_[2] = _tmp622_;
5836 _tmp628_[3] = _tmp623_;
5837 _tmp628_[4] = _tmp625_;
5838 _tmp628_[5] = _tmp627_;
5839 _tmp629_ = _tmp628_;
5840 _tmp629__length1 = 6;
5841 _tmp630_ = valadoc_rule_seq (_tmp629_, (gint) 6);
5842 _tmp631_ = g_new0 (GObject*, 5 + 1);
5843 _tmp631_[0] = (GObject*) _tmp582_;
5844 _tmp631_[1] = (GObject*) _tmp594_;
5845 _tmp631_[2] = (GObject*) _tmp606_;
5846 _tmp631_[3] = (GObject*) _tmp618_;
5847 _tmp631_[4] = (GObject*) _tmp630_;
5848 _tmp632_ = _tmp631_;
5849 _tmp632__length1 = 5;
5850 _tmp633_ = valadoc_rule_one_of (_tmp632_, (gint) 5);
5851 _tmp634_ = _tmp633_;
5852 _tmp635_ = valadoc_rule_set_name (_tmp634_, "Headline");
5853 _tmp636_ = _tmp635_;
5854 _tmp637_ = valadoc_rule_set_start (_tmp636_, ___lambda119__valadoc_rule_action, self);
5855 _tmp638_ = _tmp637_;
5856 _tmp639_ = valadoc_rule_set_reduce (_tmp638_, ___lambda120__valadoc_rule_action, self);
5857 _tmp640_ = _tmp639_;
5858 _g_object_unref0 (_tmp638_);
5859 _g_object_unref0 (_tmp636_);
5860 _g_object_unref0 (_tmp634_);
5861 _tmp632_ = (_vala_array_free (_tmp632_, _tmp632__length1, (GDestroyNotify) g_object_unref), NULL);
5862 _tmp629_ = (_vala_array_free (_tmp629_, _tmp629__length1, (GDestroyNotify) g_object_unref), NULL);
5863 _tmp617_ = (_vala_array_free (_tmp617_, _tmp617__length1, (GDestroyNotify) g_object_unref), NULL);
5864 _tmp605_ = (_vala_array_free (_tmp605_, _tmp605__length1, (GDestroyNotify) g_object_unref), NULL);
5865 _tmp593_ = (_vala_array_free (_tmp593_, _tmp593__length1, (GDestroyNotify) g_object_unref), NULL);
5866 _tmp581_ = (_vala_array_free (_tmp581_, _tmp581__length1, (GDestroyNotify) g_object_unref), NULL);
5867 headline = _tmp640_;
5868 _tmp641_ = _g_object_ref0 ((GObject*) indented_blocks);
5869 _tmp642_ = _g_object_ref0 ((GObject*) table);
5870 _tmp643_ = _g_object_ref0 ((GObject*) headline);
5871 _tmp644_ = _g_object_ref0 ((GObject*) warning);
5872 _tmp645_ = _g_object_ref0 ((GObject*) note);
5873 _tmp646_ = _g_object_ref0 ((GObject*) paragraph);
5874 _tmp647_ = g_new0 (GObject*, 6 + 1);
5875 _tmp647_[0] = _tmp641_;
5876 _tmp647_[1] = _tmp642_;
5877 _tmp647_[2] = _tmp643_;
5878 _tmp647_[3] = _tmp644_;
5879 _tmp647_[4] = _tmp645_;
5880 _tmp647_[5] = _tmp646_;
5881 _tmp648_ = _tmp647_;
5882 _tmp648__length1 = 6;
5883 _tmp649_ = valadoc_rule_one_of (_tmp648_, (gint) 6);
5884 _tmp650_ = _tmp649_;
5885 _tmp651_ = valadoc_rule_set_name (_tmp650_, "Blocks");
5886 _tmp652_ = _tmp651_;
5887 _g_object_unref0 (_tmp650_);
5888 _tmp648_ = (_vala_array_free (_tmp648_, _tmp648__length1, (GDestroyNotify) g_object_unref), NULL);
5889 blocks = _tmp652_;
5890 _tmp653_ = _g_object_ref0 ((GObject*) blocks);
5891 _tmp654_ = valadoc_token_type_EOL;
5892 _tmp655_ = _g_object_ref0 ((GObject*) _tmp654_);
5893 _tmp656_ = _g_object_ref0 ((GObject*) blocks);
5894 _tmp657_ = g_new0 (GObject*, 1 + 1);
5895 _tmp657_[0] = _tmp656_;
5896 _tmp658_ = _tmp657_;
5897 _tmp658__length1 = 1;
5898 _tmp659_ = valadoc_rule_option (_tmp658_, (gint) 1);
5899 _tmp660_ = g_new0 (GObject*, 2 + 1);
5900 _tmp660_[0] = _tmp655_;
5901 _tmp660_[1] = (GObject*) _tmp659_;
5902 _tmp661_ = _tmp660_;
5903 _tmp661__length1 = 2;
5904 _tmp662_ = valadoc_rule_many (_tmp661_, (gint) 2);
5905 _tmp663_ = g_new0 (GObject*, 1 + 1);
5906 _tmp663_[0] = (GObject*) _tmp662_;
5907 _tmp664_ = _tmp663_;
5908 _tmp664__length1 = 1;
5909 _tmp665_ = valadoc_rule_option (_tmp664_, (gint) 1);
5910 _tmp666_ = g_new0 (GObject*, 2 + 1);
5911 _tmp666_[0] = _tmp653_;
5912 _tmp666_[1] = (GObject*) _tmp665_;
5913 _tmp667_ = _tmp666_;
5914 _tmp667__length1 = 2;
5915 _tmp668_ = valadoc_rule_seq (_tmp667_, (gint) 2);
5916 _tmp669_ = _tmp668_;
5917 _tmp670_ = valadoc_rule_set_name (_tmp669_, "Page");
5918 _tmp671_ = _tmp670_;
5919 _tmp672_ = valadoc_rule_set_start (_tmp671_, ___lambda121__valadoc_rule_action, self);
5920 _tmp673_ = _tmp672_;
5921 _g_object_unref0 (_tmp671_);
5922 _g_object_unref0 (_tmp669_);
5923 _tmp667_ = (_vala_array_free (_tmp667_, _tmp667__length1, (GDestroyNotify) g_object_unref), NULL);
5924 _tmp664_ = (_vala_array_free (_tmp664_, _tmp664__length1, (GDestroyNotify) g_object_unref), NULL);
5925 _tmp661_ = (_vala_array_free (_tmp661_, _tmp661__length1, (GDestroyNotify) g_object_unref), NULL);
5926 _tmp658_ = (_vala_array_free (_tmp658_, _tmp658__length1, (GDestroyNotify) g_object_unref), NULL);
5927 page = _tmp673_;
5928 _tmp674_ = _g_object_ref0 ((GObject*) blocks);
5929 _tmp675_ = valadoc_token_type_EOL;
5930 _tmp676_ = _g_object_ref0 ((GObject*) _tmp675_);
5931 _tmp677_ = _g_object_ref0 ((GObject*) blocks);
5932 _tmp678_ = g_new0 (GObject*, 1 + 1);
5933 _tmp678_[0] = _tmp677_;
5934 _tmp679_ = _tmp678_;
5935 _tmp679__length1 = 1;
5936 _tmp680_ = valadoc_rule_option (_tmp679_, (gint) 1);
5937 _tmp681_ = g_new0 (GObject*, 2 + 1);
5938 _tmp681_[0] = _tmp676_;
5939 _tmp681_[1] = (GObject*) _tmp680_;
5940 _tmp682_ = _tmp681_;
5941 _tmp682__length1 = 2;
5942 _tmp683_ = valadoc_rule_many (_tmp682_, (gint) 2);
5943 _tmp684_ = g_new0 (GObject*, 1 + 1);
5944 _tmp684_[0] = (GObject*) _tmp683_;
5945 _tmp685_ = _tmp684_;
5946 _tmp685__length1 = 1;
5947 _tmp686_ = valadoc_rule_option (_tmp685_, (gint) 1);
5948 _tmp687_ = g_new0 (GObject*, 2 + 1);
5949 _tmp687_[0] = _tmp674_;
5950 _tmp687_[1] = (GObject*) _tmp686_;
5951 _tmp688_ = _tmp687_;
5952 _tmp688__length1 = 2;
5953 _tmp689_ = valadoc_rule_seq (_tmp688_, (gint) 2);
5954 _tmp690_ = _tmp689_;
5955 _tmp691_ = valadoc_rule_set_name (_tmp690_, "Description");
5956 _tmp692_ = _tmp691_;
5957 _g_object_unref0 (_tmp690_);
5958 _tmp688_ = (_vala_array_free (_tmp688_, _tmp688__length1, (GDestroyNotify) g_object_unref), NULL);
5959 _tmp685_ = (_vala_array_free (_tmp685_, _tmp685__length1, (GDestroyNotify) g_object_unref), NULL);
5960 _tmp682_ = (_vala_array_free (_tmp682_, _tmp682__length1, (GDestroyNotify) g_object_unref), NULL);
5961 _tmp679_ = (_vala_array_free (_tmp679_, _tmp679__length1, (GDestroyNotify) g_object_unref), NULL);
5962 description = _tmp692_;
5963 _tmp693_ = self->priv->multiline_run;
5964 _tmp694_ = _g_object_ref0 ((GObject*) _tmp693_);
5965 _tmp695_ = g_new0 (GObject*, 1 + 1);
5966 _tmp695_[0] = _tmp694_;
5967 _tmp696_ = _tmp695_;
5968 _tmp696__length1 = 1;
5969 _tmp697_ = valadoc_rule_seq (_tmp696_, (gint) 1);
5970 _tmp698_ = _tmp697_;
5971 _tmp699_ = valadoc_rule_set_start (_tmp698_, ___lambda122__valadoc_rule_action, self);
5972 _tmp700_ = _tmp699_;
5973 _tmp701_ = valadoc_rule_set_reduce (_tmp700_, ___lambda123__valadoc_rule_action, self);
5974 _tmp702_ = _tmp701_;
5975 _tmp703_ = valadoc_rule_set_name (_tmp702_, "BlockMultilineRun");
5976 _g_object_unref0 (self->priv->multiline_block_run);
5977 self->priv->multiline_block_run = _tmp703_;
5978 _g_object_unref0 (_tmp702_);
5979 _g_object_unref0 (_tmp700_);
5980 _g_object_unref0 (_tmp698_);
5981 _tmp696_ = (_vala_array_free (_tmp696_, _tmp696__length1, (GDestroyNotify) g_object_unref), NULL);
5982 _tmp704_ = valadoc_token_type_AROBASE;
5983 _tmp705_ = _g_object_ref0 ((GObject*) _tmp704_);
5984 _tmp706_ = valadoc_token_type_any_word ();
5985 _tmp707_ = _tmp706_;
5986 _tmp708_ = valadoc_token_type_action (_tmp707_, ___lambda124__valadoc_token_type_action, self);
5987 _tmp709_ = valadoc_token_type_EOL;
5988 _tmp710_ = _g_object_ref0 ((GObject*) _tmp709_);
5989 _tmp711_ = g_new0 (GObject*, 1 + 1);
5990 _tmp711_[0] = _tmp710_;
5991 _tmp712_ = _tmp711_;
5992 _tmp712__length1 = 1;
5993 _tmp713_ = valadoc_rule_many (_tmp712_, (gint) 1);
5994 _tmp714_ = g_new0 (GObject*, 1 + 1);
5995 _tmp714_[0] = (GObject*) _tmp713_;
5996 _tmp715_ = _tmp714_;
5997 _tmp715__length1 = 1;
5998 _tmp716_ = valadoc_rule_option (_tmp715_, (gint) 1);
5999 _tmp717_ = g_new0 (GObject*, 3 + 1);
6000 _tmp717_[0] = _tmp705_;
6001 _tmp717_[1] = (GObject*) _tmp708_;
6002 _tmp717_[2] = (GObject*) _tmp716_;
6003 _tmp718_ = _tmp717_;
6004 _tmp718__length1 = 3;
6005 _tmp719_ = valadoc_rule_seq (_tmp718_, (gint) 3);
6006 _tmp720_ = _tmp719_;
6007 _tmp721_ = valadoc_rule_set_name (_tmp720_, "Taglet");
6008 _tmp722_ = _tmp721_;
6009 _tmp723_ = valadoc_rule_set_reduce (_tmp722_, ___lambda125__valadoc_rule_action, self);
6010 _tmp724_ = _tmp723_;
6011 _g_object_unref0 (_tmp722_);
6012 _g_object_unref0 (_tmp720_);
6013 _tmp718_ = (_vala_array_free (_tmp718_, _tmp718__length1, (GDestroyNotify) g_object_unref), NULL);
6014 _tmp715_ = (_vala_array_free (_tmp715_, _tmp715__length1, (GDestroyNotify) g_object_unref), NULL);
6015 _tmp712_ = (_vala_array_free (_tmp712_, _tmp712__length1, (GDestroyNotify) g_object_unref), NULL);
6016 _g_object_unref0 (_tmp707_);
6017 taglet = _tmp724_;
6018 _tmp725_ = valadoc_token_type_EOL;
6019 _tmp726_ = _g_object_ref0 ((GObject*) _tmp725_);
6020 _tmp727_ = _g_object_ref0 ((GObject*) description);
6021 _tmp728_ = g_new0 (GObject*, 1 + 1);
6022 _tmp728_[0] = _tmp727_;
6023 _tmp729_ = _tmp728_;
6024 _tmp729__length1 = 1;
6025 _tmp730_ = valadoc_rule_option (_tmp729_, (gint) 1);
6026 _tmp731_ = _g_object_ref0 ((GObject*) taglet);
6027 _tmp732_ = g_new0 (GObject*, 1 + 1);
6028 _tmp732_[0] = _tmp731_;
6029 _tmp733_ = _tmp732_;
6030 _tmp733__length1 = 1;
6031 _tmp734_ = valadoc_rule_many (_tmp733_, (gint) 1);
6032 _tmp735_ = g_new0 (GObject*, 1 + 1);
6033 _tmp735_[0] = (GObject*) _tmp734_;
6034 _tmp736_ = _tmp735_;
6035 _tmp736__length1 = 1;
6036 _tmp737_ = valadoc_rule_option (_tmp736_, (gint) 1);
6037 _tmp738_ = g_new0 (GObject*, 3 + 1);
6038 _tmp738_[0] = _tmp726_;
6039 _tmp738_[1] = (GObject*) _tmp730_;
6040 _tmp738_[2] = (GObject*) _tmp737_;
6041 _tmp739_ = _tmp738_;
6042 _tmp739__length1 = 3;
6043 _tmp740_ = valadoc_rule_seq (_tmp739_, (gint) 3);
6044 _tmp741_ = _tmp740_;
6045 _tmp742_ = valadoc_rule_set_name (_tmp741_, "MultiLineComment");
6046 _tmp743_ = _tmp742_;
6047 _g_object_unref0 (_tmp741_);
6048 _tmp739_ = (_vala_array_free (_tmp739_, _tmp739__length1, (GDestroyNotify) g_object_unref), NULL);
6049 _tmp736_ = (_vala_array_free (_tmp736_, _tmp736__length1, (GDestroyNotify) g_object_unref), NULL);
6050 _tmp733_ = (_vala_array_free (_tmp733_, _tmp733__length1, (GDestroyNotify) g_object_unref), NULL);
6051 _tmp729_ = (_vala_array_free (_tmp729_, _tmp729__length1, (GDestroyNotify) g_object_unref), NULL);
6052 ml_comment = _tmp743_;
6053 _tmp744_ = _g_object_ref0 ((GObject*) run);
6054 _tmp745_ = g_new0 (GObject*, 1 + 1);
6055 _tmp745_[0] = _tmp744_;
6056 _tmp746_ = _tmp745_;
6057 _tmp746__length1 = 1;
6058 _tmp747_ = valadoc_rule_seq (_tmp746_, (gint) 1);
6059 _tmp748_ = _tmp747_;
6060 _tmp749_ = valadoc_rule_set_start (_tmp748_, ___lambda126__valadoc_rule_action, self);
6061 _tmp750_ = _tmp749_;
6062 _tmp751_ = valadoc_rule_set_reduce (_tmp750_, reduce_paragraph, reduce_paragraph_target);
6063 _tmp752_ = _tmp751_;
6064 _tmp753_ = valadoc_rule_set_name (_tmp752_, "SingleLineComment");
6065 _tmp754_ = _tmp753_;
6066 _g_object_unref0 (_tmp752_);
6067 _g_object_unref0 (_tmp750_);
6068 _g_object_unref0 (_tmp748_);
6069 _tmp746_ = (_vala_array_free (_tmp746_, _tmp746__length1, (GDestroyNotify) g_object_unref), NULL);
6070 sl_comment = _tmp754_;
6071 _tmp755_ = _g_object_ref0 ((GObject*) ml_comment);
6072 _tmp756_ = _g_object_ref0 ((GObject*) sl_comment);
6073 _tmp757_ = g_new0 (GObject*, 2 + 1);
6074 _tmp757_[0] = _tmp755_;
6075 _tmp757_[1] = _tmp756_;
6076 _tmp758_ = _tmp757_;
6077 _tmp758__length1 = 2;
6078 _tmp759_ = valadoc_rule_one_of (_tmp758_, (gint) 2);
6079 _tmp760_ = _tmp759_;
6080 _tmp761_ = valadoc_rule_set_name (_tmp760_, "Comment");
6081 _tmp762_ = _tmp761_;
6082 _tmp763_ = valadoc_rule_set_start (_tmp762_, ___lambda127__valadoc_rule_action, self);
6083 _tmp764_ = _tmp763_;
6084 _g_object_unref0 (_tmp762_);
6085 _g_object_unref0 (_tmp760_);
6086 _tmp758_ = (_vala_array_free (_tmp758_, _tmp758__length1, (GDestroyNotify) g_object_unref), NULL);
6087 comment = _tmp764_;
6088 _tmp765_ = self->priv->_comment_parser;
6089 valadoc_parser_set_root_rule (_tmp765_, comment);
6090 _tmp766_ = self->priv->_wiki_parser;
6091 valadoc_parser_set_root_rule (_tmp766_, page);
6092 _g_object_unref0 (comment);
6093 _g_object_unref0 (sl_comment);
6094 _g_object_unref0 (ml_comment);
6095 _g_object_unref0 (taglet);
6096 _g_object_unref0 (description);
6097 _g_object_unref0 (page);
6098 _g_object_unref0 (blocks);
6099 _g_object_unref0 (headline);
6100 _g_object_unref0 (table);
6101 _g_object_unref0 (table_row);
6102 _g_object_unref0 (table_cell);
6103 _g_object_unref0 (table_cell_attributes);
6104 _g_object_unref0 (indented_blocks);
6105 _g_object_unref0 (indented_item);
6106 _g_object_unref0 (note);
6107 _g_object_unref0 (warning);
6108 _g_object_unref0 (paragraph);
6109 (reduce_paragraph_target_destroy_notify == NULL) ? NULL : (reduce_paragraph_target_destroy_notify (reduce_paragraph_target), NULL);
6110 reduce_paragraph = NULL;
6111 reduce_paragraph_target = NULL;
6112 reduce_paragraph_target_destroy_notify = NULL;
6113 _g_object_unref0 (run_arobase);
6114 _g_object_unref0 (run_subrules);
6115 (append_head_to_head2_target_destroy_notify == NULL) ? NULL : (append_head_to_head2_target_destroy_notify (append_head_to_head2_target), NULL);
6116 append_head_to_head2 = NULL;
6117 append_head_to_head2_target = NULL;
6118 append_head_to_head2_target_destroy_notify = NULL;
6119 _g_object_unref0 (source_code);
6120 _g_object_unref0 (link);
6121 _g_object_unref0 (embedded);
6122 _g_object_unref0 (monospace);
6123 _g_object_unref0 (underlined);
6124 _g_object_unref0 (italic);
6125 _g_object_unref0 (bold);
6126 _g_object_unref0 (inline_taglet);
6127 _g_object_unref0 (run_with_spaces);
6128 _g_object_unref0 (text);
6129 _g_object_unref0 (optional_spaces);
6130 _g_object_unref0 (optional_invisible_spaces);
6131 _g_object_unref0 (word);
6132 _g_object_unref0 (space);
6133 _g_object_unref0 (run);
6134 }
6135
6136 static void
valadoc_documentation_parser_class_init(ValadocDocumentationParserClass * klass,gpointer klass_data)6137 valadoc_documentation_parser_class_init (ValadocDocumentationParserClass * klass,
6138 gpointer klass_data)
6139 {
6140 valadoc_documentation_parser_parent_class = g_type_class_peek_parent (klass);
6141 g_type_class_adjust_private_offset (klass, &ValadocDocumentationParser_private_offset);
6142 G_OBJECT_CLASS (klass)->finalize = valadoc_documentation_parser_finalize;
6143 }
6144
6145 static void
valadoc_documentation_parser_valadoc_resource_locator_interface_init(ValadocResourceLocatorIface * iface,gpointer iface_data)6146 valadoc_documentation_parser_valadoc_resource_locator_interface_init (ValadocResourceLocatorIface * iface,
6147 gpointer iface_data)
6148 {
6149 valadoc_documentation_parser_valadoc_resource_locator_parent_iface = g_type_interface_peek_parent (iface);
6150 iface->resolve = (gchar* (*) (ValadocResourceLocator*, const gchar*)) valadoc_documentation_parser_real_resolve;
6151 }
6152
6153 static void
valadoc_documentation_parser_instance_init(ValadocDocumentationParser * self,gpointer klass)6154 valadoc_documentation_parser_instance_init (ValadocDocumentationParser * self,
6155 gpointer klass)
6156 {
6157 GEqualFunc _tmp0_;
6158 ValaArrayList* _tmp1_;
6159 gint* _tmp2_;
6160 self->priv = valadoc_documentation_parser_get_instance_private (self);
6161 _tmp0_ = g_direct_equal;
6162 _tmp1_ = vala_array_list_new (G_TYPE_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp0_);
6163 self->priv->_stack = _tmp1_;
6164 self->priv->current_level = 0;
6165 _tmp2_ = g_new0 (gint, 0);
6166 self->priv->levels = _tmp2_;
6167 self->priv->levels_length1 = 0;
6168 self->priv->_levels_size_ = self->priv->levels_length1;
6169 }
6170
6171 static void
valadoc_documentation_parser_finalize(GObject * obj)6172 valadoc_documentation_parser_finalize (GObject * obj)
6173 {
6174 ValadocDocumentationParser * self;
6175 self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALADOC_TYPE_DOCUMENTATION_PARSER, ValadocDocumentationParser);
6176 _vala_map_unref0 (self->priv->metadata);
6177 _valadoc_importer_internal_id_registrar_unref0 (self->priv->id_registrar);
6178 _g_object_unref0 (self->priv->gtkdoc_parser);
6179 _g_object_unref0 (self->priv->gtkdoc_markdown_parser);
6180 _g_object_unref0 (self->priv->_settings);
6181 _g_object_unref0 (self->priv->_reporter);
6182 _valadoc_api_tree_unref0 (self->priv->_tree);
6183 _g_object_unref0 (self->priv->_modules);
6184 _g_object_unref0 (self->priv->_factory);
6185 _g_object_unref0 (self->priv->_wiki_scanner);
6186 _g_object_unref0 (self->priv->_comment_scanner);
6187 _valadoc_parser_unref0 (self->priv->_wiki_parser);
6188 _valadoc_parser_unref0 (self->priv->_comment_parser);
6189 _valadoc_parser_unref0 (self->priv->_parser);
6190 _g_object_unref0 (self->priv->_scanner);
6191 _vala_iterable_unref0 (self->priv->_stack);
6192 _g_object_unref0 (self->priv->multiline_block_run);
6193 _g_object_unref0 (self->priv->multiline_run);
6194 self->priv->levels = (g_free (self->priv->levels), NULL);
6195 G_OBJECT_CLASS (valadoc_documentation_parser_parent_class)->finalize (obj);
6196 }
6197
6198 static GType
valadoc_documentation_parser_get_type_once(void)6199 valadoc_documentation_parser_get_type_once (void)
6200 {
6201 static const GTypeInfo g_define_type_info = { sizeof (ValadocDocumentationParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_documentation_parser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocDocumentationParser), 0, (GInstanceInitFunc) valadoc_documentation_parser_instance_init, NULL };
6202 static const GInterfaceInfo valadoc_resource_locator_info = { (GInterfaceInitFunc) valadoc_documentation_parser_valadoc_resource_locator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
6203 GType valadoc_documentation_parser_type_id;
6204 valadoc_documentation_parser_type_id = g_type_register_static (G_TYPE_OBJECT, "ValadocDocumentationParser", &g_define_type_info, 0);
6205 g_type_add_interface_static (valadoc_documentation_parser_type_id, VALADOC_TYPE_RESOURCE_LOCATOR, &valadoc_resource_locator_info);
6206 ValadocDocumentationParser_private_offset = g_type_add_instance_private (valadoc_documentation_parser_type_id, sizeof (ValadocDocumentationParserPrivate));
6207 return valadoc_documentation_parser_type_id;
6208 }
6209
6210 GType
valadoc_documentation_parser_get_type(void)6211 valadoc_documentation_parser_get_type (void)
6212 {
6213 static volatile gsize valadoc_documentation_parser_type_id__volatile = 0;
6214 if (g_once_init_enter (&valadoc_documentation_parser_type_id__volatile)) {
6215 GType valadoc_documentation_parser_type_id;
6216 valadoc_documentation_parser_type_id = valadoc_documentation_parser_get_type_once ();
6217 g_once_init_leave (&valadoc_documentation_parser_type_id__volatile, valadoc_documentation_parser_type_id);
6218 }
6219 return valadoc_documentation_parser_type_id__volatile;
6220 }
6221
6222 static void
_vala_array_destroy(gpointer array,gint array_length,GDestroyNotify destroy_func)6223 _vala_array_destroy (gpointer array,
6224 gint array_length,
6225 GDestroyNotify destroy_func)
6226 {
6227 if ((array != NULL) && (destroy_func != NULL)) {
6228 gint i;
6229 for (i = 0; i < array_length; i = i + 1) {
6230 if (((gpointer*) array)[i] != NULL) {
6231 destroy_func (((gpointer*) array)[i]);
6232 }
6233 }
6234 }
6235 }
6236
6237 static void
_vala_array_free(gpointer array,gint array_length,GDestroyNotify destroy_func)6238 _vala_array_free (gpointer array,
6239 gint array_length,
6240 GDestroyNotify destroy_func)
6241 {
6242 _vala_array_destroy (array, array_length, destroy_func);
6243 g_free (array);
6244 }
6245
6246