Skip to content

Commit 19e6144

Browse files
always print enum elements
in some situations, enum element decls are being skipped when rendering declaration fragments. this trips an assertion in the declaration fragment renderer that ensures that it always renders something. by always rendering enum elements, we can sidestep this issue.
1 parent 94b3805 commit 19e6144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SymbolGraphGen/SymbolGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ PrintOptions SymbolGraph::getDeclarationFragmentsPrintOptions() const {
7272
Opts.SkipUnderscoredStdlibProtocols = true;
7373
Opts.PrintGenericRequirements = true;
7474
Opts.PrintInherited = false;
75-
Opts.ExplodeEnumCaseDecls = IsForSingleNode;
75+
Opts.ExplodeEnumCaseDecls = true;
7676

7777
Opts.ExclusiveAttrList.clear();
7878

0 commit comments

Comments
 (0)