File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments