aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/CompilationUnit.scala
blob: 9c14314594ccbe6cbb351de4b9efc223c24c8df0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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")
}