1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
package dotty.tools package dotc import util.SourceFile import ast.{tpd, untpd} class CompilationUnit(val source: SourceFile) { override def toString = source.toString var untpdTree: untpd.Tree = untpd.EmptyTree var tpdTree: tpd.Tree = tpd.EmptyTree def isJava = source.file.name.endsWith(".java") }