Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMin Huang <huangmin@microsoft.com>2022-08-15 11:51:09 +0300
committerMin Huang <huangmin@microsoft.com>2022-08-15 11:51:09 +0300
commit8fbde62281e19ace8e434a0b8165f2157f28a566 (patch)
treebeb5283e5263fa68fd7d8c02e018f60b8b417532
parent6dadd1982362a266c8b0135e66df53bbaf799553 (diff)
update
-rw-r--r--mdoc/Mono.Documentation/MDocUpdater.cs2
-rw-r--r--mdoc/Mono.Documentation/Util/MdocUpdaterHelper.cs14
2 files changed, 8 insertions, 8 deletions
diff --git a/mdoc/Mono.Documentation/MDocUpdater.cs b/mdoc/Mono.Documentation/MDocUpdater.cs
index 0d323073..8bbbb2cf 100644
--- a/mdoc/Mono.Documentation/MDocUpdater.cs
+++ b/mdoc/Mono.Documentation/MDocUpdater.cs
@@ -4068,7 +4068,7 @@ namespace Mono.Documentation
private void MakeTypeParameters (FrameworkTypeEntry entry, XmlElement root, IList<GenericParameter> typeParams, MemberReference member, bool shouldDuplicateWithNew)
{
- if (ProcessedMoreThanOnce(entry))
+ if (typeParams == null || typeParams.Count == 0 || ProcessedMoreThanOnce(entry))
{
return;
}
diff --git a/mdoc/Mono.Documentation/Util/MdocUpdaterHelper.cs b/mdoc/Mono.Documentation/Util/MdocUpdaterHelper.cs
index 90f1b32c..2383729b 100644
--- a/mdoc/Mono.Documentation/Util/MdocUpdaterHelper.cs
+++ b/mdoc/Mono.Documentation/Util/MdocUpdaterHelper.cs
@@ -43,13 +43,13 @@ namespace mdoc.Mono.Documentation.Util
AppendElementText(ce, "ParameterAttribute", "ReferenceTypeConstraint");
#if NEW_CECIL
- foreach (GenericParameterConstraint c in constraints)
- {
- TypeDefinition cd = c.ConstraintType.Resolve ();
- AppendElementText (ce,
- (cd != null && cd.IsInterface) ? "InterfaceName" : "BaseTypeName",
- GetDocTypeFullName (c.ConstraintType));
- }
+ foreach (GenericParameterConstraint c in constraints)
+ {
+ TypeDefinition cd = c.ConstraintType.Resolve ();
+ AppendElementText (ce,
+ (cd != null && cd.IsInterface) ? "InterfaceName" : "BaseTypeName",
+ GetDocTypeFullName (c.ConstraintType));
+ }
#else
foreach (TypeReference c in constraints)
{