File tree 1 file changed +3
-5
lines changed
compiler/src/dotty/tools/dotc/typer
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -153,7 +153,8 @@ object Inliner {
153
153
154
154
override def transform (tree : Tree )(implicit ctx : Context ): Tree = {
155
155
val transformed = reposition(tree match {
156
- case tree : Inlined => transformInline(tree)
156
+ case tree : Inlined =>
157
+ tpd.seq(transformSub(tree.bindings), transform(tree.expansion)(inlineContext(tree.call)))(ctx.withSource(curSource)) : Tree
157
158
case tree : Ident => finalize(tree, untpd.Ident (tree.name)(curSource))
158
159
case tree : Literal => finalize(tree, untpd.Literal (tree.const)(curSource))
159
160
case tree : This => finalize(tree, untpd.This (tree.qual)(curSource))
@@ -166,12 +167,9 @@ object Inliner {
166
167
assert(transformed.isInstanceOf [EmptyTree [_]] || transformed.isInstanceOf [EmptyValDef [_]] || transformed.source == curSource)
167
168
transformed
168
169
}
169
- def transformInline (tree : Inlined )(implicit ctx : Context ): Tree = {
170
- tpd.seq(transformSub(tree.bindings), transform(tree.expansion)(inlineContext(tree.call)))(ctx.withSource(curSource))
171
- }
172
170
}
173
171
174
- (new Reposition ).transformInline (inlined)
172
+ (new Reposition ).transform (inlined)
175
173
}
176
174
}
177
175
You can’t perform that action at this time.
0 commit comments