All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.tasty.inspector.Inspector.scala Maven / Gradle / Ivy

There is a newer version: 3.6.0-RC1-bin-20240903-21a3d39-NIGHTLY
Show newest version
// 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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy