-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport "Remove OldTastyInspector from scaladoc" to LTS (#18961)
Backports #17623 to the LTS branch. PR submitted by the release tooling.
- Loading branch information
Showing
7 changed files
with
131 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Copy of tasty-inspector/src/scala/tasty/inspector/Tasty.scala | ||
// FIXME remove this copy of the file | ||
|
||
package scala.tasty.inspector | ||
|
||
import scala.quoted._ | ||
|
||
/** `.tasty` file representation containing file path and the AST */ | ||
trait Tasty[Q <: Quotes & Singleton]: | ||
|
||
/** Instance of `Quotes` used to load the AST */ | ||
val quotes: Q | ||
|
||
/** Path to the `.tasty` file */ | ||
def path: String | ||
|
||
/** Abstract Syntax Tree contained in the `.tasty` file */ | ||
def ast: quotes.reflect.Tree | ||
|
||
end Tasty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters