File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
443
443
else if (enclosingInlineds.nonEmpty) { // level 0 in an inlined call
444
444
val spliceCtx = ctx.outer // drop the last `inlineContext`
445
445
val pos : SourcePosition = Decorators .sourcePos(enclosingInlineds.head.pos)(spliceCtx)
446
- val splicedTree = new InlineCalls () .transform(splice.qualifier) // inline calls that where inlined at level -1
446
+ val splicedTree = InlineCalls .transform(splice.qualifier) // inline calls that where inlined at level -1
447
447
val evaluatedSplice = Splicer .splice(splicedTree, pos, macroClassLoader)(spliceCtx).withPos(splice.pos)
448
448
if (ctx.reporter.hasErrors) splice else transform(evaluatedSplice)
449
449
}
@@ -678,7 +678,7 @@ object ReifyQuotes {
678
678
}
679
679
680
680
/** β-reduce all calls to inline methods and preform constant folding */
681
- class InlineCalls extends TreeMap {
681
+ object InlineCalls extends TreeMap {
682
682
override def transform (tree : Tree )(implicit ctx : Context ): Tree = tree match {
683
683
case tree if isInlineCall(tree) && ! ctx.reporter.hasErrors && ! ctx.settings.YnoInline .value =>
684
684
val tree2 = super .transform(tree) // transform arguments before inlining (inline arguments and constant fold arguments)
You can’t perform that action at this time.
0 commit comments