C# remove empty xml documentation comments

This looks like code copied from python which supports autodoc and docstring features.
C# does not support these features.
This commit is contained in:
William S Fulton 2024-07-29 08:51:28 +01:00
parent 1349ea7394
commit 9b46cbc061
1 changed files with 3 additions and 0 deletions

View File

@ -4734,12 +4734,15 @@ public:
*--------------------------------------------------------------------*/
bool have_docstring(Node *n) {
/* autodoc and docstring features not supported in C#
String *str = Getattr(n, "feature:docstring");
return ((str && Len(str) > 0)
|| (Getattr(n, "feature:autodoc") && !GetFlag(n, "feature:noautodoc"))
|| (doxygen && doxygenTranslator->hasDocumentation(n))
);
*/
return doxygen && doxygenTranslator->hasDocumentation(n);
}
/* ------------------------------------------------------------