Skip to content

Commit 796b1e1

Browse files
authored
Fix 662735: Members with user edited docs will not be deleted (#647)
* Fix 662735: Members with user edited docs will not be deleted * upgrade mdoc to 5.9.0
1 parent 53df4b8 commit 796b1e1

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

mdoc/Consts.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ namespace Mono.Documentation
33
{
44
public static class Consts
55
{
6-
public static string MonoVersion = "5.8.9.2";
6+
public static string MonoVersion = "5.9.0";
77
public const string DocId = "DocId";
88
public const string CppCli = "C++ CLI";
99
public const string CppCx = "C++ CX";

mdoc/Mono.Documentation/MDocUpdater.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ public void DoUpdateType2 (string message, XmlDocument basefile, TypeDefinition
15501550
bool isprivateeii = !IsMemberNotPrivateEII(oldmember2);
15511551
if (oldmember2 == null || isprivateeii)
15521552
{
1553-
if (!string.IsNullOrWhiteSpace (FrameworksPath) && !isprivateeii) // only do this check if fx mode AND it's not a private EII. If it's a private EII, we just want to delete it
1553+
if (!string.IsNullOrWhiteSpace (FrameworksPath)) // only do this check if fx mode
15541554
{
15551555
// verify that this member wasn't seen in another framework and is indeed valid
15561556
var sigFromXml = oldmember
@@ -1939,11 +1939,9 @@ void DeleteMember (string reason, string output, XmlNode member, MyXmlNodeList t
19391939
signature);
19401940

19411941
// Identify all of the different states that could affect our decision to delete the member
1942-
bool duplicated = reason.Contains("Duplicate Member");
19431942
bool shouldPreserve = !string.IsNullOrWhiteSpace (PreserveTag);
19441943
bool hasContent = MemberDocsHaveUserContent (member);
1945-
//When the member is NOT PRESERVED, the member has NO CONTENT or is DUPLICATED, then it should be deleted
1946-
bool shouldDelete = !shouldPreserve && (delete && (!hasContent || duplicated));
1944+
bool shouldDelete = !shouldPreserve && (delete || !hasContent);
19471945

19481946
bool unifiedRun = HasDroppedNamespace (type);
19491947

mdoc/mdoc.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>mdoc</id>
5-
<version>5.8.9.2</version>
5+
<version>5.9.0</version>
66
<title>mdoc</title>
77
<authors>Microsoft</authors>
88
<owners>Microsoft</owners>

0 commit comments

Comments
 (0)