Skip to content

Commit 8f49bb0

Browse files
committed
Refactor condition
1 parent d69f680 commit 8f49bb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/YCheckPositions.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class YCheckPositions extends Phases.Phase {
5757
}
5858

5959
private def isMacro(call: Tree)(implicit ctx: Context) = {
60-
((ctx.phase <= ctx.typerPhase.next) && call.symbol.is(Macro)) ||
61-
(!(ctx.phase <= ctx.typerPhase.next) && call.symbol.unforcedDecls.exists(_.is(Macro)) || call.symbol.unforcedDecls.toList.exists(_.is(Macro)))
60+
if (ctx.phase <= ctx.typerPhase.next) call.symbol.is(Macro)
61+
else (call.symbol.unforcedDecls.exists(_.is(Macro)) || call.symbol.unforcedDecls.toList.exists(_.is(Macro)))
6262
}
6363

6464
}

0 commit comments

Comments
 (0)