Skip to content

Commit 0fa1d9b

Browse files
committed
Update test to use Spans
1 parent dfb740f commit 0fa1d9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/pos-with-compiler/tasty/definitions.scala

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ object ReflectionImpl extends Tasty {
348348
import dotty.tools.dotc._
349349
import ast.tpd
350350
import core.{Types, Symbols, Contexts}
351-
import util.{Positions}
351+
import util.Spans
352352

353353
type Type = Types.Type
354354
implicit class TypeDeco(x: Type) extends TypeAPI {}
@@ -361,27 +361,27 @@ object ReflectionImpl extends Tasty {
361361
val owner = c.owner
362362
}
363363

364-
type Position = Positions.Position
364+
type Position = Spans.Span
365365
implicit class PositionDeco(p: Position) extends PositionAPI {
366366
val start = p.start
367367
val end = p.end
368368
}
369369

370370
type Pattern = tpd.Tree
371371
implicit class PatternDeco(p: Pattern) extends TypedPositioned {
372-
val pos = p.pos
372+
val pos = p.span
373373
val tpe = p.tpe
374374
}
375375

376376
type Term = tpd.Tree
377377
implicit class TermDeco(t: Term) extends TypedPositioned {
378-
val pos = t.pos
378+
val pos = t.span
379379
val tpe = t.tpe
380380
}
381381

382382
type CaseDef = tpd.CaseDef
383383
implicit class CaseDefDeco(c: CaseDef) extends TypedPositioned {
384-
val pos = c.pos
384+
val pos = c.span
385385
val tpe = c.tpe
386386
}
387387

0 commit comments

Comments
 (0)