1 /* gtkdocmarkdownparser.c generated by valac, the Vala compiler
2  * generated from gtkdocmarkdownparser.vala, do not modify */
3 
4 /* gtkdocmarkdownparser.vala
5  *
6  * Copyright (C) 2014 Florian Brosch
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with this library; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
21  *
22  * Author:
23  *  Florian Brosch <flo.brosch@gmail.com>
24  */
25 
26 #include "valadoc.h"
27 #include <valagee.h>
28 #include <glib-object.h>
29 #include <glib.h>
30 #include <stdlib.h>
31 #include <string.h>
32 
33 enum  {
34 	VALADOC_GTKDOC_MARKDOWN_PARSER_0_PROPERTY,
35 	VALADOC_GTKDOC_MARKDOWN_PARSER_NUM_PROPERTIES
36 };
37 static GParamSpec* valadoc_gtkdoc_markdown_parser_properties[VALADOC_GTKDOC_MARKDOWN_PARSER_NUM_PROPERTIES];
38 #define _valadoc_parser_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_parser_unref (var), NULL)))
39 #define _g_object_unref0(var) ((var == NULL) ? NULL : (var = (g_object_unref (var), NULL)))
40 #define _valadoc_api_tree_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_api_tree_unref (var), NULL)))
41 #define _vala_iterable_unref0(var) ((var == NULL) ? NULL : (var = (vala_iterable_unref (var), NULL)))
42 #define _g_regex_unref0(var) ((var == NULL) ? NULL : (var = (g_regex_unref (var), NULL)))
43 #define _valadoc_importer_internal_id_registrar_unref0(var) ((var == NULL) ? NULL : (var = (valadoc_importer_internal_id_registrar_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 _g_error_free0(var) ((var == NULL) ? NULL : (var = (g_error_free (var), NULL)))
47 #define _g_match_info_unref0(var) ((var == NULL) ? NULL : (var = (g_match_info_unref (var), NULL)))
48 #define _vala_map_iterator_unref0(var) ((var == NULL) ? NULL : (var = (vala_map_iterator_unref (var), NULL)))
49 #define _g_string_free0(var) ((var == NULL) ? NULL : (var = (g_string_free (var, TRUE), NULL)))
50 #define _vala_assert(expr, msg) if G_LIKELY (expr) ; else g_assertion_message_expr (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
51 #define _vala_return_if_fail(expr, msg) if G_LIKELY (expr) ; else { g_return_if_fail_warning (G_LOG_DOMAIN, G_STRFUNC, msg); return; }
52 #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; }
53 #define _vala_warn_if_fail(expr, msg) if G_LIKELY (expr) ; else g_warn_message (G_LOG_DOMAIN, __FILE__, __LINE__, G_STRFUNC, msg);
54 
55 struct _ValadocGtkdocMarkdownParserPrivate {
56 	ValadocParser* parser;
57 	ValadocContentContentFactory* _factory;
58 	ValadocSettings* _settings;
59 	ValadocErrorReporter* _reporter;
60 	ValadocApiTree* _tree;
61 	ValaArrayList* _stack;
62 	ValadocToken* preserved_token;
63 	GRegex* regex_source_lang;
64 	ValadocImporterInternalIdRegistrar* id_registrar;
65 	ValadocGirMetaData* metadata;
66 	ValadocApiGirSourceComment* gir_comment;
67 	ValadocApiNode* element;
68 };
69 
70 typedef enum  {
71 	VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR_UNEXPECTED_ELEMENT
72 } ValadocGtkdocContentToStringError;
73 #define VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR valadoc_gtkdoc_content_to_string_error_quark ()
74 
75 static gint ValadocGtkdocMarkdownParser_private_offset;
76 static gpointer valadoc_gtkdoc_markdown_parser_parent_class = NULL;
77 static ValadocResourceLocatorIface * valadoc_gtkdoc_markdown_parser_valadoc_resource_locator_parent_iface = NULL;
78 
79 static void valadoc_gtkdoc_markdown_parser_add_text (ValadocGtkdocMarkdownParser* self,
80                                               ValadocToken* token,
81                                               GError** error);
82 static void _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action (ValadocToken* token,
83                                                                          gpointer self,
84                                                                          GError** error);
85 static void __lambda12_ (ValadocGtkdocMarkdownParser* self,
86                   ValadocToken* token,
87                   GError** error);
88 static gboolean valadoc_gtkdoc_markdown_parser_is_error_parameter (ValadocGtkdocMarkdownParser* self,
89                                                             const gchar* name);
90 G_GNUC_INTERNAL gchar* valadoc_importer_helper_resolve_parameter_ctype (ValadocApiTree* tree,
91                                                         ValadocApiNode* element,
92                                                         const gchar* parameter_name,
93                                                         gchar* * param_name,
94                                                         gchar* * param_array_name,
95                                                         gboolean* is_return_type_len);
96 static void valadoc_gtkdoc_markdown_parser_push (ValadocGtkdocMarkdownParser* self,
97                                           GObject* element);
98 static void ___lambda12__valadoc_token_type_action (ValadocToken* token,
99                                              gpointer self,
100                                              GError** error);
101 static void __lambda13_ (ValadocGtkdocMarkdownParser* self,
102                   ValadocToken* token,
103                   GError** error);
104 static gboolean valadoc_gtkdoc_markdown_parser_is_literal (ValadocGtkdocMarkdownParser* self,
105                                                     const gchar* str);
106 static void valadoc_gtkdoc_markdown_parser_add_symbol_link (ValadocGtkdocMarkdownParser* self,
107                                                      const gchar* symbol,
108                                                      gboolean accept_plural);
109 static void ___lambda13__valadoc_token_type_action (ValadocToken* token,
110                                              gpointer self,
111                                              GError** error);
112 static void __lambda14_ (ValadocGtkdocMarkdownParser* self,
113                   ValadocToken* token,
114                   GError** error);
115 static void ___lambda14__valadoc_token_type_action (ValadocToken* token,
116                                              gpointer self,
117                                              GError** error);
118 static void __lambda15_ (ValadocGtkdocMarkdownParser* self,
119                   ValadocToken* token,
120                   GError** error);
121 static void ___lambda15__valadoc_token_type_action (ValadocToken* token,
122                                              gpointer self,
123                                              GError** error);
124 static void __lambda16_ (ValadocGtkdocMarkdownParser* self,
125                   ValadocToken* token,
126                   GError** error);
127 static void ___lambda16__valadoc_token_type_action (ValadocToken* token,
128                                              gpointer self,
129                                              GError** error);
130 static void valadoc_gtkdoc_markdown_parser_preserve_token (ValadocGtkdocMarkdownParser* self,
131                                                     ValadocToken* token,
132                                                     GError** error);
133 static void _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action (ValadocToken* token,
134                                                                                gpointer self,
135                                                                                GError** error);
136 static void __lambda17_ (ValadocGtkdocMarkdownParser* self,
137                   GError** error);
138 static gchar* valadoc_gtkdoc_markdown_parser_pop_preserved_link (ValadocGtkdocMarkdownParser* self);
139 static void ___lambda17__valadoc_rule_action (gpointer self,
140                                        GError** error);
141 static void __lambda18_ (ValadocGtkdocMarkdownParser* self,
142                   GError** error);
143 static void valadoc_gtkdoc_markdown_parser_add_content_string (ValadocGtkdocMarkdownParser* self,
144                                                         const gchar* str);
145 static void valadoc_gtkdoc_markdown_parser_add_value (ValadocGtkdocMarkdownParser* self,
146                                                ValadocToken* token,
147                                                GError** error);
148 static void ___lambda18__valadoc_rule_action (gpointer self,
149                                        GError** error);
150 static void __lambda19_ (ValadocGtkdocMarkdownParser* self,
151                   GError** error);
152 static void ___lambda19__valadoc_rule_action (gpointer self,
153                                        GError** error);
154 static void __lambda20_ (ValadocGtkdocMarkdownParser* self,
155                   GError** error);
156 static GObject* valadoc_gtkdoc_markdown_parser_peek (ValadocGtkdocMarkdownParser* self,
157                                               gint offset);
158 static void ___lambda20__valadoc_rule_action (gpointer self,
159                                        GError** error);
160 static void __lambda21_ (ValadocGtkdocMarkdownParser* self,
161                   GError** error);
162 static void ___lambda21__valadoc_rule_action (gpointer self,
163                                        GError** error);
164 static void __lambda22_ (ValadocGtkdocMarkdownParser* self,
165                   GError** error);
166 static void ___lambda22__valadoc_rule_action (gpointer self,
167                                        GError** error);
168 static void __lambda23_ (ValadocGtkdocMarkdownParser* self,
169                   GError** error);
170 G_GNUC_INTERNAL void valadoc_content_link_set_id_registrar (ValadocContentLink* self,
171                                             ValadocImporterInternalIdRegistrar* value);
172 static void ___lambda23__valadoc_rule_action (gpointer self,
173                                        GError** error);
174 static void __lambda24_ (ValadocGtkdocMarkdownParser* self,
175                   GError** error);
176 static void ___lambda24__valadoc_rule_action (gpointer self,
177                                        GError** error);
178 static void __lambda25_ (ValadocGtkdocMarkdownParser* self,
179                   GError** error);
180 static void ___lambda25__valadoc_rule_action (gpointer self,
181                                        GError** error);
182 static void __lambda26_ (ValadocGtkdocMarkdownParser* self,
183                   GError** error);
184 static void ___lambda26__valadoc_rule_action (gpointer self,
185                                        GError** error);
186 static void __lambda27_ (ValadocGtkdocMarkdownParser* self,
187                   GError** error);
188 static void ___lambda27__valadoc_rule_action (gpointer self,
189                                        GError** error);
190 static void __lambda28_ (ValadocGtkdocMarkdownParser* self,
191                   GError** error);
192 static void ___lambda28__valadoc_rule_action (gpointer self,
193                                        GError** error);
194 static void __lambda29_ (ValadocGtkdocMarkdownParser* self,
195                   GError** error);
196 static inline gchar* valadoc_gtkdoc_markdown_parser_run_to_string (ValadocGtkdocMarkdownParser* self,
197                                                      ValadocContentRun* run,
198                                                      const gchar* rule_name,
199                                                      GError** error);
200 static inline gchar* valadoc_gtkdoc_markdown_parser_fix_resource_path (ValadocGtkdocMarkdownParser* self,
201                                                          const gchar* path);
202 static gchar* valadoc_gtkdoc_markdown_parser_pop_preserved_path (ValadocGtkdocMarkdownParser* self);
203 static void ___lambda29__valadoc_rule_action (gpointer self,
204                                        GError** error);
205 static void __lambda30_ (ValadocGtkdocMarkdownParser* self,
206                   GError** error);
207 static void ___lambda30__valadoc_rule_action (gpointer self,
208                                        GError** error);
209 static void __lambda31_ (ValadocGtkdocMarkdownParser* self,
210                   GError** error);
211 static void ___lambda31__valadoc_rule_action (gpointer self,
212                                        GError** error);
213 static void __lambda32_ (ValadocGtkdocMarkdownParser* self,
214                   GError** error);
215 static void ___lambda32__valadoc_rule_action (gpointer self,
216                                        GError** error);
217 static void __lambda33_ (ValadocGtkdocMarkdownParser* self,
218                   GError** error);
219 static void ___lambda33__valadoc_rule_action (gpointer self,
220                                        GError** error);
221 static void __lambda34_ (ValadocGtkdocMarkdownParser* self,
222                   GError** error);
223 static void ___lambda34__valadoc_rule_action (gpointer self,
224                                        GError** error);
225 static void __lambda35_ (ValadocGtkdocMarkdownParser* self,
226                   ValadocToken* token,
227                   GError** error);
228 static ValadocContentSourceCodeLanguage* _valadoc_content_source_code_language_dup (ValadocContentSourceCodeLanguage* self);
229 G_GNUC_INTERNAL gboolean valadoc_highlighter_xml_scanner_is_xml (const gchar* source);
230 static void ___lambda35__valadoc_token_type_action (ValadocToken* token,
231                                              gpointer self,
232                                              GError** error);
233 static void _valadoc_gtkdoc_markdown_parser_add_value_valadoc_token_type_action (ValadocToken* token,
234                                                                           gpointer self,
235                                                                           GError** error);
236 static void __lambda36_ (ValadocGtkdocMarkdownParser* self,
237                   GError** error);
238 static void ___lambda36__valadoc_rule_action (gpointer self,
239                                        GError** error);
240 static void __lambda37_ (ValadocGtkdocMarkdownParser* self,
241                   GError** error);
242 static GObject* valadoc_gtkdoc_markdown_parser_pop (ValadocGtkdocMarkdownParser* self);
243 static void ___lambda37__valadoc_rule_action (gpointer self,
244                                        GError** error);
245 static void __lambda38_ (ValadocGtkdocMarkdownParser* self,
246                   GError** error);
247 static void ___lambda38__valadoc_rule_action (gpointer self,
248                                        GError** error);
249 static void __lambda39_ (ValadocGtkdocMarkdownParser* self,
250                   GError** error);
251 static void ___lambda39__valadoc_rule_action (gpointer self,
252                                        GError** error);
253 static void __lambda40_ (ValadocGtkdocMarkdownParser* self,
254                   GError** error);
255 static void ___lambda40__valadoc_rule_action (gpointer self,
256                                        GError** error);
257 static void __lambda41_ (ValadocGtkdocMarkdownParser* self,
258                   GError** error);
259 static void ___lambda41__valadoc_rule_action (gpointer self,
260                                        GError** error);
261 static void __lambda42_ (ValadocGtkdocMarkdownParser* self,
262                   GError** error);
263 static void ___lambda42__valadoc_rule_action (gpointer self,
264                                        GError** error);
265 static void __lambda43_ (ValadocGtkdocMarkdownParser* self,
266                   GError** error);
267 static void ___lambda43__valadoc_rule_action (gpointer self,
268                                        GError** error);
269 static void __lambda44_ (ValadocGtkdocMarkdownParser* self,
270                   GError** error);
271 static void ___lambda44__valadoc_rule_action (gpointer self,
272                                        GError** error);
273 static void __lambda45_ (ValadocGtkdocMarkdownParser* self,
274                   GError** error);
275 static void ___lambda45__valadoc_rule_action (gpointer self,
276                                        GError** error);
277 static void __lambda46_ (ValadocGtkdocMarkdownParser* self,
278                   GError** error);
279 static void ___lambda46__valadoc_rule_action (gpointer self,
280                                        GError** error);
281 static void __lambda47_ (ValadocGtkdocMarkdownParser* self,
282                   GError** error);
283 static void ___lambda47__valadoc_rule_action (gpointer self,
284                                        GError** error);
285 static void __lambda48_ (ValadocGtkdocMarkdownParser* self,
286                   GError** error);
287 static void ___lambda48__valadoc_rule_action (gpointer self,
288                                        GError** error);
289 static void __lambda49_ (ValadocGtkdocMarkdownParser* self,
290                   GError** error);
291 static void ___lambda49__valadoc_rule_action (gpointer self,
292                                        GError** error);
293 static void __lambda50_ (ValadocGtkdocMarkdownParser* self,
294                   ValadocToken* token,
295                   GError** error);
296 static void ___lambda50__valadoc_token_type_action (ValadocToken* token,
297                                              gpointer self,
298                                              GError** error);
299 static void __lambda51_ (ValadocGtkdocMarkdownParser* self,
300                   ValadocToken* token,
301                   GError** error);
302 static void ___lambda51__valadoc_token_type_action (ValadocToken* token,
303                                              gpointer self,
304                                              GError** error);
305 static void __lambda52_ (ValadocGtkdocMarkdownParser* self,
306                   ValadocToken* token,
307                   GError** error);
308 static void ___lambda52__valadoc_token_type_action (ValadocToken* token,
309                                              gpointer self,
310                                              GError** error);
311 static void __lambda53_ (ValadocGtkdocMarkdownParser* self,
312                   GError** error);
313 static void ___lambda53__valadoc_rule_action (gpointer self,
314                                        GError** error);
315 static void __lambda54_ (ValadocGtkdocMarkdownParser* self,
316                   GError** error);
317 static void ___lambda54__valadoc_rule_action (gpointer self,
318                                        GError** error);
319 static void __lambda55_ (ValadocGtkdocMarkdownParser* self,
320                   GError** error);
321 static void ___lambda55__valadoc_rule_action (gpointer self,
322                                        GError** error);
323 static ValadocContentComment* _valadoc_gtkdoc_markdown_parser_parse (ValadocGtkdocMarkdownParser* self,
324                                                               ValadocApiSourceComment* comment);
325 static ValadocContentTaglet* _valadoc_gtkdoc_markdown_parser_parse_block_taglet (ValadocGtkdocMarkdownParser* self,
326                                                                           ValadocApiSourceComment* comment,
327                                                                           const gchar* taglet_name);
328 static ValadocContentNote* _valadoc_gtkdoc_markdown_parser_parse_note (ValadocGtkdocMarkdownParser* self,
329                                                                 ValadocApiSourceComment* comment);
330 static void valadoc_gtkdoc_markdown_parser_add_taglet (ValadocGtkdocMarkdownParser* self,
331                                                 ValadocContentComment* * comment,
332                                                 ValadocContentTaglet* taglet);
333 static void valadoc_gtkdoc_markdown_parser_add_note (ValadocGtkdocMarkdownParser* self,
334                                               ValadocContentComment* * comment,
335                                               ValadocContentNote* note);
336 G_GNUC_INTERNAL void valadoc_importer_helper_extract_short_desc (ValadocContentComment* comment,
337                                                  ValadocContentContentFactory* factory);
338 G_GNUC_INTERNAL void valadoc_taglets_param_set_is_c_self_param (ValadocTagletsParam* self,
339                                                 gboolean value);
340 G_GNUC_INTERNAL void valadoc_taglets_param_set_parameter_name (ValadocTagletsParam* self,
341                                                const gchar* value);
342 G_GNUC_INTERNAL void valadoc_taglets_link_set_c_accept_plural (ValadocTagletsLink* self,
343                                                gboolean value);
344 G_GNUC_INTERNAL void valadoc_taglets_link_set_symbol_name (ValadocTagletsLink* self,
345                                            const gchar* value);
346 static void valadoc_gtkdoc_markdown_parser_inline_to_string (ValadocGtkdocMarkdownParser* self,
347                                                       ValadocContentInline* element,
348                                                       const gchar* rule_name,
349                                                       GString* builder,
350                                                       GError** error);
351 GQuark valadoc_gtkdoc_content_to_string_error_quark (void);
352 static gchar* valadoc_gtkdoc_markdown_parser_real_resolve (ValadocResourceLocator* base,
353                                                     const gchar* path);
354 static void valadoc_gtkdoc_markdown_parser_finalize (GObject * obj);
355 static GType valadoc_gtkdoc_markdown_parser_get_type_once (void);
356 static void _vala_array_destroy (gpointer array,
357                           gint array_length,
358                           GDestroyNotify destroy_func);
359 static void _vala_array_free (gpointer array,
360                        gint array_length,
361                        GDestroyNotify destroy_func);
362 
363 static inline gpointer
valadoc_gtkdoc_markdown_parser_get_instance_private(ValadocGtkdocMarkdownParser * self)364 valadoc_gtkdoc_markdown_parser_get_instance_private (ValadocGtkdocMarkdownParser* self)
365 {
366 	return G_STRUCT_MEMBER_P (self, ValadocGtkdocMarkdownParser_private_offset);
367 }
368 
369 static gpointer
_g_object_ref0(gpointer self)370 _g_object_ref0 (gpointer self)
371 {
372 	return self ? g_object_ref (self) : NULL;
373 }
374 
375 static gpointer
_valadoc_api_tree_ref0(gpointer self)376 _valadoc_api_tree_ref0 (gpointer self)
377 {
378 	return self ? valadoc_api_tree_ref (self) : NULL;
379 }
380 
381 ValadocGtkdocMarkdownParser*
valadoc_gtkdoc_markdown_parser_construct(GType object_type,ValadocSettings * settings,ValadocErrorReporter * reporter,ValadocApiTree * tree,ValadocModuleLoader * _modules)382 valadoc_gtkdoc_markdown_parser_construct (GType object_type,
383                                           ValadocSettings* settings,
384                                           ValadocErrorReporter* reporter,
385                                           ValadocApiTree* tree,
386                                           ValadocModuleLoader* _modules)
387 {
388 	ValadocGtkdocMarkdownParser * self = NULL;
389 	ValadocGtkdocMarkdownScanner* scanner = NULL;
390 	ValadocGtkdocMarkdownScanner* _tmp0_;
391 	ValadocParser* _tmp1_;
392 	ValadocParser* _tmp2_;
393 	ValadocContentContentFactory* _tmp3_;
394 	ValadocSettings* _tmp4_;
395 	ValadocErrorReporter* _tmp5_;
396 	ValadocApiTree* _tmp6_;
397 	GError* _inner_error0_ = NULL;
398 	g_return_val_if_fail (settings != NULL, NULL);
399 	g_return_val_if_fail (reporter != NULL, NULL);
400 	g_return_val_if_fail (_modules != NULL, NULL);
401 	self = (ValadocGtkdocMarkdownParser*) g_object_new (object_type, NULL);
402 	_tmp0_ = valadoc_gtkdoc_markdown_scanner_new (settings);
403 	scanner = _tmp0_;
404 	_tmp1_ = valadoc_parser_new (settings, (ValadocScanner*) scanner, reporter);
405 	_valadoc_parser_unref0 (self->priv->parser);
406 	self->priv->parser = _tmp1_;
407 	_tmp2_ = self->priv->parser;
408 	valadoc_scanner_set_parser ((ValadocScanner*) scanner, _tmp2_);
409 	_tmp3_ = valadoc_content_content_factory_new (settings, (ValadocResourceLocator*) self, _modules);
410 	_g_object_unref0 (self->priv->_factory);
411 	self->priv->_factory = _tmp3_;
412 	_tmp4_ = _g_object_ref0 (settings);
413 	_g_object_unref0 (self->priv->_settings);
414 	self->priv->_settings = _tmp4_;
415 	_tmp5_ = _g_object_ref0 (reporter);
416 	_g_object_unref0 (self->priv->_reporter);
417 	self->priv->_reporter = _tmp5_;
418 	_tmp6_ = _valadoc_api_tree_ref0 (tree);
419 	_valadoc_api_tree_unref0 (self->priv->_tree);
420 	self->priv->_tree = _tmp6_;
421 	valadoc_gtkdoc_markdown_parser_init_rules (self);
422 	{
423 		GRegex* _tmp7_ = NULL;
424 		GRegex* _tmp8_;
425 		GRegex* _tmp9_;
426 		_tmp8_ = g_regex_new ("^<!--[ \t]+language=\"([A-Za-z]*)\"[ \t]+-->", 0, 0, &_inner_error0_);
427 		_tmp7_ = _tmp8_;
428 		if (G_UNLIKELY (_inner_error0_ != NULL)) {
429 			goto __catch0_g_error;
430 		}
431 		_tmp9_ = _tmp7_;
432 		_tmp7_ = NULL;
433 		_g_regex_unref0 (self->priv->regex_source_lang);
434 		self->priv->regex_source_lang = _tmp9_;
435 		_g_regex_unref0 (_tmp7_);
436 	}
437 	goto __finally0;
438 	__catch0_g_error:
439 	{
440 		g_clear_error (&_inner_error0_);
441 		g_assert_not_reached ();
442 	}
443 	__finally0:
444 	if (G_UNLIKELY (_inner_error0_ != NULL)) {
445 		_g_object_unref0 (scanner);
446 		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);
447 		g_clear_error (&_inner_error0_);
448 		return NULL;
449 	}
450 	_g_object_unref0 (scanner);
451 	return self;
452 }
453 
454 ValadocGtkdocMarkdownParser*
valadoc_gtkdoc_markdown_parser_new(ValadocSettings * settings,ValadocErrorReporter * reporter,ValadocApiTree * tree,ValadocModuleLoader * _modules)455 valadoc_gtkdoc_markdown_parser_new (ValadocSettings* settings,
456                                     ValadocErrorReporter* reporter,
457                                     ValadocApiTree* tree,
458                                     ValadocModuleLoader* _modules)
459 {
460 	return valadoc_gtkdoc_markdown_parser_construct (VALADOC_GTKDOC_TYPE_MARKDOWN_PARSER, settings, reporter, tree, _modules);
461 }
462 
463 static void
_valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)464 _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action (ValadocToken* token,
465                                                                     gpointer self,
466                                                                     GError** error)
467 {
468 	valadoc_gtkdoc_markdown_parser_add_text ((ValadocGtkdocMarkdownParser*) self, token, error);
469 }
470 
471 static void
__lambda12_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)472 __lambda12_ (ValadocGtkdocMarkdownParser* self,
473              ValadocToken* token,
474              GError** error)
475 {
476 	ValadocContentRun* _run = NULL;
477 	const gchar* _tmp0_;
478 	const gchar* _tmp1_;
479 	ValadocApiGirSourceComment* _tmp2_;
480 	const gchar* _tmp3_;
481 	const gchar* _tmp4_;
482 	ValadocContentRun* _tmp69_;
483 	g_return_if_fail (token != NULL);
484 	_run = NULL;
485 	_tmp0_ = valadoc_token_get_value (token);
486 	_tmp1_ = _tmp0_;
487 	_tmp2_ = self->priv->gir_comment;
488 	_tmp3_ = valadoc_api_gir_source_comment_get_instance_param_name (_tmp2_);
489 	_tmp4_ = _tmp3_;
490 	if (g_strcmp0 (_tmp1_, _tmp4_) == 0) {
491 		ValadocContentContentFactory* _tmp5_;
492 		ValadocContentRun* _tmp6_;
493 		ValadocContentRun* _tmp7_;
494 		ValaList* _tmp8_;
495 		ValaList* _tmp9_;
496 		ValadocContentContentFactory* _tmp10_;
497 		ValadocContentText* _tmp11_;
498 		ValadocContentText* _tmp12_;
499 		_tmp5_ = self->priv->_factory;
500 		_tmp6_ = valadoc_content_content_factory_create_run (_tmp5_, VALADOC_CONTENT_RUN_STYLE_LANG_KEYWORD);
501 		_g_object_unref0 (_run);
502 		_run = _tmp6_;
503 		_tmp7_ = _run;
504 		_tmp8_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp7_);
505 		_tmp9_ = _tmp8_;
506 		_tmp10_ = self->priv->_factory;
507 		_tmp11_ = valadoc_content_content_factory_create_text (_tmp10_, "this");
508 		_tmp12_ = _tmp11_;
509 		vala_collection_add ((ValaCollection*) _tmp9_, (ValadocContentInline*) _tmp12_);
510 		_g_object_unref0 (_tmp12_);
511 	} else {
512 		const gchar* _tmp13_;
513 		const gchar* _tmp14_;
514 		_tmp13_ = valadoc_token_get_value (token);
515 		_tmp14_ = _tmp13_;
516 		if (valadoc_gtkdoc_markdown_parser_is_error_parameter (self, _tmp14_)) {
517 			ValadocContentContentFactory* _tmp15_;
518 			ValadocContentRun* _tmp16_;
519 			ValadocContentRun* _tmp17_;
520 			ValaList* _tmp18_;
521 			ValaList* _tmp19_;
522 			ValadocContentContentFactory* _tmp20_;
523 			ValadocContentText* _tmp21_;
524 			ValadocContentText* _tmp22_;
525 			_tmp15_ = self->priv->_factory;
526 			_tmp16_ = valadoc_content_content_factory_create_run (_tmp15_, VALADOC_CONTENT_RUN_STYLE_LANG_KEYWORD);
527 			_g_object_unref0 (_run);
528 			_run = _tmp16_;
529 			_tmp17_ = _run;
530 			_tmp18_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp17_);
531 			_tmp19_ = _tmp18_;
532 			_tmp20_ = self->priv->_factory;
533 			_tmp21_ = valadoc_content_content_factory_create_text (_tmp20_, "throws");
534 			_tmp22_ = _tmp21_;
535 			vala_collection_add ((ValaCollection*) _tmp19_, (ValadocContentInline*) _tmp22_);
536 			_g_object_unref0 (_tmp22_);
537 		} else {
538 			gchar* param_name = NULL;
539 			gchar* param_array_name = NULL;
540 			gboolean is_return_type_len = FALSE;
541 			ValadocApiTree* _tmp23_;
542 			ValadocApiNode* _tmp24_;
543 			const gchar* _tmp25_;
544 			const gchar* _tmp26_;
545 			gchar* _tmp27_ = NULL;
546 			gchar* _tmp28_ = NULL;
547 			gboolean _tmp29_ = FALSE;
548 			gchar* _tmp30_;
549 			gchar* _tmp31_;
550 			ValadocContentContentFactory* _tmp32_;
551 			ValadocContentRun* _tmp33_;
552 			_tmp23_ = self->priv->_tree;
553 			_tmp24_ = self->priv->element;
554 			_tmp25_ = valadoc_token_get_value (token);
555 			_tmp26_ = _tmp25_;
556 			_tmp30_ = valadoc_importer_helper_resolve_parameter_ctype (_tmp23_, _tmp24_, _tmp26_, &_tmp27_, &_tmp28_, &_tmp29_);
557 			_g_free0 (param_name);
558 			param_name = _tmp27_;
559 			_g_free0 (param_array_name);
560 			param_array_name = _tmp28_;
561 			is_return_type_len = _tmp29_;
562 			_tmp31_ = _tmp30_;
563 			_g_free0 (_tmp31_);
564 			_tmp32_ = self->priv->_factory;
565 			_tmp33_ = valadoc_content_content_factory_create_run (_tmp32_, VALADOC_CONTENT_RUN_STYLE_MONOSPACED);
566 			_g_object_unref0 (_run);
567 			_run = _tmp33_;
568 			if (is_return_type_len) {
569 				ValadocContentRun* keyword_run = NULL;
570 				ValadocContentContentFactory* _tmp34_;
571 				ValadocContentRun* _tmp35_;
572 				ValadocContentRun* _tmp36_;
573 				ValaList* _tmp37_;
574 				ValaList* _tmp38_;
575 				ValadocContentContentFactory* _tmp39_;
576 				ValadocContentText* _tmp40_;
577 				ValadocContentText* _tmp41_;
578 				ValadocContentRun* _tmp42_;
579 				ValaList* _tmp43_;
580 				ValaList* _tmp44_;
581 				ValadocContentRun* _tmp45_;
582 				ValadocContentRun* _tmp46_;
583 				ValaList* _tmp47_;
584 				ValaList* _tmp48_;
585 				ValadocContentContentFactory* _tmp49_;
586 				ValadocContentText* _tmp50_;
587 				ValadocContentText* _tmp51_;
588 				_tmp34_ = self->priv->_factory;
589 				_tmp35_ = valadoc_content_content_factory_create_run (_tmp34_, VALADOC_CONTENT_RUN_STYLE_LANG_KEYWORD);
590 				keyword_run = _tmp35_;
591 				_tmp36_ = keyword_run;
592 				_tmp37_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp36_);
593 				_tmp38_ = _tmp37_;
594 				_tmp39_ = self->priv->_factory;
595 				_tmp40_ = valadoc_content_content_factory_create_text (_tmp39_, "return");
596 				_tmp41_ = _tmp40_;
597 				vala_collection_add ((ValaCollection*) _tmp38_, (ValadocContentInline*) _tmp41_);
598 				_g_object_unref0 (_tmp41_);
599 				_tmp42_ = _run;
600 				_tmp43_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp42_);
601 				_tmp44_ = _tmp43_;
602 				_tmp45_ = keyword_run;
603 				vala_collection_add ((ValaCollection*) _tmp44_, (ValadocContentInline*) _tmp45_);
604 				_tmp46_ = _run;
605 				_tmp47_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp46_);
606 				_tmp48_ = _tmp47_;
607 				_tmp49_ = self->priv->_factory;
608 				_tmp50_ = valadoc_content_content_factory_create_text (_tmp49_, ".length");
609 				_tmp51_ = _tmp50_;
610 				vala_collection_add ((ValaCollection*) _tmp48_, (ValadocContentInline*) _tmp51_);
611 				_g_object_unref0 (_tmp51_);
612 				_g_object_unref0 (keyword_run);
613 			} else {
614 				const gchar* _tmp52_;
615 				_tmp52_ = param_array_name;
616 				if (_tmp52_ != NULL) {
617 					ValadocContentRun* _tmp53_;
618 					ValaList* _tmp54_;
619 					ValaList* _tmp55_;
620 					ValadocContentContentFactory* _tmp56_;
621 					const gchar* _tmp57_;
622 					gchar* _tmp58_;
623 					gchar* _tmp59_;
624 					ValadocContentText* _tmp60_;
625 					ValadocContentText* _tmp61_;
626 					_tmp53_ = _run;
627 					_tmp54_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp53_);
628 					_tmp55_ = _tmp54_;
629 					_tmp56_ = self->priv->_factory;
630 					_tmp57_ = param_array_name;
631 					_tmp58_ = g_strconcat (_tmp57_, ".length", NULL);
632 					_tmp59_ = _tmp58_;
633 					_tmp60_ = valadoc_content_content_factory_create_text (_tmp56_, _tmp59_);
634 					_tmp61_ = _tmp60_;
635 					vala_collection_add ((ValaCollection*) _tmp55_, (ValadocContentInline*) _tmp61_);
636 					_g_object_unref0 (_tmp61_);
637 					_g_free0 (_tmp59_);
638 				} else {
639 					ValadocContentRun* _tmp62_;
640 					ValaList* _tmp63_;
641 					ValaList* _tmp64_;
642 					ValadocContentContentFactory* _tmp65_;
643 					const gchar* _tmp66_;
644 					ValadocContentText* _tmp67_;
645 					ValadocContentText* _tmp68_;
646 					_tmp62_ = _run;
647 					_tmp63_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp62_);
648 					_tmp64_ = _tmp63_;
649 					_tmp65_ = self->priv->_factory;
650 					_tmp66_ = param_name;
651 					_tmp67_ = valadoc_content_content_factory_create_text (_tmp65_, _tmp66_);
652 					_tmp68_ = _tmp67_;
653 					vala_collection_add ((ValaCollection*) _tmp64_, (ValadocContentInline*) _tmp68_);
654 					_g_object_unref0 (_tmp68_);
655 				}
656 			}
657 			_g_free0 (param_array_name);
658 			_g_free0 (param_name);
659 		}
660 	}
661 	_tmp69_ = _run;
662 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp69_);
663 	_g_object_unref0 (_run);
664 }
665 
666 static void
___lambda12__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)667 ___lambda12__valadoc_token_type_action (ValadocToken* token,
668                                         gpointer self,
669                                         GError** error)
670 {
671 	__lambda12_ ((ValadocGtkdocMarkdownParser*) self, token, error);
672 }
673 
674 static void
__lambda13_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)675 __lambda13_ (ValadocGtkdocMarkdownParser* self,
676              ValadocToken* token,
677              GError** error)
678 {
679 	const gchar* _tmp0_;
680 	const gchar* _tmp1_;
681 	g_return_if_fail (token != NULL);
682 	_tmp0_ = valadoc_token_get_value (token);
683 	_tmp1_ = _tmp0_;
684 	if (valadoc_gtkdoc_markdown_parser_is_literal (self, _tmp1_)) {
685 		ValadocContentRun* _run = NULL;
686 		ValadocContentContentFactory* _tmp2_;
687 		ValadocContentRun* _tmp3_;
688 		ValadocContentRun* _tmp4_;
689 		ValaList* _tmp5_;
690 		ValaList* _tmp6_;
691 		ValadocContentContentFactory* _tmp7_;
692 		const gchar* _tmp8_;
693 		const gchar* _tmp9_;
694 		gchar* _tmp10_;
695 		gchar* _tmp11_;
696 		ValadocContentText* _tmp12_;
697 		ValadocContentText* _tmp13_;
698 		ValadocContentRun* _tmp14_;
699 		_tmp2_ = self->priv->_factory;
700 		_tmp3_ = valadoc_content_content_factory_create_run (_tmp2_, VALADOC_CONTENT_RUN_STYLE_LANG_LITERAL);
701 		_run = _tmp3_;
702 		_tmp4_ = _run;
703 		_tmp5_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp4_);
704 		_tmp6_ = _tmp5_;
705 		_tmp7_ = self->priv->_factory;
706 		_tmp8_ = valadoc_token_get_value (token);
707 		_tmp9_ = _tmp8_;
708 		_tmp10_ = g_ascii_strdown (_tmp9_, (gssize) -1);
709 		_tmp11_ = _tmp10_;
710 		_tmp12_ = valadoc_content_content_factory_create_text (_tmp7_, _tmp11_);
711 		_tmp13_ = _tmp12_;
712 		vala_collection_add ((ValaCollection*) _tmp6_, (ValadocContentInline*) _tmp13_);
713 		_g_object_unref0 (_tmp13_);
714 		_g_free0 (_tmp11_);
715 		_tmp14_ = _run;
716 		valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp14_);
717 		_g_object_unref0 (_run);
718 	} else {
719 		const gchar* _tmp15_;
720 		const gchar* _tmp16_;
721 		gchar* _tmp17_;
722 		gchar* _tmp18_;
723 		_tmp15_ = valadoc_token_get_value (token);
724 		_tmp16_ = _tmp15_;
725 		_tmp17_ = g_strconcat ("c::", _tmp16_, NULL);
726 		_tmp18_ = _tmp17_;
727 		valadoc_gtkdoc_markdown_parser_add_symbol_link (self, _tmp18_, TRUE);
728 		_g_free0 (_tmp18_);
729 	}
730 }
731 
732 static void
___lambda13__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)733 ___lambda13__valadoc_token_type_action (ValadocToken* token,
734                                         gpointer self,
735                                         GError** error)
736 {
737 	__lambda13_ ((ValadocGtkdocMarkdownParser*) self, token, error);
738 }
739 
740 static void
__lambda14_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)741 __lambda14_ (ValadocGtkdocMarkdownParser* self,
742              ValadocToken* token,
743              GError** error)
744 {
745 	ValadocApiItem* gtype = NULL;
746 	ValadocApiNode* _tmp0_;
747 	ValadocApiItem* _tmp1_;
748 	gchar* parent_cname = NULL;
749 	ValadocApiItem* _tmp11_;
750 	const gchar* _tmp18_;
751 	gchar* _tmp19_;
752 	gchar* _tmp20_;
753 	const gchar* _tmp21_;
754 	const gchar* _tmp22_;
755 	gchar* _tmp23_;
756 	gchar* _tmp24_;
757 	g_return_if_fail (token != NULL);
758 	_tmp0_ = self->priv->element;
759 	_tmp1_ = _g_object_ref0 ((ValadocApiItem*) _tmp0_);
760 	gtype = _tmp1_;
761 	while (TRUE) {
762 		gboolean _tmp2_ = FALSE;
763 		gboolean _tmp3_ = FALSE;
764 		ValadocApiItem* _tmp4_;
765 		ValadocApiItem* _tmp7_;
766 		ValadocApiItem* _tmp8_;
767 		ValadocApiItem* _tmp9_;
768 		ValadocApiItem* _tmp10_;
769 		_tmp4_ = gtype;
770 		if (VALADOC_API_IS_CLASS (_tmp4_) == FALSE) {
771 			ValadocApiItem* _tmp5_;
772 			_tmp5_ = gtype;
773 			_tmp3_ = VALADOC_API_IS_INTERFACE (_tmp5_) == FALSE;
774 		} else {
775 			_tmp3_ = FALSE;
776 		}
777 		if (_tmp3_) {
778 			ValadocApiItem* _tmp6_;
779 			_tmp6_ = gtype;
780 			_tmp2_ = _tmp6_ != NULL;
781 		} else {
782 			_tmp2_ = FALSE;
783 		}
784 		if (!_tmp2_) {
785 			break;
786 		}
787 		_tmp7_ = gtype;
788 		_tmp8_ = valadoc_api_item_get_parent (_tmp7_);
789 		_tmp9_ = _tmp8_;
790 		_tmp10_ = _g_object_ref0 (_tmp9_);
791 		_g_object_unref0 (gtype);
792 		gtype = _tmp10_;
793 	}
794 	_tmp11_ = gtype;
795 	if (VALADOC_API_IS_CLASS (_tmp11_)) {
796 		ValadocApiItem* _tmp12_;
797 		gchar* _tmp13_;
798 		_tmp12_ = gtype;
799 		_tmp13_ = valadoc_api_class_get_cname (G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, VALADOC_API_TYPE_CLASS, ValadocApiClass));
800 		_g_free0 (parent_cname);
801 		parent_cname = _tmp13_;
802 	} else {
803 		ValadocApiItem* _tmp14_;
804 		_tmp14_ = gtype;
805 		if (VALADOC_API_IS_INTERFACE (_tmp14_)) {
806 			ValadocApiItem* _tmp15_;
807 			gchar* _tmp16_;
808 			_tmp15_ = gtype;
809 			_tmp16_ = valadoc_api_interface_get_cname (G_TYPE_CHECK_INSTANCE_CAST (_tmp15_, VALADOC_API_TYPE_INTERFACE, ValadocApiInterface));
810 			_g_free0 (parent_cname);
811 			parent_cname = _tmp16_;
812 		} else {
813 			gchar* _tmp17_;
814 			_tmp17_ = g_strdup ("");
815 			_g_free0 (parent_cname);
816 			parent_cname = _tmp17_;
817 		}
818 	}
819 	_tmp18_ = parent_cname;
820 	_tmp19_ = g_strconcat ("c::", _tmp18_, NULL);
821 	_tmp20_ = _tmp19_;
822 	_tmp21_ = valadoc_token_get_value (token);
823 	_tmp22_ = _tmp21_;
824 	_tmp23_ = g_strconcat (_tmp20_, _tmp22_, NULL);
825 	_tmp24_ = _tmp23_;
826 	valadoc_gtkdoc_markdown_parser_add_symbol_link (self, _tmp24_, TRUE);
827 	_g_free0 (_tmp24_);
828 	_g_free0 (_tmp20_);
829 	_g_free0 (parent_cname);
830 	_g_object_unref0 (gtype);
831 }
832 
833 static void
___lambda14__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)834 ___lambda14__valadoc_token_type_action (ValadocToken* token,
835                                         gpointer self,
836                                         GError** error)
837 {
838 	__lambda14_ ((ValadocGtkdocMarkdownParser*) self, token, error);
839 }
840 
841 static void
__lambda15_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)842 __lambda15_ (ValadocGtkdocMarkdownParser* self,
843              ValadocToken* token,
844              GError** error)
845 {
846 	const gchar* _tmp0_;
847 	const gchar* _tmp1_;
848 	gchar* _tmp2_;
849 	gchar* _tmp3_;
850 	g_return_if_fail (token != NULL);
851 	_tmp0_ = valadoc_token_get_value (token);
852 	_tmp1_ = _tmp0_;
853 	_tmp2_ = g_strconcat ("c::", _tmp1_, NULL);
854 	_tmp3_ = _tmp2_;
855 	valadoc_gtkdoc_markdown_parser_add_symbol_link (self, _tmp3_, TRUE);
856 	_g_free0 (_tmp3_);
857 }
858 
859 static void
___lambda15__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)860 ___lambda15__valadoc_token_type_action (ValadocToken* token,
861                                         gpointer self,
862                                         GError** error)
863 {
864 	__lambda15_ ((ValadocGtkdocMarkdownParser*) self, token, error);
865 }
866 
867 static void
__lambda16_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)868 __lambda16_ (ValadocGtkdocMarkdownParser* self,
869              ValadocToken* token,
870              GError** error)
871 {
872 	const gchar* _tmp0_;
873 	const gchar* _tmp1_;
874 	gchar* _tmp2_;
875 	gchar* _tmp3_;
876 	g_return_if_fail (token != NULL);
877 	_tmp0_ = valadoc_token_get_value (token);
878 	_tmp1_ = _tmp0_;
879 	_tmp2_ = g_strconcat ("c::", _tmp1_, NULL);
880 	_tmp3_ = _tmp2_;
881 	valadoc_gtkdoc_markdown_parser_add_symbol_link (self, _tmp3_, FALSE);
882 	_g_free0 (_tmp3_);
883 }
884 
885 static void
___lambda16__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)886 ___lambda16__valadoc_token_type_action (ValadocToken* token,
887                                         gpointer self,
888                                         GError** error)
889 {
890 	__lambda16_ ((ValadocGtkdocMarkdownParser*) self, token, error);
891 }
892 
893 static void
_valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)894 _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action (ValadocToken* token,
895                                                                           gpointer self,
896                                                                           GError** error)
897 {
898 	valadoc_gtkdoc_markdown_parser_preserve_token ((ValadocGtkdocMarkdownParser*) self, token, error);
899 }
900 
901 static void
__lambda17_(ValadocGtkdocMarkdownParser * self,GError ** error)902 __lambda17_ (ValadocGtkdocMarkdownParser* self,
903              GError** error)
904 {
905 	ValadocContentLink* url = NULL;
906 	ValadocContentContentFactory* _tmp0_;
907 	ValadocContentLink* _tmp1_;
908 	gchar* _tmp2_;
909 	gchar* _tmp3_;
910 	_tmp0_ = self->priv->_factory;
911 	_tmp1_ = valadoc_content_content_factory_create_link (_tmp0_);
912 	url = _tmp1_;
913 	_tmp2_ = valadoc_gtkdoc_markdown_parser_pop_preserved_link (self);
914 	_tmp3_ = _tmp2_;
915 	valadoc_content_link_set_url (url, _tmp3_);
916 	_g_free0 (_tmp3_);
917 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) url);
918 	_g_object_unref0 (url);
919 }
920 
921 static void
___lambda17__valadoc_rule_action(gpointer self,GError ** error)922 ___lambda17__valadoc_rule_action (gpointer self,
923                                   GError** error)
924 {
925 	__lambda17_ ((ValadocGtkdocMarkdownParser*) self, error);
926 }
927 
928 static void
__lambda18_(ValadocGtkdocMarkdownParser * self,GError ** error)929 __lambda18_ (ValadocGtkdocMarkdownParser* self,
930              GError** error)
931 {
932 	ValadocToken* _tmp0_;
933 	GError* _inner_error0_ = NULL;
934 	valadoc_gtkdoc_markdown_parser_add_content_string (self, "<");
935 	_tmp0_ = self->priv->preserved_token;
936 	valadoc_gtkdoc_markdown_parser_add_value (self, _tmp0_, &_inner_error0_);
937 	if (G_UNLIKELY (_inner_error0_ != NULL)) {
938 		if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
939 			g_propagate_error (error, _inner_error0_);
940 			return;
941 		} else {
942 			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);
943 			g_clear_error (&_inner_error0_);
944 			return;
945 		}
946 	}
947 	_g_object_unref0 (self->priv->preserved_token);
948 	self->priv->preserved_token = NULL;
949 }
950 
951 static void
___lambda18__valadoc_rule_action(gpointer self,GError ** error)952 ___lambda18__valadoc_rule_action (gpointer self,
953                                   GError** error)
954 {
955 	__lambda18_ ((ValadocGtkdocMarkdownParser*) self, error);
956 }
957 
958 static void
__lambda19_(ValadocGtkdocMarkdownParser * self,GError ** error)959 __lambda19_ (ValadocGtkdocMarkdownParser* self,
960              GError** error)
961 {
962 	valadoc_gtkdoc_markdown_parser_add_content_string (self, "<");
963 }
964 
965 static void
___lambda19__valadoc_rule_action(gpointer self,GError ** error)966 ___lambda19__valadoc_rule_action (gpointer self,
967                                   GError** error)
968 {
969 	__lambda19_ ((ValadocGtkdocMarkdownParser*) self, error);
970 }
971 
972 static void
__lambda20_(ValadocGtkdocMarkdownParser * self,GError ** error)973 __lambda20_ (ValadocGtkdocMarkdownParser* self,
974              GError** error)
975 {
976 	ValadocContentLink* url = NULL;
977 	ValadocContentContentFactory* _tmp0_;
978 	ValadocContentLink* _tmp1_;
979 	gchar* _tmp2_;
980 	gchar* _tmp3_;
981 	ValadocContentRun* label = NULL;
982 	GObject* _tmp4_;
983 	ValaList* _tmp5_;
984 	ValaList* _tmp6_;
985 	ValaList* _tmp7_;
986 	ValaList* _tmp8_;
987 	ValaList* _tmp9_;
988 	ValaList* _tmp10_;
989 	ValaList* _tmp11_;
990 	ValaList* _tmp12_;
991 	_tmp0_ = self->priv->_factory;
992 	_tmp1_ = valadoc_content_content_factory_create_link (_tmp0_);
993 	url = _tmp1_;
994 	_tmp2_ = valadoc_gtkdoc_markdown_parser_pop_preserved_link (self);
995 	_tmp3_ = _tmp2_;
996 	valadoc_content_link_set_url (url, _tmp3_);
997 	_g_free0 (_tmp3_);
998 	_tmp4_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
999 	label = G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1000 	_tmp5_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) url);
1001 	_tmp6_ = _tmp5_;
1002 	_tmp7_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1003 	_tmp8_ = _tmp7_;
1004 	vala_collection_add_all ((ValaCollection*) _tmp6_, (ValaCollection*) _tmp8_);
1005 	_tmp9_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1006 	_tmp10_ = _tmp9_;
1007 	vala_collection_clear ((ValaCollection*) _tmp10_);
1008 	_tmp11_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1009 	_tmp12_ = _tmp11_;
1010 	vala_collection_add ((ValaCollection*) _tmp12_, (ValadocContentInline*) url);
1011 	_g_object_unref0 (label);
1012 	_g_object_unref0 (url);
1013 }
1014 
1015 static void
___lambda20__valadoc_rule_action(gpointer self,GError ** error)1016 ___lambda20__valadoc_rule_action (gpointer self,
1017                                   GError** error)
1018 {
1019 	__lambda20_ ((ValadocGtkdocMarkdownParser*) self, error);
1020 }
1021 
1022 static void
__lambda21_(ValadocGtkdocMarkdownParser * self,GError ** error)1023 __lambda21_ (ValadocGtkdocMarkdownParser* self,
1024              GError** error)
1025 {
1026 	ValadocContentRun* _run = NULL;
1027 	GObject* _tmp0_;
1028 	ValaList* _tmp1_;
1029 	ValaList* _tmp2_;
1030 	ValadocContentContentFactory* _tmp3_;
1031 	ValadocContentText* _tmp4_;
1032 	ValadocContentText* _tmp5_;
1033 	ValaList* _tmp6_;
1034 	ValaList* _tmp7_;
1035 	ValadocContentContentFactory* _tmp8_;
1036 	gchar* _tmp9_;
1037 	gchar* _tmp10_;
1038 	gchar* _tmp11_;
1039 	gchar* _tmp12_;
1040 	ValadocContentText* _tmp13_;
1041 	ValadocContentText* _tmp14_;
1042 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1043 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1044 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1045 	_tmp2_ = _tmp1_;
1046 	_tmp3_ = self->priv->_factory;
1047 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "[");
1048 	_tmp5_ = _tmp4_;
1049 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1050 	_g_object_unref0 (_tmp5_);
1051 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1052 	_tmp7_ = _tmp6_;
1053 	_tmp8_ = self->priv->_factory;
1054 	_tmp9_ = valadoc_gtkdoc_markdown_parser_pop_preserved_link (self);
1055 	_tmp10_ = _tmp9_;
1056 	_tmp11_ = g_strconcat ("](", _tmp10_, NULL);
1057 	_tmp12_ = _tmp11_;
1058 	_tmp13_ = valadoc_content_content_factory_create_text (_tmp8_, _tmp12_);
1059 	_tmp14_ = _tmp13_;
1060 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp14_);
1061 	_g_object_unref0 (_tmp14_);
1062 	_g_free0 (_tmp12_);
1063 	_g_free0 (_tmp10_);
1064 	_g_object_unref0 (_run);
1065 }
1066 
1067 static void
___lambda21__valadoc_rule_action(gpointer self,GError ** error)1068 ___lambda21__valadoc_rule_action (gpointer self,
1069                                   GError** error)
1070 {
1071 	__lambda21_ ((ValadocGtkdocMarkdownParser*) self, error);
1072 }
1073 
1074 static void
__lambda22_(ValadocGtkdocMarkdownParser * self,GError ** error)1075 __lambda22_ (ValadocGtkdocMarkdownParser* self,
1076              GError** error)
1077 {
1078 	ValadocContentRun* _run = NULL;
1079 	GObject* _tmp0_;
1080 	ValaList* _tmp1_;
1081 	ValaList* _tmp2_;
1082 	ValadocContentContentFactory* _tmp3_;
1083 	ValadocContentText* _tmp4_;
1084 	ValadocContentText* _tmp5_;
1085 	ValaList* _tmp6_;
1086 	ValaList* _tmp7_;
1087 	ValadocContentContentFactory* _tmp8_;
1088 	ValadocContentText* _tmp9_;
1089 	ValadocContentText* _tmp10_;
1090 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1091 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1092 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1093 	_tmp2_ = _tmp1_;
1094 	_tmp3_ = self->priv->_factory;
1095 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "[");
1096 	_tmp5_ = _tmp4_;
1097 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1098 	_g_object_unref0 (_tmp5_);
1099 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1100 	_tmp7_ = _tmp6_;
1101 	_tmp8_ = self->priv->_factory;
1102 	_tmp9_ = valadoc_content_content_factory_create_text (_tmp8_, "](");
1103 	_tmp10_ = _tmp9_;
1104 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp10_);
1105 	_g_object_unref0 (_tmp10_);
1106 	_g_object_unref0 (_run);
1107 }
1108 
1109 static void
___lambda22__valadoc_rule_action(gpointer self,GError ** error)1110 ___lambda22__valadoc_rule_action (gpointer self,
1111                                   GError** error)
1112 {
1113 	__lambda22_ ((ValadocGtkdocMarkdownParser*) self, error);
1114 }
1115 
1116 static void
__lambda23_(ValadocGtkdocMarkdownParser * self,GError ** error)1117 __lambda23_ (ValadocGtkdocMarkdownParser* self,
1118              GError** error)
1119 {
1120 	ValadocContentLink* url = NULL;
1121 	ValadocContentContentFactory* _tmp0_;
1122 	ValadocContentLink* _tmp1_;
1123 	gchar* _tmp2_;
1124 	gchar* _tmp3_;
1125 	ValadocImporterInternalIdRegistrar* _tmp4_;
1126 	ValadocContentRun* label = NULL;
1127 	GObject* _tmp5_;
1128 	ValaList* _tmp6_;
1129 	ValaList* _tmp7_;
1130 	ValaList* _tmp8_;
1131 	ValaList* _tmp9_;
1132 	ValaList* _tmp10_;
1133 	ValaList* _tmp11_;
1134 	ValaList* _tmp12_;
1135 	ValaList* _tmp13_;
1136 	_tmp0_ = self->priv->_factory;
1137 	_tmp1_ = valadoc_content_content_factory_create_link (_tmp0_);
1138 	url = _tmp1_;
1139 	_tmp2_ = valadoc_gtkdoc_markdown_parser_pop_preserved_link (self);
1140 	_tmp3_ = _tmp2_;
1141 	valadoc_content_link_set_url (url, _tmp3_);
1142 	_g_free0 (_tmp3_);
1143 	_tmp4_ = self->priv->id_registrar;
1144 	valadoc_content_link_set_id_registrar (url, _tmp4_);
1145 	_tmp5_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1146 	label = G_TYPE_CHECK_INSTANCE_CAST (_tmp5_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1147 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) url);
1148 	_tmp7_ = _tmp6_;
1149 	_tmp8_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1150 	_tmp9_ = _tmp8_;
1151 	vala_collection_add_all ((ValaCollection*) _tmp7_, (ValaCollection*) _tmp9_);
1152 	_tmp10_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1153 	_tmp11_ = _tmp10_;
1154 	vala_collection_clear ((ValaCollection*) _tmp11_);
1155 	_tmp12_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1156 	_tmp13_ = _tmp12_;
1157 	vala_collection_add ((ValaCollection*) _tmp13_, (ValadocContentInline*) url);
1158 	_g_object_unref0 (label);
1159 	_g_object_unref0 (url);
1160 }
1161 
1162 static void
___lambda23__valadoc_rule_action(gpointer self,GError ** error)1163 ___lambda23__valadoc_rule_action (gpointer self,
1164                                   GError** error)
1165 {
1166 	__lambda23_ ((ValadocGtkdocMarkdownParser*) self, error);
1167 }
1168 
1169 static void
__lambda24_(ValadocGtkdocMarkdownParser * self,GError ** error)1170 __lambda24_ (ValadocGtkdocMarkdownParser* self,
1171              GError** error)
1172 {
1173 	ValadocContentRun* _run = NULL;
1174 	GObject* _tmp0_;
1175 	ValaList* _tmp1_;
1176 	ValaList* _tmp2_;
1177 	ValadocContentContentFactory* _tmp3_;
1178 	ValadocContentText* _tmp4_;
1179 	ValadocContentText* _tmp5_;
1180 	ValaList* _tmp6_;
1181 	ValaList* _tmp7_;
1182 	ValadocContentContentFactory* _tmp8_;
1183 	gchar* _tmp9_;
1184 	gchar* _tmp10_;
1185 	gchar* _tmp11_;
1186 	gchar* _tmp12_;
1187 	ValadocContentText* _tmp13_;
1188 	ValadocContentText* _tmp14_;
1189 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1190 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1191 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1192 	_tmp2_ = _tmp1_;
1193 	_tmp3_ = self->priv->_factory;
1194 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "[");
1195 	_tmp5_ = _tmp4_;
1196 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1197 	_g_object_unref0 (_tmp5_);
1198 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1199 	_tmp7_ = _tmp6_;
1200 	_tmp8_ = self->priv->_factory;
1201 	_tmp9_ = valadoc_gtkdoc_markdown_parser_pop_preserved_link (self);
1202 	_tmp10_ = _tmp9_;
1203 	_tmp11_ = g_strconcat ("][", _tmp10_, NULL);
1204 	_tmp12_ = _tmp11_;
1205 	_tmp13_ = valadoc_content_content_factory_create_text (_tmp8_, _tmp12_);
1206 	_tmp14_ = _tmp13_;
1207 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp14_);
1208 	_g_object_unref0 (_tmp14_);
1209 	_g_free0 (_tmp12_);
1210 	_g_free0 (_tmp10_);
1211 	_g_object_unref0 (_run);
1212 }
1213 
1214 static void
___lambda24__valadoc_rule_action(gpointer self,GError ** error)1215 ___lambda24__valadoc_rule_action (gpointer self,
1216                                   GError** error)
1217 {
1218 	__lambda24_ ((ValadocGtkdocMarkdownParser*) self, error);
1219 }
1220 
1221 static void
__lambda25_(ValadocGtkdocMarkdownParser * self,GError ** error)1222 __lambda25_ (ValadocGtkdocMarkdownParser* self,
1223              GError** error)
1224 {
1225 	ValadocContentRun* _run = NULL;
1226 	GObject* _tmp0_;
1227 	ValaList* _tmp1_;
1228 	ValaList* _tmp2_;
1229 	ValadocContentContentFactory* _tmp3_;
1230 	ValadocContentText* _tmp4_;
1231 	ValadocContentText* _tmp5_;
1232 	ValaList* _tmp6_;
1233 	ValaList* _tmp7_;
1234 	ValadocContentContentFactory* _tmp8_;
1235 	ValadocContentText* _tmp9_;
1236 	ValadocContentText* _tmp10_;
1237 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1238 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1239 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1240 	_tmp2_ = _tmp1_;
1241 	_tmp3_ = self->priv->_factory;
1242 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "[");
1243 	_tmp5_ = _tmp4_;
1244 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1245 	_g_object_unref0 (_tmp5_);
1246 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1247 	_tmp7_ = _tmp6_;
1248 	_tmp8_ = self->priv->_factory;
1249 	_tmp9_ = valadoc_content_content_factory_create_text (_tmp8_, "][");
1250 	_tmp10_ = _tmp9_;
1251 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp10_);
1252 	_g_object_unref0 (_tmp10_);
1253 	_g_object_unref0 (_run);
1254 }
1255 
1256 static void
___lambda25__valadoc_rule_action(gpointer self,GError ** error)1257 ___lambda25__valadoc_rule_action (gpointer self,
1258                                   GError** error)
1259 {
1260 	__lambda25_ ((ValadocGtkdocMarkdownParser*) self, error);
1261 }
1262 
1263 static void
__lambda26_(ValadocGtkdocMarkdownParser * self,GError ** error)1264 __lambda26_ (ValadocGtkdocMarkdownParser* self,
1265              GError** error)
1266 {
1267 	ValadocContentRun* _run = NULL;
1268 	GObject* _tmp0_;
1269 	ValaList* _tmp1_;
1270 	ValaList* _tmp2_;
1271 	ValadocContentContentFactory* _tmp3_;
1272 	ValadocContentText* _tmp4_;
1273 	ValadocContentText* _tmp5_;
1274 	ValaList* _tmp6_;
1275 	ValaList* _tmp7_;
1276 	ValadocContentContentFactory* _tmp8_;
1277 	ValadocContentText* _tmp9_;
1278 	ValadocContentText* _tmp10_;
1279 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1280 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1281 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1282 	_tmp2_ = _tmp1_;
1283 	_tmp3_ = self->priv->_factory;
1284 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "[");
1285 	_tmp5_ = _tmp4_;
1286 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1287 	_g_object_unref0 (_tmp5_);
1288 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1289 	_tmp7_ = _tmp6_;
1290 	_tmp8_ = self->priv->_factory;
1291 	_tmp9_ = valadoc_content_content_factory_create_text (_tmp8_, "]");
1292 	_tmp10_ = _tmp9_;
1293 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp10_);
1294 	_g_object_unref0 (_tmp10_);
1295 	_g_object_unref0 (_run);
1296 }
1297 
1298 static void
___lambda26__valadoc_rule_action(gpointer self,GError ** error)1299 ___lambda26__valadoc_rule_action (gpointer self,
1300                                   GError** error)
1301 {
1302 	__lambda26_ ((ValadocGtkdocMarkdownParser*) self, error);
1303 }
1304 
1305 static void
__lambda27_(ValadocGtkdocMarkdownParser * self,GError ** error)1306 __lambda27_ (ValadocGtkdocMarkdownParser* self,
1307              GError** error)
1308 {
1309 	ValadocContentRun* _run = NULL;
1310 	GObject* _tmp0_;
1311 	ValaList* _tmp1_;
1312 	ValaList* _tmp2_;
1313 	ValadocContentContentFactory* _tmp3_;
1314 	ValadocContentText* _tmp4_;
1315 	ValadocContentText* _tmp5_;
1316 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1317 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1318 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1319 	_tmp2_ = _tmp1_;
1320 	_tmp3_ = self->priv->_factory;
1321 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "[");
1322 	_tmp5_ = _tmp4_;
1323 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1324 	_g_object_unref0 (_tmp5_);
1325 	_g_object_unref0 (_run);
1326 }
1327 
1328 static void
___lambda27__valadoc_rule_action(gpointer self,GError ** error)1329 ___lambda27__valadoc_rule_action (gpointer self,
1330                                   GError** error)
1331 {
1332 	__lambda27_ ((ValadocGtkdocMarkdownParser*) self, error);
1333 }
1334 
1335 static void
__lambda28_(ValadocGtkdocMarkdownParser * self,GError ** error)1336 __lambda28_ (ValadocGtkdocMarkdownParser* self,
1337              GError** error)
1338 {
1339 	ValadocContentContentFactory* _tmp0_;
1340 	ValadocContentRun* _tmp1_;
1341 	ValadocContentRun* _tmp2_;
1342 	_tmp0_ = self->priv->_factory;
1343 	_tmp1_ = valadoc_content_content_factory_create_run (_tmp0_, VALADOC_CONTENT_RUN_STYLE_NONE);
1344 	_tmp2_ = _tmp1_;
1345 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
1346 	_g_object_unref0 (_tmp2_);
1347 }
1348 
1349 static void
___lambda28__valadoc_rule_action(gpointer self,GError ** error)1350 ___lambda28__valadoc_rule_action (gpointer self,
1351                                   GError** error)
1352 {
1353 	__lambda28_ ((ValadocGtkdocMarkdownParser*) self, error);
1354 }
1355 
1356 static void
__lambda29_(ValadocGtkdocMarkdownParser * self,GError ** error)1357 __lambda29_ (ValadocGtkdocMarkdownParser* self,
1358              GError** error)
1359 {
1360 	ValadocContentRun* label = NULL;
1361 	GObject* _tmp0_;
1362 	gchar* label_str = NULL;
1363 	ValadocContentEmbedded* embedded = NULL;
1364 	ValadocContentContentFactory* _tmp8_;
1365 	ValadocContentEmbedded* _tmp9_;
1366 	gchar* _tmp10_;
1367 	gchar* _tmp11_;
1368 	gchar* _tmp12_;
1369 	gchar* _tmp13_;
1370 	const gchar* _tmp14_;
1371 	ValaList* _tmp15_;
1372 	ValaList* _tmp16_;
1373 	ValaList* _tmp17_;
1374 	ValaList* _tmp18_;
1375 	GError* _inner_error0_ = NULL;
1376 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1377 	label = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1378 	{
1379 		gchar* _tmp1_ = NULL;
1380 		gchar* _tmp2_;
1381 		gchar* _tmp3_;
1382 		_tmp2_ = valadoc_gtkdoc_markdown_parser_run_to_string (self, label, "<image>", &_inner_error0_);
1383 		_tmp1_ = _tmp2_;
1384 		if (G_UNLIKELY (_inner_error0_ != NULL)) {
1385 			goto __catch0_g_error;
1386 		}
1387 		_tmp3_ = _tmp1_;
1388 		_tmp1_ = NULL;
1389 		_g_free0 (label_str);
1390 		label_str = _tmp3_;
1391 		_g_free0 (_tmp1_);
1392 	}
1393 	goto __finally0;
1394 	__catch0_g_error:
1395 	{
1396 		GError* e = NULL;
1397 		ValadocParser* _tmp4_;
1398 		ValadocToken* _tmp5_;
1399 		GError* _tmp6_;
1400 		const gchar* _tmp7_;
1401 		e = _inner_error0_;
1402 		_inner_error0_ = NULL;
1403 		_tmp4_ = self->priv->parser;
1404 		_tmp5_ = self->priv->preserved_token;
1405 		_tmp6_ = e;
1406 		_tmp7_ = _tmp6_->message;
1407 		valadoc_parser_callback_warning ((ValadocParserCallback*) _tmp4_, _tmp5_, _tmp7_);
1408 		_g_free0 (label_str);
1409 		label_str = NULL;
1410 		_g_error_free0 (e);
1411 	}
1412 	__finally0:
1413 	if (G_UNLIKELY (_inner_error0_ != NULL)) {
1414 		if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
1415 			g_propagate_error (error, _inner_error0_);
1416 			_g_free0 (label_str);
1417 			_g_object_unref0 (label);
1418 			return;
1419 		} else {
1420 			_g_free0 (label_str);
1421 			_g_object_unref0 (label);
1422 			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);
1423 			g_clear_error (&_inner_error0_);
1424 			return;
1425 		}
1426 	}
1427 	_tmp8_ = self->priv->_factory;
1428 	_tmp9_ = valadoc_content_content_factory_create_embedded (_tmp8_);
1429 	embedded = _tmp9_;
1430 	_tmp10_ = valadoc_gtkdoc_markdown_parser_pop_preserved_path (self);
1431 	_tmp11_ = _tmp10_;
1432 	_tmp12_ = valadoc_gtkdoc_markdown_parser_fix_resource_path (self, _tmp11_);
1433 	_tmp13_ = _tmp12_;
1434 	valadoc_content_embedded_set_url (embedded, _tmp13_);
1435 	_g_free0 (_tmp13_);
1436 	_g_free0 (_tmp11_);
1437 	_tmp14_ = label_str;
1438 	valadoc_content_embedded_set_caption (embedded, _tmp14_);
1439 	_tmp15_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1440 	_tmp16_ = _tmp15_;
1441 	vala_collection_clear ((ValaCollection*) _tmp16_);
1442 	_tmp17_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) label);
1443 	_tmp18_ = _tmp17_;
1444 	vala_collection_add ((ValaCollection*) _tmp18_, (ValadocContentInline*) embedded);
1445 	_g_object_unref0 (embedded);
1446 	_g_free0 (label_str);
1447 	_g_object_unref0 (label);
1448 }
1449 
1450 static void
___lambda29__valadoc_rule_action(gpointer self,GError ** error)1451 ___lambda29__valadoc_rule_action (gpointer self,
1452                                   GError** error)
1453 {
1454 	__lambda29_ ((ValadocGtkdocMarkdownParser*) self, error);
1455 }
1456 
1457 static void
__lambda30_(ValadocGtkdocMarkdownParser * self,GError ** error)1458 __lambda30_ (ValadocGtkdocMarkdownParser* self,
1459              GError** error)
1460 {
1461 	ValadocContentRun* _run = NULL;
1462 	GObject* _tmp0_;
1463 	ValaList* _tmp1_;
1464 	ValaList* _tmp2_;
1465 	ValadocContentContentFactory* _tmp3_;
1466 	ValadocContentText* _tmp4_;
1467 	ValadocContentText* _tmp5_;
1468 	ValaList* _tmp6_;
1469 	ValaList* _tmp7_;
1470 	ValadocContentContentFactory* _tmp8_;
1471 	gchar* _tmp9_;
1472 	gchar* _tmp10_;
1473 	gchar* _tmp11_;
1474 	gchar* _tmp12_;
1475 	ValadocContentText* _tmp13_;
1476 	ValadocContentText* _tmp14_;
1477 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1478 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1479 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1480 	_tmp2_ = _tmp1_;
1481 	_tmp3_ = self->priv->_factory;
1482 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "![");
1483 	_tmp5_ = _tmp4_;
1484 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1485 	_g_object_unref0 (_tmp5_);
1486 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1487 	_tmp7_ = _tmp6_;
1488 	_tmp8_ = self->priv->_factory;
1489 	_tmp9_ = valadoc_gtkdoc_markdown_parser_pop_preserved_link (self);
1490 	_tmp10_ = _tmp9_;
1491 	_tmp11_ = g_strconcat ("][", _tmp10_, NULL);
1492 	_tmp12_ = _tmp11_;
1493 	_tmp13_ = valadoc_content_content_factory_create_text (_tmp8_, _tmp12_);
1494 	_tmp14_ = _tmp13_;
1495 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp14_);
1496 	_g_object_unref0 (_tmp14_);
1497 	_g_free0 (_tmp12_);
1498 	_g_free0 (_tmp10_);
1499 	_g_object_unref0 (_run);
1500 }
1501 
1502 static void
___lambda30__valadoc_rule_action(gpointer self,GError ** error)1503 ___lambda30__valadoc_rule_action (gpointer self,
1504                                   GError** error)
1505 {
1506 	__lambda30_ ((ValadocGtkdocMarkdownParser*) self, error);
1507 }
1508 
1509 static void
__lambda31_(ValadocGtkdocMarkdownParser * self,GError ** error)1510 __lambda31_ (ValadocGtkdocMarkdownParser* self,
1511              GError** error)
1512 {
1513 	ValadocContentRun* _run = NULL;
1514 	GObject* _tmp0_;
1515 	ValaList* _tmp1_;
1516 	ValaList* _tmp2_;
1517 	ValadocContentContentFactory* _tmp3_;
1518 	ValadocContentText* _tmp4_;
1519 	ValadocContentText* _tmp5_;
1520 	ValaList* _tmp6_;
1521 	ValaList* _tmp7_;
1522 	ValadocContentContentFactory* _tmp8_;
1523 	ValadocContentText* _tmp9_;
1524 	ValadocContentText* _tmp10_;
1525 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1526 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1527 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1528 	_tmp2_ = _tmp1_;
1529 	_tmp3_ = self->priv->_factory;
1530 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "![");
1531 	_tmp5_ = _tmp4_;
1532 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1533 	_g_object_unref0 (_tmp5_);
1534 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1535 	_tmp7_ = _tmp6_;
1536 	_tmp8_ = self->priv->_factory;
1537 	_tmp9_ = valadoc_content_content_factory_create_text (_tmp8_, "][");
1538 	_tmp10_ = _tmp9_;
1539 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp10_);
1540 	_g_object_unref0 (_tmp10_);
1541 	_g_object_unref0 (_run);
1542 }
1543 
1544 static void
___lambda31__valadoc_rule_action(gpointer self,GError ** error)1545 ___lambda31__valadoc_rule_action (gpointer self,
1546                                   GError** error)
1547 {
1548 	__lambda31_ ((ValadocGtkdocMarkdownParser*) self, error);
1549 }
1550 
1551 static void
__lambda32_(ValadocGtkdocMarkdownParser * self,GError ** error)1552 __lambda32_ (ValadocGtkdocMarkdownParser* self,
1553              GError** error)
1554 {
1555 	ValadocContentRun* _run = NULL;
1556 	GObject* _tmp0_;
1557 	ValaList* _tmp1_;
1558 	ValaList* _tmp2_;
1559 	ValadocContentContentFactory* _tmp3_;
1560 	ValadocContentText* _tmp4_;
1561 	ValadocContentText* _tmp5_;
1562 	ValaList* _tmp6_;
1563 	ValaList* _tmp7_;
1564 	ValadocContentContentFactory* _tmp8_;
1565 	ValadocContentText* _tmp9_;
1566 	ValadocContentText* _tmp10_;
1567 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1568 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1569 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1570 	_tmp2_ = _tmp1_;
1571 	_tmp3_ = self->priv->_factory;
1572 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "![");
1573 	_tmp5_ = _tmp4_;
1574 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1575 	_g_object_unref0 (_tmp5_);
1576 	_tmp6_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1577 	_tmp7_ = _tmp6_;
1578 	_tmp8_ = self->priv->_factory;
1579 	_tmp9_ = valadoc_content_content_factory_create_text (_tmp8_, "]");
1580 	_tmp10_ = _tmp9_;
1581 	vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentInline*) _tmp10_);
1582 	_g_object_unref0 (_tmp10_);
1583 	_g_object_unref0 (_run);
1584 }
1585 
1586 static void
___lambda32__valadoc_rule_action(gpointer self,GError ** error)1587 ___lambda32__valadoc_rule_action (gpointer self,
1588                                   GError** error)
1589 {
1590 	__lambda32_ ((ValadocGtkdocMarkdownParser*) self, error);
1591 }
1592 
1593 static void
__lambda33_(ValadocGtkdocMarkdownParser * self,GError ** error)1594 __lambda33_ (ValadocGtkdocMarkdownParser* self,
1595              GError** error)
1596 {
1597 	ValadocContentRun* _run = NULL;
1598 	GObject* _tmp0_;
1599 	ValaList* _tmp1_;
1600 	ValaList* _tmp2_;
1601 	ValadocContentContentFactory* _tmp3_;
1602 	ValadocContentText* _tmp4_;
1603 	ValadocContentText* _tmp5_;
1604 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1605 	_run = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun);
1606 	_tmp1_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _run);
1607 	_tmp2_ = _tmp1_;
1608 	_tmp3_ = self->priv->_factory;
1609 	_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, "!");
1610 	_tmp5_ = _tmp4_;
1611 	vala_list_insert (_tmp2_, 0, (ValadocContentInline*) _tmp5_);
1612 	_g_object_unref0 (_tmp5_);
1613 	_g_object_unref0 (_run);
1614 }
1615 
1616 static void
___lambda33__valadoc_rule_action(gpointer self,GError ** error)1617 ___lambda33__valadoc_rule_action (gpointer self,
1618                                   GError** error)
1619 {
1620 	__lambda33_ ((ValadocGtkdocMarkdownParser*) self, error);
1621 }
1622 
1623 static void
__lambda34_(ValadocGtkdocMarkdownParser * self,GError ** error)1624 __lambda34_ (ValadocGtkdocMarkdownParser* self,
1625              GError** error)
1626 {
1627 	ValadocContentContentFactory* _tmp0_;
1628 	ValadocContentRun* _tmp1_;
1629 	ValadocContentRun* _tmp2_;
1630 	_tmp0_ = self->priv->_factory;
1631 	_tmp1_ = valadoc_content_content_factory_create_run (_tmp0_, VALADOC_CONTENT_RUN_STYLE_NONE);
1632 	_tmp2_ = _tmp1_;
1633 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
1634 	_g_object_unref0 (_tmp2_);
1635 }
1636 
1637 static void
___lambda34__valadoc_rule_action(gpointer self,GError ** error)1638 ___lambda34__valadoc_rule_action (gpointer self,
1639                                   GError** error)
1640 {
1641 	__lambda34_ ((ValadocGtkdocMarkdownParser*) self, error);
1642 }
1643 
1644 static ValadocContentSourceCodeLanguage*
_valadoc_content_source_code_language_dup(ValadocContentSourceCodeLanguage * self)1645 _valadoc_content_source_code_language_dup (ValadocContentSourceCodeLanguage* self)
1646 {
1647 	ValadocContentSourceCodeLanguage* dup;
1648 	dup = g_new0 (ValadocContentSourceCodeLanguage, 1);
1649 	memcpy (dup, self, sizeof (ValadocContentSourceCodeLanguage));
1650 	return dup;
1651 }
1652 
1653 static gpointer
__valadoc_content_source_code_language_dup0(gpointer self)1654 __valadoc_content_source_code_language_dup0 (gpointer self)
1655 {
1656 	return self ? _valadoc_content_source_code_language_dup (self) : NULL;
1657 }
1658 
1659 static const gchar*
string_offset(const gchar * self,glong offset)1660 string_offset (const gchar* self,
1661                glong offset)
1662 {
1663 	const gchar* result = NULL;
1664 	g_return_val_if_fail (self != NULL, NULL);
1665 	result = (const gchar*) (((gchar*) self) + offset);
1666 	return result;
1667 }
1668 
1669 static gint
string_index_of_char(const gchar * self,gunichar c,gint start_index)1670 string_index_of_char (const gchar* self,
1671                       gunichar c,
1672                       gint start_index)
1673 {
1674 	gchar* _result_ = NULL;
1675 	gchar* _tmp0_;
1676 	gchar* _tmp1_;
1677 	gint result = 0;
1678 	g_return_val_if_fail (self != NULL, 0);
1679 	_tmp0_ = g_utf8_strchr (((gchar*) self) + start_index, (gssize) -1, c);
1680 	_result_ = _tmp0_;
1681 	_tmp1_ = _result_;
1682 	if (_tmp1_ != NULL) {
1683 		gchar* _tmp2_;
1684 		_tmp2_ = _result_;
1685 		result = (gint) (_tmp2_ - ((gchar*) self));
1686 		return result;
1687 	} else {
1688 		result = -1;
1689 		return result;
1690 	}
1691 }
1692 
1693 static void
__lambda35_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)1694 __lambda35_ (ValadocGtkdocMarkdownParser* self,
1695              ValadocToken* token,
1696              GError** error)
1697 {
1698 	ValadocContentSourceCode* code = NULL;
1699 	ValadocContentContentFactory* _tmp0_;
1700 	ValadocContentSourceCode* _tmp1_;
1701 	GMatchInfo* info = NULL;
1702 	const gchar* source = NULL;
1703 	const gchar* _tmp2_;
1704 	const gchar* _tmp3_;
1705 	GRegex* _tmp4_;
1706 	const gchar* _tmp5_;
1707 	GMatchInfo* _tmp6_ = NULL;
1708 	gboolean _tmp7_;
1709 	ValadocContentSourceCode* _tmp29_;
1710 	const gchar* _tmp30_;
1711 	ValadocContentSourceCode* _tmp31_;
1712 	g_return_if_fail (token != NULL);
1713 	_tmp0_ = self->priv->_factory;
1714 	_tmp1_ = valadoc_content_content_factory_create_source_code (_tmp0_);
1715 	code = _tmp1_;
1716 	_tmp2_ = valadoc_token_get_value (token);
1717 	_tmp3_ = _tmp2_;
1718 	source = _tmp3_;
1719 	_tmp4_ = self->priv->regex_source_lang;
1720 	_tmp5_ = source;
1721 	_tmp7_ = g_regex_match (_tmp4_, _tmp5_, 0, &_tmp6_);
1722 	_g_match_info_unref0 (info);
1723 	info = _tmp6_;
1724 	if (_tmp7_) {
1725 		gchar* lang_name = NULL;
1726 		GMatchInfo* _tmp8_;
1727 		gchar* _tmp9_;
1728 		gchar* _tmp10_;
1729 		gchar* _tmp11_;
1730 		gchar* _tmp12_;
1731 		ValadocContentSourceCodeLanguage* lang = NULL;
1732 		const gchar* _tmp13_;
1733 		ValadocContentSourceCodeLanguage _tmp14_;
1734 		ValadocContentSourceCodeLanguage* _tmp15_;
1735 		ValadocContentSourceCode* _tmp16_;
1736 		ValadocContentSourceCodeLanguage* _tmp17_;
1737 		ValadocContentSourceCodeLanguage* _tmp18_;
1738 		const gchar* _tmp23_;
1739 		const gchar* _tmp24_;
1740 		const gchar* _tmp25_;
1741 		_tmp8_ = info;
1742 		_tmp9_ = g_match_info_fetch (_tmp8_, 1);
1743 		_tmp10_ = _tmp9_;
1744 		_tmp11_ = g_ascii_strdown (_tmp10_, (gssize) -1);
1745 		_tmp12_ = _tmp11_;
1746 		_g_free0 (_tmp10_);
1747 		lang_name = _tmp12_;
1748 		_tmp13_ = lang_name;
1749 		_tmp14_ = valadoc_content_source_code_language_from_string (_tmp13_, FALSE);
1750 		_tmp15_ = __valadoc_content_source_code_language_dup0 (&_tmp14_);
1751 		lang = _tmp15_;
1752 		_tmp16_ = code;
1753 		_tmp17_ = lang;
1754 		valadoc_content_source_code_set_language (_tmp16_, *_tmp17_);
1755 		_tmp18_ = lang;
1756 		if (_tmp18_ == NULL) {
1757 			ValadocParser* _tmp19_;
1758 			const gchar* _tmp20_;
1759 			gchar* _tmp21_;
1760 			gchar* _tmp22_;
1761 			_tmp19_ = self->priv->parser;
1762 			_tmp20_ = lang_name;
1763 			_tmp21_ = g_strdup_printf ("Unknown language `%s' in source code block |[<!-- language=\"\"", _tmp20_);
1764 			_tmp22_ = _tmp21_;
1765 			valadoc_parser_callback_warning ((ValadocParserCallback*) _tmp19_, token, _tmp22_);
1766 			_g_free0 (_tmp22_);
1767 		}
1768 		_tmp23_ = source;
1769 		_tmp24_ = source;
1770 		_tmp25_ = string_offset (_tmp23_, (glong) (string_index_of_char (_tmp24_, (gunichar) '>', 0) + 1));
1771 		source = _tmp25_;
1772 		_g_free0 (lang);
1773 		_g_free0 (lang_name);
1774 	} else {
1775 		ValadocContentSourceCodeLanguage _tmp26_ = 0;
1776 		const gchar* _tmp27_;
1777 		ValadocContentSourceCode* _tmp28_;
1778 		_tmp27_ = source;
1779 		if (valadoc_highlighter_xml_scanner_is_xml (_tmp27_)) {
1780 			_tmp26_ = VALADOC_CONTENT_SOURCE_CODE_LANGUAGE_XML;
1781 		} else {
1782 			_tmp26_ = VALADOC_CONTENT_SOURCE_CODE_LANGUAGE_C;
1783 		}
1784 		_tmp28_ = code;
1785 		valadoc_content_source_code_set_language (_tmp28_, _tmp26_);
1786 	}
1787 	_tmp29_ = code;
1788 	_tmp30_ = source;
1789 	valadoc_content_source_code_set_code (_tmp29_, _tmp30_);
1790 	_tmp31_ = code;
1791 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp31_);
1792 	_g_match_info_unref0 (info);
1793 	_g_object_unref0 (code);
1794 }
1795 
1796 static void
___lambda35__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)1797 ___lambda35__valadoc_token_type_action (ValadocToken* token,
1798                                         gpointer self,
1799                                         GError** error)
1800 {
1801 	__lambda35_ ((ValadocGtkdocMarkdownParser*) self, token, error);
1802 }
1803 
1804 static void
_valadoc_gtkdoc_markdown_parser_add_value_valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)1805 _valadoc_gtkdoc_markdown_parser_add_value_valadoc_token_type_action (ValadocToken* token,
1806                                                                      gpointer self,
1807                                                                      GError** error)
1808 {
1809 	valadoc_gtkdoc_markdown_parser_add_value ((ValadocGtkdocMarkdownParser*) self, token, error);
1810 }
1811 
1812 static void
__lambda36_(ValadocGtkdocMarkdownParser * self,GError ** error)1813 __lambda36_ (ValadocGtkdocMarkdownParser* self,
1814              GError** error)
1815 {
1816 	ValadocContentContentFactory* _tmp0_;
1817 	ValadocContentText* _tmp1_;
1818 	ValadocContentText* _tmp2_;
1819 	_tmp0_ = self->priv->_factory;
1820 	_tmp1_ = valadoc_content_content_factory_create_text (_tmp0_, NULL);
1821 	_tmp2_ = _tmp1_;
1822 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
1823 	_g_object_unref0 (_tmp2_);
1824 }
1825 
1826 static void
___lambda36__valadoc_rule_action(gpointer self,GError ** error)1827 ___lambda36__valadoc_rule_action (gpointer self,
1828                                   GError** error)
1829 {
1830 	__lambda36_ ((ValadocGtkdocMarkdownParser*) self, error);
1831 }
1832 
1833 static void
__lambda37_(ValadocGtkdocMarkdownParser * self,GError ** error)1834 __lambda37_ (ValadocGtkdocMarkdownParser* self,
1835              GError** error)
1836 {
1837 	ValadocContentInline* head = NULL;
1838 	GObject* _tmp0_;
1839 	GObject* _tmp1_;
1840 	ValadocContentInlineContent* _tmp2_;
1841 	ValaList* _tmp3_;
1842 	ValaList* _tmp4_;
1843 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
1844 	head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_INLINE, ValadocContentInline);
1845 	_tmp1_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1846 	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_INLINE_CONTENT, ValadocContentInlineContent);
1847 	_tmp3_ = valadoc_content_inline_content_get_content (_tmp2_);
1848 	_tmp4_ = _tmp3_;
1849 	vala_collection_add ((ValaCollection*) _tmp4_, head);
1850 	_g_object_unref0 (_tmp2_);
1851 	_g_object_unref0 (head);
1852 }
1853 
1854 static void
___lambda37__valadoc_rule_action(gpointer self,GError ** error)1855 ___lambda37__valadoc_rule_action (gpointer self,
1856                                   GError** error)
1857 {
1858 	__lambda37_ ((ValadocGtkdocMarkdownParser*) self, error);
1859 }
1860 
1861 static void
__lambda38_(ValadocGtkdocMarkdownParser * self,GError ** error)1862 __lambda38_ (ValadocGtkdocMarkdownParser* self,
1863              GError** error)
1864 {
1865 	ValadocContentContentFactory* _tmp0_;
1866 	ValadocContentListItem* _tmp1_;
1867 	ValadocContentListItem* _tmp2_;
1868 	_tmp0_ = self->priv->_factory;
1869 	_tmp1_ = valadoc_content_content_factory_create_list_item (_tmp0_);
1870 	_tmp2_ = _tmp1_;
1871 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
1872 	_g_object_unref0 (_tmp2_);
1873 }
1874 
1875 static void
___lambda38__valadoc_rule_action(gpointer self,GError ** error)1876 ___lambda38__valadoc_rule_action (gpointer self,
1877                                   GError** error)
1878 {
1879 	__lambda38_ ((ValadocGtkdocMarkdownParser*) self, error);
1880 }
1881 
1882 static void
__lambda39_(ValadocGtkdocMarkdownParser * self,GError ** error)1883 __lambda39_ (ValadocGtkdocMarkdownParser* self,
1884              GError** error)
1885 {
1886 	ValadocContentListItem* head = NULL;
1887 	GObject* _tmp0_;
1888 	GObject* _tmp1_;
1889 	ValadocContentList* _tmp2_;
1890 	ValaList* _tmp3_;
1891 	ValaList* _tmp4_;
1892 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
1893 	head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_LIST_ITEM, ValadocContentListItem);
1894 	_tmp1_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1895 	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_LIST, ValadocContentList);
1896 	_tmp3_ = valadoc_content_list_get_items (_tmp2_);
1897 	_tmp4_ = _tmp3_;
1898 	vala_collection_add ((ValaCollection*) _tmp4_, head);
1899 	_g_object_unref0 (_tmp2_);
1900 	_g_object_unref0 (head);
1901 }
1902 
1903 static void
___lambda39__valadoc_rule_action(gpointer self,GError ** error)1904 ___lambda39__valadoc_rule_action (gpointer self,
1905                                   GError** error)
1906 {
1907 	__lambda39_ ((ValadocGtkdocMarkdownParser*) self, error);
1908 }
1909 
1910 static gpointer
_vala_iterable_ref0(gpointer self)1911 _vala_iterable_ref0 (gpointer self)
1912 {
1913 	return self ? vala_iterable_ref (self) : NULL;
1914 }
1915 
1916 static void
__lambda40_(ValadocGtkdocMarkdownParser * self,GError ** error)1917 __lambda40_ (ValadocGtkdocMarkdownParser* self,
1918              GError** error)
1919 {
1920 	ValaList* siblings = NULL;
1921 	GObject* _tmp0_;
1922 	ValadocContentBlockContent* _tmp1_;
1923 	ValaList* _tmp2_;
1924 	ValaList* _tmp3_;
1925 	ValaList* _tmp4_;
1926 	ValaList* _tmp5_;
1927 	gboolean _tmp6_ = FALSE;
1928 	ValaList* _tmp7_;
1929 	gint _tmp8_;
1930 	gint _tmp9_;
1931 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
1932 	_tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
1933 	_tmp2_ = valadoc_content_block_content_get_content (_tmp1_);
1934 	_tmp3_ = _tmp2_;
1935 	_tmp4_ = _vala_iterable_ref0 (_tmp3_);
1936 	_tmp5_ = _tmp4_;
1937 	_g_object_unref0 (_tmp1_);
1938 	siblings = _tmp5_;
1939 	_tmp7_ = siblings;
1940 	_tmp8_ = vala_collection_get_size ((ValaCollection*) _tmp7_);
1941 	_tmp9_ = _tmp8_;
1942 	if (_tmp9_ > 0) {
1943 		ValaList* _tmp10_;
1944 		gpointer _tmp11_;
1945 		ValadocContentBlock* _tmp12_;
1946 		_tmp10_ = siblings;
1947 		_tmp11_ = vala_list_last (_tmp10_);
1948 		_tmp12_ = (ValadocContentBlock*) _tmp11_;
1949 		_tmp6_ = VALADOC_CONTENT_IS_LIST (_tmp12_);
1950 		_g_object_unref0 (_tmp12_);
1951 	} else {
1952 		_tmp6_ = FALSE;
1953 	}
1954 	if (_tmp6_) {
1955 		ValaList* _tmp13_;
1956 		gpointer _tmp14_;
1957 		ValadocContentBlock* _tmp15_;
1958 		_tmp13_ = siblings;
1959 		_tmp14_ = vala_list_last (_tmp13_);
1960 		_tmp15_ = (ValadocContentBlock*) _tmp14_;
1961 		valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp15_);
1962 		_g_object_unref0 (_tmp15_);
1963 	} else {
1964 		ValadocContentList* list = NULL;
1965 		ValadocContentContentFactory* _tmp16_;
1966 		ValadocContentList* _tmp17_;
1967 		ValadocContentList* _tmp18_;
1968 		ValaList* _tmp19_;
1969 		ValadocContentList* _tmp20_;
1970 		ValadocContentList* _tmp21_;
1971 		_tmp16_ = self->priv->_factory;
1972 		_tmp17_ = valadoc_content_content_factory_create_list (_tmp16_);
1973 		list = _tmp17_;
1974 		_tmp18_ = list;
1975 		valadoc_content_list_set_bullet (_tmp18_, VALADOC_CONTENT_LIST_BULLET_UNORDERED);
1976 		_tmp19_ = siblings;
1977 		_tmp20_ = list;
1978 		vala_collection_add ((ValaCollection*) _tmp19_, (ValadocContentBlock*) _tmp20_);
1979 		_tmp21_ = list;
1980 		valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp21_);
1981 		_g_object_unref0 (list);
1982 	}
1983 	_vala_iterable_unref0 (siblings);
1984 }
1985 
1986 static void
___lambda40__valadoc_rule_action(gpointer self,GError ** error)1987 ___lambda40__valadoc_rule_action (gpointer self,
1988                                   GError** error)
1989 {
1990 	__lambda40_ ((ValadocGtkdocMarkdownParser*) self, error);
1991 }
1992 
1993 static void
__lambda41_(ValadocGtkdocMarkdownParser * self,GError ** error)1994 __lambda41_ (ValadocGtkdocMarkdownParser* self,
1995              GError** error)
1996 {
1997 	GObject* _tmp0_;
1998 	GObject* _tmp1_;
1999 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
2000 	_tmp1_ = _tmp0_;
2001 	_g_object_unref0 (_tmp1_);
2002 }
2003 
2004 static void
___lambda41__valadoc_rule_action(gpointer self,GError ** error)2005 ___lambda41__valadoc_rule_action (gpointer self,
2006                                   GError** error)
2007 {
2008 	__lambda41_ ((ValadocGtkdocMarkdownParser*) self, error);
2009 }
2010 
2011 static void
__lambda42_(ValadocGtkdocMarkdownParser * self,GError ** error)2012 __lambda42_ (ValadocGtkdocMarkdownParser* self,
2013              GError** error)
2014 {
2015 	ValadocContentContentFactory* _tmp0_;
2016 	ValadocContentListItem* _tmp1_;
2017 	ValadocContentListItem* _tmp2_;
2018 	_tmp0_ = self->priv->_factory;
2019 	_tmp1_ = valadoc_content_content_factory_create_list_item (_tmp0_);
2020 	_tmp2_ = _tmp1_;
2021 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
2022 	_g_object_unref0 (_tmp2_);
2023 }
2024 
2025 static void
___lambda42__valadoc_rule_action(gpointer self,GError ** error)2026 ___lambda42__valadoc_rule_action (gpointer self,
2027                                   GError** error)
2028 {
2029 	__lambda42_ ((ValadocGtkdocMarkdownParser*) self, error);
2030 }
2031 
2032 static void
__lambda43_(ValadocGtkdocMarkdownParser * self,GError ** error)2033 __lambda43_ (ValadocGtkdocMarkdownParser* self,
2034              GError** error)
2035 {
2036 	ValadocContentListItem* head = NULL;
2037 	GObject* _tmp0_;
2038 	GObject* _tmp1_;
2039 	ValadocContentList* _tmp2_;
2040 	ValaList* _tmp3_;
2041 	ValaList* _tmp4_;
2042 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
2043 	head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_LIST_ITEM, ValadocContentListItem);
2044 	_tmp1_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
2045 	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_LIST, ValadocContentList);
2046 	_tmp3_ = valadoc_content_list_get_items (_tmp2_);
2047 	_tmp4_ = _tmp3_;
2048 	vala_collection_add ((ValaCollection*) _tmp4_, head);
2049 	_g_object_unref0 (_tmp2_);
2050 	_g_object_unref0 (head);
2051 }
2052 
2053 static void
___lambda43__valadoc_rule_action(gpointer self,GError ** error)2054 ___lambda43__valadoc_rule_action (gpointer self,
2055                                   GError** error)
2056 {
2057 	__lambda43_ ((ValadocGtkdocMarkdownParser*) self, error);
2058 }
2059 
2060 static void
__lambda44_(ValadocGtkdocMarkdownParser * self,GError ** error)2061 __lambda44_ (ValadocGtkdocMarkdownParser* self,
2062              GError** error)
2063 {
2064 	ValaList* siblings = NULL;
2065 	GObject* _tmp0_;
2066 	ValadocContentBlockContent* _tmp1_;
2067 	ValaList* _tmp2_;
2068 	ValaList* _tmp3_;
2069 	ValaList* _tmp4_;
2070 	ValaList* _tmp5_;
2071 	gboolean _tmp6_ = FALSE;
2072 	ValaList* _tmp7_;
2073 	gint _tmp8_;
2074 	gint _tmp9_;
2075 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
2076 	_tmp1_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2077 	_tmp2_ = valadoc_content_block_content_get_content (_tmp1_);
2078 	_tmp3_ = _tmp2_;
2079 	_tmp4_ = _vala_iterable_ref0 (_tmp3_);
2080 	_tmp5_ = _tmp4_;
2081 	_g_object_unref0 (_tmp1_);
2082 	siblings = _tmp5_;
2083 	_tmp7_ = siblings;
2084 	_tmp8_ = vala_collection_get_size ((ValaCollection*) _tmp7_);
2085 	_tmp9_ = _tmp8_;
2086 	if (_tmp9_ > 0) {
2087 		ValaList* _tmp10_;
2088 		gpointer _tmp11_;
2089 		ValadocContentBlock* _tmp12_;
2090 		_tmp10_ = siblings;
2091 		_tmp11_ = vala_list_last (_tmp10_);
2092 		_tmp12_ = (ValadocContentBlock*) _tmp11_;
2093 		_tmp6_ = VALADOC_CONTENT_IS_LIST (_tmp12_);
2094 		_g_object_unref0 (_tmp12_);
2095 	} else {
2096 		_tmp6_ = FALSE;
2097 	}
2098 	if (_tmp6_) {
2099 		ValaList* _tmp13_;
2100 		gpointer _tmp14_;
2101 		ValadocContentBlock* _tmp15_;
2102 		_tmp13_ = siblings;
2103 		_tmp14_ = vala_list_last (_tmp13_);
2104 		_tmp15_ = (ValadocContentBlock*) _tmp14_;
2105 		valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp15_);
2106 		_g_object_unref0 (_tmp15_);
2107 	} else {
2108 		ValadocContentList* list = NULL;
2109 		ValadocContentContentFactory* _tmp16_;
2110 		ValadocContentList* _tmp17_;
2111 		ValadocContentList* _tmp18_;
2112 		ValaList* _tmp19_;
2113 		ValadocContentList* _tmp20_;
2114 		ValadocContentList* _tmp21_;
2115 		_tmp16_ = self->priv->_factory;
2116 		_tmp17_ = valadoc_content_content_factory_create_list (_tmp16_);
2117 		list = _tmp17_;
2118 		_tmp18_ = list;
2119 		valadoc_content_list_set_bullet (_tmp18_, VALADOC_CONTENT_LIST_BULLET_ORDERED_NUMBER);
2120 		_tmp19_ = siblings;
2121 		_tmp20_ = list;
2122 		vala_collection_add ((ValaCollection*) _tmp19_, (ValadocContentBlock*) _tmp20_);
2123 		_tmp21_ = list;
2124 		valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp21_);
2125 		_g_object_unref0 (list);
2126 	}
2127 	_vala_iterable_unref0 (siblings);
2128 }
2129 
2130 static void
___lambda44__valadoc_rule_action(gpointer self,GError ** error)2131 ___lambda44__valadoc_rule_action (gpointer self,
2132                                   GError** error)
2133 {
2134 	__lambda44_ ((ValadocGtkdocMarkdownParser*) self, error);
2135 }
2136 
2137 static void
__lambda45_(ValadocGtkdocMarkdownParser * self,GError ** error)2138 __lambda45_ (ValadocGtkdocMarkdownParser* self,
2139              GError** error)
2140 {
2141 	GObject* _tmp0_;
2142 	GObject* _tmp1_;
2143 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
2144 	_tmp1_ = _tmp0_;
2145 	_g_object_unref0 (_tmp1_);
2146 }
2147 
2148 static void
___lambda45__valadoc_rule_action(gpointer self,GError ** error)2149 ___lambda45__valadoc_rule_action (gpointer self,
2150                                   GError** error)
2151 {
2152 	__lambda45_ ((ValadocGtkdocMarkdownParser*) self, error);
2153 }
2154 
2155 static void
__lambda46_(ValadocGtkdocMarkdownParser * self,GError ** error)2156 __lambda46_ (ValadocGtkdocMarkdownParser* self,
2157              GError** error)
2158 {
2159 	ValadocContentContentFactory* _tmp0_;
2160 	ValadocContentParagraph* _tmp1_;
2161 	ValadocContentParagraph* _tmp2_;
2162 	_tmp0_ = self->priv->_factory;
2163 	_tmp1_ = valadoc_content_content_factory_create_paragraph (_tmp0_);
2164 	_tmp2_ = _tmp1_;
2165 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
2166 	_g_object_unref0 (_tmp2_);
2167 }
2168 
2169 static void
___lambda46__valadoc_rule_action(gpointer self,GError ** error)2170 ___lambda46__valadoc_rule_action (gpointer self,
2171                                   GError** error)
2172 {
2173 	__lambda46_ ((ValadocGtkdocMarkdownParser*) self, error);
2174 }
2175 
2176 static void
__lambda47_(ValadocGtkdocMarkdownParser * self,GError ** error)2177 __lambda47_ (ValadocGtkdocMarkdownParser* self,
2178              GError** error)
2179 {
2180 	ValadocContentParagraph* head = NULL;
2181 	GObject* _tmp0_;
2182 	GObject* _tmp1_;
2183 	ValadocContentBlockContent* _tmp2_;
2184 	ValaList* _tmp3_;
2185 	ValaList* _tmp4_;
2186 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
2187 	head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_PARAGRAPH, ValadocContentParagraph);
2188 	_tmp1_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
2189 	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2190 	_tmp3_ = valadoc_content_block_content_get_content (_tmp2_);
2191 	_tmp4_ = _tmp3_;
2192 	vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentBlock*) head);
2193 	_g_object_unref0 (_tmp2_);
2194 	_g_object_unref0 (head);
2195 }
2196 
2197 static void
___lambda47__valadoc_rule_action(gpointer self,GError ** error)2198 ___lambda47__valadoc_rule_action (gpointer self,
2199                                   GError** error)
2200 {
2201 	__lambda47_ ((ValadocGtkdocMarkdownParser*) self, error);
2202 }
2203 
2204 static void
__lambda48_(ValadocGtkdocMarkdownParser * self,GError ** error)2205 __lambda48_ (ValadocGtkdocMarkdownParser* self,
2206              GError** error)
2207 {
2208 	ValadocContentContentFactory* _tmp0_;
2209 	ValadocContentNote* _tmp1_;
2210 	ValadocContentNote* _tmp2_;
2211 	_tmp0_ = self->priv->_factory;
2212 	_tmp1_ = valadoc_content_content_factory_create_note (_tmp0_);
2213 	_tmp2_ = _tmp1_;
2214 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
2215 	_g_object_unref0 (_tmp2_);
2216 }
2217 
2218 static void
___lambda48__valadoc_rule_action(gpointer self,GError ** error)2219 ___lambda48__valadoc_rule_action (gpointer self,
2220                                   GError** error)
2221 {
2222 	__lambda48_ ((ValadocGtkdocMarkdownParser*) self, error);
2223 }
2224 
2225 static void
__lambda49_(ValadocGtkdocMarkdownParser * self,GError ** error)2226 __lambda49_ (ValadocGtkdocMarkdownParser* self,
2227              GError** error)
2228 {
2229 	ValadocContentNote* head = NULL;
2230 	GObject* _tmp0_;
2231 	GObject* _tmp1_;
2232 	ValadocContentBlockContent* _tmp2_;
2233 	ValaList* _tmp3_;
2234 	ValaList* _tmp4_;
2235 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
2236 	head = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_NOTE, ValadocContentNote);
2237 	_tmp1_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
2238 	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2239 	_tmp3_ = valadoc_content_block_content_get_content (_tmp2_);
2240 	_tmp4_ = _tmp3_;
2241 	vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentBlock*) head);
2242 	_g_object_unref0 (_tmp2_);
2243 	_g_object_unref0 (head);
2244 }
2245 
2246 static void
___lambda49__valadoc_rule_action(gpointer self,GError ** error)2247 ___lambda49__valadoc_rule_action (gpointer self,
2248                                   GError** error)
2249 {
2250 	__lambda49_ ((ValadocGtkdocMarkdownParser*) self, error);
2251 }
2252 
2253 static void
__lambda50_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)2254 __lambda50_ (ValadocGtkdocMarkdownParser* self,
2255              ValadocToken* token,
2256              GError** error)
2257 {
2258 	ValadocContentHeadline* h = NULL;
2259 	GObject* _tmp0_;
2260 	g_return_if_fail (token != NULL);
2261 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
2262 	h = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
2263 	valadoc_content_headline_set_level (h, 1);
2264 	_g_object_unref0 (h);
2265 }
2266 
2267 static void
___lambda50__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2268 ___lambda50__valadoc_token_type_action (ValadocToken* token,
2269                                         gpointer self,
2270                                         GError** error)
2271 {
2272 	__lambda50_ ((ValadocGtkdocMarkdownParser*) self, token, error);
2273 }
2274 
2275 static void
__lambda51_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)2276 __lambda51_ (ValadocGtkdocMarkdownParser* self,
2277              ValadocToken* token,
2278              GError** error)
2279 {
2280 	ValadocContentHeadline* h = NULL;
2281 	GObject* _tmp0_;
2282 	g_return_if_fail (token != NULL);
2283 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
2284 	h = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
2285 	valadoc_content_headline_set_level (h, 2);
2286 	_g_object_unref0 (h);
2287 }
2288 
2289 static void
___lambda51__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2290 ___lambda51__valadoc_token_type_action (ValadocToken* token,
2291                                         gpointer self,
2292                                         GError** error)
2293 {
2294 	__lambda51_ ((ValadocGtkdocMarkdownParser*) self, token, error);
2295 }
2296 
2297 static void
__lambda52_(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)2298 __lambda52_ (ValadocGtkdocMarkdownParser* self,
2299              ValadocToken* token,
2300              GError** error)
2301 {
2302 	ValadocImporterInternalIdRegistrar* _tmp0_;
2303 	const gchar* _tmp1_;
2304 	const gchar* _tmp2_;
2305 	ValadocApiNode* _tmp3_;
2306 	g_return_if_fail (token != NULL);
2307 	_tmp0_ = self->priv->id_registrar;
2308 	_tmp1_ = valadoc_token_get_value (token);
2309 	_tmp2_ = _tmp1_;
2310 	_tmp3_ = self->priv->element;
2311 	valadoc_importer_internal_id_registrar_register_symbol (_tmp0_, _tmp2_, _tmp3_);
2312 }
2313 
2314 static void
___lambda52__valadoc_token_type_action(ValadocToken * token,gpointer self,GError ** error)2315 ___lambda52__valadoc_token_type_action (ValadocToken* token,
2316                                         gpointer self,
2317                                         GError** error)
2318 {
2319 	__lambda52_ ((ValadocGtkdocMarkdownParser*) self, token, error);
2320 }
2321 
2322 static void
__lambda53_(ValadocGtkdocMarkdownParser * self,GError ** error)2323 __lambda53_ (ValadocGtkdocMarkdownParser* self,
2324              GError** error)
2325 {
2326 	ValadocContentContentFactory* _tmp0_;
2327 	ValadocContentHeadline* _tmp1_;
2328 	ValadocContentHeadline* _tmp2_;
2329 	_tmp0_ = self->priv->_factory;
2330 	_tmp1_ = valadoc_content_content_factory_create_headline (_tmp0_);
2331 	_tmp2_ = _tmp1_;
2332 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
2333 	_g_object_unref0 (_tmp2_);
2334 }
2335 
2336 static void
___lambda53__valadoc_rule_action(gpointer self,GError ** error)2337 ___lambda53__valadoc_rule_action (gpointer self,
2338                                   GError** error)
2339 {
2340 	__lambda53_ ((ValadocGtkdocMarkdownParser*) self, error);
2341 }
2342 
2343 static void
__lambda54_(ValadocGtkdocMarkdownParser * self,GError ** error)2344 __lambda54_ (ValadocGtkdocMarkdownParser* self,
2345              GError** error)
2346 {
2347 	ValadocContentHeadline* h = NULL;
2348 	GObject* _tmp0_;
2349 	GObject* _tmp1_;
2350 	ValadocContentBlockContent* _tmp2_;
2351 	ValaList* _tmp3_;
2352 	ValaList* _tmp4_;
2353 	_tmp0_ = valadoc_gtkdoc_markdown_parser_pop (self);
2354 	h = G_TYPE_CHECK_INSTANCE_CAST (_tmp0_, VALADOC_CONTENT_TYPE_HEADLINE, ValadocContentHeadline);
2355 	_tmp1_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
2356 	_tmp2_ = G_TYPE_CHECK_INSTANCE_CAST (_tmp1_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent);
2357 	_tmp3_ = valadoc_content_block_content_get_content (_tmp2_);
2358 	_tmp4_ = _tmp3_;
2359 	vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentBlock*) h);
2360 	_g_object_unref0 (_tmp2_);
2361 	_g_object_unref0 (h);
2362 }
2363 
2364 static void
___lambda54__valadoc_rule_action(gpointer self,GError ** error)2365 ___lambda54__valadoc_rule_action (gpointer self,
2366                                   GError** error)
2367 {
2368 	__lambda54_ ((ValadocGtkdocMarkdownParser*) self, error);
2369 }
2370 
2371 static void
__lambda55_(ValadocGtkdocMarkdownParser * self,GError ** error)2372 __lambda55_ (ValadocGtkdocMarkdownParser* self,
2373              GError** error)
2374 {
2375 	ValadocContentContentFactory* _tmp0_;
2376 	ValadocContentComment* _tmp1_;
2377 	ValadocContentComment* _tmp2_;
2378 	_tmp0_ = self->priv->_factory;
2379 	_tmp1_ = valadoc_content_content_factory_create_comment (_tmp0_);
2380 	_tmp2_ = _tmp1_;
2381 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp2_);
2382 	_g_object_unref0 (_tmp2_);
2383 }
2384 
2385 static void
___lambda55__valadoc_rule_action(gpointer self,GError ** error)2386 ___lambda55__valadoc_rule_action (gpointer self,
2387                                   GError** error)
2388 {
2389 	__lambda55_ ((ValadocGtkdocMarkdownParser*) self, error);
2390 }
2391 
2392 void
valadoc_gtkdoc_markdown_parser_init_rules(ValadocGtkdocMarkdownParser * self)2393 valadoc_gtkdoc_markdown_parser_init_rules (ValadocGtkdocMarkdownParser* self)
2394 {
2395 	ValadocTokenType* word = NULL;
2396 	ValadocTokenType* _tmp0_;
2397 	ValadocTokenType* _tmp1_;
2398 	ValadocTokenType* _tmp2_;
2399 	ValadocTokenType* _tmp3_;
2400 	ValadocStubRule* content = NULL;
2401 	ValadocStubRule* _tmp4_;
2402 	ValadocRule* _tmp5_;
2403 	ValadocRule* _tmp6_;
2404 	ValadocStubRule* run = NULL;
2405 	ValadocStubRule* _tmp7_;
2406 	ValadocRule* _tmp8_;
2407 	ValadocRule* _tmp9_;
2408 	ValadocRule* param = NULL;
2409 	ValadocTokenType* _tmp10_;
2410 	ValadocTokenType* _tmp11_;
2411 	GObject** _tmp12_;
2412 	GObject** _tmp13_;
2413 	gint _tmp13__length1;
2414 	ValadocRule* _tmp14_;
2415 	ValadocRule* _tmp15_;
2416 	ValadocRule* _tmp16_;
2417 	ValadocRule* _tmp17_;
2418 	ValadocRule* constant = NULL;
2419 	ValadocTokenType* _tmp18_;
2420 	ValadocTokenType* _tmp19_;
2421 	GObject** _tmp20_;
2422 	GObject** _tmp21_;
2423 	gint _tmp21__length1;
2424 	ValadocRule* _tmp22_;
2425 	ValadocRule* _tmp23_;
2426 	ValadocRule* _tmp24_;
2427 	ValadocRule* _tmp25_;
2428 	ValadocRule* gmember = NULL;
2429 	ValadocTokenType* _tmp26_;
2430 	ValadocTokenType* _tmp27_;
2431 	GObject** _tmp28_;
2432 	GObject** _tmp29_;
2433 	gint _tmp29__length1;
2434 	ValadocRule* _tmp30_;
2435 	ValadocRule* _tmp31_;
2436 	ValadocRule* _tmp32_;
2437 	ValadocRule* _tmp33_;
2438 	ValadocRule* symbol = NULL;
2439 	ValadocTokenType* _tmp34_;
2440 	ValadocTokenType* _tmp35_;
2441 	GObject** _tmp36_;
2442 	GObject** _tmp37_;
2443 	gint _tmp37__length1;
2444 	ValadocRule* _tmp38_;
2445 	ValadocRule* _tmp39_;
2446 	ValadocRule* _tmp40_;
2447 	ValadocRule* _tmp41_;
2448 	ValadocRule* function = NULL;
2449 	ValadocTokenType* _tmp42_;
2450 	ValadocTokenType* _tmp43_;
2451 	GObject** _tmp44_;
2452 	GObject** _tmp45_;
2453 	gint _tmp45__length1;
2454 	ValadocRule* _tmp46_;
2455 	ValadocRule* _tmp47_;
2456 	ValadocRule* _tmp48_;
2457 	ValadocRule* _tmp49_;
2458 	ValadocRule* link_short = NULL;
2459 	ValadocTokenType* _tmp50_;
2460 	GObject* _tmp51_;
2461 	ValadocTokenType* _tmp52_;
2462 	ValadocTokenType* _tmp53_;
2463 	ValadocTokenType* _tmp54_;
2464 	ValadocTokenType* _tmp55_;
2465 	GObject** _tmp56_;
2466 	GObject** _tmp57_;
2467 	gint _tmp57__length1;
2468 	ValadocRule* _tmp58_;
2469 	ValadocTokenType* _tmp59_;
2470 	GObject* _tmp60_;
2471 	GObject** _tmp61_;
2472 	GObject** _tmp62_;
2473 	gint _tmp62__length1;
2474 	ValadocRule* _tmp63_;
2475 	ValadocRule* _tmp64_;
2476 	ValadocRule* _tmp65_;
2477 	ValadocRule* _tmp66_;
2478 	ValadocRule* _tmp67_;
2479 	GObject** _tmp68_;
2480 	GObject** _tmp69_;
2481 	gint _tmp69__length1;
2482 	ValadocRule* _tmp70_;
2483 	ValadocRule* _tmp71_;
2484 	ValadocRule* _tmp72_;
2485 	GObject** _tmp73_;
2486 	GObject** _tmp74_;
2487 	gint _tmp74__length1;
2488 	ValadocRule* _tmp75_;
2489 	ValadocRule* _tmp76_;
2490 	ValadocRule* _tmp77_;
2491 	ValadocRule* _tmp78_;
2492 	ValadocRule* link = NULL;
2493 	ValadocTokenType* _tmp79_;
2494 	GObject* _tmp80_;
2495 	GObject* _tmp81_;
2496 	GObject** _tmp82_;
2497 	GObject** _tmp83_;
2498 	gint _tmp83__length1;
2499 	ValadocRule* _tmp84_;
2500 	ValadocTokenType* _tmp85_;
2501 	GObject* _tmp86_;
2502 	ValadocTokenType* _tmp87_;
2503 	GObject* _tmp88_;
2504 	ValadocTokenType* _tmp89_;
2505 	ValadocTokenType* _tmp90_;
2506 	ValadocTokenType* _tmp91_;
2507 	ValadocTokenType* _tmp92_;
2508 	GObject** _tmp93_;
2509 	GObject** _tmp94_;
2510 	gint _tmp94__length1;
2511 	ValadocRule* _tmp95_;
2512 	ValadocTokenType* _tmp96_;
2513 	GObject* _tmp97_;
2514 	GObject** _tmp98_;
2515 	GObject** _tmp99_;
2516 	gint _tmp99__length1;
2517 	ValadocRule* _tmp100_;
2518 	ValadocRule* _tmp101_;
2519 	ValadocRule* _tmp102_;
2520 	ValadocRule* _tmp103_;
2521 	ValadocRule* _tmp104_;
2522 	GObject** _tmp105_;
2523 	GObject** _tmp106_;
2524 	gint _tmp106__length1;
2525 	ValadocRule* _tmp107_;
2526 	ValadocRule* _tmp108_;
2527 	ValadocRule* _tmp109_;
2528 	GObject** _tmp110_;
2529 	GObject** _tmp111_;
2530 	gint _tmp111__length1;
2531 	ValadocRule* _tmp112_;
2532 	ValadocTokenType* _tmp113_;
2533 	GObject* _tmp114_;
2534 	ValadocTokenType* _tmp115_;
2535 	ValadocTokenType* _tmp116_;
2536 	ValadocTokenType* _tmp117_;
2537 	ValadocTokenType* _tmp118_;
2538 	GObject* _tmp119_;
2539 	GObject** _tmp120_;
2540 	GObject** _tmp121_;
2541 	gint _tmp121__length1;
2542 	ValadocRule* _tmp122_;
2543 	ValadocRule* _tmp123_;
2544 	ValadocRule* _tmp124_;
2545 	ValadocRule* _tmp125_;
2546 	ValadocRule* _tmp126_;
2547 	GObject** _tmp127_;
2548 	GObject** _tmp128_;
2549 	gint _tmp128__length1;
2550 	ValadocRule* _tmp129_;
2551 	ValadocRule* _tmp130_;
2552 	ValadocRule* _tmp131_;
2553 	GObject** _tmp132_;
2554 	GObject** _tmp133_;
2555 	gint _tmp133__length1;
2556 	ValadocRule* _tmp134_;
2557 	GObject** _tmp135_;
2558 	GObject** _tmp136_;
2559 	gint _tmp136__length1;
2560 	ValadocRule* _tmp137_;
2561 	GObject** _tmp138_;
2562 	GObject** _tmp139_;
2563 	gint _tmp139__length1;
2564 	ValadocRule* _tmp140_;
2565 	ValadocRule* _tmp141_;
2566 	ValadocRule* _tmp142_;
2567 	GObject** _tmp143_;
2568 	GObject** _tmp144_;
2569 	gint _tmp144__length1;
2570 	ValadocRule* _tmp145_;
2571 	ValadocRule* _tmp146_;
2572 	ValadocRule* _tmp147_;
2573 	GObject** _tmp148_;
2574 	GObject** _tmp149_;
2575 	gint _tmp149__length1;
2576 	ValadocRule* _tmp150_;
2577 	ValadocRule* _tmp151_;
2578 	ValadocRule* _tmp152_;
2579 	ValadocRule* _tmp153_;
2580 	ValadocRule* _tmp154_;
2581 	ValadocRule* _tmp155_;
2582 	ValadocRule* image = NULL;
2583 	ValadocTokenType* _tmp156_;
2584 	GObject* _tmp157_;
2585 	ValadocTokenType* _tmp158_;
2586 	GObject* _tmp159_;
2587 	GObject* _tmp160_;
2588 	GObject** _tmp161_;
2589 	GObject** _tmp162_;
2590 	gint _tmp162__length1;
2591 	ValadocRule* _tmp163_;
2592 	ValadocTokenType* _tmp164_;
2593 	GObject* _tmp165_;
2594 	ValadocTokenType* _tmp166_;
2595 	GObject* _tmp167_;
2596 	ValadocTokenType* _tmp168_;
2597 	ValadocTokenType* _tmp169_;
2598 	ValadocTokenType* _tmp170_;
2599 	ValadocTokenType* _tmp171_;
2600 	ValadocTokenType* _tmp172_;
2601 	ValadocTokenType* _tmp173_;
2602 	ValadocTokenType* _tmp174_;
2603 	GObject** _tmp175_;
2604 	GObject** _tmp176_;
2605 	gint _tmp176__length1;
2606 	ValadocRule* _tmp177_;
2607 	ValadocTokenType* _tmp178_;
2608 	GObject* _tmp179_;
2609 	GObject** _tmp180_;
2610 	GObject** _tmp181_;
2611 	gint _tmp181__length1;
2612 	ValadocRule* _tmp182_;
2613 	ValadocRule* _tmp183_;
2614 	ValadocRule* _tmp184_;
2615 	ValadocRule* _tmp185_;
2616 	ValadocRule* _tmp186_;
2617 	GObject** _tmp187_;
2618 	GObject** _tmp188_;
2619 	gint _tmp188__length1;
2620 	ValadocRule* _tmp189_;
2621 	ValadocRule* _tmp190_;
2622 	ValadocRule* _tmp191_;
2623 	GObject** _tmp192_;
2624 	GObject** _tmp193_;
2625 	gint _tmp193__length1;
2626 	ValadocRule* _tmp194_;
2627 	ValadocRule* _tmp195_;
2628 	ValadocRule* _tmp196_;
2629 	GObject** _tmp197_;
2630 	GObject** _tmp198_;
2631 	gint _tmp198__length1;
2632 	ValadocRule* _tmp199_;
2633 	ValadocRule* _tmp200_;
2634 	ValadocRule* _tmp201_;
2635 	GObject** _tmp202_;
2636 	GObject** _tmp203_;
2637 	gint _tmp203__length1;
2638 	ValadocRule* _tmp204_;
2639 	ValadocRule* _tmp205_;
2640 	ValadocRule* _tmp206_;
2641 	ValadocRule* _tmp207_;
2642 	ValadocRule* _tmp208_;
2643 	ValadocRule* _tmp209_;
2644 	ValadocRule* source = NULL;
2645 	ValadocTokenType* _tmp210_;
2646 	ValadocTokenType* _tmp211_;
2647 	GObject** _tmp212_;
2648 	GObject** _tmp213_;
2649 	gint _tmp213__length1;
2650 	ValadocRule* _tmp214_;
2651 	ValadocRule* _tmp215_;
2652 	ValadocRule* _tmp216_;
2653 	ValadocRule* _tmp217_;
2654 	ValadocRule* text = NULL;
2655 	GObject* _tmp218_;
2656 	ValadocTokenType* _tmp219_;
2657 	ValadocTokenType* _tmp220_;
2658 	ValadocTokenType* _tmp221_;
2659 	ValadocTokenType* _tmp222_;
2660 	ValadocTokenType* _tmp223_;
2661 	ValadocTokenType* _tmp224_;
2662 	ValadocTokenType* _tmp225_;
2663 	ValadocTokenType* _tmp226_;
2664 	ValadocTokenType* _tmp227_;
2665 	ValadocTokenType* _tmp228_;
2666 	ValadocTokenType* _tmp229_;
2667 	ValadocTokenType* _tmp230_;
2668 	ValadocTokenType* _tmp231_;
2669 	ValadocTokenType* _tmp232_;
2670 	GObject** _tmp233_;
2671 	GObject** _tmp234_;
2672 	gint _tmp234__length1;
2673 	ValadocRule* _tmp235_;
2674 	GObject** _tmp236_;
2675 	GObject** _tmp237_;
2676 	gint _tmp237__length1;
2677 	ValadocRule* _tmp238_;
2678 	ValadocRule* _tmp239_;
2679 	ValadocRule* _tmp240_;
2680 	ValadocRule* _tmp241_;
2681 	ValadocRule* _tmp242_;
2682 	ValadocRule* _tmp243_;
2683 	GObject* _tmp244_;
2684 	GObject* _tmp245_;
2685 	GObject* _tmp246_;
2686 	GObject* _tmp247_;
2687 	GObject* _tmp248_;
2688 	GObject* _tmp249_;
2689 	GObject* _tmp250_;
2690 	GObject* _tmp251_;
2691 	GObject* _tmp252_;
2692 	GObject* _tmp253_;
2693 	GObject** _tmp254_;
2694 	GObject** _tmp255_;
2695 	gint _tmp255__length1;
2696 	ValadocRule* _tmp256_;
2697 	ValadocRule* _tmp257_;
2698 	ValadocRule* _tmp258_;
2699 	GObject** _tmp259_;
2700 	GObject** _tmp260_;
2701 	gint _tmp260__length1;
2702 	ValadocRule* _tmp261_;
2703 	ValadocRule* _tmp262_;
2704 	ValadocRule* _tmp263_;
2705 	ValadocRule* _tmp264_;
2706 	ValadocRule* unordered_list = NULL;
2707 	ValadocTokenType* _tmp265_;
2708 	GObject* _tmp266_;
2709 	GObject* _tmp267_;
2710 	ValadocTokenType* _tmp268_;
2711 	GObject* _tmp269_;
2712 	GObject** _tmp270_;
2713 	GObject** _tmp271_;
2714 	gint _tmp271__length1;
2715 	ValadocRule* _tmp272_;
2716 	ValadocRule* _tmp273_;
2717 	ValadocRule* _tmp274_;
2718 	ValadocRule* _tmp275_;
2719 	ValadocRule* _tmp276_;
2720 	GObject** _tmp277_;
2721 	GObject** _tmp278_;
2722 	gint _tmp278__length1;
2723 	ValadocRule* _tmp279_;
2724 	ValadocRule* _tmp280_;
2725 	ValadocRule* _tmp281_;
2726 	ValadocRule* _tmp282_;
2727 	ValadocRule* _tmp283_;
2728 	ValadocRule* _tmp284_;
2729 	ValadocRule* _tmp285_;
2730 	ValadocRule* _tmp286_;
2731 	ValadocRule* ordered_list = NULL;
2732 	ValadocTokenType* _tmp287_;
2733 	GObject* _tmp288_;
2734 	GObject* _tmp289_;
2735 	ValadocTokenType* _tmp290_;
2736 	GObject* _tmp291_;
2737 	GObject** _tmp292_;
2738 	GObject** _tmp293_;
2739 	gint _tmp293__length1;
2740 	ValadocRule* _tmp294_;
2741 	ValadocRule* _tmp295_;
2742 	ValadocRule* _tmp296_;
2743 	ValadocRule* _tmp297_;
2744 	ValadocRule* _tmp298_;
2745 	GObject** _tmp299_;
2746 	GObject** _tmp300_;
2747 	gint _tmp300__length1;
2748 	ValadocRule* _tmp301_;
2749 	ValadocRule* _tmp302_;
2750 	ValadocRule* _tmp303_;
2751 	ValadocRule* _tmp304_;
2752 	ValadocRule* _tmp305_;
2753 	ValadocRule* _tmp306_;
2754 	ValadocRule* _tmp307_;
2755 	ValadocRule* _tmp308_;
2756 	ValadocRule* paragraph = NULL;
2757 	ValadocTokenType* _tmp309_;
2758 	GObject* _tmp310_;
2759 	ValadocTokenType* _tmp311_;
2760 	GObject* _tmp312_;
2761 	GObject** _tmp313_;
2762 	GObject** _tmp314_;
2763 	gint _tmp314__length1;
2764 	ValadocRule* _tmp315_;
2765 	GObject* _tmp316_;
2766 	GObject** _tmp317_;
2767 	GObject** _tmp318_;
2768 	gint _tmp318__length1;
2769 	ValadocRule* _tmp319_;
2770 	GObject** _tmp320_;
2771 	GObject** _tmp321_;
2772 	gint _tmp321__length1;
2773 	ValadocRule* _tmp322_;
2774 	ValadocRule* _tmp323_;
2775 	ValadocRule* _tmp324_;
2776 	ValadocRule* _tmp325_;
2777 	ValadocRule* _tmp326_;
2778 	ValadocRule* _tmp327_;
2779 	ValadocRule* _tmp328_;
2780 	ValadocRule* _tmp329_;
2781 	ValadocRule* block = NULL;
2782 	ValadocTokenType* _tmp330_;
2783 	GObject* _tmp331_;
2784 	GObject* _tmp332_;
2785 	ValadocTokenType* _tmp333_;
2786 	GObject* _tmp334_;
2787 	GObject** _tmp335_;
2788 	GObject** _tmp336_;
2789 	gint _tmp336__length1;
2790 	ValadocRule* _tmp337_;
2791 	ValadocRule* _tmp338_;
2792 	ValadocRule* _tmp339_;
2793 	ValadocRule* _tmp340_;
2794 	ValadocRule* _tmp341_;
2795 	ValadocRule* _tmp342_;
2796 	ValadocRule* _tmp343_;
2797 	ValadocRule* _tmp344_;
2798 	ValadocRule* headline = NULL;
2799 	ValadocTokenType* _tmp345_;
2800 	ValadocTokenType* _tmp346_;
2801 	ValadocTokenType* _tmp347_;
2802 	ValadocTokenType* _tmp348_;
2803 	GObject** _tmp349_;
2804 	GObject** _tmp350_;
2805 	gint _tmp350__length1;
2806 	ValadocRule* _tmp351_;
2807 	GObject* _tmp352_;
2808 	ValadocTokenType* _tmp353_;
2809 	ValadocTokenType* _tmp354_;
2810 	GObject** _tmp355_;
2811 	GObject** _tmp356_;
2812 	gint _tmp356__length1;
2813 	ValadocRule* _tmp357_;
2814 	ValadocTokenType* _tmp358_;
2815 	GObject* _tmp359_;
2816 	GObject** _tmp360_;
2817 	GObject** _tmp361_;
2818 	gint _tmp361__length1;
2819 	ValadocRule* _tmp362_;
2820 	ValadocRule* _tmp363_;
2821 	ValadocRule* _tmp364_;
2822 	ValadocRule* _tmp365_;
2823 	ValadocRule* _tmp366_;
2824 	ValadocRule* _tmp367_;
2825 	ValadocRule* _tmp368_;
2826 	ValadocRule* _tmp369_;
2827 	GObject* _tmp370_;
2828 	GObject* _tmp371_;
2829 	GObject* _tmp372_;
2830 	GObject* _tmp373_;
2831 	GObject* _tmp374_;
2832 	GObject** _tmp375_;
2833 	GObject** _tmp376_;
2834 	gint _tmp376__length1;
2835 	ValadocRule* _tmp377_;
2836 	GObject** _tmp378_;
2837 	GObject** _tmp379_;
2838 	gint _tmp379__length1;
2839 	ValadocRule* _tmp380_;
2840 	ValadocRule* _tmp381_;
2841 	ValadocRule* _tmp382_;
2842 	ValadocRule* _tmp383_;
2843 	ValadocRule* comment = NULL;
2844 	GObject* _tmp384_;
2845 	ValadocTokenType* _tmp385_;
2846 	GObject* _tmp386_;
2847 	GObject** _tmp387_;
2848 	GObject** _tmp388_;
2849 	gint _tmp388__length1;
2850 	ValadocRule* _tmp389_;
2851 	ValadocRule* _tmp390_;
2852 	ValadocRule* _tmp391_;
2853 	ValadocRule* _tmp392_;
2854 	ValadocRule* _tmp393_;
2855 	ValadocRule* _tmp394_;
2856 	ValadocParser* _tmp395_;
2857 	g_return_if_fail (self != NULL);
2858 	_tmp0_ = valadoc_token_type_any_word ();
2859 	_tmp1_ = _tmp0_;
2860 	_tmp2_ = valadoc_token_type_action (_tmp1_, _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action, self);
2861 	_tmp3_ = _tmp2_;
2862 	_g_object_unref0 (_tmp1_);
2863 	word = _tmp3_;
2864 	_tmp4_ = valadoc_stub_rule_new ();
2865 	content = _tmp4_;
2866 	_tmp5_ = valadoc_rule_set_name ((ValadocRule*) content, "Content");
2867 	_tmp6_ = _tmp5_;
2868 	_g_object_unref0 (_tmp6_);
2869 	_tmp7_ = valadoc_stub_rule_new ();
2870 	run = _tmp7_;
2871 	_tmp8_ = valadoc_rule_set_name ((ValadocRule*) run, "Run");
2872 	_tmp9_ = _tmp8_;
2873 	_g_object_unref0 (_tmp9_);
2874 	_tmp10_ = valadoc_token_type_MARKDOWN_PARAMETER;
2875 	_tmp11_ = valadoc_token_type_action (_tmp10_, ___lambda12__valadoc_token_type_action, self);
2876 	_tmp12_ = g_new0 (GObject*, 1 + 1);
2877 	_tmp12_[0] = (GObject*) _tmp11_;
2878 	_tmp13_ = _tmp12_;
2879 	_tmp13__length1 = 1;
2880 	_tmp14_ = valadoc_rule_seq (_tmp13_, (gint) 1);
2881 	_tmp15_ = _tmp14_;
2882 	_tmp16_ = valadoc_rule_set_name (_tmp15_, "Parameter");
2883 	_tmp17_ = _tmp16_;
2884 	_g_object_unref0 (_tmp15_);
2885 	_tmp13_ = (_vala_array_free (_tmp13_, _tmp13__length1, (GDestroyNotify) g_object_unref), NULL);
2886 	param = _tmp17_;
2887 	_tmp18_ = valadoc_token_type_MARKDOWN_CONSTANT;
2888 	_tmp19_ = valadoc_token_type_action (_tmp18_, ___lambda13__valadoc_token_type_action, self);
2889 	_tmp20_ = g_new0 (GObject*, 1 + 1);
2890 	_tmp20_[0] = (GObject*) _tmp19_;
2891 	_tmp21_ = _tmp20_;
2892 	_tmp21__length1 = 1;
2893 	_tmp22_ = valadoc_rule_seq (_tmp21_, (gint) 1);
2894 	_tmp23_ = _tmp22_;
2895 	_tmp24_ = valadoc_rule_set_name (_tmp23_, "Constant");
2896 	_tmp25_ = _tmp24_;
2897 	_g_object_unref0 (_tmp23_);
2898 	_tmp21_ = (_vala_array_free (_tmp21_, _tmp21__length1, (GDestroyNotify) g_object_unref), NULL);
2899 	constant = _tmp25_;
2900 	_tmp26_ = valadoc_token_type_MARKDOWN_LOCAL_GMEMBER;
2901 	_tmp27_ = valadoc_token_type_action (_tmp26_, ___lambda14__valadoc_token_type_action, self);
2902 	_tmp28_ = g_new0 (GObject*, 1 + 1);
2903 	_tmp28_[0] = (GObject*) _tmp27_;
2904 	_tmp29_ = _tmp28_;
2905 	_tmp29__length1 = 1;
2906 	_tmp30_ = valadoc_rule_seq (_tmp29_, (gint) 1);
2907 	_tmp31_ = _tmp30_;
2908 	_tmp32_ = valadoc_rule_set_name (_tmp31_, "GLocalMember");
2909 	_tmp33_ = _tmp32_;
2910 	_g_object_unref0 (_tmp31_);
2911 	_tmp29_ = (_vala_array_free (_tmp29_, _tmp29__length1, (GDestroyNotify) g_object_unref), NULL);
2912 	gmember = _tmp33_;
2913 	_tmp34_ = valadoc_token_type_MARKDOWN_SYMBOL;
2914 	_tmp35_ = valadoc_token_type_action (_tmp34_, ___lambda15__valadoc_token_type_action, self);
2915 	_tmp36_ = g_new0 (GObject*, 1 + 1);
2916 	_tmp36_[0] = (GObject*) _tmp35_;
2917 	_tmp37_ = _tmp36_;
2918 	_tmp37__length1 = 1;
2919 	_tmp38_ = valadoc_rule_seq (_tmp37_, (gint) 1);
2920 	_tmp39_ = _tmp38_;
2921 	_tmp40_ = valadoc_rule_set_name (_tmp39_, "Symbol");
2922 	_tmp41_ = _tmp40_;
2923 	_g_object_unref0 (_tmp39_);
2924 	_tmp37_ = (_vala_array_free (_tmp37_, _tmp37__length1, (GDestroyNotify) g_object_unref), NULL);
2925 	symbol = _tmp41_;
2926 	_tmp42_ = valadoc_token_type_MARKDOWN_FUNCTION;
2927 	_tmp43_ = valadoc_token_type_action (_tmp42_, ___lambda16__valadoc_token_type_action, self);
2928 	_tmp44_ = g_new0 (GObject*, 1 + 1);
2929 	_tmp44_[0] = (GObject*) _tmp43_;
2930 	_tmp45_ = _tmp44_;
2931 	_tmp45__length1 = 1;
2932 	_tmp46_ = valadoc_rule_seq (_tmp45_, (gint) 1);
2933 	_tmp47_ = _tmp46_;
2934 	_tmp48_ = valadoc_rule_set_name (_tmp47_, "Function");
2935 	_tmp49_ = _tmp48_;
2936 	_g_object_unref0 (_tmp47_);
2937 	_tmp45_ = (_vala_array_free (_tmp45_, _tmp45__length1, (GDestroyNotify) g_object_unref), NULL);
2938 	function = _tmp49_;
2939 	_tmp50_ = valadoc_token_type_MARKDOWN_LESS_THAN;
2940 	_tmp51_ = _g_object_ref0 ((GObject*) _tmp50_);
2941 	_tmp52_ = valadoc_token_type_MARKDOWN_MAIL;
2942 	_tmp53_ = valadoc_token_type_action (_tmp52_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
2943 	_tmp54_ = valadoc_token_type_MARKDOWN_LINK;
2944 	_tmp55_ = valadoc_token_type_action (_tmp54_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
2945 	_tmp56_ = g_new0 (GObject*, 2 + 1);
2946 	_tmp56_[0] = (GObject*) _tmp53_;
2947 	_tmp56_[1] = (GObject*) _tmp55_;
2948 	_tmp57_ = _tmp56_;
2949 	_tmp57__length1 = 2;
2950 	_tmp58_ = valadoc_rule_one_of (_tmp57_, (gint) 2);
2951 	_tmp59_ = valadoc_token_type_MARKDOWN_GREATER_THAN;
2952 	_tmp60_ = _g_object_ref0 ((GObject*) _tmp59_);
2953 	_tmp61_ = g_new0 (GObject*, 1 + 1);
2954 	_tmp61_[0] = _tmp60_;
2955 	_tmp62_ = _tmp61_;
2956 	_tmp62__length1 = 1;
2957 	_tmp63_ = valadoc_rule_option (_tmp62_, (gint) 1);
2958 	_tmp64_ = _tmp63_;
2959 	_tmp65_ = valadoc_rule_set_reduce (_tmp64_, ___lambda17__valadoc_rule_action, self);
2960 	_tmp66_ = _tmp65_;
2961 	_tmp67_ = valadoc_rule_set_skip (_tmp66_, ___lambda18__valadoc_rule_action, self);
2962 	_tmp68_ = g_new0 (GObject*, 2 + 1);
2963 	_tmp68_[0] = (GObject*) _tmp58_;
2964 	_tmp68_[1] = (GObject*) _tmp67_;
2965 	_tmp69_ = _tmp68_;
2966 	_tmp69__length1 = 2;
2967 	_tmp70_ = valadoc_rule_option (_tmp69_, (gint) 2);
2968 	_tmp71_ = _tmp70_;
2969 	_tmp72_ = valadoc_rule_set_skip (_tmp71_, ___lambda19__valadoc_rule_action, self);
2970 	_tmp73_ = g_new0 (GObject*, 2 + 1);
2971 	_tmp73_[0] = _tmp51_;
2972 	_tmp73_[1] = (GObject*) _tmp72_;
2973 	_tmp74_ = _tmp73_;
2974 	_tmp74__length1 = 2;
2975 	_tmp75_ = valadoc_rule_seq (_tmp74_, (gint) 2);
2976 	_tmp76_ = _tmp75_;
2977 	_tmp77_ = valadoc_rule_set_name (_tmp76_, "Link");
2978 	_tmp78_ = _tmp77_;
2979 	_g_object_unref0 (_tmp76_);
2980 	_tmp74_ = (_vala_array_free (_tmp74_, _tmp74__length1, (GDestroyNotify) g_object_unref), NULL);
2981 	_g_object_unref0 (_tmp71_);
2982 	_tmp69_ = (_vala_array_free (_tmp69_, _tmp69__length1, (GDestroyNotify) g_object_unref), NULL);
2983 	_g_object_unref0 (_tmp66_);
2984 	_g_object_unref0 (_tmp64_);
2985 	_tmp62_ = (_vala_array_free (_tmp62_, _tmp62__length1, (GDestroyNotify) g_object_unref), NULL);
2986 	_tmp57_ = (_vala_array_free (_tmp57_, _tmp57__length1, (GDestroyNotify) g_object_unref), NULL);
2987 	link_short = _tmp78_;
2988 	_tmp79_ = valadoc_token_type_MARKDOWN_OPEN_BRACKET;
2989 	_tmp80_ = _g_object_ref0 ((GObject*) _tmp79_);
2990 	_tmp81_ = _g_object_ref0 ((GObject*) run);
2991 	_tmp82_ = g_new0 (GObject*, 1 + 1);
2992 	_tmp82_[0] = _tmp81_;
2993 	_tmp83_ = _tmp82_;
2994 	_tmp83__length1 = 1;
2995 	_tmp84_ = valadoc_rule_option (_tmp83_, (gint) 1);
2996 	_tmp85_ = valadoc_token_type_MARKDOWN_CLOSE_BRACKET;
2997 	_tmp86_ = _g_object_ref0 ((GObject*) _tmp85_);
2998 	_tmp87_ = valadoc_token_type_MARKDOWN_OPEN_PARENS;
2999 	_tmp88_ = _g_object_ref0 ((GObject*) _tmp87_);
3000 	_tmp89_ = valadoc_token_type_MARKDOWN_LINK;
3001 	_tmp90_ = valadoc_token_type_action (_tmp89_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
3002 	_tmp91_ = valadoc_token_type_MARKDOWN_MAIL;
3003 	_tmp92_ = valadoc_token_type_action (_tmp91_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
3004 	_tmp93_ = g_new0 (GObject*, 2 + 1);
3005 	_tmp93_[0] = (GObject*) _tmp90_;
3006 	_tmp93_[1] = (GObject*) _tmp92_;
3007 	_tmp94_ = _tmp93_;
3008 	_tmp94__length1 = 2;
3009 	_tmp95_ = valadoc_rule_one_of (_tmp94_, (gint) 2);
3010 	_tmp96_ = valadoc_token_type_MARKDOWN_CLOSE_PARENS;
3011 	_tmp97_ = _g_object_ref0 ((GObject*) _tmp96_);
3012 	_tmp98_ = g_new0 (GObject*, 1 + 1);
3013 	_tmp98_[0] = _tmp97_;
3014 	_tmp99_ = _tmp98_;
3015 	_tmp99__length1 = 1;
3016 	_tmp100_ = valadoc_rule_option (_tmp99_, (gint) 1);
3017 	_tmp101_ = _tmp100_;
3018 	_tmp102_ = valadoc_rule_set_reduce (_tmp101_, ___lambda20__valadoc_rule_action, self);
3019 	_tmp103_ = _tmp102_;
3020 	_tmp104_ = valadoc_rule_set_skip (_tmp103_, ___lambda21__valadoc_rule_action, self);
3021 	_tmp105_ = g_new0 (GObject*, 2 + 1);
3022 	_tmp105_[0] = (GObject*) _tmp95_;
3023 	_tmp105_[1] = (GObject*) _tmp104_;
3024 	_tmp106_ = _tmp105_;
3025 	_tmp106__length1 = 2;
3026 	_tmp107_ = valadoc_rule_option (_tmp106_, (gint) 2);
3027 	_tmp108_ = _tmp107_;
3028 	_tmp109_ = valadoc_rule_set_skip (_tmp108_, ___lambda22__valadoc_rule_action, self);
3029 	_tmp110_ = g_new0 (GObject*, 2 + 1);
3030 	_tmp110_[0] = _tmp88_;
3031 	_tmp110_[1] = (GObject*) _tmp109_;
3032 	_tmp111_ = _tmp110_;
3033 	_tmp111__length1 = 2;
3034 	_tmp112_ = valadoc_rule_seq (_tmp111_, (gint) 2);
3035 	_tmp113_ = valadoc_token_type_MARKDOWN_OPEN_BRACKET;
3036 	_tmp114_ = _g_object_ref0 ((GObject*) _tmp113_);
3037 	_tmp115_ = valadoc_token_type_any_word ();
3038 	_tmp116_ = _tmp115_;
3039 	_tmp117_ = valadoc_token_type_action (_tmp116_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
3040 	_tmp118_ = valadoc_token_type_MARKDOWN_CLOSE_BRACKET;
3041 	_tmp119_ = _g_object_ref0 ((GObject*) _tmp118_);
3042 	_tmp120_ = g_new0 (GObject*, 1 + 1);
3043 	_tmp120_[0] = _tmp119_;
3044 	_tmp121_ = _tmp120_;
3045 	_tmp121__length1 = 1;
3046 	_tmp122_ = valadoc_rule_option (_tmp121_, (gint) 1);
3047 	_tmp123_ = _tmp122_;
3048 	_tmp124_ = valadoc_rule_set_reduce (_tmp123_, ___lambda23__valadoc_rule_action, self);
3049 	_tmp125_ = _tmp124_;
3050 	_tmp126_ = valadoc_rule_set_skip (_tmp125_, ___lambda24__valadoc_rule_action, self);
3051 	_tmp127_ = g_new0 (GObject*, 2 + 1);
3052 	_tmp127_[0] = (GObject*) _tmp117_;
3053 	_tmp127_[1] = (GObject*) _tmp126_;
3054 	_tmp128_ = _tmp127_;
3055 	_tmp128__length1 = 2;
3056 	_tmp129_ = valadoc_rule_option (_tmp128_, (gint) 2);
3057 	_tmp130_ = _tmp129_;
3058 	_tmp131_ = valadoc_rule_set_skip (_tmp130_, ___lambda25__valadoc_rule_action, self);
3059 	_tmp132_ = g_new0 (GObject*, 2 + 1);
3060 	_tmp132_[0] = _tmp114_;
3061 	_tmp132_[1] = (GObject*) _tmp131_;
3062 	_tmp133_ = _tmp132_;
3063 	_tmp133__length1 = 2;
3064 	_tmp134_ = valadoc_rule_seq (_tmp133_, (gint) 2);
3065 	_tmp135_ = g_new0 (GObject*, 2 + 1);
3066 	_tmp135_[0] = (GObject*) _tmp112_;
3067 	_tmp135_[1] = (GObject*) _tmp134_;
3068 	_tmp136_ = _tmp135_;
3069 	_tmp136__length1 = 2;
3070 	_tmp137_ = valadoc_rule_one_of (_tmp136_, (gint) 2);
3071 	_tmp138_ = g_new0 (GObject*, 1 + 1);
3072 	_tmp138_[0] = (GObject*) _tmp137_;
3073 	_tmp139_ = _tmp138_;
3074 	_tmp139__length1 = 1;
3075 	_tmp140_ = valadoc_rule_option (_tmp139_, (gint) 1);
3076 	_tmp141_ = _tmp140_;
3077 	_tmp142_ = valadoc_rule_set_skip (_tmp141_, ___lambda26__valadoc_rule_action, self);
3078 	_tmp143_ = g_new0 (GObject*, 3 + 1);
3079 	_tmp143_[0] = (GObject*) _tmp84_;
3080 	_tmp143_[1] = _tmp86_;
3081 	_tmp143_[2] = (GObject*) _tmp142_;
3082 	_tmp144_ = _tmp143_;
3083 	_tmp144__length1 = 3;
3084 	_tmp145_ = valadoc_rule_option (_tmp144_, (gint) 3);
3085 	_tmp146_ = _tmp145_;
3086 	_tmp147_ = valadoc_rule_set_skip (_tmp146_, ___lambda27__valadoc_rule_action, self);
3087 	_tmp148_ = g_new0 (GObject*, 2 + 1);
3088 	_tmp148_[0] = _tmp80_;
3089 	_tmp148_[1] = (GObject*) _tmp147_;
3090 	_tmp149_ = _tmp148_;
3091 	_tmp149__length1 = 2;
3092 	_tmp150_ = valadoc_rule_seq (_tmp149_, (gint) 2);
3093 	_tmp151_ = _tmp150_;
3094 	_tmp152_ = valadoc_rule_set_start (_tmp151_, ___lambda28__valadoc_rule_action, self);
3095 	_tmp153_ = _tmp152_;
3096 	_tmp154_ = valadoc_rule_set_name (_tmp153_, "Link");
3097 	_tmp155_ = _tmp154_;
3098 	_g_object_unref0 (_tmp153_);
3099 	_g_object_unref0 (_tmp151_);
3100 	_tmp149_ = (_vala_array_free (_tmp149_, _tmp149__length1, (GDestroyNotify) g_object_unref), NULL);
3101 	_g_object_unref0 (_tmp146_);
3102 	_tmp144_ = (_vala_array_free (_tmp144_, _tmp144__length1, (GDestroyNotify) g_object_unref), NULL);
3103 	_g_object_unref0 (_tmp141_);
3104 	_tmp139_ = (_vala_array_free (_tmp139_, _tmp139__length1, (GDestroyNotify) g_object_unref), NULL);
3105 	_tmp136_ = (_vala_array_free (_tmp136_, _tmp136__length1, (GDestroyNotify) g_object_unref), NULL);
3106 	_tmp133_ = (_vala_array_free (_tmp133_, _tmp133__length1, (GDestroyNotify) g_object_unref), NULL);
3107 	_g_object_unref0 (_tmp130_);
3108 	_tmp128_ = (_vala_array_free (_tmp128_, _tmp128__length1, (GDestroyNotify) g_object_unref), NULL);
3109 	_g_object_unref0 (_tmp125_);
3110 	_g_object_unref0 (_tmp123_);
3111 	_tmp121_ = (_vala_array_free (_tmp121_, _tmp121__length1, (GDestroyNotify) g_object_unref), NULL);
3112 	_g_object_unref0 (_tmp116_);
3113 	_tmp111_ = (_vala_array_free (_tmp111_, _tmp111__length1, (GDestroyNotify) g_object_unref), NULL);
3114 	_g_object_unref0 (_tmp108_);
3115 	_tmp106_ = (_vala_array_free (_tmp106_, _tmp106__length1, (GDestroyNotify) g_object_unref), NULL);
3116 	_g_object_unref0 (_tmp103_);
3117 	_g_object_unref0 (_tmp101_);
3118 	_tmp99_ = (_vala_array_free (_tmp99_, _tmp99__length1, (GDestroyNotify) g_object_unref), NULL);
3119 	_tmp94_ = (_vala_array_free (_tmp94_, _tmp94__length1, (GDestroyNotify) g_object_unref), NULL);
3120 	_tmp83_ = (_vala_array_free (_tmp83_, _tmp83__length1, (GDestroyNotify) g_object_unref), NULL);
3121 	link = _tmp155_;
3122 	_tmp156_ = valadoc_token_type_MARKDOWN_EXCLAMATION_MARK;
3123 	_tmp157_ = _g_object_ref0 ((GObject*) _tmp156_);
3124 	_tmp158_ = valadoc_token_type_MARKDOWN_OPEN_BRACKET;
3125 	_tmp159_ = _g_object_ref0 ((GObject*) _tmp158_);
3126 	_tmp160_ = _g_object_ref0 ((GObject*) run);
3127 	_tmp161_ = g_new0 (GObject*, 1 + 1);
3128 	_tmp161_[0] = _tmp160_;
3129 	_tmp162_ = _tmp161_;
3130 	_tmp162__length1 = 1;
3131 	_tmp163_ = valadoc_rule_option (_tmp162_, (gint) 1);
3132 	_tmp164_ = valadoc_token_type_MARKDOWN_CLOSE_BRACKET;
3133 	_tmp165_ = _g_object_ref0 ((GObject*) _tmp164_);
3134 	_tmp166_ = valadoc_token_type_MARKDOWN_OPEN_BRACKET;
3135 	_tmp167_ = _g_object_ref0 ((GObject*) _tmp166_);
3136 	_tmp168_ = valadoc_token_type_any_word ();
3137 	_tmp169_ = _tmp168_;
3138 	_tmp170_ = valadoc_token_type_action (_tmp169_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
3139 	_tmp171_ = valadoc_token_type_MARKDOWN_LINK;
3140 	_tmp172_ = valadoc_token_type_action (_tmp171_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
3141 	_tmp173_ = valadoc_token_type_MARKDOWN_MAIL;
3142 	_tmp174_ = valadoc_token_type_action (_tmp173_, _valadoc_gtkdoc_markdown_parser_preserve_token_valadoc_token_type_action, self);
3143 	_tmp175_ = g_new0 (GObject*, 3 + 1);
3144 	_tmp175_[0] = (GObject*) _tmp170_;
3145 	_tmp175_[1] = (GObject*) _tmp172_;
3146 	_tmp175_[2] = (GObject*) _tmp174_;
3147 	_tmp176_ = _tmp175_;
3148 	_tmp176__length1 = 3;
3149 	_tmp177_ = valadoc_rule_one_of (_tmp176_, (gint) 3);
3150 	_tmp178_ = valadoc_token_type_MARKDOWN_CLOSE_BRACKET;
3151 	_tmp179_ = _g_object_ref0 ((GObject*) _tmp178_);
3152 	_tmp180_ = g_new0 (GObject*, 1 + 1);
3153 	_tmp180_[0] = _tmp179_;
3154 	_tmp181_ = _tmp180_;
3155 	_tmp181__length1 = 1;
3156 	_tmp182_ = valadoc_rule_option (_tmp181_, (gint) 1);
3157 	_tmp183_ = _tmp182_;
3158 	_tmp184_ = valadoc_rule_set_reduce (_tmp183_, ___lambda29__valadoc_rule_action, self);
3159 	_tmp185_ = _tmp184_;
3160 	_tmp186_ = valadoc_rule_set_skip (_tmp185_, ___lambda30__valadoc_rule_action, self);
3161 	_tmp187_ = g_new0 (GObject*, 2 + 1);
3162 	_tmp187_[0] = (GObject*) _tmp177_;
3163 	_tmp187_[1] = (GObject*) _tmp186_;
3164 	_tmp188_ = _tmp187_;
3165 	_tmp188__length1 = 2;
3166 	_tmp189_ = valadoc_rule_option (_tmp188_, (gint) 2);
3167 	_tmp190_ = _tmp189_;
3168 	_tmp191_ = valadoc_rule_set_skip (_tmp190_, ___lambda31__valadoc_rule_action, self);
3169 	_tmp192_ = g_new0 (GObject*, 2 + 1);
3170 	_tmp192_[0] = _tmp167_;
3171 	_tmp192_[1] = (GObject*) _tmp191_;
3172 	_tmp193_ = _tmp192_;
3173 	_tmp193__length1 = 2;
3174 	_tmp194_ = valadoc_rule_option (_tmp193_, (gint) 2);
3175 	_tmp195_ = _tmp194_;
3176 	_tmp196_ = valadoc_rule_set_skip (_tmp195_, ___lambda32__valadoc_rule_action, self);
3177 	_tmp197_ = g_new0 (GObject*, 4 + 1);
3178 	_tmp197_[0] = _tmp159_;
3179 	_tmp197_[1] = (GObject*) _tmp163_;
3180 	_tmp197_[2] = _tmp165_;
3181 	_tmp197_[3] = (GObject*) _tmp196_;
3182 	_tmp198_ = _tmp197_;
3183 	_tmp198__length1 = 4;
3184 	_tmp199_ = valadoc_rule_option (_tmp198_, (gint) 4);
3185 	_tmp200_ = _tmp199_;
3186 	_tmp201_ = valadoc_rule_set_skip (_tmp200_, ___lambda33__valadoc_rule_action, self);
3187 	_tmp202_ = g_new0 (GObject*, 2 + 1);
3188 	_tmp202_[0] = _tmp157_;
3189 	_tmp202_[1] = (GObject*) _tmp201_;
3190 	_tmp203_ = _tmp202_;
3191 	_tmp203__length1 = 2;
3192 	_tmp204_ = valadoc_rule_seq (_tmp203_, (gint) 2);
3193 	_tmp205_ = _tmp204_;
3194 	_tmp206_ = valadoc_rule_set_start (_tmp205_, ___lambda34__valadoc_rule_action, self);
3195 	_tmp207_ = _tmp206_;
3196 	_tmp208_ = valadoc_rule_set_name (_tmp207_, "Image");
3197 	_tmp209_ = _tmp208_;
3198 	_g_object_unref0 (_tmp207_);
3199 	_g_object_unref0 (_tmp205_);
3200 	_tmp203_ = (_vala_array_free (_tmp203_, _tmp203__length1, (GDestroyNotify) g_object_unref), NULL);
3201 	_g_object_unref0 (_tmp200_);
3202 	_tmp198_ = (_vala_array_free (_tmp198_, _tmp198__length1, (GDestroyNotify) g_object_unref), NULL);
3203 	_g_object_unref0 (_tmp195_);
3204 	_tmp193_ = (_vala_array_free (_tmp193_, _tmp193__length1, (GDestroyNotify) g_object_unref), NULL);
3205 	_g_object_unref0 (_tmp190_);
3206 	_tmp188_ = (_vala_array_free (_tmp188_, _tmp188__length1, (GDestroyNotify) g_object_unref), NULL);
3207 	_g_object_unref0 (_tmp185_);
3208 	_g_object_unref0 (_tmp183_);
3209 	_tmp181_ = (_vala_array_free (_tmp181_, _tmp181__length1, (GDestroyNotify) g_object_unref), NULL);
3210 	_tmp176_ = (_vala_array_free (_tmp176_, _tmp176__length1, (GDestroyNotify) g_object_unref), NULL);
3211 	_g_object_unref0 (_tmp169_);
3212 	_tmp162_ = (_vala_array_free (_tmp162_, _tmp162__length1, (GDestroyNotify) g_object_unref), NULL);
3213 	image = _tmp209_;
3214 	_tmp210_ = valadoc_token_type_MARKDOWN_SOURCE;
3215 	_tmp211_ = valadoc_token_type_action (_tmp210_, ___lambda35__valadoc_token_type_action, self);
3216 	_tmp212_ = g_new0 (GObject*, 1 + 1);
3217 	_tmp212_[0] = (GObject*) _tmp211_;
3218 	_tmp213_ = _tmp212_;
3219 	_tmp213__length1 = 1;
3220 	_tmp214_ = valadoc_rule_seq (_tmp213_, (gint) 1);
3221 	_tmp215_ = _tmp214_;
3222 	_tmp216_ = valadoc_rule_set_name (_tmp215_, "Source");
3223 	_tmp217_ = _tmp216_;
3224 	_g_object_unref0 (_tmp215_);
3225 	_tmp213_ = (_vala_array_free (_tmp213_, _tmp213__length1, (GDestroyNotify) g_object_unref), NULL);
3226 	source = _tmp217_;
3227 	_tmp218_ = _g_object_ref0 ((GObject*) word);
3228 	_tmp219_ = valadoc_token_type_MARKDOWN_SPACE;
3229 	_tmp220_ = valadoc_token_type_action (_tmp219_, _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action, self);
3230 	_tmp221_ = valadoc_token_type_MARKDOWN_MAIL;
3231 	_tmp222_ = valadoc_token_type_action (_tmp221_, _valadoc_gtkdoc_markdown_parser_add_value_valadoc_token_type_action, self);
3232 	_tmp223_ = valadoc_token_type_MARKDOWN_LINK;
3233 	_tmp224_ = valadoc_token_type_action (_tmp223_, _valadoc_gtkdoc_markdown_parser_add_value_valadoc_token_type_action, self);
3234 	_tmp225_ = valadoc_token_type_MARKDOWN_OPEN_PARENS;
3235 	_tmp226_ = valadoc_token_type_action (_tmp225_, _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action, self);
3236 	_tmp227_ = valadoc_token_type_MARKDOWN_CLOSE_PARENS;
3237 	_tmp228_ = valadoc_token_type_action (_tmp227_, _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action, self);
3238 	_tmp229_ = valadoc_token_type_MARKDOWN_CLOSE_BRACKET;
3239 	_tmp230_ = valadoc_token_type_action (_tmp229_, _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action, self);
3240 	_tmp231_ = valadoc_token_type_MARKDOWN_GREATER_THAN;
3241 	_tmp232_ = valadoc_token_type_action (_tmp231_, _valadoc_gtkdoc_markdown_parser_add_text_valadoc_token_type_action, self);
3242 	_tmp233_ = g_new0 (GObject*, 8 + 1);
3243 	_tmp233_[0] = _tmp218_;
3244 	_tmp233_[1] = (GObject*) _tmp220_;
3245 	_tmp233_[2] = (GObject*) _tmp222_;
3246 	_tmp233_[3] = (GObject*) _tmp224_;
3247 	_tmp233_[4] = (GObject*) _tmp226_;
3248 	_tmp233_[5] = (GObject*) _tmp228_;
3249 	_tmp233_[6] = (GObject*) _tmp230_;
3250 	_tmp233_[7] = (GObject*) _tmp232_;
3251 	_tmp234_ = _tmp233_;
3252 	_tmp234__length1 = 8;
3253 	_tmp235_ = valadoc_rule_one_of (_tmp234_, (gint) 8);
3254 	_tmp236_ = g_new0 (GObject*, 1 + 1);
3255 	_tmp236_[0] = (GObject*) _tmp235_;
3256 	_tmp237_ = _tmp236_;
3257 	_tmp237__length1 = 1;
3258 	_tmp238_ = valadoc_rule_many (_tmp237_, (gint) 1);
3259 	_tmp239_ = _tmp238_;
3260 	_tmp240_ = valadoc_rule_set_start (_tmp239_, ___lambda36__valadoc_rule_action, self);
3261 	_tmp241_ = _tmp240_;
3262 	_tmp242_ = valadoc_rule_set_name (_tmp241_, "Text");
3263 	_tmp243_ = _tmp242_;
3264 	_g_object_unref0 (_tmp241_);
3265 	_g_object_unref0 (_tmp239_);
3266 	_tmp237_ = (_vala_array_free (_tmp237_, _tmp237__length1, (GDestroyNotify) g_object_unref), NULL);
3267 	_tmp234_ = (_vala_array_free (_tmp234_, _tmp234__length1, (GDestroyNotify) g_object_unref), NULL);
3268 	text = _tmp243_;
3269 	_tmp244_ = _g_object_ref0 ((GObject*) text);
3270 	_tmp245_ = _g_object_ref0 ((GObject*) link);
3271 	_tmp246_ = _g_object_ref0 ((GObject*) link_short);
3272 	_tmp247_ = _g_object_ref0 ((GObject*) image);
3273 	_tmp248_ = _g_object_ref0 ((GObject*) function);
3274 	_tmp249_ = _g_object_ref0 ((GObject*) constant);
3275 	_tmp250_ = _g_object_ref0 ((GObject*) param);
3276 	_tmp251_ = _g_object_ref0 ((GObject*) symbol);
3277 	_tmp252_ = _g_object_ref0 ((GObject*) gmember);
3278 	_tmp253_ = _g_object_ref0 ((GObject*) source);
3279 	_tmp254_ = g_new0 (GObject*, 10 + 1);
3280 	_tmp254_[0] = _tmp244_;
3281 	_tmp254_[1] = _tmp245_;
3282 	_tmp254_[2] = _tmp246_;
3283 	_tmp254_[3] = _tmp247_;
3284 	_tmp254_[4] = _tmp248_;
3285 	_tmp254_[5] = _tmp249_;
3286 	_tmp254_[6] = _tmp250_;
3287 	_tmp254_[7] = _tmp251_;
3288 	_tmp254_[8] = _tmp252_;
3289 	_tmp254_[9] = _tmp253_;
3290 	_tmp255_ = _tmp254_;
3291 	_tmp255__length1 = 10;
3292 	_tmp256_ = valadoc_rule_one_of (_tmp255_, (gint) 10);
3293 	_tmp257_ = _tmp256_;
3294 	_tmp258_ = valadoc_rule_set_reduce (_tmp257_, ___lambda37__valadoc_rule_action, self);
3295 	_tmp259_ = g_new0 (GObject*, 1 + 1);
3296 	_tmp259_[0] = (GObject*) _tmp258_;
3297 	_tmp260_ = _tmp259_;
3298 	_tmp260__length1 = 1;
3299 	_tmp261_ = valadoc_rule_many (_tmp260_, (gint) 1);
3300 	_tmp262_ = _tmp261_;
3301 	_tmp263_ = valadoc_stub_rule_set_rule (run, _tmp262_);
3302 	_tmp264_ = _tmp263_;
3303 	_g_object_unref0 (_tmp264_);
3304 	_g_object_unref0 (_tmp262_);
3305 	_tmp260_ = (_vala_array_free (_tmp260_, _tmp260__length1, (GDestroyNotify) g_object_unref), NULL);
3306 	_g_object_unref0 (_tmp257_);
3307 	_tmp255_ = (_vala_array_free (_tmp255_, _tmp255__length1, (GDestroyNotify) g_object_unref), NULL);
3308 	_tmp265_ = valadoc_token_type_MARKDOWN_UNORDERED_LIST_ITEM_START;
3309 	_tmp266_ = _g_object_ref0 ((GObject*) _tmp265_);
3310 	_tmp267_ = _g_object_ref0 ((GObject*) content);
3311 	_tmp268_ = valadoc_token_type_MARKDOWN_UNORDERED_LIST_ITEM_END;
3312 	_tmp269_ = _g_object_ref0 ((GObject*) _tmp268_);
3313 	_tmp270_ = g_new0 (GObject*, 3 + 1);
3314 	_tmp270_[0] = _tmp266_;
3315 	_tmp270_[1] = _tmp267_;
3316 	_tmp270_[2] = _tmp269_;
3317 	_tmp271_ = _tmp270_;
3318 	_tmp271__length1 = 3;
3319 	_tmp272_ = valadoc_rule_seq (_tmp271_, (gint) 3);
3320 	_tmp273_ = _tmp272_;
3321 	_tmp274_ = valadoc_rule_set_start (_tmp273_, ___lambda38__valadoc_rule_action, self);
3322 	_tmp275_ = _tmp274_;
3323 	_tmp276_ = valadoc_rule_set_reduce (_tmp275_, ___lambda39__valadoc_rule_action, self);
3324 	_tmp277_ = g_new0 (GObject*, 1 + 1);
3325 	_tmp277_[0] = (GObject*) _tmp276_;
3326 	_tmp278_ = _tmp277_;
3327 	_tmp278__length1 = 1;
3328 	_tmp279_ = valadoc_rule_seq (_tmp278_, (gint) 1);
3329 	_tmp280_ = _tmp279_;
3330 	_tmp281_ = valadoc_rule_set_start (_tmp280_, ___lambda40__valadoc_rule_action, self);
3331 	_tmp282_ = _tmp281_;
3332 	_tmp283_ = valadoc_rule_set_reduce (_tmp282_, ___lambda41__valadoc_rule_action, self);
3333 	_tmp284_ = _tmp283_;
3334 	_tmp285_ = valadoc_rule_set_name (_tmp284_, "UnorderedList");
3335 	_tmp286_ = _tmp285_;
3336 	_g_object_unref0 (_tmp284_);
3337 	_g_object_unref0 (_tmp282_);
3338 	_g_object_unref0 (_tmp280_);
3339 	_tmp278_ = (_vala_array_free (_tmp278_, _tmp278__length1, (GDestroyNotify) g_object_unref), NULL);
3340 	_g_object_unref0 (_tmp275_);
3341 	_g_object_unref0 (_tmp273_);
3342 	_tmp271_ = (_vala_array_free (_tmp271_, _tmp271__length1, (GDestroyNotify) g_object_unref), NULL);
3343 	unordered_list = _tmp286_;
3344 	_tmp287_ = valadoc_token_type_MARKDOWN_ORDERED_LIST_ITEM_START;
3345 	_tmp288_ = _g_object_ref0 ((GObject*) _tmp287_);
3346 	_tmp289_ = _g_object_ref0 ((GObject*) content);
3347 	_tmp290_ = valadoc_token_type_MARKDOWN_ORDERED_LIST_ITEM_END;
3348 	_tmp291_ = _g_object_ref0 ((GObject*) _tmp290_);
3349 	_tmp292_ = g_new0 (GObject*, 3 + 1);
3350 	_tmp292_[0] = _tmp288_;
3351 	_tmp292_[1] = _tmp289_;
3352 	_tmp292_[2] = _tmp291_;
3353 	_tmp293_ = _tmp292_;
3354 	_tmp293__length1 = 3;
3355 	_tmp294_ = valadoc_rule_seq (_tmp293_, (gint) 3);
3356 	_tmp295_ = _tmp294_;
3357 	_tmp296_ = valadoc_rule_set_start (_tmp295_, ___lambda42__valadoc_rule_action, self);
3358 	_tmp297_ = _tmp296_;
3359 	_tmp298_ = valadoc_rule_set_reduce (_tmp297_, ___lambda43__valadoc_rule_action, self);
3360 	_tmp299_ = g_new0 (GObject*, 1 + 1);
3361 	_tmp299_[0] = (GObject*) _tmp298_;
3362 	_tmp300_ = _tmp299_;
3363 	_tmp300__length1 = 1;
3364 	_tmp301_ = valadoc_rule_seq (_tmp300_, (gint) 1);
3365 	_tmp302_ = _tmp301_;
3366 	_tmp303_ = valadoc_rule_set_start (_tmp302_, ___lambda44__valadoc_rule_action, self);
3367 	_tmp304_ = _tmp303_;
3368 	_tmp305_ = valadoc_rule_set_reduce (_tmp304_, ___lambda45__valadoc_rule_action, self);
3369 	_tmp306_ = _tmp305_;
3370 	_tmp307_ = valadoc_rule_set_name (_tmp306_, "OrderedList");
3371 	_tmp308_ = _tmp307_;
3372 	_g_object_unref0 (_tmp306_);
3373 	_g_object_unref0 (_tmp304_);
3374 	_g_object_unref0 (_tmp302_);
3375 	_tmp300_ = (_vala_array_free (_tmp300_, _tmp300__length1, (GDestroyNotify) g_object_unref), NULL);
3376 	_g_object_unref0 (_tmp297_);
3377 	_g_object_unref0 (_tmp295_);
3378 	_tmp293_ = (_vala_array_free (_tmp293_, _tmp293__length1, (GDestroyNotify) g_object_unref), NULL);
3379 	ordered_list = _tmp308_;
3380 	_tmp309_ = valadoc_token_type_MARKDOWN_PARAGRAPH;
3381 	_tmp310_ = _g_object_ref0 ((GObject*) _tmp309_);
3382 	_tmp311_ = valadoc_token_type_MARKDOWN_SPACE;
3383 	_tmp312_ = _g_object_ref0 ((GObject*) _tmp311_);
3384 	_tmp313_ = g_new0 (GObject*, 1 + 1);
3385 	_tmp313_[0] = _tmp312_;
3386 	_tmp314_ = _tmp313_;
3387 	_tmp314__length1 = 1;
3388 	_tmp315_ = valadoc_rule_option (_tmp314_, (gint) 1);
3389 	_tmp316_ = _g_object_ref0 ((GObject*) run);
3390 	_tmp317_ = g_new0 (GObject*, 1 + 1);
3391 	_tmp317_[0] = _tmp316_;
3392 	_tmp318_ = _tmp317_;
3393 	_tmp318__length1 = 1;
3394 	_tmp319_ = valadoc_rule_option (_tmp318_, (gint) 1);
3395 	_tmp320_ = g_new0 (GObject*, 3 + 1);
3396 	_tmp320_[0] = _tmp310_;
3397 	_tmp320_[1] = (GObject*) _tmp315_;
3398 	_tmp320_[2] = (GObject*) _tmp319_;
3399 	_tmp321_ = _tmp320_;
3400 	_tmp321__length1 = 3;
3401 	_tmp322_ = valadoc_rule_seq (_tmp321_, (gint) 3);
3402 	_tmp323_ = _tmp322_;
3403 	_tmp324_ = valadoc_rule_set_start (_tmp323_, ___lambda46__valadoc_rule_action, self);
3404 	_tmp325_ = _tmp324_;
3405 	_tmp326_ = valadoc_rule_set_reduce (_tmp325_, ___lambda47__valadoc_rule_action, self);
3406 	_tmp327_ = _tmp326_;
3407 	_tmp328_ = valadoc_rule_set_name (_tmp327_, "Paragraph");
3408 	_tmp329_ = _tmp328_;
3409 	_g_object_unref0 (_tmp327_);
3410 	_g_object_unref0 (_tmp325_);
3411 	_g_object_unref0 (_tmp323_);
3412 	_tmp321_ = (_vala_array_free (_tmp321_, _tmp321__length1, (GDestroyNotify) g_object_unref), NULL);
3413 	_tmp318_ = (_vala_array_free (_tmp318_, _tmp318__length1, (GDestroyNotify) g_object_unref), NULL);
3414 	_tmp314_ = (_vala_array_free (_tmp314_, _tmp314__length1, (GDestroyNotify) g_object_unref), NULL);
3415 	paragraph = _tmp329_;
3416 	_tmp330_ = valadoc_token_type_MARKDOWN_BLOCK_START;
3417 	_tmp331_ = _g_object_ref0 ((GObject*) _tmp330_);
3418 	_tmp332_ = _g_object_ref0 ((GObject*) content);
3419 	_tmp333_ = valadoc_token_type_MARKDOWN_BLOCK_END;
3420 	_tmp334_ = _g_object_ref0 ((GObject*) _tmp333_);
3421 	_tmp335_ = g_new0 (GObject*, 3 + 1);
3422 	_tmp335_[0] = _tmp331_;
3423 	_tmp335_[1] = _tmp332_;
3424 	_tmp335_[2] = _tmp334_;
3425 	_tmp336_ = _tmp335_;
3426 	_tmp336__length1 = 3;
3427 	_tmp337_ = valadoc_rule_seq (_tmp336_, (gint) 3);
3428 	_tmp338_ = _tmp337_;
3429 	_tmp339_ = valadoc_rule_set_start (_tmp338_, ___lambda48__valadoc_rule_action, self);
3430 	_tmp340_ = _tmp339_;
3431 	_tmp341_ = valadoc_rule_set_reduce (_tmp340_, ___lambda49__valadoc_rule_action, self);
3432 	_tmp342_ = _tmp341_;
3433 	_tmp343_ = valadoc_rule_set_name (_tmp342_, "Block");
3434 	_tmp344_ = _tmp343_;
3435 	_g_object_unref0 (_tmp342_);
3436 	_g_object_unref0 (_tmp340_);
3437 	_g_object_unref0 (_tmp338_);
3438 	_tmp336_ = (_vala_array_free (_tmp336_, _tmp336__length1, (GDestroyNotify) g_object_unref), NULL);
3439 	block = _tmp344_;
3440 	_tmp345_ = valadoc_token_type_MARKDOWN_HEADLINE_1;
3441 	_tmp346_ = valadoc_token_type_action (_tmp345_, ___lambda50__valadoc_token_type_action, self);
3442 	_tmp347_ = valadoc_token_type_MARKDOWN_HEADLINE_2;
3443 	_tmp348_ = valadoc_token_type_action (_tmp347_, ___lambda51__valadoc_token_type_action, self);
3444 	_tmp349_ = g_new0 (GObject*, 2 + 1);
3445 	_tmp349_[0] = (GObject*) _tmp346_;
3446 	_tmp349_[1] = (GObject*) _tmp348_;
3447 	_tmp350_ = _tmp349_;
3448 	_tmp350__length1 = 2;
3449 	_tmp351_ = valadoc_rule_one_of (_tmp350_, (gint) 2);
3450 	_tmp352_ = _g_object_ref0 ((GObject*) run);
3451 	_tmp353_ = valadoc_token_type_MARKDOWN_HEADLINE_HASH;
3452 	_tmp354_ = valadoc_token_type_action (_tmp353_, ___lambda52__valadoc_token_type_action, self);
3453 	_tmp355_ = g_new0 (GObject*, 1 + 1);
3454 	_tmp355_[0] = (GObject*) _tmp354_;
3455 	_tmp356_ = _tmp355_;
3456 	_tmp356__length1 = 1;
3457 	_tmp357_ = valadoc_rule_option (_tmp356_, (gint) 1);
3458 	_tmp358_ = valadoc_token_type_MARKDOWN_HEADLINE_END;
3459 	_tmp359_ = _g_object_ref0 ((GObject*) _tmp358_);
3460 	_tmp360_ = g_new0 (GObject*, 4 + 1);
3461 	_tmp360_[0] = (GObject*) _tmp351_;
3462 	_tmp360_[1] = _tmp352_;
3463 	_tmp360_[2] = (GObject*) _tmp357_;
3464 	_tmp360_[3] = _tmp359_;
3465 	_tmp361_ = _tmp360_;
3466 	_tmp361__length1 = 4;
3467 	_tmp362_ = valadoc_rule_seq (_tmp361_, (gint) 4);
3468 	_tmp363_ = _tmp362_;
3469 	_tmp364_ = valadoc_rule_set_start (_tmp363_, ___lambda53__valadoc_rule_action, self);
3470 	_tmp365_ = _tmp364_;
3471 	_tmp366_ = valadoc_rule_set_reduce (_tmp365_, ___lambda54__valadoc_rule_action, self);
3472 	_tmp367_ = _tmp366_;
3473 	_tmp368_ = valadoc_rule_set_name (_tmp367_, "Headline");
3474 	_tmp369_ = _tmp368_;
3475 	_g_object_unref0 (_tmp367_);
3476 	_g_object_unref0 (_tmp365_);
3477 	_g_object_unref0 (_tmp363_);
3478 	_tmp361_ = (_vala_array_free (_tmp361_, _tmp361__length1, (GDestroyNotify) g_object_unref), NULL);
3479 	_tmp356_ = (_vala_array_free (_tmp356_, _tmp356__length1, (GDestroyNotify) g_object_unref), NULL);
3480 	_tmp350_ = (_vala_array_free (_tmp350_, _tmp350__length1, (GDestroyNotify) g_object_unref), NULL);
3481 	headline = _tmp369_;
3482 	_tmp370_ = _g_object_ref0 ((GObject*) paragraph);
3483 	_tmp371_ = _g_object_ref0 ((GObject*) unordered_list);
3484 	_tmp372_ = _g_object_ref0 ((GObject*) ordered_list);
3485 	_tmp373_ = _g_object_ref0 ((GObject*) headline);
3486 	_tmp374_ = _g_object_ref0 ((GObject*) block);
3487 	_tmp375_ = g_new0 (GObject*, 5 + 1);
3488 	_tmp375_[0] = _tmp370_;
3489 	_tmp375_[1] = _tmp371_;
3490 	_tmp375_[2] = _tmp372_;
3491 	_tmp375_[3] = _tmp373_;
3492 	_tmp375_[4] = _tmp374_;
3493 	_tmp376_ = _tmp375_;
3494 	_tmp376__length1 = 5;
3495 	_tmp377_ = valadoc_rule_one_of (_tmp376_, (gint) 5);
3496 	_tmp378_ = g_new0 (GObject*, 1 + 1);
3497 	_tmp378_[0] = (GObject*) _tmp377_;
3498 	_tmp379_ = _tmp378_;
3499 	_tmp379__length1 = 1;
3500 	_tmp380_ = valadoc_rule_many (_tmp379_, (gint) 1);
3501 	_tmp381_ = _tmp380_;
3502 	_tmp382_ = valadoc_stub_rule_set_rule (content, _tmp381_);
3503 	_tmp383_ = _tmp382_;
3504 	_g_object_unref0 (_tmp383_);
3505 	_g_object_unref0 (_tmp381_);
3506 	_tmp379_ = (_vala_array_free (_tmp379_, _tmp379__length1, (GDestroyNotify) g_object_unref), NULL);
3507 	_tmp376_ = (_vala_array_free (_tmp376_, _tmp376__length1, (GDestroyNotify) g_object_unref), NULL);
3508 	_tmp384_ = _g_object_ref0 ((GObject*) content);
3509 	_tmp385_ = valadoc_token_type_MARKDOWN_EOC;
3510 	_tmp386_ = _g_object_ref0 ((GObject*) _tmp385_);
3511 	_tmp387_ = g_new0 (GObject*, 2 + 1);
3512 	_tmp387_[0] = _tmp384_;
3513 	_tmp387_[1] = _tmp386_;
3514 	_tmp388_ = _tmp387_;
3515 	_tmp388__length1 = 2;
3516 	_tmp389_ = valadoc_rule_seq (_tmp388_, (gint) 2);
3517 	_tmp390_ = _tmp389_;
3518 	_tmp391_ = valadoc_rule_set_start (_tmp390_, ___lambda55__valadoc_rule_action, self);
3519 	_tmp392_ = _tmp391_;
3520 	_tmp393_ = valadoc_rule_set_name (_tmp392_, "Comment");
3521 	_tmp394_ = _tmp393_;
3522 	_g_object_unref0 (_tmp392_);
3523 	_g_object_unref0 (_tmp390_);
3524 	_tmp388_ = (_vala_array_free (_tmp388_, _tmp388__length1, (GDestroyNotify) g_object_unref), NULL);
3525 	comment = _tmp394_;
3526 	_tmp395_ = self->priv->parser;
3527 	valadoc_parser_set_root_rule (_tmp395_, comment);
3528 	_g_object_unref0 (comment);
3529 	_g_object_unref0 (headline);
3530 	_g_object_unref0 (block);
3531 	_g_object_unref0 (paragraph);
3532 	_g_object_unref0 (ordered_list);
3533 	_g_object_unref0 (unordered_list);
3534 	_g_object_unref0 (text);
3535 	_g_object_unref0 (source);
3536 	_g_object_unref0 (image);
3537 	_g_object_unref0 (link);
3538 	_g_object_unref0 (link_short);
3539 	_g_object_unref0 (function);
3540 	_g_object_unref0 (symbol);
3541 	_g_object_unref0 (gmember);
3542 	_g_object_unref0 (constant);
3543 	_g_object_unref0 (param);
3544 	_g_object_unref0 (run);
3545 	_g_object_unref0 (content);
3546 	_g_object_unref0 (word);
3547 }
3548 
3549 static ValadocContentComment*
_valadoc_gtkdoc_markdown_parser_parse(ValadocGtkdocMarkdownParser * self,ValadocApiSourceComment * comment)3550 _valadoc_gtkdoc_markdown_parser_parse (ValadocGtkdocMarkdownParser* self,
3551                                        ValadocApiSourceComment* comment)
3552 {
3553 	GError* _inner_error0_ = NULL;
3554 	ValadocContentComment* result = NULL;
3555 	g_return_val_if_fail (self != NULL, NULL);
3556 	g_return_val_if_fail (comment != NULL, NULL);
3557 	{
3558 		ValaArrayList* _tmp0_;
3559 		ValadocParser* _tmp1_;
3560 		const gchar* _tmp2_;
3561 		const gchar* _tmp3_;
3562 		ValadocApiSourceFile* _tmp4_;
3563 		ValadocApiSourceFile* _tmp5_;
3564 		gchar* _tmp6_;
3565 		gchar* _tmp7_;
3566 		gint _tmp8_;
3567 		gint _tmp9_;
3568 		gint _tmp10_;
3569 		gint _tmp11_;
3570 		GObject* _tmp12_;
3571 		_tmp0_ = self->priv->_stack;
3572 		vala_collection_clear ((ValaCollection*) _tmp0_);
3573 		_tmp1_ = self->priv->parser;
3574 		_tmp2_ = valadoc_api_source_comment_get_content (comment);
3575 		_tmp3_ = _tmp2_;
3576 		_tmp4_ = valadoc_api_source_comment_get_file (comment);
3577 		_tmp5_ = _tmp4_;
3578 		_tmp6_ = valadoc_api_source_file_get_name (_tmp5_);
3579 		_tmp7_ = _tmp6_;
3580 		_tmp8_ = valadoc_api_source_comment_get_first_line (comment);
3581 		_tmp9_ = _tmp8_;
3582 		_tmp10_ = valadoc_api_source_comment_get_first_column (comment);
3583 		_tmp11_ = _tmp10_;
3584 		valadoc_parser_parse (_tmp1_, _tmp3_, _tmp7_, _tmp9_, _tmp11_, &_inner_error0_);
3585 		_g_free0 (_tmp7_);
3586 		if (G_UNLIKELY (_inner_error0_ != NULL)) {
3587 			if (_inner_error0_->domain == VALADOC_PARSER_ERROR) {
3588 				goto __catch0_valadoc_parser_error;
3589 			}
3590 			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);
3591 			g_clear_error (&_inner_error0_);
3592 			return NULL;
3593 		}
3594 		_tmp12_ = valadoc_gtkdoc_markdown_parser_pop (self);
3595 		result = G_TYPE_CHECK_INSTANCE_CAST (_tmp12_, VALADOC_CONTENT_TYPE_COMMENT, ValadocContentComment);
3596 		return result;
3597 	}
3598 	goto __finally0;
3599 	__catch0_valadoc_parser_error:
3600 	{
3601 		g_clear_error (&_inner_error0_);
3602 		result = NULL;
3603 		return result;
3604 	}
3605 	__finally0:
3606 	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);
3607 	g_clear_error (&_inner_error0_);
3608 	return NULL;
3609 }
3610 
3611 static ValadocContentTaglet*
_valadoc_gtkdoc_markdown_parser_parse_block_taglet(ValadocGtkdocMarkdownParser * self,ValadocApiSourceComment * comment,const gchar * taglet_name)3612 _valadoc_gtkdoc_markdown_parser_parse_block_taglet (ValadocGtkdocMarkdownParser* self,
3613                                                     ValadocApiSourceComment* comment,
3614                                                     const gchar* taglet_name)
3615 {
3616 	ValadocContentComment* cmnt = NULL;
3617 	ValadocContentComment* _tmp0_;
3618 	ValadocContentComment* _tmp1_;
3619 	ValadocContentTaglet* taglet = NULL;
3620 	ValadocContentContentFactory* _tmp2_;
3621 	ValadocContentTaglet* _tmp3_;
3622 	ValadocContentBlockContent* block = NULL;
3623 	ValadocContentTaglet* _tmp4_;
3624 	ValadocContentBlockContent* _tmp5_;
3625 	gboolean _tmp6_ = FALSE;
3626 	ValadocContentTaglet* _tmp7_;
3627 	ValadocContentBlockContent* _tmp9_;
3628 	ValaList* _tmp10_;
3629 	ValaList* _tmp11_;
3630 	ValadocContentComment* _tmp12_;
3631 	ValaList* _tmp13_;
3632 	ValaList* _tmp14_;
3633 	ValadocContentTaglet* result = NULL;
3634 	g_return_val_if_fail (self != NULL, NULL);
3635 	g_return_val_if_fail (comment != NULL, NULL);
3636 	g_return_val_if_fail (taglet_name != NULL, NULL);
3637 	_tmp0_ = _valadoc_gtkdoc_markdown_parser_parse (self, comment);
3638 	cmnt = _tmp0_;
3639 	_tmp1_ = cmnt;
3640 	if (_tmp1_ == NULL) {
3641 		result = NULL;
3642 		_g_object_unref0 (cmnt);
3643 		return result;
3644 	}
3645 	_tmp2_ = self->priv->_factory;
3646 	_tmp3_ = valadoc_content_content_factory_create_taglet (_tmp2_, taglet_name);
3647 	taglet = _tmp3_;
3648 	_tmp4_ = taglet;
3649 	_tmp5_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (_tmp4_, VALADOC_CONTENT_TYPE_BLOCK_CONTENT, ValadocContentBlockContent));
3650 	block = _tmp5_;
3651 	_tmp7_ = taglet;
3652 	if (_tmp7_ != NULL) {
3653 		ValadocContentBlockContent* _tmp8_;
3654 		_tmp8_ = block;
3655 		_tmp6_ = _tmp8_ != NULL;
3656 	} else {
3657 		_tmp6_ = FALSE;
3658 	}
3659 	_vala_assert (_tmp6_, "taglet != null && block != null");
3660 	_tmp9_ = block;
3661 	_tmp10_ = valadoc_content_block_content_get_content (_tmp9_);
3662 	_tmp11_ = _tmp10_;
3663 	_tmp12_ = cmnt;
3664 	_tmp13_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp12_);
3665 	_tmp14_ = _tmp13_;
3666 	vala_collection_add_all ((ValaCollection*) _tmp11_, (ValaCollection*) _tmp14_);
3667 	result = taglet;
3668 	_g_object_unref0 (block);
3669 	_g_object_unref0 (cmnt);
3670 	return result;
3671 }
3672 
3673 static ValadocContentNote*
_valadoc_gtkdoc_markdown_parser_parse_note(ValadocGtkdocMarkdownParser * self,ValadocApiSourceComment * comment)3674 _valadoc_gtkdoc_markdown_parser_parse_note (ValadocGtkdocMarkdownParser* self,
3675                                             ValadocApiSourceComment* comment)
3676 {
3677 	ValadocContentComment* cmnt = NULL;
3678 	ValadocContentComment* _tmp0_;
3679 	ValadocContentComment* _tmp1_;
3680 	ValadocContentNote* note = NULL;
3681 	ValadocContentContentFactory* _tmp2_;
3682 	ValadocContentNote* _tmp3_;
3683 	ValadocContentNote* _tmp4_;
3684 	ValaList* _tmp5_;
3685 	ValaList* _tmp6_;
3686 	ValadocContentComment* _tmp7_;
3687 	ValaList* _tmp8_;
3688 	ValaList* _tmp9_;
3689 	ValadocContentNote* result = NULL;
3690 	g_return_val_if_fail (self != NULL, NULL);
3691 	g_return_val_if_fail (comment != NULL, NULL);
3692 	_tmp0_ = _valadoc_gtkdoc_markdown_parser_parse (self, comment);
3693 	cmnt = _tmp0_;
3694 	_tmp1_ = cmnt;
3695 	if (_tmp1_ == NULL) {
3696 		result = NULL;
3697 		_g_object_unref0 (cmnt);
3698 		return result;
3699 	}
3700 	_tmp2_ = self->priv->_factory;
3701 	_tmp3_ = valadoc_content_content_factory_create_note (_tmp2_);
3702 	note = _tmp3_;
3703 	_tmp4_ = note;
3704 	_tmp5_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp4_);
3705 	_tmp6_ = _tmp5_;
3706 	_tmp7_ = cmnt;
3707 	_tmp8_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) _tmp7_);
3708 	_tmp9_ = _tmp8_;
3709 	vala_collection_add_all ((ValaCollection*) _tmp6_, (ValaCollection*) _tmp9_);
3710 	result = note;
3711 	_g_object_unref0 (cmnt);
3712 	return result;
3713 }
3714 
3715 static void
valadoc_gtkdoc_markdown_parser_add_taglet(ValadocGtkdocMarkdownParser * self,ValadocContentComment ** comment,ValadocContentTaglet * taglet)3716 valadoc_gtkdoc_markdown_parser_add_taglet (ValadocGtkdocMarkdownParser* self,
3717                                            ValadocContentComment* * comment,
3718                                            ValadocContentTaglet* taglet)
3719 {
3720 	ValaList* _tmp2_;
3721 	ValaList* _tmp3_;
3722 	g_return_if_fail (self != NULL);
3723 	if (taglet == NULL) {
3724 		return;
3725 	}
3726 	if ((*comment) == NULL) {
3727 		ValadocContentContentFactory* _tmp0_;
3728 		ValadocContentComment* _tmp1_;
3729 		_tmp0_ = self->priv->_factory;
3730 		_tmp1_ = valadoc_content_content_factory_create_comment (_tmp0_);
3731 		_g_object_unref0 (*comment);
3732 		*comment = _tmp1_;
3733 	}
3734 	_tmp2_ = valadoc_content_comment_get_taglets (*comment);
3735 	_tmp3_ = _tmp2_;
3736 	vala_collection_add ((ValaCollection*) _tmp3_, taglet);
3737 }
3738 
3739 static void
valadoc_gtkdoc_markdown_parser_add_note(ValadocGtkdocMarkdownParser * self,ValadocContentComment ** comment,ValadocContentNote * note)3740 valadoc_gtkdoc_markdown_parser_add_note (ValadocGtkdocMarkdownParser* self,
3741                                          ValadocContentComment* * comment,
3742                                          ValadocContentNote* note)
3743 {
3744 	ValaList* _tmp2_;
3745 	ValaList* _tmp3_;
3746 	gint _tmp4_;
3747 	gint _tmp5_;
3748 	ValaList* _tmp11_;
3749 	ValaList* _tmp12_;
3750 	g_return_if_fail (self != NULL);
3751 	if (note == NULL) {
3752 		return;
3753 	}
3754 	if ((*comment) == NULL) {
3755 		ValadocContentContentFactory* _tmp0_;
3756 		ValadocContentComment* _tmp1_;
3757 		_tmp0_ = self->priv->_factory;
3758 		_tmp1_ = valadoc_content_content_factory_create_comment (_tmp0_);
3759 		_g_object_unref0 (*comment);
3760 		*comment = _tmp1_;
3761 	}
3762 	_tmp2_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) (*comment));
3763 	_tmp3_ = _tmp2_;
3764 	_tmp4_ = vala_collection_get_size ((ValaCollection*) _tmp3_);
3765 	_tmp5_ = _tmp4_;
3766 	if (_tmp5_ == 0) {
3767 		ValaList* _tmp6_;
3768 		ValaList* _tmp7_;
3769 		ValadocContentContentFactory* _tmp8_;
3770 		ValadocContentParagraph* _tmp9_;
3771 		ValadocContentParagraph* _tmp10_;
3772 		_tmp6_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) (*comment));
3773 		_tmp7_ = _tmp6_;
3774 		_tmp8_ = self->priv->_factory;
3775 		_tmp9_ = valadoc_content_content_factory_create_paragraph (_tmp8_);
3776 		_tmp10_ = _tmp9_;
3777 		vala_collection_add ((ValaCollection*) _tmp7_, (ValadocContentBlock*) _tmp10_);
3778 		_g_object_unref0 (_tmp10_);
3779 	}
3780 	_tmp11_ = valadoc_content_block_content_get_content ((ValadocContentBlockContent*) (*comment));
3781 	_tmp12_ = _tmp11_;
3782 	vala_list_insert (_tmp12_, 1, (ValadocContentBlock*) note);
3783 }
3784 
3785 static gpointer
_valadoc_importer_internal_id_registrar_ref0(gpointer self)3786 _valadoc_importer_internal_id_registrar_ref0 (gpointer self)
3787 {
3788 	return self ? valadoc_importer_internal_id_registrar_ref (self) : NULL;
3789 }
3790 
3791 static gpointer
_valadoc_api_source_comment_ref0(gpointer self)3792 _valadoc_api_source_comment_ref0 (gpointer self)
3793 {
3794 	return self ? valadoc_api_source_comment_ref (self) : NULL;
3795 }
3796 
3797 ValadocContentComment*
valadoc_gtkdoc_markdown_parser_parse(ValadocGtkdocMarkdownParser * self,ValadocApiNode * element,ValadocApiGirSourceComment * gir_comment,ValadocGirMetaData * metadata,ValadocImporterInternalIdRegistrar * id_registrar,const gchar * this_name)3798 valadoc_gtkdoc_markdown_parser_parse (ValadocGtkdocMarkdownParser* self,
3799                                       ValadocApiNode* element,
3800                                       ValadocApiGirSourceComment* gir_comment,
3801                                       ValadocGirMetaData* metadata,
3802                                       ValadocImporterInternalIdRegistrar* id_registrar,
3803                                       const gchar* this_name)
3804 {
3805 	ValadocGirMetaData* _tmp0_;
3806 	ValadocImporterInternalIdRegistrar* _tmp1_;
3807 	ValadocApiGirSourceComment* _tmp2_;
3808 	ValadocApiNode* _tmp3_;
3809 	ValadocContentComment* cmnt = NULL;
3810 	ValadocContentComment* _tmp4_;
3811 	ValadocContentComment* _tmp5_;
3812 	ValadocApiSourceComment* _tmp8_;
3813 	ValadocApiSourceComment* _tmp9_;
3814 	ValadocApiSourceComment* _tmp14_;
3815 	ValadocApiSourceComment* _tmp15_;
3816 	ValadocApiSourceComment* _tmp20_;
3817 	ValadocApiSourceComment* _tmp21_;
3818 	ValadocApiSourceComment* _tmp26_;
3819 	ValadocApiSourceComment* _tmp27_;
3820 	ValaMapIterator* iter = NULL;
3821 	ValaMapIterator* _tmp32_;
3822 	ValadocContentComment* result = NULL;
3823 	g_return_val_if_fail (self != NULL, NULL);
3824 	g_return_val_if_fail (element != NULL, NULL);
3825 	g_return_val_if_fail (gir_comment != NULL, NULL);
3826 	g_return_val_if_fail (metadata != NULL, NULL);
3827 	g_return_val_if_fail (id_registrar != NULL, NULL);
3828 	_tmp0_ = _g_object_ref0 (metadata);
3829 	_g_object_unref0 (self->priv->metadata);
3830 	self->priv->metadata = _tmp0_;
3831 	_tmp1_ = _valadoc_importer_internal_id_registrar_ref0 (id_registrar);
3832 	_valadoc_importer_internal_id_registrar_unref0 (self->priv->id_registrar);
3833 	self->priv->id_registrar = _tmp1_;
3834 	_tmp2_ = _valadoc_api_source_comment_ref0 (gir_comment);
3835 	_valadoc_api_source_comment_unref0 (self->priv->gir_comment);
3836 	self->priv->gir_comment = _tmp2_;
3837 	_tmp3_ = _g_object_ref0 (element);
3838 	_g_object_unref0 (self->priv->element);
3839 	self->priv->element = _tmp3_;
3840 	_tmp4_ = _valadoc_gtkdoc_markdown_parser_parse (self, (ValadocApiSourceComment*) gir_comment);
3841 	cmnt = _tmp4_;
3842 	_tmp5_ = cmnt;
3843 	if (_tmp5_ != NULL) {
3844 		ValadocContentComment* _tmp6_;
3845 		ValadocContentContentFactory* _tmp7_;
3846 		_tmp6_ = cmnt;
3847 		_tmp7_ = self->priv->_factory;
3848 		valadoc_importer_helper_extract_short_desc (_tmp6_, _tmp7_);
3849 	}
3850 	_tmp8_ = valadoc_api_gir_source_comment_get_deprecated_comment (gir_comment);
3851 	_tmp9_ = _tmp8_;
3852 	if (_tmp9_ != NULL) {
3853 		ValadocContentNote* note = NULL;
3854 		ValadocApiSourceComment* _tmp10_;
3855 		ValadocApiSourceComment* _tmp11_;
3856 		ValadocContentNote* _tmp12_;
3857 		ValadocContentNote* _tmp13_;
3858 		_tmp10_ = valadoc_api_gir_source_comment_get_deprecated_comment (gir_comment);
3859 		_tmp11_ = _tmp10_;
3860 		_tmp12_ = _valadoc_gtkdoc_markdown_parser_parse_note (self, _tmp11_);
3861 		note = _tmp12_;
3862 		_tmp13_ = note;
3863 		valadoc_gtkdoc_markdown_parser_add_note (self, &cmnt, _tmp13_);
3864 		_g_object_unref0 (note);
3865 	}
3866 	_tmp14_ = valadoc_api_gir_source_comment_get_version_comment (gir_comment);
3867 	_tmp15_ = _tmp14_;
3868 	if (_tmp15_ != NULL) {
3869 		ValadocContentNote* note = NULL;
3870 		ValadocApiSourceComment* _tmp16_;
3871 		ValadocApiSourceComment* _tmp17_;
3872 		ValadocContentNote* _tmp18_;
3873 		ValadocContentNote* _tmp19_;
3874 		_tmp16_ = valadoc_api_gir_source_comment_get_version_comment (gir_comment);
3875 		_tmp17_ = _tmp16_;
3876 		_tmp18_ = _valadoc_gtkdoc_markdown_parser_parse_note (self, _tmp17_);
3877 		note = _tmp18_;
3878 		_tmp19_ = note;
3879 		valadoc_gtkdoc_markdown_parser_add_note (self, &cmnt, _tmp19_);
3880 		_g_object_unref0 (note);
3881 	}
3882 	_tmp20_ = valadoc_api_gir_source_comment_get_stability_comment (gir_comment);
3883 	_tmp21_ = _tmp20_;
3884 	if (_tmp21_ != NULL) {
3885 		ValadocContentNote* note = NULL;
3886 		ValadocApiSourceComment* _tmp22_;
3887 		ValadocApiSourceComment* _tmp23_;
3888 		ValadocContentNote* _tmp24_;
3889 		ValadocContentNote* _tmp25_;
3890 		_tmp22_ = valadoc_api_gir_source_comment_get_stability_comment (gir_comment);
3891 		_tmp23_ = _tmp22_;
3892 		_tmp24_ = _valadoc_gtkdoc_markdown_parser_parse_note (self, _tmp23_);
3893 		note = _tmp24_;
3894 		_tmp25_ = note;
3895 		valadoc_gtkdoc_markdown_parser_add_note (self, &cmnt, _tmp25_);
3896 		_g_object_unref0 (note);
3897 	}
3898 	_tmp26_ = valadoc_api_gir_source_comment_get_return_comment (gir_comment);
3899 	_tmp27_ = _tmp26_;
3900 	if (_tmp27_ != NULL) {
3901 		ValadocContentTaglet* taglet = NULL;
3902 		ValadocApiSourceComment* _tmp28_;
3903 		ValadocApiSourceComment* _tmp29_;
3904 		ValadocContentTaglet* _tmp30_;
3905 		ValadocContentTaglet* _tmp31_;
3906 		_tmp28_ = valadoc_api_gir_source_comment_get_return_comment (gir_comment);
3907 		_tmp29_ = _tmp28_;
3908 		_tmp30_ = _valadoc_gtkdoc_markdown_parser_parse_block_taglet (self, _tmp29_, "return");
3909 		taglet = _tmp30_;
3910 		_tmp31_ = taglet;
3911 		valadoc_gtkdoc_markdown_parser_add_taglet (self, &cmnt, _tmp31_);
3912 		_g_object_unref0 (taglet);
3913 	}
3914 	_tmp32_ = valadoc_api_gir_source_comment_parameter_iterator (gir_comment);
3915 	iter = _tmp32_;
3916 	{
3917 		gboolean has_next = FALSE;
3918 		ValaMapIterator* _tmp33_;
3919 		_tmp33_ = iter;
3920 		has_next = vala_map_iterator_next (_tmp33_);
3921 		{
3922 			gboolean _tmp34_ = FALSE;
3923 			_tmp34_ = TRUE;
3924 			while (TRUE) {
3925 				ValadocTagletsParam* taglet = NULL;
3926 				ValaMapIterator* _tmp36_;
3927 				gpointer _tmp37_;
3928 				ValadocApiSourceComment* _tmp38_;
3929 				ValadocContentTaglet* _tmp39_;
3930 				ValadocTagletsParam* _tmp40_;
3931 				ValadocTagletsParam* _tmp41_;
3932 				gchar* param_name = NULL;
3933 				ValaMapIterator* _tmp42_;
3934 				gpointer _tmp43_;
3935 				ValadocTagletsParam* _tmp44_;
3936 				const gchar* _tmp45_;
3937 				const gchar* _tmp46_;
3938 				const gchar* _tmp47_;
3939 				ValadocTagletsParam* _tmp48_;
3940 				const gchar* _tmp49_;
3941 				ValadocTagletsParam* _tmp50_;
3942 				if (!_tmp34_) {
3943 					ValaMapIterator* _tmp35_;
3944 					_tmp35_ = iter;
3945 					has_next = vala_map_iterator_next (_tmp35_);
3946 				}
3947 				_tmp34_ = FALSE;
3948 				if (!has_next) {
3949 					break;
3950 				}
3951 				_tmp36_ = iter;
3952 				_tmp37_ = vala_map_iterator_get_value (_tmp36_);
3953 				_tmp38_ = (ValadocApiSourceComment*) _tmp37_;
3954 				_tmp39_ = _valadoc_gtkdoc_markdown_parser_parse_block_taglet (self, _tmp38_, "param");
3955 				_tmp40_ = VALADOC_TAGLETS_IS_PARAM (_tmp39_) ? ((ValadocTagletsParam*) _tmp39_) : NULL;
3956 				if (_tmp40_ == NULL) {
3957 					_g_object_unref0 (_tmp39_);
3958 				}
3959 				_tmp41_ = _tmp40_;
3960 				_valadoc_api_source_comment_unref0 (_tmp38_);
3961 				taglet = _tmp41_;
3962 				_tmp42_ = iter;
3963 				_tmp43_ = vala_map_iterator_get_key (_tmp42_);
3964 				param_name = (gchar*) _tmp43_;
3965 				_tmp44_ = taglet;
3966 				_tmp45_ = param_name;
3967 				_tmp46_ = valadoc_api_gir_source_comment_get_instance_param_name (gir_comment);
3968 				_tmp47_ = _tmp46_;
3969 				valadoc_taglets_param_set_is_c_self_param (_tmp44_, g_strcmp0 (_tmp45_, _tmp47_) == 0);
3970 				_tmp48_ = taglet;
3971 				_tmp49_ = param_name;
3972 				valadoc_taglets_param_set_parameter_name (_tmp48_, _tmp49_);
3973 				_tmp50_ = taglet;
3974 				valadoc_gtkdoc_markdown_parser_add_taglet (self, &cmnt, (ValadocContentTaglet*) _tmp50_);
3975 				_g_free0 (param_name);
3976 				_g_object_unref0 (taglet);
3977 			}
3978 		}
3979 	}
3980 	_g_object_unref0 (self->priv->metadata);
3981 	self->priv->metadata = NULL;
3982 	_valadoc_api_source_comment_unref0 (self->priv->gir_comment);
3983 	self->priv->gir_comment = NULL;
3984 	_valadoc_importer_internal_id_registrar_unref0 (self->priv->id_registrar);
3985 	self->priv->id_registrar = NULL;
3986 	_g_object_unref0 (self->priv->element);
3987 	self->priv->element = NULL;
3988 	result = cmnt;
3989 	_vala_map_iterator_unref0 (iter);
3990 	return result;
3991 }
3992 
3993 static void
valadoc_gtkdoc_markdown_parser_add_text(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)3994 valadoc_gtkdoc_markdown_parser_add_text (ValadocGtkdocMarkdownParser* self,
3995                                          ValadocToken* token,
3996                                          GError** error)
3997 {
3998 	const gchar* _tmp0_;
3999 	g_return_if_fail (self != NULL);
4000 	g_return_if_fail (token != NULL);
4001 	_tmp0_ = valadoc_token_to_string (token);
4002 	valadoc_gtkdoc_markdown_parser_add_content_string (self, _tmp0_);
4003 }
4004 
4005 static void
valadoc_gtkdoc_markdown_parser_add_value(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)4006 valadoc_gtkdoc_markdown_parser_add_value (ValadocGtkdocMarkdownParser* self,
4007                                           ValadocToken* token,
4008                                           GError** error)
4009 {
4010 	const gchar* _tmp0_;
4011 	const gchar* _tmp1_;
4012 	const gchar* _tmp2_;
4013 	const gchar* _tmp3_;
4014 	g_return_if_fail (self != NULL);
4015 	g_return_if_fail (token != NULL);
4016 	_tmp0_ = valadoc_token_get_value (token);
4017 	_tmp1_ = _tmp0_;
4018 	_vala_assert (_tmp1_ != NULL, "token.value != null");
4019 	_tmp2_ = valadoc_token_get_value (token);
4020 	_tmp3_ = _tmp2_;
4021 	valadoc_gtkdoc_markdown_parser_add_content_string (self, _tmp3_);
4022 }
4023 
4024 static void
valadoc_gtkdoc_markdown_parser_add_content_string(ValadocGtkdocMarkdownParser * self,const gchar * str)4025 valadoc_gtkdoc_markdown_parser_add_content_string (ValadocGtkdocMarkdownParser* self,
4026                                                    const gchar* str)
4027 {
4028 	ValadocContentText* text = NULL;
4029 	GObject* _tmp0_;
4030 	ValadocContentText* _tmp1_;
4031 	ValadocContentText* _tmp2_;
4032 	ValadocContentText* _tmp6_;
4033 	ValadocContentText* _tmp7_;
4034 	const gchar* _tmp8_;
4035 	const gchar* _tmp9_;
4036 	gchar* _tmp10_;
4037 	gchar* _tmp11_;
4038 	g_return_if_fail (self != NULL);
4039 	g_return_if_fail (str != NULL);
4040 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
4041 	_tmp1_ = VALADOC_CONTENT_IS_TEXT (_tmp0_) ? ((ValadocContentText*) _tmp0_) : NULL;
4042 	if (_tmp1_ == NULL) {
4043 		_g_object_unref0 (_tmp0_);
4044 	}
4045 	text = _tmp1_;
4046 	_tmp2_ = text;
4047 	if (_tmp2_ == NULL) {
4048 		ValadocContentContentFactory* _tmp3_;
4049 		ValadocContentText* _tmp4_;
4050 		ValadocContentText* _tmp5_;
4051 		_tmp3_ = self->priv->_factory;
4052 		_tmp4_ = valadoc_content_content_factory_create_text (_tmp3_, NULL);
4053 		_g_object_unref0 (text);
4054 		text = _tmp4_;
4055 		_tmp5_ = text;
4056 		valadoc_gtkdoc_markdown_parser_push (self, (GObject*) _tmp5_);
4057 	}
4058 	_tmp6_ = text;
4059 	_tmp7_ = text;
4060 	_tmp8_ = valadoc_content_text_get_content (_tmp7_);
4061 	_tmp9_ = _tmp8_;
4062 	_tmp10_ = g_strconcat (_tmp9_, str, NULL);
4063 	_tmp11_ = _tmp10_;
4064 	valadoc_content_text_set_content (_tmp7_, _tmp11_);
4065 	_g_free0 (_tmp11_);
4066 	_g_object_unref0 (text);
4067 }
4068 
4069 static void
valadoc_gtkdoc_markdown_parser_add_symbol_link(ValadocGtkdocMarkdownParser * self,const gchar * symbol,gboolean accept_plural)4070 valadoc_gtkdoc_markdown_parser_add_symbol_link (ValadocGtkdocMarkdownParser* self,
4071                                                 const gchar* symbol,
4072                                                 gboolean accept_plural)
4073 {
4074 	ValadocTagletsLink* taglet = NULL;
4075 	ValadocTagletsLink* _tmp0_;
4076 	ValadocContentRun* run = NULL;
4077 	ValadocContentContentFactory* _tmp1_;
4078 	ValadocContentRun* _tmp2_;
4079 	ValaList* _tmp3_;
4080 	ValaList* _tmp4_;
4081 	g_return_if_fail (self != NULL);
4082 	g_return_if_fail (symbol != NULL);
4083 	_tmp0_ = valadoc_taglets_link_new ();
4084 	taglet = _tmp0_;
4085 	valadoc_taglets_link_set_c_accept_plural (taglet, accept_plural);
4086 	valadoc_taglets_link_set_symbol_name (taglet, symbol);
4087 	_tmp1_ = self->priv->_factory;
4088 	_tmp2_ = valadoc_content_content_factory_create_run (_tmp1_, VALADOC_CONTENT_RUN_STYLE_NONE);
4089 	run = _tmp2_;
4090 	_tmp3_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) run);
4091 	_tmp4_ = _tmp3_;
4092 	vala_collection_add ((ValaCollection*) _tmp4_, (ValadocContentInline*) taglet);
4093 	valadoc_gtkdoc_markdown_parser_push (self, (GObject*) run);
4094 	_g_object_unref0 (run);
4095 	_g_object_unref0 (taglet);
4096 }
4097 
4098 static void
valadoc_gtkdoc_markdown_parser_preserve_token(ValadocGtkdocMarkdownParser * self,ValadocToken * token,GError ** error)4099 valadoc_gtkdoc_markdown_parser_preserve_token (ValadocGtkdocMarkdownParser* self,
4100                                                ValadocToken* token,
4101                                                GError** error)
4102 {
4103 	ValadocToken* _tmp0_;
4104 	ValadocToken* _tmp1_;
4105 	g_return_if_fail (self != NULL);
4106 	g_return_if_fail (token != NULL);
4107 	_tmp0_ = self->priv->preserved_token;
4108 	_vala_assert (_tmp0_ == NULL, "preserved_token == null");
4109 	_tmp1_ = _g_object_ref0 (token);
4110 	_g_object_unref0 (self->priv->preserved_token);
4111 	self->priv->preserved_token = _tmp1_;
4112 }
4113 
4114 static gchar*
valadoc_gtkdoc_markdown_parser_pop_preserved_link(ValadocGtkdocMarkdownParser * self)4115 valadoc_gtkdoc_markdown_parser_pop_preserved_link (ValadocGtkdocMarkdownParser* self)
4116 {
4117 	ValadocToken* _tmp0_;
4118 	ValadocToken* _link_token = NULL;
4119 	ValadocToken* _tmp1_;
4120 	ValadocToken* _tmp2_;
4121 	ValadocTokenType* _tmp3_;
4122 	ValadocTokenType* _tmp4_;
4123 	ValadocTokenType* _tmp5_;
4124 	ValadocToken* _tmp10_;
4125 	const gchar* _tmp11_;
4126 	const gchar* _tmp12_;
4127 	ValadocToken* _tmp17_;
4128 	const gchar* _tmp18_;
4129 	const gchar* _tmp19_;
4130 	gchar* _tmp20_;
4131 	gchar* result = NULL;
4132 	g_return_val_if_fail (self != NULL, NULL);
4133 	_tmp0_ = self->priv->preserved_token;
4134 	_vala_assert (_tmp0_ != NULL, "preserved_token != null");
4135 	_tmp1_ = self->priv->preserved_token;
4136 	self->priv->preserved_token = NULL;
4137 	_link_token = _tmp1_;
4138 	_tmp2_ = _link_token;
4139 	_tmp3_ = valadoc_token_get_token_type (_tmp2_);
4140 	_tmp4_ = _tmp3_;
4141 	_tmp5_ = valadoc_token_type_MARKDOWN_MAIL;
4142 	if (_tmp4_ == _tmp5_) {
4143 		ValadocToken* _tmp6_;
4144 		const gchar* _tmp7_;
4145 		const gchar* _tmp8_;
4146 		gchar* _tmp9_;
4147 		_tmp6_ = _link_token;
4148 		_tmp7_ = valadoc_token_get_value (_tmp6_);
4149 		_tmp8_ = _tmp7_;
4150 		_tmp9_ = g_strconcat ("mailto:", _tmp8_, NULL);
4151 		result = _tmp9_;
4152 		_g_object_unref0 (_link_token);
4153 		return result;
4154 	}
4155 	_tmp10_ = _link_token;
4156 	_tmp11_ = valadoc_token_get_value (_tmp10_);
4157 	_tmp12_ = _tmp11_;
4158 	if (_tmp12_ != NULL) {
4159 		ValadocToken* _tmp13_;
4160 		const gchar* _tmp14_;
4161 		const gchar* _tmp15_;
4162 		gchar* _tmp16_;
4163 		_tmp13_ = _link_token;
4164 		_tmp14_ = valadoc_token_get_value (_tmp13_);
4165 		_tmp15_ = _tmp14_;
4166 		_tmp16_ = g_strdup (_tmp15_);
4167 		result = _tmp16_;
4168 		_g_object_unref0 (_link_token);
4169 		return result;
4170 	}
4171 	_tmp17_ = _link_token;
4172 	_tmp18_ = valadoc_token_get_word (_tmp17_);
4173 	_tmp19_ = _tmp18_;
4174 	_tmp20_ = g_strdup (_tmp19_);
4175 	result = _tmp20_;
4176 	_g_object_unref0 (_link_token);
4177 	return result;
4178 }
4179 
4180 static gchar*
valadoc_gtkdoc_markdown_parser_pop_preserved_path(ValadocGtkdocMarkdownParser * self)4181 valadoc_gtkdoc_markdown_parser_pop_preserved_path (ValadocGtkdocMarkdownParser* self)
4182 {
4183 	ValadocToken* _tmp0_;
4184 	ValadocToken* _path_token = NULL;
4185 	ValadocToken* _tmp1_;
4186 	const gchar* _tmp2_ = NULL;
4187 	ValadocToken* _tmp3_;
4188 	const gchar* _tmp4_;
4189 	const gchar* _tmp5_;
4190 	gchar* _tmp9_;
4191 	gchar* result = NULL;
4192 	g_return_val_if_fail (self != NULL, NULL);
4193 	_tmp0_ = self->priv->preserved_token;
4194 	_vala_assert (_tmp0_ != NULL, "preserved_token != null");
4195 	_tmp1_ = self->priv->preserved_token;
4196 	self->priv->preserved_token = NULL;
4197 	_path_token = _tmp1_;
4198 	_tmp3_ = _path_token;
4199 	_tmp4_ = valadoc_token_get_word (_tmp3_);
4200 	_tmp5_ = _tmp4_;
4201 	_tmp2_ = _tmp5_;
4202 	if (_tmp2_ == NULL) {
4203 		ValadocToken* _tmp6_;
4204 		const gchar* _tmp7_;
4205 		const gchar* _tmp8_;
4206 		_tmp6_ = _path_token;
4207 		_tmp7_ = valadoc_token_get_value (_tmp6_);
4208 		_tmp8_ = _tmp7_;
4209 		_tmp2_ = _tmp8_;
4210 	}
4211 	_tmp9_ = g_strdup (_tmp2_);
4212 	result = _tmp9_;
4213 	_g_object_unref0 (_path_token);
4214 	return result;
4215 }
4216 
4217 static inline gchar*
valadoc_gtkdoc_markdown_parser_run_to_string(ValadocGtkdocMarkdownParser * self,ValadocContentRun * run,const gchar * rule_name,GError ** error)4218 valadoc_gtkdoc_markdown_parser_run_to_string (ValadocGtkdocMarkdownParser* self,
4219                                               ValadocContentRun* run,
4220                                               const gchar* rule_name,
4221                                               GError** error)
4222 {
4223 	GString* builder = NULL;
4224 	GString* _tmp0_;
4225 	gchar* _tmp1_;
4226 	GError* _inner_error0_ = NULL;
4227 	gchar* result = NULL;
4228 	g_return_val_if_fail (self != NULL, NULL);
4229 	g_return_val_if_fail (run != NULL, NULL);
4230 	g_return_val_if_fail (rule_name != NULL, NULL);
4231 	_tmp0_ = g_string_new ("");
4232 	builder = _tmp0_;
4233 	valadoc_gtkdoc_markdown_parser_inline_to_string (self, (ValadocContentInline*) run, rule_name, builder, &_inner_error0_);
4234 	if (G_UNLIKELY (_inner_error0_ != NULL)) {
4235 		g_propagate_error (error, _inner_error0_);
4236 		_g_string_free0 (builder);
4237 		return NULL;
4238 	}
4239 	_tmp1_ = builder->str;
4240 	builder->str = NULL;
4241 	result = _tmp1_;
4242 	_g_string_free0 (builder);
4243 	return result;
4244 }
4245 
4246 static void
valadoc_gtkdoc_markdown_parser_inline_to_string(ValadocGtkdocMarkdownParser * self,ValadocContentInline * element,const gchar * rule_name,GString * builder,GError ** error)4247 valadoc_gtkdoc_markdown_parser_inline_to_string (ValadocGtkdocMarkdownParser* self,
4248                                                  ValadocContentInline* element,
4249                                                  const gchar* rule_name,
4250                                                  GString* builder,
4251                                                  GError** error)
4252 {
4253 	GError* _inner_error0_ = NULL;
4254 	g_return_if_fail (self != NULL);
4255 	g_return_if_fail (element != NULL);
4256 	g_return_if_fail (rule_name != NULL);
4257 	if (VALADOC_CONTENT_IS_RUN (element)) {
4258 		ValadocContentRun* run = NULL;
4259 		ValadocContentRun* _tmp0_;
4260 		_tmp0_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (element, VALADOC_CONTENT_TYPE_RUN, ValadocContentRun));
4261 		run = _tmp0_;
4262 		{
4263 			ValaList* _item_list = NULL;
4264 			ValadocContentRun* _tmp1_;
4265 			ValaList* _tmp2_;
4266 			ValaList* _tmp3_;
4267 			ValaList* _tmp4_;
4268 			gint _item_size = 0;
4269 			ValaList* _tmp5_;
4270 			gint _tmp6_;
4271 			gint _tmp7_;
4272 			gint _item_index = 0;
4273 			_tmp1_ = run;
4274 			_tmp2_ = valadoc_content_inline_content_get_content ((ValadocContentInlineContent*) _tmp1_);
4275 			_tmp3_ = _tmp2_;
4276 			_tmp4_ = _vala_iterable_ref0 (_tmp3_);
4277 			_item_list = _tmp4_;
4278 			_tmp5_ = _item_list;
4279 			_tmp6_ = vala_collection_get_size ((ValaCollection*) _tmp5_);
4280 			_tmp7_ = _tmp6_;
4281 			_item_size = _tmp7_;
4282 			_item_index = -1;
4283 			while (TRUE) {
4284 				gint _tmp8_;
4285 				gint _tmp9_;
4286 				ValadocContentInline* item = NULL;
4287 				ValaList* _tmp10_;
4288 				gpointer _tmp11_;
4289 				ValadocContentInline* _tmp12_;
4290 				_item_index = _item_index + 1;
4291 				_tmp8_ = _item_index;
4292 				_tmp9_ = _item_size;
4293 				if (!(_tmp8_ < _tmp9_)) {
4294 					break;
4295 				}
4296 				_tmp10_ = _item_list;
4297 				_tmp11_ = vala_list_get (_tmp10_, _item_index);
4298 				item = (ValadocContentInline*) _tmp11_;
4299 				_tmp12_ = item;
4300 				valadoc_gtkdoc_markdown_parser_inline_to_string (self, _tmp12_, rule_name, builder, &_inner_error0_);
4301 				if (G_UNLIKELY (_inner_error0_ != NULL)) {
4302 					g_propagate_error (error, _inner_error0_);
4303 					_g_object_unref0 (item);
4304 					_vala_iterable_unref0 (_item_list);
4305 					_g_object_unref0 (run);
4306 					return;
4307 				}
4308 				_g_object_unref0 (item);
4309 			}
4310 			_vala_iterable_unref0 (_item_list);
4311 		}
4312 		_g_object_unref0 (run);
4313 	} else {
4314 		if (VALADOC_CONTENT_IS_TEXT (element)) {
4315 			ValadocContentText* text = NULL;
4316 			ValadocContentText* _tmp13_;
4317 			ValadocContentText* _tmp14_;
4318 			const gchar* _tmp15_;
4319 			const gchar* _tmp16_;
4320 			_tmp13_ = _g_object_ref0 (G_TYPE_CHECK_INSTANCE_CAST (element, VALADOC_CONTENT_TYPE_TEXT, ValadocContentText));
4321 			text = _tmp13_;
4322 			_tmp14_ = text;
4323 			_tmp15_ = valadoc_content_text_get_content (_tmp14_);
4324 			_tmp16_ = _tmp15_;
4325 			g_string_append (builder, _tmp16_);
4326 			_g_object_unref0 (text);
4327 		} else {
4328 			if (VALADOC_CONTENT_IS_EMBEDDED (element)) {
4329 				GError* _tmp17_;
4330 				_tmp17_ = g_error_new (VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR, VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR_UNEXPECTED_ELEMENT, "Unexpected tag: <image> in `%s'", rule_name);
4331 				_inner_error0_ = _tmp17_;
4332 				g_propagate_error (error, _inner_error0_);
4333 				return;
4334 			} else {
4335 				if (VALADOC_CONTENT_IS_LINK (element)) {
4336 					GError* _tmp18_;
4337 					_tmp18_ = g_error_new (VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR, VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR_UNEXPECTED_ELEMENT, "Unexpected tag: <link> in `%s'", rule_name);
4338 					_inner_error0_ = _tmp18_;
4339 					g_propagate_error (error, _inner_error0_);
4340 					return;
4341 				} else {
4342 					if (VALADOC_CONTENT_IS_SOURCE_CODE (element)) {
4343 						GError* _tmp19_;
4344 						_tmp19_ = g_error_new (VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR, VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR_UNEXPECTED_ELEMENT, "Unexpected tag: `|[' in `%s'", rule_name);
4345 						_inner_error0_ = _tmp19_;
4346 						g_propagate_error (error, _inner_error0_);
4347 						return;
4348 					} else {
4349 						GError* _tmp20_;
4350 						_tmp20_ = g_error_new (VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR, VALADOC_GTKDOC_CONTENT_TO_STRING_ERROR_UNEXPECTED_ELEMENT, "Unexpected tag in `%s''", rule_name);
4351 						_inner_error0_ = _tmp20_;
4352 						g_propagate_error (error, _inner_error0_);
4353 						return;
4354 					}
4355 				}
4356 			}
4357 		}
4358 	}
4359 }
4360 
4361 static gchar
string_get(const gchar * self,glong index)4362 string_get (const gchar* self,
4363             glong index)
4364 {
4365 	gchar _tmp0_;
4366 	gchar result = '\0';
4367 	g_return_val_if_fail (self != NULL, '\0');
4368 	_tmp0_ = ((gchar*) self)[index];
4369 	result = _tmp0_;
4370 	return result;
4371 }
4372 
4373 static gboolean
valadoc_gtkdoc_markdown_parser_is_literal(ValadocGtkdocMarkdownParser * self,const gchar * str)4374 valadoc_gtkdoc_markdown_parser_is_literal (ValadocGtkdocMarkdownParser* self,
4375                                            const gchar* str)
4376 {
4377 	gboolean result = FALSE;
4378 	g_return_val_if_fail (self != NULL, FALSE);
4379 	g_return_val_if_fail (str != NULL, FALSE);
4380 	if (g_strcmp0 (str, "TRUE") == 0) {
4381 		result = TRUE;
4382 		return result;
4383 	}
4384 	if (g_strcmp0 (str, "FALSE") == 0) {
4385 		result = TRUE;
4386 		return result;
4387 	}
4388 	if (g_strcmp0 (str, "NULL") == 0) {
4389 		result = TRUE;
4390 		return result;
4391 	}
4392 	if (g_ascii_isdigit (string_get (str, (glong) 0))) {
4393 		result = TRUE;
4394 		return result;
4395 	}
4396 	result = TRUE;
4397 	return result;
4398 }
4399 
4400 static gboolean
valadoc_gtkdoc_markdown_parser_is_error_parameter(ValadocGtkdocMarkdownParser * self,const gchar * name)4401 valadoc_gtkdoc_markdown_parser_is_error_parameter (ValadocGtkdocMarkdownParser* self,
4402                                                    const gchar* name)
4403 {
4404 	gboolean _tmp0_ = FALSE;
4405 	ValadocApiNode* _tmp1_;
4406 	gboolean _tmp2_ = FALSE;
4407 	ValadocApiNode* _tmp3_;
4408 	ValadocApiNode* _tmp5_;
4409 	ValadocApiNodeType* _tmp6_;
4410 	ValadocApiNodeType* _tmp7_;
4411 	gint _tmp7__length1;
4412 	ValaList* _tmp8_;
4413 	ValaList* _tmp9_;
4414 	gint _tmp10_;
4415 	gint _tmp11_;
4416 	gboolean _tmp12_;
4417 	gboolean result = FALSE;
4418 	g_return_val_if_fail (self != NULL, FALSE);
4419 	g_return_val_if_fail (name != NULL, FALSE);
4420 	_tmp1_ = self->priv->element;
4421 	if (_tmp1_ == NULL) {
4422 		_tmp0_ = TRUE;
4423 	} else {
4424 		_tmp0_ = g_strcmp0 (name, "error") != 0;
4425 	}
4426 	if (_tmp0_) {
4427 		result = FALSE;
4428 		return result;
4429 	}
4430 	_tmp3_ = self->priv->element;
4431 	if (VALADOC_API_IS_METHOD (_tmp3_)) {
4432 		_tmp2_ = TRUE;
4433 	} else {
4434 		ValadocApiNode* _tmp4_;
4435 		_tmp4_ = self->priv->element;
4436 		_tmp2_ = VALADOC_API_IS_DELEGATE (_tmp4_);
4437 	}
4438 	if (!_tmp2_) {
4439 		result = FALSE;
4440 		return result;
4441 	}
4442 	_tmp5_ = self->priv->element;
4443 	_tmp6_ = g_new0 (ValadocApiNodeType, 2);
4444 	_tmp6_[0] = VALADOC_API_NODE_TYPE_ERROR_DOMAIN;
4445 	_tmp6_[1] = VALADOC_API_NODE_TYPE_CLASS;
4446 	_tmp7_ = _tmp6_;
4447 	_tmp7__length1 = 2;
4448 	_tmp8_ = valadoc_api_node_get_children_by_types (_tmp5_, _tmp7_, (gint) 2, TRUE);
4449 	_tmp9_ = _tmp8_;
4450 	_tmp10_ = vala_collection_get_size ((ValaCollection*) _tmp9_);
4451 	_tmp11_ = _tmp10_;
4452 	_tmp12_ = _tmp11_ > 0;
4453 	_vala_iterable_unref0 (_tmp9_);
4454 	_tmp7_ = (g_free (_tmp7_), NULL);
4455 	result = _tmp12_;
4456 	return result;
4457 }
4458 
4459 static gchar*
valadoc_gtkdoc_markdown_parser_real_resolve(ValadocResourceLocator * base,const gchar * path)4460 valadoc_gtkdoc_markdown_parser_real_resolve (ValadocResourceLocator* base,
4461                                              const gchar* path)
4462 {
4463 	ValadocGtkdocMarkdownParser * self;
4464 	gchar* _tmp0_;
4465 	gchar* result = NULL;
4466 	self = (ValadocGtkdocMarkdownParser*) base;
4467 	g_return_val_if_fail (path != NULL, NULL);
4468 	_tmp0_ = g_strdup (path);
4469 	result = _tmp0_;
4470 	return result;
4471 }
4472 
4473 static void
valadoc_gtkdoc_markdown_parser_push(ValadocGtkdocMarkdownParser * self,GObject * element)4474 valadoc_gtkdoc_markdown_parser_push (ValadocGtkdocMarkdownParser* self,
4475                                      GObject* element)
4476 {
4477 	ValaArrayList* _tmp0_;
4478 	g_return_if_fail (self != NULL);
4479 	g_return_if_fail (element != NULL);
4480 	_tmp0_ = self->priv->_stack;
4481 	vala_collection_add ((ValaCollection*) _tmp0_, element);
4482 }
4483 
4484 static GObject*
valadoc_gtkdoc_markdown_parser_peek(ValadocGtkdocMarkdownParser * self,gint offset)4485 valadoc_gtkdoc_markdown_parser_peek (ValadocGtkdocMarkdownParser* self,
4486                                      gint offset)
4487 {
4488 	ValaArrayList* _tmp0_;
4489 	gint _tmp1_;
4490 	gint _tmp2_;
4491 	ValaArrayList* _tmp3_;
4492 	ValaArrayList* _tmp4_;
4493 	gint _tmp5_;
4494 	gint _tmp6_;
4495 	gpointer _tmp7_;
4496 	GObject* result = NULL;
4497 	g_return_val_if_fail (self != NULL, NULL);
4498 	_tmp0_ = self->priv->_stack;
4499 	_tmp1_ = vala_collection_get_size ((ValaCollection*) _tmp0_);
4500 	_tmp2_ = _tmp1_;
4501 	_vala_assert (_tmp2_ >= (-offset), "_stack.size >= - offset");
4502 	_tmp3_ = self->priv->_stack;
4503 	_tmp4_ = self->priv->_stack;
4504 	_tmp5_ = vala_collection_get_size ((ValaCollection*) _tmp4_);
4505 	_tmp6_ = _tmp5_;
4506 	_tmp7_ = vala_list_get ((ValaList*) _tmp3_, _tmp6_ + offset);
4507 	result = (GObject*) _tmp7_;
4508 	return result;
4509 }
4510 
4511 static GObject*
valadoc_gtkdoc_markdown_parser_pop(ValadocGtkdocMarkdownParser * self)4512 valadoc_gtkdoc_markdown_parser_pop (ValadocGtkdocMarkdownParser* self)
4513 {
4514 	GObject* node = NULL;
4515 	GObject* _tmp0_;
4516 	ValaArrayList* _tmp1_;
4517 	ValaArrayList* _tmp2_;
4518 	gint _tmp3_;
4519 	gint _tmp4_;
4520 	gpointer _tmp5_;
4521 	GObject* _tmp6_;
4522 	GObject* result = NULL;
4523 	g_return_val_if_fail (self != NULL, NULL);
4524 	_tmp0_ = valadoc_gtkdoc_markdown_parser_peek (self, -1);
4525 	node = _tmp0_;
4526 	_tmp1_ = self->priv->_stack;
4527 	_tmp2_ = self->priv->_stack;
4528 	_tmp3_ = vala_collection_get_size ((ValaCollection*) _tmp2_);
4529 	_tmp4_ = _tmp3_;
4530 	_tmp5_ = vala_list_remove_at ((ValaList*) _tmp1_, _tmp4_ - 1);
4531 	_tmp6_ = (GObject*) _tmp5_;
4532 	_g_object_unref0 (_tmp6_);
4533 	result = node;
4534 	return result;
4535 }
4536 
4537 static inline gchar*
valadoc_gtkdoc_markdown_parser_fix_resource_path(ValadocGtkdocMarkdownParser * self,const gchar * path)4538 valadoc_gtkdoc_markdown_parser_fix_resource_path (ValadocGtkdocMarkdownParser* self,
4539                                                   const gchar* path)
4540 {
4541 	ValadocGirMetaData* _tmp0_;
4542 	gchar* _tmp1_;
4543 	gchar* result = NULL;
4544 	g_return_val_if_fail (self != NULL, NULL);
4545 	g_return_val_if_fail (path != NULL, NULL);
4546 	_tmp0_ = self->priv->metadata;
4547 	_tmp1_ = valadoc_gir_meta_data_get_resource_path (_tmp0_, path);
4548 	result = _tmp1_;
4549 	return result;
4550 }
4551 
4552 static void
valadoc_gtkdoc_markdown_parser_class_init(ValadocGtkdocMarkdownParserClass * klass,gpointer klass_data)4553 valadoc_gtkdoc_markdown_parser_class_init (ValadocGtkdocMarkdownParserClass * klass,
4554                                            gpointer klass_data)
4555 {
4556 	valadoc_gtkdoc_markdown_parser_parent_class = g_type_class_peek_parent (klass);
4557 	g_type_class_adjust_private_offset (klass, &ValadocGtkdocMarkdownParser_private_offset);
4558 	G_OBJECT_CLASS (klass)->finalize = valadoc_gtkdoc_markdown_parser_finalize;
4559 }
4560 
4561 static void
valadoc_gtkdoc_markdown_parser_valadoc_resource_locator_interface_init(ValadocResourceLocatorIface * iface,gpointer iface_data)4562 valadoc_gtkdoc_markdown_parser_valadoc_resource_locator_interface_init (ValadocResourceLocatorIface * iface,
4563                                                                         gpointer iface_data)
4564 {
4565 	valadoc_gtkdoc_markdown_parser_valadoc_resource_locator_parent_iface = g_type_interface_peek_parent (iface);
4566 	iface->resolve = (gchar* (*) (ValadocResourceLocator*, const gchar*)) valadoc_gtkdoc_markdown_parser_real_resolve;
4567 }
4568 
4569 static void
valadoc_gtkdoc_markdown_parser_instance_init(ValadocGtkdocMarkdownParser * self,gpointer klass)4570 valadoc_gtkdoc_markdown_parser_instance_init (ValadocGtkdocMarkdownParser * self,
4571                                               gpointer klass)
4572 {
4573 	GEqualFunc _tmp0_;
4574 	ValaArrayList* _tmp1_;
4575 	self->priv = valadoc_gtkdoc_markdown_parser_get_instance_private (self);
4576 	_tmp0_ = g_direct_equal;
4577 	_tmp1_ = vala_array_list_new (G_TYPE_OBJECT, (GBoxedCopyFunc) g_object_ref, (GDestroyNotify) g_object_unref, _tmp0_);
4578 	self->priv->_stack = _tmp1_;
4579 	self->priv->preserved_token = NULL;
4580 }
4581 
4582 static void
valadoc_gtkdoc_markdown_parser_finalize(GObject * obj)4583 valadoc_gtkdoc_markdown_parser_finalize (GObject * obj)
4584 {
4585 	ValadocGtkdocMarkdownParser * self;
4586 	self = G_TYPE_CHECK_INSTANCE_CAST (obj, VALADOC_GTKDOC_TYPE_MARKDOWN_PARSER, ValadocGtkdocMarkdownParser);
4587 	_valadoc_parser_unref0 (self->priv->parser);
4588 	_g_object_unref0 (self->priv->_factory);
4589 	_g_object_unref0 (self->priv->_settings);
4590 	_g_object_unref0 (self->priv->_reporter);
4591 	_valadoc_api_tree_unref0 (self->priv->_tree);
4592 	_vala_iterable_unref0 (self->priv->_stack);
4593 	_g_object_unref0 (self->priv->preserved_token);
4594 	_g_regex_unref0 (self->priv->regex_source_lang);
4595 	_valadoc_importer_internal_id_registrar_unref0 (self->priv->id_registrar);
4596 	_g_object_unref0 (self->priv->metadata);
4597 	_valadoc_api_source_comment_unref0 (self->priv->gir_comment);
4598 	_g_object_unref0 (self->priv->element);
4599 	G_OBJECT_CLASS (valadoc_gtkdoc_markdown_parser_parent_class)->finalize (obj);
4600 }
4601 
4602 static GType
valadoc_gtkdoc_markdown_parser_get_type_once(void)4603 valadoc_gtkdoc_markdown_parser_get_type_once (void)
4604 {
4605 	static const GTypeInfo g_define_type_info = { sizeof (ValadocGtkdocMarkdownParserClass), (GBaseInitFunc) NULL, (GBaseFinalizeFunc) NULL, (GClassInitFunc) valadoc_gtkdoc_markdown_parser_class_init, (GClassFinalizeFunc) NULL, NULL, sizeof (ValadocGtkdocMarkdownParser), 0, (GInstanceInitFunc) valadoc_gtkdoc_markdown_parser_instance_init, NULL };
4606 	static const GInterfaceInfo valadoc_resource_locator_info = { (GInterfaceInitFunc) valadoc_gtkdoc_markdown_parser_valadoc_resource_locator_interface_init, (GInterfaceFinalizeFunc) NULL, NULL};
4607 	GType valadoc_gtkdoc_markdown_parser_type_id;
4608 	valadoc_gtkdoc_markdown_parser_type_id = g_type_register_static (G_TYPE_OBJECT, "ValadocGtkdocMarkdownParser", &g_define_type_info, 0);
4609 	g_type_add_interface_static (valadoc_gtkdoc_markdown_parser_type_id, VALADOC_TYPE_RESOURCE_LOCATOR, &valadoc_resource_locator_info);
4610 	ValadocGtkdocMarkdownParser_private_offset = g_type_add_instance_private (valadoc_gtkdoc_markdown_parser_type_id, sizeof (ValadocGtkdocMarkdownParserPrivate));
4611 	return valadoc_gtkdoc_markdown_parser_type_id;
4612 }
4613 
4614 GType
valadoc_gtkdoc_markdown_parser_get_type(void)4615 valadoc_gtkdoc_markdown_parser_get_type (void)
4616 {
4617 	static volatile gsize valadoc_gtkdoc_markdown_parser_type_id__volatile = 0;
4618 	if (g_once_init_enter (&valadoc_gtkdoc_markdown_parser_type_id__volatile)) {
4619 		GType valadoc_gtkdoc_markdown_parser_type_id;
4620 		valadoc_gtkdoc_markdown_parser_type_id = valadoc_gtkdoc_markdown_parser_get_type_once ();
4621 		g_once_init_leave (&valadoc_gtkdoc_markdown_parser_type_id__volatile, valadoc_gtkdoc_markdown_parser_type_id);
4622 	}
4623 	return valadoc_gtkdoc_markdown_parser_type_id__volatile;
4624 }
4625 
4626 GQuark
valadoc_gtkdoc_content_to_string_error_quark(void)4627 valadoc_gtkdoc_content_to_string_error_quark (void)
4628 {
4629 	return g_quark_from_static_string ("valadoc-gtkdoc-content-to-string-error-quark");
4630 }
4631 
4632 static void
_vala_array_destroy(gpointer array,gint array_length,GDestroyNotify destroy_func)4633 _vala_array_destroy (gpointer array,
4634                      gint array_length,
4635                      GDestroyNotify destroy_func)
4636 {
4637 	if ((array != NULL) && (destroy_func != NULL)) {
4638 		gint i;
4639 		for (i = 0; i < array_length; i = i + 1) {
4640 			if (((gpointer*) array)[i] != NULL) {
4641 				destroy_func (((gpointer*) array)[i]);
4642 			}
4643 		}
4644 	}
4645 }
4646 
4647 static void
_vala_array_free(gpointer array,gint array_length,GDestroyNotify destroy_func)4648 _vala_array_free (gpointer array,
4649                   gint array_length,
4650                   GDestroyNotify destroy_func)
4651 {
4652 	_vala_array_destroy (array, array_length, destroy_func);
4653 	g_free (array);
4654 }
4655 
4656