devhelp-markupwriter.vala \
ctyperesolver.vala \
gtkdocrenderer.vala \
+ documentation/commentparser.vala \
documentation/commentscanner.vala \
documentation/documentation.vala \
documentation/documentationparser.vala \
--- /dev/null
+/* commentparser.vala
+ *
+ * Copyright 2024 Collabora Ltd. (https://collabora.com)
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * Author:
+ * Corentin Noël <corentin.noel@collabora.com>
+ */
+
+using Valadoc.Content;
+using Valadoc;
+
+public interface CommentParser : GLib.Object {
+ public abstract Comment? parse (Api.Node element, Api.GirSourceComment gir_comment, GirMetaData gir_metadata, Importer.InternalIdRegistrar id_registrar);
+}
using Valadoc.Content;
using Valadoc.Gtkdoc;
-public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator {
+public class Valadoc.Gtkdoc.Parser : Object, ResourceLocator, CommentParser {
private Scanner scanner = new Scanner ();
private Token current;
using Valadoc.Content;
using Valadoc;
-public class Valadoc.Gtkdoc.MarkdownParser : Object, ResourceLocator {
+public class Valadoc.Gtkdoc.MarkdownParser : Object, ResourceLocator, CommentParser {
private Valadoc.Parser parser;
private Content.ContentFactory _factory;