@@ -7,15 +7,15 @@ abstract class Tasty { tasty =>
77
88 // ===== Quotes ===================================================
99
10- trait AbstractQuotedExpr {
10+ trait QuotedExprAPI {
1111 def toTasty (implicit ctx : Context ): Term
1212 }
13- implicit def QuotedExprDeco [T ](x : quoted.Expr [T ]): AbstractQuotedExpr
13+ implicit def QuotedExprDeco [T ](x : quoted.Expr [T ]): QuotedExprAPI
1414
15- trait AbstractQuotedType {
15+ trait QuotedTypeAPI {
1616 def toTasty (implicit ctx : Context ): TypeTree
1717 }
18- implicit def QuotedTypeDeco [T ](x : quoted.Type [T ]): AbstractQuotedType
18+ implicit def QuotedTypeDeco [T ](x : quoted.Type [T ]): QuotedTypeAPI
1919
2020 // ===== Show =====================================================
2121
@@ -29,17 +29,17 @@ abstract class Tasty { tasty =>
2929
3030 type Context
3131
32- trait AbstractContext {
32+ trait ContextAPI {
3333 def owner : Definition
3434 }
35- implicit def ContextDeco (ctx : Context ): AbstractContext
35+ implicit def ContextDeco (ctx : Context ): ContextAPI
3636
3737 // ===== Id =======================================================
3838
3939 type Id
4040
41- trait AbstractId extends Positioned
42- implicit def IdDeco (x : Id ): AbstractId
41+ trait IdAPI extends Positioned
42+ implicit def IdDeco (x : Id ): IdAPI
4343
4444 implicit def idClassTag : ClassTag [Id ]
4545
@@ -52,10 +52,10 @@ abstract class Tasty { tasty =>
5252
5353 type Tree
5454
55- trait AbstractTree extends Positioned {
55+ trait TreeAPI extends Positioned {
5656 def show (implicit ctx : Context , s : Show [tasty.type ]): String
5757 }
58- implicit def TreeDeco (tree : Tree ): AbstractTree
58+ implicit def TreeDeco (tree : Tree ): TreeAPI
5959
6060 type PackageClause <: Tree
6161
@@ -66,10 +66,10 @@ abstract class Tasty { tasty =>
6666 def unapply (x : PackageClause )(implicit ctx : Context ): Option [(Term , List [Tree ])]
6767 }
6868
69- trait AbstractPackageClause {
69+ trait PackageClauseAPI {
7070 def definition (implicit ctx : Context ): Definition
7171 }
72- implicit def PackageClauseDeco (x : PackageClause ): AbstractPackageClause
72+ implicit def PackageClauseDeco (x : PackageClause ): PackageClauseAPI
7373
7474 // ----- Statements -----------------------------------------------
7575
@@ -114,13 +114,13 @@ abstract class Tasty { tasty =>
114114
115115 implicit def definitionClassTag : ClassTag [Definition ]
116116
117- trait AbstractDefinition {
117+ trait DefinitionAPI {
118118 def flags (implicit ctx : Context ): FlagSet
119119 def mods (implicit ctx : Context ): List [Modifier ]
120120 def owner (implicit ctx : Context ): Definition
121121 def localContext (implicit ctx : Context ): Context
122122 }
123- implicit def DefinitionDeco (x : Definition ): AbstractDefinition
123+ implicit def DefinitionDeco (x : Definition ): DefinitionAPI
124124
125125 // ClassDef
126126
@@ -170,10 +170,10 @@ abstract class Tasty { tasty =>
170170
171171 type PackageDef <: Definition
172172
173- trait AbstractPackageDef {
173+ trait PackageDefAPI {
174174 def members (implicit ctx : Context ): List [Statement ]
175175 }
176- implicit def PackageDefDeco (t : PackageDef ): AbstractPackageDef
176+ implicit def PackageDefDeco (t : PackageDef ): PackageDefAPI
177177
178178 implicit def packageDefClassTag : ClassTag [PackageDef ]
179179
@@ -190,10 +190,10 @@ abstract class Tasty { tasty =>
190190
191191 type Term <: Statement with Parent
192192
193- trait AbstractTerm extends Typed with Positioned {
193+ trait TermAPI extends Typed with Positioned {
194194 def toExpr [T : quoted.Type ](implicit ctx : Context ): quoted.Expr [T ]
195195 }
196- implicit def TermDeco (t : Term ): AbstractTerm
196+ implicit def TermDeco (t : Term ): TermAPI
197197
198198 implicit def termClassTag : ClassTag [Term ]
199199
@@ -310,10 +310,10 @@ abstract class Tasty { tasty =>
310310
311311 implicit def caseDefClassTag : ClassTag [CaseDef ]
312312
313- trait AbstractCaseDef {
313+ trait CaseDefAPI {
314314 def show (implicit ctx : Context , s : Show [tasty.type ]): String
315315 }
316- implicit def CaseDefDeco (caseDef : CaseDef ): AbstractCaseDef
316+ implicit def CaseDefDeco (caseDef : CaseDef ): CaseDefAPI
317317
318318 val CaseDef : CaseDefExtractor
319319 abstract class CaseDefExtractor {
@@ -324,10 +324,10 @@ abstract class Tasty { tasty =>
324324
325325 type Pattern
326326
327- trait AbstractPattern extends Typed with Positioned {
327+ trait PatternAPI extends Typed with Positioned {
328328 def show (implicit ctx : Context , s : Show [tasty.type ]): String
329329 }
330- implicit def PatternDeco (x : Pattern ): AbstractPattern
330+ implicit def PatternDeco (x : Pattern ): PatternAPI
331331
332332 implicit def patternClassTag : ClassTag [Pattern ]
333333
@@ -365,19 +365,19 @@ abstract class Tasty { tasty =>
365365
366366 type TypeOrBoundsTree
367367
368- trait AbstractTypeOrBoundsTree {
368+ trait TypeOrBoundsTreeAPI {
369369 def show (implicit ctx : Context , s : Show [tasty.type ]): String
370370 def tpe (implicit ctx : Context ): TypeOrBounds
371371 }
372- implicit def TypeOrBoundsTreeDeco (tpt : TypeOrBoundsTree ): AbstractTypeOrBoundsTree
372+ implicit def TypeOrBoundsTreeDeco (tpt : TypeOrBoundsTree ): TypeOrBoundsTreeAPI
373373
374374
375375 // ----- TypeTrees ------------------------------------------------
376376
377377 type TypeTree <: TypeOrBoundsTree with Parent
378378
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
381381
382382 implicit def typeTreeClassTag : ClassTag [TypeTree ]
383383
@@ -442,10 +442,10 @@ abstract class Tasty { tasty =>
442442
443443 type TypeBoundsTree <: TypeOrBoundsTree
444444
445- trait AbstractTypeBoundsTree {
445+ trait TypeBoundsTreeAPI {
446446 def tpe (implicit ctx : Context ): TypeBounds
447447 }
448- implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): AbstractTypeBoundsTree
448+ implicit def TypeBoundsTreeDeco (x : TypeBoundsTree ): TypeBoundsTreeAPI
449449
450450 implicit def typeBoundsTreeClassTag : ClassTag [TypeBoundsTree ]
451451
@@ -462,10 +462,10 @@ abstract class Tasty { tasty =>
462462 def tpe (implicit ctx : Context ): Type
463463 }
464464
465- trait AbstractTypeOrBounds {
465+ trait TypeOrBoundsAPI {
466466 def show (implicit ctx : Context , s : Show [tasty.type ]): String
467467 }
468- implicit def TypeOrBoundsDeco (tpe : TypeOrBounds ): AbstractTypeOrBounds
468+ implicit def TypeOrBoundsDeco (tpe : TypeOrBounds ): TypeOrBoundsAPI
469469
470470 // ----- Types ----------------------------------------------------
471471
@@ -484,11 +484,11 @@ abstract class Tasty { tasty =>
484484 implicit def typeLambdaClassTag : ClassTag [TypeLambda ]
485485 implicit def recursiveTypeClassTag : ClassTag [RecursiveType ]
486486
487- trait AbstractMethodType {
487+ trait MethodTypeAPI {
488488 def isImplicit : Boolean
489489 def isErased : Boolean
490490 }
491- implicit def MethodTypeDeco (x : MethodType ): AbstractMethodType
491+ implicit def MethodTypeDeco (x : MethodType ): MethodTypeAPI
492492
493493 val Type : TypeModule
494494 abstract class TypeModule {
@@ -612,11 +612,11 @@ abstract class Tasty { tasty =>
612612 // ===== Constants ================================================
613613
614614 type Constant
615- trait AbstractConstant {
615+ trait ConstantAPI {
616616 def show (implicit ctx : Context , s : Show [tasty.type ]): String
617617 def value : Any
618618 }
619- implicit def ConstantDeco (const : Constant ): AbstractConstant
619+ implicit def ConstantDeco (const : Constant ): ConstantAPI
620620
621621 implicit def constantClassTag : ClassTag [Constant ]
622622
@@ -727,7 +727,7 @@ abstract class Tasty { tasty =>
727727
728728 type Position
729729
730- trait AbstractPosition {
730+ trait PositionAPI {
731731 def start : Int
732732 def end : Int
733733
@@ -738,7 +738,7 @@ abstract class Tasty { tasty =>
738738 def endLine : Int
739739 def endColumn : Int
740740 }
741- implicit def PositionDeco (pos : Position ): AbstractPosition
741+ implicit def PositionDeco (pos : Position ): PositionAPI
742742
743743 trait Positioned {
744744 def pos (implicit ctx : Context ): Position
0 commit comments