From b91b0f6491c5f59f8f6cb05aecb28fdd5ac9edb8 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Fri, 25 Oct 2024 16:15:03 +0200 Subject: [PATCH 1/4] update --- src/Documentation/DocumentationWriter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Documentation/DocumentationWriter.cs b/src/Documentation/DocumentationWriter.cs index cb46e37d01..4c76aec13c 100644 --- a/src/Documentation/DocumentationWriter.cs +++ b/src/Documentation/DocumentationWriter.cs @@ -1530,7 +1530,7 @@ void WriteConstantValue(IFieldSymbol fieldSymbol) if (fieldSymbol.Type.TypeKind == TypeKind.Enum) { - OneOrMany.Enumerator en = EnumUtility.GetConstituentFields(fieldSymbol.ConstantValue, fieldSymbol.ContainingType).GetEnumerator(); + OneOrMany.Enumerator en = EnumUtility.GetConstituentFields(fieldSymbol.ConstantValue, (INamedTypeSymbol)fieldSymbol.Type).GetEnumerator(); if (en.MoveNext()) { From 47a71ba1db07327ffc9f7f273a92fb8c9e4d0335 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Fri, 25 Oct 2024 16:16:57 +0200 Subject: [PATCH 2/4] changelog --- ChangeLog.md | 1 + 1 file changed, 1 insertion(+) diff --git a/ChangeLog.md b/ChangeLog.md index bcc4c2bb96..95341bee0b 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Update analyzer [RCS1077](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1077) ([PR](https://github.com/dotnet/roslynator/pull/1653)) - Do not suggest to change `list.FirstOrDefault(predicate)` to `list.Find(predicate)`. Performance gain is negligible and actually `FirstOrDefault` can be even faster on .NET 9 (see related [issue](https://github.com/dotnet/roslynator/pull/1531) for more details). +- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1570)) ## [4.12.8] - 2024-10-11 From feea43ca8dbd994e768efc0e7d637f041b7f10b4 Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Fri, 25 Oct 2024 16:18:45 +0200 Subject: [PATCH 3/4] changelog --- ChangeLog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ChangeLog.md b/ChangeLog.md index 2611d5673f..cb65fe8fec 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -11,13 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix analyzer [RCS1090](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1090) ([PR](https://github.com/dotnet/roslynator/pull/1566)) - [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1568)) +- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1570)) ### Change - Update analyzer [RCS1077](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1077) ([PR](https://github.com/dotnet/roslynator/pull/1653)) - Do not suggest to change `list.FirstOrDefault(predicate)` to `list.Find(predicate)`. Performance gain is negligible and actually `FirstOrDefault` can be even faster on .NET 9 (see related [issue](https://github.com/dotnet/roslynator/pull/1531) for more details). -- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1570)) ## [4.12.8] - 2024-10-11 From 4ef9d2a12b693bb95bcb1355072f46f602ba6c6d Mon Sep 17 00:00:00 2001 From: Josef Pihrt Date: Fri, 25 Oct 2024 18:58:55 +0200 Subject: [PATCH 4/4] Update ChangeLog.md --- ChangeLog.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index cb65fe8fec..17087977aa 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -10,8 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fix analyzer [RCS1090](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1090) ([PR](https://github.com/dotnet/roslynator/pull/1566)) -- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1568)) -- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1570)) +- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1568), [PR](https://github.com/dotnet/roslynator/pull/1570)) ### Change