Skip to content

Commit 0832e02

Browse files
committed
Update doc
1 parent f28e2e1 commit 0832e02

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

compiler/src/dotty/tools/dotc/ast/Trees.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -583,9 +583,8 @@ object Trees {
583583

584584
/** A tree representing inlined code.
585585
*
586-
* @param call Info about the original call that was inlined
587-
* Until PostTyper, this is the full call, afterwards only
588-
* a reference to the toplevel class from which the call was inlined.
586+
* @param call Info about the original call that was inlined.
587+
* Only a reference to the toplevel class from which the call was inlined.
589588
* @param bindings Bindings for proxies to be used in the inlined code
590589
* @param expansion The inlined tree, minus bindings.
591590
*

compiler/src/dotty/tools/dotc/typer/Inliner.scala

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -460,11 +460,8 @@ class Inliner(call: tpd.Tree, rhsToInline: tpd.Tree)(implicit ctx: Context) {
460460
// - the call's position
461461
// in the call field of an Inlined node.
462462
// The trace has enough info to completely reconstruct positions.
463-
// The minimization is done for two reasons:
464-
// 1. To save space (calls might contain large inline arguments, which would otherwise
465-
// be duplicated
466-
// 2. To enable correct pickling (calls can share symbols with the inlined code, which
467-
// would trigger an assertion when pickling).
463+
// The minimization is done for the following reason:
464+
// * To save space (calls might contain large inline arguments, which would otherwise be duplicated
468465
val callTrace = Ident(call.symbol.topLevelClass.typeRef).withPos(call.pos)
469466

470467
// Take care that only argument bindings go into `bindings`, since positions are

0 commit comments

Comments
 (0)