Skip to content

Commit 2adacfe

Browse files
author
Martijn Hoekstra
committed
reset compilation unit
1 parent bbdfc70 commit 2adacfe

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

compiler/src/dotty/tools/dotc/CompilationUnit.scala

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,6 @@ import dotty.tools.dotc.core.Symbols._
1212
import dotty.tools.dotc.transform.SymUtils._
1313
import dotty.tools.dotc.typer.Inliner
1414

15-
16-
import dotty.tools.dotc.reporting.diagnostic.MessageContainer
17-
/*
18-
trait WarningTransformer {
19-
val transformer: MessageContainer => Option[MessageContainer]
20-
position: Position
21-
}
22-
*/
23-
2415
class CompilationUnit(val source: SourceFile) {
2516

2617
override def toString: String = source.toString
@@ -29,9 +20,7 @@ class CompilationUnit(val source: SourceFile) {
2920

3021
var tpdTree: tpd.Tree = tpd.EmptyTree
3122

32-
//var warningTransformers: List[WarningTransformer] = Nil
33-
34-
def isJava = source.file.name.endsWith(".java")
23+
def isJava: Boolean = source.file.name.endsWith(".java")
3524

3625
/** Pickled TASTY binaries, indexed by class. */
3726
var pickled: Map[ClassSymbol, Array[Byte]] = Map()

0 commit comments

Comments
 (0)