File tree 1 file changed +9
-3
lines changed
dottydoc/jvm/src/dotty/tools/dottydoc/core 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -130,14 +130,20 @@ object Phases {
130
130
totalRuns = units.length
131
131
val compUnits = super .runOn(units)
132
132
133
- // (2) Create documentation template from docstrings, with internal links
133
+ // (2) Set parents of entities, needed for linking
134
+ for {
135
+ parent <- packages.values
136
+ child <- parent.children
137
+ } setParent(child, to = parent)
138
+
139
+ // (3) Create documentation template from docstrings, with internal links
134
140
println(" Generating documentation, this might take a while..." )
135
141
commentParser.parse(packages)
136
142
137
- // (3 ) Write the finished model to JSON
143
+ // (4 ) Write the finished model to JSON
138
144
if (! ctx.settings.YDocNoWrite .value) util.IndexWriters .writeJs(packages, " ../js/out" )
139
145
140
- // (4 ) Clear caches
146
+ // (5 ) Clear caches
141
147
commentParser.clear()
142
148
143
149
// Return super's result
You can’t perform that action at this time.
0 commit comments