File tree 1 file changed +5
-5
lines changed
tests/pos-with-compiler/tasty 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -348,7 +348,7 @@ object ReflectionImpl extends Tasty {
348
348
import dotty .tools .dotc ._
349
349
import ast .tpd
350
350
import core .{Types , Symbols , Contexts }
351
- import util .{ Positions }
351
+ import util .Spans
352
352
353
353
type Type = Types .Type
354
354
implicit class TypeDeco (x : Type ) extends TypeAPI {}
@@ -361,27 +361,27 @@ object ReflectionImpl extends Tasty {
361
361
val owner = c.owner
362
362
}
363
363
364
- type Position = Positions . Position
364
+ type Position = Spans . Span
365
365
implicit class PositionDeco (p : Position ) extends PositionAPI {
366
366
val start = p.start
367
367
val end = p.end
368
368
}
369
369
370
370
type Pattern = tpd.Tree
371
371
implicit class PatternDeco (p : Pattern ) extends TypedPositioned {
372
- val pos = p.pos
372
+ val pos = p.span
373
373
val tpe = p.tpe
374
374
}
375
375
376
376
type Term = tpd.Tree
377
377
implicit class TermDeco (t : Term ) extends TypedPositioned {
378
- val pos = t.pos
378
+ val pos = t.span
379
379
val tpe = t.tpe
380
380
}
381
381
382
382
type CaseDef = tpd.CaseDef
383
383
implicit class CaseDefDeco (c : CaseDef ) extends TypedPositioned {
384
- val pos = c.pos
384
+ val pos = c.span
385
385
val tpe = c.tpe
386
386
}
387
387
You can’t perform that action at this time.
0 commit comments