aboutsummaryrefslogblamecommitdiff
path: root/src/dotty/tools/dotc/CompilationUnit.scala
blob: 791e8899de6dcfc94847e01efa755888ac43c20c (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14













                                               

                                                 
 
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")

}