@@ -100,11 +100,14 @@ package scala.tasty.reflect
100
100
*/
101
101
trait TastyCore {
102
102
103
+ /** Compilation context */
103
104
type Context
104
105
105
- // TODO: When bootstrapped, remove and use `Term | TypeTree` type directly
106
+ // TODO: When bootstrapped, remove and use `Term | TypeTree` type directly in other files
107
+ /** Workaround missing `|` types in Scala 2 to represent `Term | TypeTree` */
106
108
type Parent /* Term | TypeTree */
107
109
110
+ /** Tree representing executable code written in the source */
108
111
type Tree
109
112
type PackageClause <: Tree
110
113
type Statement <: Tree
@@ -115,14 +118,17 @@ trait TastyCore {
115
118
type DefDef <: Definition
116
119
type ValDef <: Definition
117
120
type PackageDef <: Definition
118
- type Term <: Statement with Parent
121
+ type Term <: Statement with Parent // TODO: When bootstrapped, remove `Parent`
119
122
123
+ /** Branch of a pattern match or catch clause */
120
124
type CaseDef
121
125
126
+ /** Pattern tree of the pattern part of a CaseDef */
122
127
type Pattern
123
128
129
+ /** Tree representing a type written in the source */
124
130
type TypeOrBoundsTree
125
- type TypeTree <: TypeOrBoundsTree with Parent
131
+ type TypeTree <: TypeOrBoundsTree with Parent // TODO: When bootstrapped, remove `Parent`
126
132
type TypeBoundsTree <: TypeOrBoundsTree
127
133
128
134
type TypeOrBounds
@@ -140,12 +146,16 @@ trait TastyCore {
140
146
141
147
type ImportSelector
142
148
149
+ /** Untyped identifier */
143
150
type Id
144
151
152
+ /** JVM signature of a method */
145
153
type Signature
146
154
155
+ /** Source position */
147
156
type Position
148
157
158
+ /** Constant value represented as the constant itself */
149
159
type Constant
150
160
151
161
}
0 commit comments