@@ -7,15 +7,15 @@ abstract class Tasty { tasty =>
7
7
8
8
// ===== Quotes ===================================================
9
9
10
- trait AbstractQuotedExpr {
10
+ trait QuotedExprAPI {
11
11
def toTasty (implicit ctx : Context ): Term
12
12
}
13
- implicit def QuotedExprDeco [T ](x : quoted.Expr [T ]): AbstractQuotedExpr
13
+ implicit def QuotedExprDeco [T ](x : quoted.Expr [T ]): QuotedExprAPI
14
14
15
- trait AbstractQuotedType {
15
+ trait QuotedTypeAPI {
16
16
def toTasty (implicit ctx : Context ): TypeTree
17
17
}
18
- implicit def QuotedTypeDeco [T ](x : quoted.Type [T ]): AbstractQuotedType
18
+ implicit def QuotedTypeDeco [T ](x : quoted.Type [T ]): QuotedTypeAPI
19
19
20
20
// ===== Show =====================================================
21
21
@@ -29,17 +29,17 @@ abstract class Tasty { tasty =>
29
29
30
30
type Context
31
31
32
- trait AbstractContext {
32
+ trait ContextAPI {
33
33
def owner : Definition
34
34
}
35
- implicit def ContextDeco (ctx : Context ): AbstractContext
35
+ implicit def ContextDeco (ctx : Context ): ContextAPI
36
36
37
37
// ===== Id =======================================================
38
38
39
39
type Id
40
40
41
- trait AbstractId extends Positioned
42
- implicit def IdDeco (x : Id ): AbstractId
41
+ trait IdAPI extends Positioned
42
+ implicit def IdDeco (x : Id ): IdAPI
43
43
44
44
implicit def idClassTag : ClassTag [Id ]
45
45
@@ -52,10 +52,10 @@ abstract class Tasty { tasty =>
52
52
53
53
type Tree
54
54
55
- trait AbstractTree extends Positioned {
55
+ trait TreeAPI extends Positioned {
56
56
def show (implicit ctx : Context , s : Show [tasty.type ]): String
57
57
}
58
- implicit def TreeDeco (tree : Tree ): AbstractTree
58
+ implicit def TreeDeco (tree : Tree ): TreeAPI
59
59
60
60
type PackageClause <: Tree
61
61
@@ -66,10 +66,10 @@ abstract class Tasty { tasty =>
66
66
def unapply (x : PackageClause )(implicit ctx : Context ): Option [(Term , List [Tree ])]
67
67
}
68
68
69
- trait AbstractPackageClause {
69
+ trait PackageClauseAPI {
70
70
def definition (implicit ctx : Context ): Definition
71
71
}
72
- implicit def PackageClauseDeco (x : PackageClause ): AbstractPackageClause
72
+ implicit def PackageClauseDeco (x : PackageClause ): PackageClauseAPI
73
73
74
74
// ----- Statements -----------------------------------------------
75
75
@@ -114,13 +114,13 @@ abstract class Tasty { tasty =>
114
114
115
115
implicit def definitionClassTag : ClassTag [Definition ]
116
116
117
- trait AbstractDefinition {
117
+ trait DefinitionAPI {
118
118
def flags (implicit ctx : Context ): FlagSet
119
119
def mods (implicit ctx : Context ): List [Modifier ]
120
120
def owner (implicit ctx : Context ): Definition
121
121
def localContext (implicit ctx : Context ): Context
122
122
}
123
- implicit def DefinitionDeco (x : Definition ): AbstractDefinition
123
+ implicit def DefinitionDeco (x : Definition ): DefinitionAPI
124
124
125
125
// ClassDef
126
126
@@ -170,10 +170,10 @@ abstract class Tasty { tasty =>
170
170
171
171
type PackageDef <: Definition
172
172
173
- trait AbstractPackageDef {
173
+ trait PackageDefAPI {
174
174
def members (implicit ctx : Context ): List [Statement ]
175
175
}
176
- implicit def PackageDefDeco (t : PackageDef ): AbstractPackageDef
176
+ implicit def PackageDefDeco (t : PackageDef ): PackageDefAPI
177
177
178
178
implicit def packageDefClassTag : ClassTag [PackageDef ]
179
179
@@ -190,10 +190,10 @@ abstract class Tasty { tasty =>
190
190
191
191
type Term <: Statement with Parent
192
192
193
- trait AbstractTerm extends Typed with Positioned {
193
+ trait TermAPI extends Typed with Positioned {
194
194
def toExpr [T : quoted.Type ](implicit ctx : Context ): quoted.Expr [T ]
195
195
}
196
- implicit def TermDeco (t : Term ): AbstractTerm
196
+ implicit def TermDeco (t : Term ): TermAPI
197
197
198
198
implicit def termClassTag : ClassTag [Term ]
199
199
@@ -310,10 +310,10 @@ abstract class Tasty { tasty =>
310
310
311
311
implicit def caseDefClassTag : ClassTag [CaseDef ]
312
312
313
- trait AbstractCaseDef {
313
+ trait CaseDefAPI {
314
314
def show (implicit ctx : Context , s : Show [tasty.type ]): String
315
315
}
316
- implicit def CaseDefDeco (caseDef : CaseDef ): AbstractCaseDef
316
+ implicit def CaseDefDeco (caseDef : CaseDef ): CaseDefAPI
317
317
318
318
val CaseDef : CaseDefExtractor
319
319
abstract class CaseDefExtractor {
@@ -324,10 +324,10 @@ abstract class Tasty { tasty =>
324
324
325
325
type Pattern
326
326
327
- trait AbstractPattern extends Typed with Positioned {
327
+ trait PatternAPI extends Typed with Positioned {
328
328
def show (implicit ctx : Context , s : Show [tasty.type ]): String
329
329
}
330
- implicit def PatternDeco (x : Pattern ): AbstractPattern
330
+ implicit def PatternDeco (x : Pattern ): PatternAPI
331
331
332
332
implicit def patternClassTag : ClassTag [Pattern ]
333
333
@@ -365,19 +365,19 @@ abstract class Tasty { tasty =>
365
365
366
366
type TypeOrBoundsTree
367
367
368
- trait AbstractTypeOrBoundsTree {
368
+ trait TypeOrBoundsTreeAPI {
369
369
def show (implicit ctx : Context , s : Show [tasty.type ]): String
370
370
def tpe (implicit ctx : Context ): TypeOrBounds
371
371
}
372
- implicit def TypeOrBoundsTreeDeco (tpt : TypeOrBoundsTree ): AbstractTypeOrBoundsTree
372
+ implicit def TypeOrBoundsTreeDeco (tpt : TypeOrBoundsTree ): TypeOrBoundsTreeAPI
373
373
374
374
375
375
// ----- TypeTrees ------------------------------------------------
376
376
377
377
type TypeTree <: TypeOrBoundsTree with Parent
378
378
379
- trait AbstractTypeTree extends Typed with Positioned
380
- implicit def TypeTreeDeco (x : TypeTree ): AbstractTypeTree
379
+ trait TypeTreeAPI extends Typed with Positioned
380
+ implicit def TypeTreeDeco (x : TypeTree ): TypeTreeAPI
381
381
382
382
implicit def typeTreeClassTag : ClassTag [TypeTree ]
383
383
@@ -442,10 +442,10 @@ abstract class Tasty { tasty =>
442
442
443
443
type TypeBoundsTree <: TypeOrBoundsTree
444
444
445
- trait AbstractTypeBoundsTree {
445
+ trait TypeBoundsTreeAPI {
446
446
def tpe (implicit ctx : Context ): TypeBounds
447
447
}
448
- implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree
448
+ implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): TypeBoundsTreeAPI
449
449
450
450
implicit def typeBoundsTreeClassTag : ClassTag [TypeBoundsTree ]
451
451
@@ -462,10 +462,10 @@ abstract class Tasty { tasty =>
462
462
def tpe (implicit ctx : Context ): Type
463
463
}
464
464
465
- trait AbstractTypeOrBounds {
465
+ trait TypeOrBoundsAPI {
466
466
def show (implicit ctx : Context , s : Show [tasty.type ]): String
467
467
}
468
- implicit def TypeOrBoundsDeco (tpe : TypeOrBounds ): AbstractTypeOrBounds
468
+ implicit def TypeOrBoundsDeco (tpe : TypeOrBounds ): TypeOrBoundsAPI
469
469
470
470
// ----- Types ----------------------------------------------------
471
471
@@ -484,11 +484,11 @@ abstract class Tasty { tasty =>
484
484
implicit def typeLambdaClassTag : ClassTag [TypeLambda ]
485
485
implicit def recursiveTypeClassTag : ClassTag [RecursiveType ]
486
486
487
- trait AbstractMethodType {
487
+ trait MethodTypeAPI {
488
488
def isImplicit : Boolean
489
489
def isErased : Boolean
490
490
}
491
- implicit def MethodTypeDeco (x : MethodType ): AbstractMethodType
491
+ implicit def MethodTypeDeco (x : MethodType ): MethodTypeAPI
492
492
493
493
val Type : TypeModule
494
494
abstract class TypeModule {
@@ -612,11 +612,11 @@ abstract class Tasty { tasty =>
612
612
// ===== Constants ================================================
613
613
614
614
type Constant
615
- trait AbstractConstant {
615
+ trait ConstantAPI {
616
616
def show (implicit ctx : Context , s : Show [tasty.type ]): String
617
617
def value : Any
618
618
}
619
- implicit def ConstantDeco (const : Constant ): AbstractConstant
619
+ implicit def ConstantDeco (const : Constant ): ConstantAPI
620
620
621
621
implicit def constantClassTag : ClassTag [Constant ]
622
622
@@ -727,7 +727,7 @@ abstract class Tasty { tasty =>
727
727
728
728
type Position
729
729
730
- trait AbstractPosition {
730
+ trait PositionAPI {
731
731
def start : Int
732
732
def end : Int
733
733
@@ -738,7 +738,7 @@ abstract class Tasty { tasty =>
738
738
def endLine : Int
739
739
def endColumn : Int
740
740
}
741
- implicit def PositionDeco (pos : Position ): AbstractPosition
741
+ implicit def PositionDeco (pos : Position ): PositionAPI
742
742
743
743
trait Positioned {
744
744
def pos (implicit ctx : Context ): Position
0 commit comments