Skip to content

Commit 7fb91ad

Browse files
Merge pull request #6053 from dotty-staging/tasty-reflect-join-tree-and-typetree
TASTy reflect join Tree, TypeTree, CaseDef and TypeCaseDef
2 parents 851f371 + ae252e1 commit 7fb91ad

File tree

14 files changed

+946
-1111
lines changed

14 files changed

+946
-1111
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/KernelImpl.scala

Lines changed: 168 additions & 177 deletions
Large diffs are not rendered by default.

docs/docs/reference/other-new-features/tasty-reflect.md

Lines changed: 44 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -88,52 +88,50 @@ TASTy Reflect provides the following types:
8888
+- Tree -+- PackageClause
8989
+- Import
9090
+- Statement -+- Definition --+- PackageDef
91-
| +- ClassDef
92-
| +- TypeDef
93-
| +- DefDef
94-
| +- ValDef
95-
|
96-
+- Term --------+- Ident
97-
+- Select
98-
+- Literal
99-
+- This
100-
+- New
101-
+- NamedArg
102-
+- Apply
103-
+- TypeApply
104-
+- Super
105-
+- Typed
106-
+- Assign
107-
+- Block
108-
+- Lambda
109-
+- If
110-
+- Match
111-
+- Try
112-
+- Return
113-
+- Repeated
114-
+- Inlined
115-
+- SelectOuter
116-
+- While
117-
118-
119-
+- TypeTree ----+- Synthetic
120-
| +- Ident
121-
| +- Select
122-
| +- Project
123-
| +- Singleton
124-
+- TypeOrBoundsTree ---+ +- Refined
125-
| +- Applied
126-
| +- Annotated
127-
| +- MatchType
128-
| +- ByName
129-
| +- LambdaTypeTree
130-
| +- Bind
131-
|
132-
+- TypeBoundsTree
133-
+- SyntheticBounds
134-
135-
+- CaseDef
136-
+- TypeCaseDef
91+
| | +- ClassDef
92+
| | +- TypeDef
93+
| | +- DefDef
94+
| | +- ValDef
95+
| |
96+
| +- Term --------+- Ident
97+
| +- Select
98+
| +- Literal
99+
| +- This
100+
| +- New
101+
| +- NamedArg
102+
| +- Apply
103+
| +- TypeApply
104+
| +- Super
105+
| +- Typed
106+
| +- Assign
107+
| +- Block
108+
| +- Lambda
109+
| +- If
110+
| +- Match
111+
| +- Try
112+
| +- Return
113+
| +- Repeated
114+
| +- Inlined
115+
| +- SelectOuter
116+
| +- While
117+
|
118+
+- TypeTree ----+- Synthetic
119+
| +- Ident
120+
| +- Select
121+
| +- Project
122+
| +- Singleton
123+
| +- Refined
124+
| +- Applied
125+
| +- Annotated
126+
| +- MatchType
127+
| +- ByName
128+
| +- LambdaTypeTree
129+
| +- Bind
130+
|
131+
+- TypeBoundsTree
132+
+- SyntheticBounds
133+
+- CaseDef
134+
+- TypeCaseDef
137135
138136
+- Pattern --+- Value
139137
+- Bind
@@ -187,8 +185,6 @@ TASTy Reflect provides the following types:
187185
+- BindSymbol
188186
+- NoSymbol
189187
190-
Aliases:
191-
# TermOrTypeTree = Term | TypeTree
192188
```
193189

194190
## More Examples

library/src/scala/tasty/Reflection.scala

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import scala.tasty.reflect._
44

55
abstract class Reflection
66
extends Core
7-
with CaseDefOps
87
with ConstantOps
98
with ContextOps
109
with CommentOps
@@ -23,7 +22,6 @@ abstract class Reflection
2322
with SymbolOps
2423
with TreeOps
2524
with TreeUtils
26-
with TypeOrBoundsTreeOps
2725
with TypeOrBoundsOps { self =>
2826

2927
def typeOf[T: scala.quoted.Type]: Type =

library/src/scala/tasty/reflect/CaseDefOps.scala

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)