Skip to content

Commit e8f8374

Browse files
committed
Remove rootContext from CompilerInterface
1 parent 12257ae commit e8f8374

File tree

4 files changed

+3
-6
lines changed

4 files changed

+3
-6
lines changed

library/src/scala/internal/tasty/CompilerInterface.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ import scala.internal.quoted.Unpickler
77
/** Part of the reflection interface that needs to be implemented by the compiler */
88
trait CompilerInterface extends scala.tasty.reflect.Types {
99

10-
/** Context of the macro expansion */
11-
def rootContext: Context
12-
1310
/** Root position of this tasty context. For macros it corresponds to the expansion site. */
1411
def rootPosition: Position
1512

tests/run-custom-args/tasty-inspector/tasty-comment-inspector/Test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class CommentInspector extends TastyInspector {
2525
}
2626

2727
}
28-
Traverser.traverseTree(root)(reflect.rootContext)
28+
Traverser.traverseTree(root)
2929
}
3030

3131
}

tests/run-custom-args/tasty-inspector/tasty-inspector/Test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class DBInspector extends TastyInspector {
2222
}
2323

2424
}
25-
Traverser.traverseTree(root)(reflect.rootContext)
25+
Traverser.traverseTree(root)
2626
}
2727

2828
}

tests/run-custom-args/tasty-interpreter/interpreter/TastyInterpreter.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ class TastyInterpreter extends TastyInspector {
2020
super.traverseTree(tree)
2121
}
2222
}
23-
Traverser.traverseTree(root)(reflect.rootContext)
23+
Traverser.traverseTree(root)
2424
}
2525
}

0 commit comments

Comments
 (0)