Skip to content

Commit d67e1f4

Browse files
committed
Add TODOs
1 parent 8d9fa9c commit d67e1f4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/src/dotty/tools/backend/jvm/BCodeBodyBuilder.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
331331
}
332332
val (fun, args) = call match {
333333
case Apply(fun, args) => (fun, args)
334-
case t @ DesugaredSelect(_, _) => (t, Nil)
334+
case t @ DesugaredSelect(_, _) => (t, Nil) // TODO: use Select
335335
case t @ Ident(_) => (t, Nil)
336336
}
337337

@@ -517,7 +517,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
517517
val sym = const.symbolValue
518518
val ownerName = internalName(sym.owner)
519519
val fieldName = sym.javaSimpleName
520-
val underlying = sym.info match {
520+
val underlying = sym.info match { // TODO: Is this actually necessary? Could it be replaced by a call to widen?
521521
case t: TypeProxy => t.underlying
522522
case t => t
523523
}

compiler/src/dotty/tools/backend/jvm/BCodeSkelBuilder.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ trait BCodeSkelBuilder extends BCodeHelpers {
174174
case _ => ()
175175
}
176176

177-
val ssa = None // getAnnotPickle(thisName, claszSymbol)
177+
val ssa = None // TODO: inlined form `getAnnotPickle(thisName, claszSymbol)`. Should something be done on Dotty?
178178
cnode.visitAttribute(if (ssa.isDefined) pickleMarkerLocal else pickleMarkerForeign)
179179
emitAnnotations(cnode, claszSymbol.annotations ++ ssa)
180180

compiler/src/dotty/tools/backend/jvm/BCodeSyncAndTry.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ trait BCodeSyncAndTry extends BCodeBodyBuilder {
410410
}
411411

412412
/* Does this tree have a try-catch block? */
413-
def mayCleanStack(tree: Tree): Boolean = tree.find { t => t match {
413+
def mayCleanStack(tree: Tree): Boolean = tree.find { t => t match { // TODO: use existsSubTree
414414
case Try(_, _, _) => true
415415
case _ => false
416416
}

0 commit comments

Comments
 (0)