File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -403,8 +403,8 @@ class Namer { typer: Typer =>
403
403
/** Create top-level symbols for all statements in the expansion of this statement and
404
404
* enter them into symbol table
405
405
*/
406
- def indexExpanded (stat : Tree )(implicit ctx : Context ): Context = {
407
- def recur (stat : Tree ): Context = expanded( stat) match {
406
+ def indexExpanded (origStat : Tree )(implicit ctx : Context ): Context = {
407
+ def recur (stat : Tree ): Context = stat match {
408
408
case pcl : PackageDef =>
409
409
val pkg = createPackageSymbol(pcl.pid)
410
410
index(pcl.stats)(ctx.fresh.setOwner(pkg.moduleClass))
@@ -415,7 +415,7 @@ class Namer { typer: Typer =>
415
415
importContext(createSymbol(imp), imp.selectors)
416
416
case mdef : DefTree =>
417
417
val sym = enterSymbol(createSymbol(mdef))
418
- setDocstring(sym, stat )
418
+ setDocstring(sym, origStat )
419
419
addEnumConstants(mdef, sym)
420
420
ctx
421
421
case stats : Thicket =>
@@ -424,7 +424,7 @@ class Namer { typer: Typer =>
424
424
case _ =>
425
425
ctx
426
426
}
427
- recur(stat )
427
+ recur(expanded(origStat) )
428
428
}
429
429
430
430
/** Determines whether this field holds an enum constant.
You can’t perform that action at this time.
0 commit comments