We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d7b2a4 commit fdd6a4aCopy full SHA for fdd6a4a
presentation-compiler/src/main/dotty/tools/pc/WithCompilationUnit.scala
@@ -31,7 +31,8 @@ class WithCompilationUnit(
31
driver.run(uri, source)
32
given ctx: Context = driver.currentCtx
33
34
- val unit = driver.currentCtx.run.units.head
+ private val run = driver.currentCtx.run
35
+ val unit = run.units.head
36
val compilatonUnitContext = ctx.fresh.setCompilationUnit(unit)
37
val offset = params match
38
case op: OffsetParams => op.offset()
0 commit comments