Skip to content

Commit 55f220e

Browse files
authored
[CLI] Fix command generate-doc (#1570)
1 parent f4e77da commit 55f220e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ChangeLog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111

1212
- Fix analyzer [RCS1090](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1090) ([PR](https://github.com/dotnet/roslynator/pull/1566))
13-
- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1568))
13+
- [CLI] Fix command `generate-doc` ([PR](https://github.com/dotnet/roslynator/pull/1568), [PR](https://github.com/dotnet/roslynator/pull/1570))
1414

1515
### Change
1616

src/Documentation/DocumentationWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ void WriteConstantValue(IFieldSymbol fieldSymbol)
15301530

15311531
if (fieldSymbol.Type.TypeKind == TypeKind.Enum)
15321532
{
1533-
OneOrMany<EnumFieldSymbolInfo>.Enumerator en = EnumUtility.GetConstituentFields(fieldSymbol.ConstantValue, fieldSymbol.ContainingType).GetEnumerator();
1533+
OneOrMany<EnumFieldSymbolInfo>.Enumerator en = EnumUtility.GetConstituentFields(fieldSymbol.ConstantValue, (INamedTypeSymbol)fieldSymbol.Type).GetEnumerator();
15341534

15351535
if (en.MoveNext())
15361536
{

0 commit comments

Comments
 (0)