Skip to content

TASTy reflect join Tree, TypeTree, CaseDef and TypeCaseDef #6053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
345 changes: 168 additions & 177 deletions compiler/src/dotty/tools/dotc/tastyreflect/KernelImpl.scala

Large diffs are not rendered by default.

92 changes: 44 additions & 48 deletions docs/docs/reference/other-new-features/tasty-reflect.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,52 +88,50 @@ TASTy Reflect provides the following types:
+- Tree -+- PackageClause
+- Import
+- Statement -+- Definition --+- PackageDef
| +- ClassDef
| +- TypeDef
| +- DefDef
| +- ValDef
|
+- Term --------+- Ident
+- Select
+- Literal
+- This
+- New
+- NamedArg
+- Apply
+- TypeApply
+- Super
+- Typed
+- Assign
+- Block
+- Lambda
+- If
+- Match
+- Try
+- Return
+- Repeated
+- Inlined
+- SelectOuter
+- While


+- TypeTree ----+- Synthetic
| +- Ident
| +- Select
| +- Project
| +- Singleton
+- TypeOrBoundsTree ---+ +- Refined
| +- Applied
| +- Annotated
| +- MatchType
| +- ByName
| +- LambdaTypeTree
| +- Bind
|
+- TypeBoundsTree
+- SyntheticBounds

+- CaseDef
+- TypeCaseDef
| | +- ClassDef
| | +- TypeDef
| | +- DefDef
| | +- ValDef
| |
| +- Term --------+- Ident
| +- Select
| +- Literal
| +- This
| +- New
| +- NamedArg
| +- Apply
| +- TypeApply
| +- Super
| +- Typed
| +- Assign
| +- Block
| +- Lambda
| +- If
| +- Match
| +- Try
| +- Return
| +- Repeated
| +- Inlined
| +- SelectOuter
| +- While
|
+- TypeTree ----+- Synthetic
| +- Ident
| +- Select
| +- Project
| +- Singleton
| +- Refined
| +- Applied
| +- Annotated
| +- MatchType
| +- ByName
| +- LambdaTypeTree
| +- Bind
|
+- TypeBoundsTree
+- SyntheticBounds
+- CaseDef
+- TypeCaseDef

+- Pattern --+- Value
+- Bind
Expand Down Expand Up @@ -187,8 +185,6 @@ TASTy Reflect provides the following types:
+- BindSymbol
+- NoSymbol

Aliases:
# TermOrTypeTree = Term | TypeTree
```

## More Examples
Expand Down
2 changes: 0 additions & 2 deletions library/src/scala/tasty/Reflection.scala
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import scala.tasty.reflect._

abstract class Reflection
extends Core
with CaseDefOps
with ConstantOps
with ContextOps
with CommentOps
Expand All @@ -23,7 +22,6 @@ abstract class Reflection
with SymbolOps
with TreeOps
with TreeUtils
with TypeOrBoundsTreeOps
with TypeOrBoundsOps { self =>

def typeOf[T: scala.quoted.Type]: Type =
Expand Down
40 changes: 0 additions & 40 deletions library/src/scala/tasty/reflect/CaseDefOps.scala

This file was deleted.

Loading