RESOLVED FIXED 123448
[GTK] DOM bindings documentation errors
https://bugs.webkit.org/show_bug.cgi?id=123448
Summary [GTK] DOM bindings documentation errors
Philippe Normand
Reported 2013-10-29 09:17:53 PDT
I have a patch for those issues, excepted the gtkdoc-scan WEBKIT_DEPRECATED_FOR warnings.
Attachments
Patch (39.98 KB, patch)
2013-10-29 09:22 PDT, Philippe Normand
no flags
Patch (40.14 KB, patch)
2013-10-29 10:27 PDT, Philippe Normand
cgarcia: review+
Philippe Normand
Comment 1 2013-10-29 09:22:56 PDT
Carlos Garcia Campos
Comment 2 2013-10-29 09:28:00 PDT
Comment on attachment 215392 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=215392&action=review > Source/WebCore/bindings/gobject/WebKitDOMCustom.h:467 > + * Returns: A double why not a #gdouble? > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:979 > + if (IsGDOMClassType($function->signature->type) && ($returnType ne "void")) { can IsGDOMClassType return true for void? In that case I guess we should fix IsGDOMClassType instead. > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:982 > + push(@hBody, " * Returns: A $returnType\n"); I think you should check if the type is a glib one to use # so that a link is generated. Also in case of pointers we should remove the *
Philippe Normand
Comment 3 2013-10-29 09:52:39 PDT
(In reply to comment #2) > (From update of attachment 215392 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=215392&action=review > > > Source/WebCore/bindings/gobject/WebKitDOMCustom.h:467 > > + * Returns: A double > > why not a #gdouble? > Because I missed it :) > > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:979 > > + if (IsGDOMClassType($function->signature->type) && ($returnType ne "void")) { > > can IsGDOMClassType return true for void? No. > In that case I guess we should fix IsGDOMClassType instead. > Thing is IsGDOMClassType doesn't check $returnType. I changed this code only to make sure we don't have a Return tag for void functions. TBH I don't really want to debug this spaghetti code much more :) > > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:982 > > + push(@hBody, " * Returns: A $returnType\n"); > > I think you should check if the type is a glib one to use # so that a link is generated. Also in case of pointers we should remove the * Ok I'll see if I can improve that...
Carlos Garcia Campos
Comment 4 2013-10-29 10:03:16 PDT
Comment on attachment 215392 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=215392&action=review >>> Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:979 >>> + if (IsGDOMClassType($function->signature->type) && ($returnType ne "void")) { >> >> can IsGDOMClassType return true for void? In that case I guess we should fix IsGDOMClassType instead. > > No. There's $returnValueIsGDOMType already, maybe we can use that instead of calling IsGDOMClassType again
Philippe Normand
Comment 5 2013-10-29 10:27:57 PDT
Carlos Garcia Campos
Comment 6 2013-10-29 10:33:09 PDT
Comment on attachment 215396 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=215396&action=review Looks great, thanks. Please add also the description for return tags having a g-i annotation too. > Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm:980 > push(@hBody, " * Returns: (transfer none):\n"); Sorry I missed this one before, but this would be empty too, it doesn't give a warning because of the g-i annotation, but it should also have a description.
Philippe Normand
Comment 7 2013-10-29 10:51:41 PDT
Note You need to log in before you can comment on or make changes to this bug.