Skip to content

Commit e6ee476

Browse files
committed
Fix comments
1 parent 23affe1 commit e6ee476

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

library/src/scala/tasty/Reflection.scala

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,13 +2439,9 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
24392439

24402440

24412441
///////////////
2442-
// POSITIONS //
2442+
// FLAGS //
24432443
///////////////
24442444

2445-
// TODO: Should this be in the QuoteContext?
2446-
/** Root position of this tasty context. For macros it corresponds to the expansion site. */
2447-
def rootPosition: Position = internal.rootPosition
2448-
24492445
extension FlagsOps on (self: Flags) {
24502446

24512447
/** Is the given flag set a subset of this flag sets */
@@ -2572,6 +2568,11 @@ class Reflection(private[scala] val internal: CompilerInterface) { self =>
25722568
// POSITIONS //
25732569
///////////////
25742570

2571+
// TODO: Should this be in the QuoteContext?
2572+
// TODO: rename to enclosingPosition (as in scala.reflect)
2573+
/** Root position of this tasty context. For macros it corresponds to the expansion site. */
2574+
def rootPosition: Position = internal.rootPosition
2575+
25752576
extension positionOps on (pos: Position) {
25762577

25772578
/** The start offset in the source file */

0 commit comments

Comments
 (0)