Skip to content

Commit 5ccc050

Browse files
committed
Mark extractors that are currently untested
1 parent 86f72c6 commit 5ccc050

File tree

12 files changed

+24
-0
lines changed

12 files changed

+24
-0
lines changed

compiler/src/dotty/tools/dotc/tasty/internal/MethodType.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import scala.tasty.types
88

99
object MethodType {
1010

11+
// TODO make sure all extractors are tested
12+
1113
def apply(tpe: Types.MethodType)(implicit ctx: Context): types.MethodType = Impl(tpe, ctx)
1214

1315
def unapplyMethodType(tpe: types.MaybeType): Option[types.MethodType.Data] = tpe match {

compiler/src/dotty/tools/dotc/tasty/internal/Modifier.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import scala.tasty.modifiers
99

1010
object Modifier {
1111

12+
// TODO make sure all flags are tested
13+
1214
def apply(mod: untpd.Mod)(implicit ctx: Context): modifiers.Modifier = Impl(mod, ctx)
1315

1416
private case class Impl(mod: untpd.Mod, ctx: Context) extends modifiers.Modifier {

compiler/src/dotty/tools/dotc/tasty/internal/Package.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import scala.tasty.statements
88

99
object Package {
1010

11+
// TODO make sure all extractors are tested
12+
1113
def apply(tree: tpd.Tree)(implicit ctx: Context): statements.Package = Impl(tree, ctx)
1214

1315
def unapplyPackage(term: scala.tasty.statements.TopLevelStatement): Option[statements.Package.Data] = term match {

compiler/src/dotty/tools/dotc/tasty/internal/PolyType.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import scala.tasty.types
88

99
object PolyType {
1010

11+
// TODO make sure all extractors are tested
12+
1113
def apply(tpe: Types.PolyType)(implicit ctx: Context): types.PolyType = Impl(tpe, ctx)
1214

1315
def unapplyPolyType(tpe: types.MaybeType): Option[types.PolyType.Data] = tpe match {

compiler/src/dotty/tools/dotc/tasty/internal/QualifiedModifier.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import scala.tasty.modifiers
99

1010
object QualifiedModifier {
1111

12+
// TODO make sure all extractors are tested
13+
1214
def apply(tree: tpd.DefTree)(implicit ctx: Context): modifiers.Modifier = Impl(tree, ctx)
1315

1416
def unapplyQualifiedPrivate(mod: modifiers.Modifier): Option[modifiers.QualifiedPrivate.Data] = mod match {

compiler/src/dotty/tools/dotc/tasty/internal/RecursiveType.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import scala.tasty.types
88

99
object RecursiveType {
1010

11+
// TODO make sure all extractors are tested
12+
1113
def apply(bounds: Types.RecType)(implicit ctx: Context): types.RecursiveType = Impl(bounds, ctx)
1214

1315
def unapplyRecursiveType(tpe: types.MaybeType): Option[types.RecursiveType.Data] = tpe match {

compiler/src/dotty/tools/dotc/tasty/internal/SignedName.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import scala.tasty.names
77

88
object SignedName {
99

10+
// TODO make sure all extractors are tested
11+
1012
def apply(name: Names.TermName): names.SignedName = Impl(name)
1113

1214
def unapplySignedName(arg: names.PossiblySignedName): Option[names.SignedName.Data] = arg match {

compiler/src/dotty/tools/dotc/tasty/internal/Term.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ import scala.tasty.types
1313

1414
object Term {
1515

16+
// TODO make sure all extractors are tested
17+
1618
def apply(arg: tpd.Tree)(implicit ctx: Context): terms.Term = Impl(arg, ctx)
1719

1820
def unapplyIdent(arg: statements.TopLevelStatement): Option[terms.Ident.Data] = arg match {

compiler/src/dotty/tools/dotc/tasty/internal/TermName.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import scala.tasty.names
88

99
object TermName {
1010

11+
// TODO make sure all extractors are tested
12+
1113
def apply(name: Names.TermName): names.TermName = Impl(name)
1214

1315
def unapplySimple(arg: names.Name): Option[names.Simple.Data] = arg match {

compiler/src/dotty/tools/dotc/tasty/internal/TypeBounds.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import scala.tasty.types
88

99
object TypeBounds {
1010

11+
// TODO make sure all extractors are tested
12+
1113
def apply(bounds: Types.TypeBounds)(implicit ctx: Context): types.TypeBounds = Impl(bounds, ctx)
1214

1315
def unapplyTypeBounds(tpe: types.MaybeType): Option[types.TypeBounds.Data] = tpe match {

compiler/src/dotty/tools/dotc/tasty/internal/TypeLambda.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import scala.tasty.types
88

99
object TypeLambda {
1010

11+
// TODO make sure all extractors are tested
12+
1113
def apply(tpe: Types.TypeLambda)(implicit ctx: Context): types.TypeLambda = Impl(tpe, ctx)
1214

1315
def unapplyTypeLambda(tpe: types.MaybeType): Option[types.TypeLambda.Data] = tpe match {

compiler/src/dotty/tools/dotc/tasty/internal/TypeName.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import scala.tasty.names
66

77
object TypeName {
88

9+
// TODO make sure all extractors are tested
10+
911
def apply(name: Names.TypeName): names.TypeName = Impl(name)
1012

1113
def unapplyTypeName(arg: names.Name): Option[names.TypeName.Data] = arg match {

0 commit comments

Comments
 (0)