We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 016c5d7 commit 1d30bd0Copy full SHA for 1d30bd0
compiler/src/dotty/tools/dotc/ast/untpd.scala
@@ -29,10 +29,8 @@ object untpd extends Trees.Instance[Untyped] with UntypedTreeInfo {
29
}
30
31
object TypedSplice {
32
- def apply(tree: tpd.Tree)(implicit ctx: Context): TypedSplice = {
33
- val curOwner = ctx.owner // compute here to avoid space leak with a reference from TypedSplice to Context
34
- new TypedSplice(tree)(curOwner) {}
35
- }
+ def apply(tree: tpd.Tree)(implicit ctx: Context): TypedSplice =
+ new TypedSplice(tree)(ctx.owner) {}
36
37
38
/** mods object name impl */
0 commit comments