aboutsummaryrefslogblamecommitdiff
path: root/doc-tool/src/dotty/tools/dottydoc/DocFrontEnd.scala
blob: 30c5e3e8747d6ad67533ad7aa8c5daad881504a7 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
















                                                                                          
package dotty.tools
package dottydoc

import dotc.typer.FrontEnd
import dotc.core.Contexts.Context
import dotc.CompilationUnit

/** `DocFrontEnd` uses the Dotty `FrontEnd` without discarding the AnyVal
  * interfaces for Boolean, Int, Char, Long, Byte etc.
  *
  * It currently still throws away Java sources by overriding
  * `discardAfterTyper`.
  */
class DocFrontEnd extends FrontEnd {
  override protected def discardAfterTyper(unit: CompilationUnit)(implicit ctx: Context) =
    unit.isJava
}