diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-01-03 10:47:59 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-31 14:28:08 +0100 |
commit | 198464a0ef18b3d394a2fd456b98f53c3e95d2e1 (patch) | |
tree | f165ec3010e4c71f8e0df1a288af2d95b8fc3582 /doc-tool/src/dotty/tools/dottydoc/DocFrontEnd.scala | |
parent | 25fde7896d27f31d2c1c0adfbff8e2b3e390ceaa (diff) | |
download | dotty-198464a0ef18b3d394a2fd456b98f53c3e95d2e1.tar.gz dotty-198464a0ef18b3d394a2fd456b98f53c3e95d2e1.tar.bz2 dotty-198464a0ef18b3d394a2fd456b98f53c3e95d2e1.zip |
Split Dottydoc.scala into separate files
Diffstat (limited to 'doc-tool/src/dotty/tools/dottydoc/DocFrontEnd.scala')
-rw-r--r-- | doc-tool/src/dotty/tools/dottydoc/DocFrontEnd.scala | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/doc-tool/src/dotty/tools/dottydoc/DocFrontEnd.scala b/doc-tool/src/dotty/tools/dottydoc/DocFrontEnd.scala new file mode 100644 index 000000000..30c5e3e87 --- /dev/null +++ b/doc-tool/src/dotty/tools/dottydoc/DocFrontEnd.scala @@ -0,0 +1,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 +} |