blob: 606fd0fc6f559fc538d8a98b5f512ebf36cd23d3 (
plain) (
blame)
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
}
|