Skip to content

Commit 78e4ed7

Browse files
committed
Add documentation
1 parent 420e4c5 commit 78e4ed7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

library/src/scala/tasty/Tasty.scala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,8 +388,10 @@ abstract class Tasty { tasty =>
388388

389389
def unapply(x: TypeTree)(implicit ctx: Context): Boolean
390390

391+
/** TypeTree containing an inferred type */
391392
val Synthetic: SyntheticExtractor
392393
abstract class SyntheticExtractor {
394+
/** Matches a TypeTree containing an inferred type */
393395
def unapply(x: TypeTree)(implicit ctx: Context): Boolean
394396
}
395397

@@ -456,8 +458,10 @@ abstract class Tasty { tasty =>
456458
def unapply(x: TypeBoundsTree)(implicit ctx: Context): Option[(TypeTree, TypeTree)]
457459
}
458460

461+
/** TypeBoundsTree containing an inferred type bounds */
459462
val SyntheticBounds: SyntheticBoundsExtractor
460463
abstract class SyntheticBoundsExtractor {
464+
/** Matches a TypeBoundsTree containing inferred type bounds */
461465
def unapply(x: TypeBoundsTree)(implicit ctx: Context): Boolean
462466
}
463467

0 commit comments

Comments
 (0)