-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathInspector.scala
33 lines (26 loc) · 1011 Bytes
/
Inspector.scala
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copy of tasty-inspector/src/scala/tasty/inspector/Inspector.scala
// FIXME remove this copy of the file
package scala.tasty.inspector
import scala.quoted._
import scala.quoted.runtime.impl.QuotesImpl
import dotty.tools.dotc.Compiler
import dotty.tools.dotc.Driver
import dotty.tools.dotc.Run
import dotty.tools.dotc.core.Contexts.Context
import dotty.tools.dotc.core.Mode
import dotty.tools.dotc.core.Phases.Phase
import dotty.tools.dotc.fromtasty._
import dotty.tools.dotc.util.ClasspathFromClassloader
import dotty.tools.dotc.CompilationUnit
import dotty.tools.unsupported
import dotty.tools.dotc.report
import java.io.File.pathSeparator
trait Inspector:
/** Inspect all TASTy files using `Quotes` reflect API.
*
* Note: Within this method `quotes.reflect.SourceFile.current` will not work, hence the explicit source paths.
*
* @param tastys List of `Tasty` containing `.tasty`file path and AST
*/
def inspect(using Quotes)(tastys: List[Tasty[quotes.type]]): Unit
end Inspector