]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
libvaladoc: Avoid reparsing of comments
authorFlorian Brosch <flo.brosch@gmail.com>
Sat, 21 Jul 2012 16:51:03 +0000 (18:51 +0200)
committerFlorian Brosch <flo.brosch@gmail.com>
Sat, 21 Jul 2012 17:11:23 +0000 (19:11 +0200)
src/libvaladoc/api/enumvalue.vala
src/libvaladoc/api/errorcode.vala
src/libvaladoc/api/member.vala
src/libvaladoc/api/namespace.vala
src/libvaladoc/api/typesymbol.vala
src/libvaladoc/taglets/tagletlink.vala

index d63af2167883545bdad1237316f86de79ecd8006..b71559533fc11949dcda6300451f8a6708b55a60 100644 (file)
@@ -56,6 +56,10 @@ public class Valadoc.Api.EnumValue: Symbol {
         * {@inheritDoc}
         */
        internal override void process_comments (Settings settings, DocumentationParser parser) {
+               if (documentation != null) {
+                       return ;
+               }
+
                if (source_comment != null) {
                        documentation = parser.parse (this, source_comment);
                }
index 8253c1b93266352afa10114a976e841b3cae9cbc..c42202360c65b0d5bc9fd7114f92e4ee90f8bf6d 100644 (file)
@@ -44,6 +44,10 @@ public class Valadoc.Api.ErrorCode : Symbol {
         * {@inheritDoc}
         */
        internal override void process_comments (Settings settings, DocumentationParser parser) {
+               if (documentation != null) {
+                       return ;
+               }
+
                if (source_comment != null) {
                        documentation = parser.parse (this, source_comment);
                }
index 77df1b7a4d6979cb0ba4fe07d713d0a0a052eaf1..59a80490d450874bcb528fa1330e83feb1a46cd6 100644 (file)
@@ -33,6 +33,10 @@ public abstract class Valadoc.Api.Member : Symbol {
        }
 
        internal override void process_comments (Settings settings, DocumentationParser parser) {
+               if (documentation != null) {
+                       return ;
+               }
+
                if (source_comment != null) {
                        documentation = parser.parse (this, source_comment);
                }
index 0b9b3464a8695a3e294b7e6620eb0c8c1645717e..85da991838b29c225cb5ea6850ad721c9050aab7 100644 (file)
@@ -40,6 +40,10 @@ public class Valadoc.Api.Namespace : Symbol {
         * {@inheritDoc}
         */
        internal override void process_comments (Settings settings, DocumentationParser parser) {
+               if (documentation != null) {
+                       return ;
+               }
+
                if (source_comment != null) {
                        documentation = parser.parse (this, source_comment);
                }
index f829cb100110894b4cbbc4b251b1ba5b271ba8f6..83b977601c3ad0f8dff893cda8cb502a9ce4b146 100644 (file)
@@ -49,6 +49,10 @@ public abstract class Valadoc.Api.TypeSymbol : Symbol {
         * {@inheritDoc}
         */
        internal override void process_comments (Settings settings, DocumentationParser parser) {
+               if (documentation != null) {
+                       return ;
+               }
+
                if (source_comment != null) {
                        documentation = parser.parse (this, source_comment);
                }
index 65a6fc706d9264d6e312611e4f5eec088a21672a..49699a5c7fa08e5482b39c64c2aeb70e89f328d2 100644 (file)
@@ -72,8 +72,7 @@ public class Valadoc.Taglets.Link : InlineTaglet {
                }
 
                if (_symbol == null && symbol_name != "main") {
-                       // TODO use ContentElement's source reference
-                       string node_segment = (container == null)? "" : container.get_full_name () + ": ";
+                       string node_segment = (container is Api.Package)? "" : container.get_full_name () + ": ";
                        reporter.simple_warning ("%s: %s@link: warning: %s does not exist", file_path, node_segment, symbol_name);
                }