@@ -11,8 +11,8 @@ trait TreeOps extends Core {
11
11
}
12
12
implicit def TreeDeco (tree : Tree ): TreeAPI
13
13
14
- val IsPackageClause : IsPackageClauseExtractor
15
- abstract class IsPackageClauseExtractor {
14
+ val IsPackageClause : IsPackageClauseModule
15
+ abstract class IsPackageClauseModule {
16
16
def unapply (tree : Tree )(implicit ctx : Context ): Option [PackageClause ]
17
17
}
18
18
@@ -41,8 +41,8 @@ trait TreeOps extends Core {
41
41
42
42
// ----- Definitions ----------------------------------------------
43
43
44
- val IsDefinition : IsDefinitionExtractor
45
- abstract class IsDefinitionExtractor {
44
+ val IsDefinition : IsDefinitionModule
45
+ abstract class IsDefinitionModule {
46
46
def unapply (tree : Tree )(implicit ctx : Context ): Option [Definition ]
47
47
}
48
48
@@ -53,8 +53,8 @@ trait TreeOps extends Core {
53
53
54
54
// ClassDef
55
55
56
- val IsClassDef : IsClassDefExtractor
57
- abstract class IsClassDefExtractor {
56
+ val IsClassDef : IsClassDefModule
57
+ abstract class IsClassDefModule {
58
58
def unapply (tree : Tree )(implicit ctx : Context ): Option [ClassDef ]
59
59
}
60
60
@@ -75,8 +75,8 @@ trait TreeOps extends Core {
75
75
76
76
// DefDef
77
77
78
- val IsDefDef : IsDefDefExtractor
79
- abstract class IsDefDefExtractor {
78
+ val IsDefDef : IsDefDefModule
79
+ abstract class IsDefDefModule {
80
80
def unapply (tree : Tree )(implicit ctx : Context ): Option [DefDef ]
81
81
}
82
82
@@ -97,8 +97,8 @@ trait TreeOps extends Core {
97
97
98
98
// ValDef
99
99
100
- val IsValDef : IsValDefExtractor
101
- abstract class IsValDefExtractor {
100
+ val IsValDef : IsValDefModule
101
+ abstract class IsValDefModule {
102
102
def unapply (tree : Tree )(implicit ctx : Context ): Option [ValDef ]
103
103
}
104
104
@@ -117,8 +117,8 @@ trait TreeOps extends Core {
117
117
118
118
// TypeDef
119
119
120
- val IsTypeDef : IsTypeDefExtractor
121
- abstract class IsTypeDefExtractor {
120
+ val IsTypeDef : IsTypeDefModule
121
+ abstract class IsTypeDefModule {
122
122
def unapply (tree : Tree )(implicit ctx : Context ): Option [TypeDef ]
123
123
}
124
124
@@ -135,8 +135,8 @@ trait TreeOps extends Core {
135
135
136
136
// PackageDef
137
137
138
- val IsPackageDef : IsPackageDefExtractor
139
- abstract class IsPackageDefExtractor {
138
+ val IsPackageDef : IsPackageDefModule
139
+ abstract class IsPackageDefModule {
140
140
def unapply (tree : Tree )(implicit ctx : Context ): Option [PackageDef ]
141
141
}
142
142
@@ -162,8 +162,8 @@ trait TreeOps extends Core {
162
162
}
163
163
implicit def TermDeco (term : Term ): TermAPI
164
164
165
- val IsTerm : IsTermExtractor
166
- abstract class IsTermExtractor {
165
+ val IsTerm : IsTermModule
166
+ abstract class IsTermModule {
167
167
/** Matches any term */
168
168
def unapply (tree : Tree )(implicit ctx : Context ): Option [Term ]
169
169
/** Matches any term */
@@ -174,8 +174,8 @@ trait TreeOps extends Core {
174
174
val Term : TermModule
175
175
abstract class TermModule extends TermCoreModule {
176
176
177
- val Ident : IsIdentExtractor
178
- abstract class IsIdentExtractor {
177
+ val IsIdent : IsIdentModule
178
+ abstract class IsIdentModule {
179
179
/** Matches any Ident and returns it */
180
180
def unapply (tree : Tree )(implicit ctx : Context ): Option [Ident ]
181
181
}
@@ -187,8 +187,8 @@ trait TreeOps extends Core {
187
187
def unapply (tree : Tree )(implicit ctx : Context ): Option [String ]
188
188
}
189
189
190
- val Select : IsSelectExtractor
191
- abstract class IsSelectExtractor {
190
+ val IsSelect : IsSelectModule
191
+ abstract class IsSelectModule {
192
192
/** Matches any Select and returns it */
193
193
def unapply (tree : Tree )(implicit ctx : Context ): Option [Select ]
194
194
}
@@ -200,8 +200,8 @@ trait TreeOps extends Core {
200
200
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , String , Option [Signature ])]
201
201
}
202
202
203
- val Literal : IsLiteralExtractor
204
- abstract class IsLiteralExtractor {
203
+ val IsLiteral : IsLiteralModule
204
+ abstract class IsLiteralModule {
205
205
/** Matches any Literal and returns it */
206
206
def unapply (tree : Tree )(implicit ctx : Context ): Option [Literal ]
207
207
}
@@ -212,8 +212,8 @@ trait TreeOps extends Core {
212
212
def unapply (tree : Tree )(implicit ctx : Context ): Option [Constant ]
213
213
}
214
214
215
- val This : IsThisExtractor
216
- abstract class IsThisExtractor {
215
+ val IsThis : IsThisModule
216
+ abstract class IsThisModule {
217
217
/** Matches any This and returns it */
218
218
def unapply (tree : Tree )(implicit ctx : Context ): Option [This ]
219
219
}
@@ -225,8 +225,8 @@ trait TreeOps extends Core {
225
225
def unapply (tree : Tree )(implicit ctx : Context ): Option [Option [Id ]]
226
226
}
227
227
228
- val New : IsNewExtractor
229
- abstract class IsNewExtractor {
228
+ val IsNew : IsNewModule
229
+ abstract class IsNewModule {
230
230
/** Matches any New and returns it */
231
231
def unapply (tree : Tree )(implicit ctx : Context ): Option [New ]
232
232
}
@@ -238,8 +238,8 @@ trait TreeOps extends Core {
238
238
def unapply (tree : Tree )(implicit ctx : Context ): Option [TypeTree ]
239
239
}
240
240
241
- val NamedArg : IsNamedArgExtractor
242
- abstract class IsNamedArgExtractor {
241
+ val IsNamedArg : IsNamedArgModule
242
+ abstract class IsNamedArgModule {
243
243
/** Matches any NamedArg and returns it */
244
244
def unapply (tree : Tree )(implicit ctx : Context ): Option [NamedArg ]
245
245
}
@@ -251,8 +251,8 @@ trait TreeOps extends Core {
251
251
def unapply (tree : Tree )(implicit ctx : Context ): Option [(String , Term )]
252
252
}
253
253
254
- val Apply : IsApplyExtractor
255
- abstract class IsApplyExtractor {
254
+ val IsApply : IsApplyModule
255
+ abstract class IsApplyModule {
256
256
/** Matches any Apply and returns it */
257
257
def unapply (tree : Tree )(implicit ctx : Context ): Option [Apply ]
258
258
}
@@ -264,8 +264,8 @@ trait TreeOps extends Core {
264
264
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , List [Term ])]
265
265
}
266
266
267
- val TypeApply : IsTypeApplyExtractor
268
- abstract class IsTypeApplyExtractor {
267
+ val IsTypeApply : IsTypeApplyModule
268
+ abstract class IsTypeApplyModule {
269
269
/** Matches any TypeApply and returns it */
270
270
def unapply (tree : Tree )(implicit ctx : Context ): Option [TypeApply ]
271
271
}
@@ -277,8 +277,8 @@ trait TreeOps extends Core {
277
277
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , List [TypeTree ])]
278
278
}
279
279
280
- val Super : IsSuperExtractor
281
- abstract class IsSuperExtractor {
280
+ val IsSuper : IsSuperModule
281
+ abstract class IsSuperModule {
282
282
/** Matches any Super and returns it */
283
283
def unapply (tree : Tree )(implicit ctx : Context ): Option [Super ]
284
284
}
@@ -290,8 +290,8 @@ trait TreeOps extends Core {
290
290
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , Option [Id ])]
291
291
}
292
292
293
- val Typed : IsTypedExtractor
294
- abstract class IsTypedExtractor {
293
+ val IsTyped : IsTypedModule
294
+ abstract class IsTypedModule {
295
295
/** Matches any Typed and returns it */
296
296
def unapply (tree : Tree )(implicit ctx : Context ): Option [Typed ]
297
297
}
@@ -303,8 +303,8 @@ trait TreeOps extends Core {
303
303
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , TypeTree )]
304
304
}
305
305
306
- val Assign : IsAssignExtractor
307
- abstract class IsAssignExtractor {
306
+ val IsAssign : IsAssignModule
307
+ abstract class IsAssignModule {
308
308
/** Matches any Assign and returns it */
309
309
def unapply (tree : Tree )(implicit ctx : Context ): Option [Assign ]
310
310
}
@@ -316,8 +316,8 @@ trait TreeOps extends Core {
316
316
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , Term )]
317
317
}
318
318
319
- val Block : IsBlockExtractor
320
- abstract class IsBlockExtractor {
319
+ val IsBlock : IsBlockModule
320
+ abstract class IsBlockModule {
321
321
/** Matches any Block and returns it */
322
322
def unapply (tree : Tree )(implicit ctx : Context ): Option [Block ]
323
323
}
@@ -329,15 +329,21 @@ trait TreeOps extends Core {
329
329
def unapply (tree : Tree )(implicit ctx : Context ): Option [(List [Statement ], Term )]
330
330
}
331
331
332
+ val IsLambda : IsLambdaModule
333
+ abstract class IsLambdaModule {
334
+ /** Matches any Lambda and returns it */
335
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [Lambda ]
336
+ }
337
+
332
338
val Lambda : LambdaExtractor
333
339
abstract class LambdaExtractor {
334
340
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , Option [TypeTree ])]
335
341
}
336
342
337
- val XYZ : IsXYZExtractor
338
- abstract class IsXYZExtractor {
339
- /** Matches any XYZ and returns it */
340
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
343
+ val IsIf : IsIfModule
344
+ abstract class IsIfModule {
345
+ /** Matches any If and returns it */
346
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [If ]
341
347
}
342
348
343
349
/** Scala `if`/`else` term */
@@ -347,10 +353,10 @@ trait TreeOps extends Core {
347
353
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , Term , Term )]
348
354
}
349
355
350
- val XYZ : IsXYZExtractor
351
- abstract class IsXYZExtractor {
352
- /** Matches any XYZ and returns it */
353
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
356
+ val IsMatch : IsMatchModule
357
+ abstract class IsMatchModule {
358
+ /** Matches any Match and returns it */
359
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [Match ]
354
360
}
355
361
356
362
/** Scala `match` term */
@@ -360,10 +366,10 @@ trait TreeOps extends Core {
360
366
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , List [CaseDef ])]
361
367
}
362
368
363
- val XYZ : IsXYZExtractor
364
- abstract class IsXYZExtractor {
365
- /** Matches any XYZ and returns it */
366
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
369
+ val IsTry : IsTryModule
370
+ abstract class IsTryModule {
371
+ /** Matches any Try and returns it */
372
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [Try ]
367
373
}
368
374
369
375
/** Scala `try`/`catch`/`finally` term */
@@ -373,10 +379,10 @@ trait TreeOps extends Core {
373
379
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , List [CaseDef ], Option [Term ])]
374
380
}
375
381
376
- val XYZ : IsXYZExtractor
377
- abstract class IsXYZExtractor {
378
- /** Matches any XYZ and returns it */
379
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
382
+ val IsReturn : IsReturnModule
383
+ abstract class IsReturnModule {
384
+ /** Matches any Return and returns it */
385
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [Return ]
380
386
}
381
387
382
388
/** Scala local `return` */
@@ -386,43 +392,43 @@ trait TreeOps extends Core {
386
392
def unapply (tree : Tree )(implicit ctx : Context ): Option [Term ]
387
393
}
388
394
389
- val XYZ : IsXYZExtractor
390
- abstract class IsXYZExtractor {
391
- /** Matches any XYZ and returns it */
392
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
395
+ val IsRepeated : IsRepeatedModule
396
+ abstract class IsRepeatedModule {
397
+ /** Matches any Repeated and returns it */
398
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [Repeated ]
393
399
}
394
400
395
401
val Repeated : RepeatedExtractor
396
402
abstract class RepeatedExtractor {
397
403
def unapply (tree : Tree )(implicit ctx : Context ): Option [List [Term ]]
398
404
}
399
405
400
- val XYZ : IsXYZExtractor
401
- abstract class IsXYZExtractor {
402
- /** Matches any XYZ and returns it */
403
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
406
+ val IsInlined : IsInlinedModule
407
+ abstract class IsInlinedModule {
408
+ /** Matches any Inlined and returns it */
409
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [Inlined ]
404
410
}
405
411
406
412
val Inlined : InlinedExtractor
407
413
abstract class InlinedExtractor {
408
414
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Option [TermOrTypeTree ], List [Definition ], Term )]
409
415
}
410
416
411
- val XYZ : IsXYZExtractor
412
- abstract class IsXYZExtractor {
413
- /** Matches any XYZ and returns it */
414
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
417
+ val IsSelectOuter : IsSelectOuterModule
418
+ abstract class IsSelectOuterModule {
419
+ /** Matches any SelectOuter and returns it */
420
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [SelectOuter ]
415
421
}
416
422
417
423
val SelectOuter : SelectOuterExtractor
418
424
abstract class SelectOuterExtractor {
419
425
def unapply (tree : Tree )(implicit ctx : Context ): Option [(Term , Int , Type )]
420
426
}
421
427
422
- val XYZ : IsXYZExtractor
423
- abstract class IsXYZExtractor {
424
- /** Matches any XYZ and returns it */
425
- def unapply (tree : Tree )(implicit ctx : Context ): Option [XYZ ]
428
+ val IsWhile : IsWhileModule
429
+ abstract class IsWhileModule {
430
+ /** Matches any While and returns it */
431
+ def unapply (tree : Tree )(implicit ctx : Context ): Option [While ]
426
432
}
427
433
428
434
val While : WhileExtractor
0 commit comments