frontend: do not remport missing-doc warnings on anonymous `new` factories
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 19 Mar 2016 03:23:09 +0000 (23:23 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sat, 19 Mar 2016 05:50:56 +0000 (01:50 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/modelize/modelize_property.nit

index 6588268..573f200 100644 (file)
@@ -589,7 +589,7 @@ redef class APropdef
                        var mdoc = ndoc.to_mdoc
                        mpropdef.mdoc = mdoc
                        mdoc.original_mentity = mpropdef
-               else if mpropdef.is_intro and mpropdef.mproperty.visibility >= protected_visibility then
+               else if mpropdef.is_intro and mpropdef.mproperty.visibility >= protected_visibility and mpropdef.name != "new" then
                        modelbuilder.advice(self, "missing-doc", "Documentation warning: Undocumented property `{mpropdef.mproperty}`")
                end