Custom Compiler with phases for the documentation tool
The idea here is to structure
dottydoc around the new infrastructure. As
such, dottydoc will itself be a compiler. It will, however, produce a format
that can be used by other tools or web-browsers.
Example: 1. Use the existing FrontEnd to typecheck the code being fed to dottydoc, wihtout discarding AnyVal interfaces 2. Create an AST that is serializable 3. Serialize to JS object
DocDriver implements the main entry point to the Dotty documentation
tool. It's methods are used by the external scala and java APIs.
Main runnable for DottyDoc