diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-01-12 14:05:25 +0100 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-01-31 14:31:07 +0100 |
commit | 3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052 (patch) | |
tree | f05f59ccae411d1909fc14aacbb8ad740769c778 /docs/docs/usage/migrating.md | |
parent | ab80297a30fc5942b811e9b6287230894361466e (diff) | |
download | dotty-3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052.tar.gz dotty-3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052.tar.bz2 dotty-3cee0b5e38f05bd70bec9d2bb392acdbd4fe8052.zip |
Port old site to dottydoc
Diffstat (limited to 'docs/docs/usage/migrating.md')
-rw-r--r-- | docs/docs/usage/migrating.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/docs/docs/usage/migrating.md b/docs/docs/usage/migrating.md index eb76571e5..5a2f64be3 100644 --- a/docs/docs/usage/migrating.md +++ b/docs/docs/usage/migrating.md @@ -1,5 +1,5 @@ --- -layout: default +layout: doc-page title: "Migrating to Dotty" --- @@ -17,15 +17,15 @@ Most `sym.isProperty` methods don't exist in dotc, test for flags instead. See [dotc vs scalac: Trees, Symbols, Types & Denotations] ### Logging, Error Reporting, Failures ### - There are various kinds of logging: - * Errors, warnings, etc: `ctx.inform`, `ctx.warning`, `ctx.error`, ... - * Log messages displayed under `-Ylog:phase`: `log(msg)` in scalac => - `ctx.log(msg)` in dotc - * Debug-Log messages displayed under `-Ydebug -Ylog:<phase>`: `debuglog(msg)` - in scalac => `ctx.debuglog(msg)` in dotc - * Assertions: `assert(invariant)` - * Fatal errors: `abort(msg)` in scalac => `throw new + +* Errors, warnings, etc: `ctx.inform`, `ctx.warning`, `ctx.error`, ... +* Log messages displayed under `-Ylog:phase`: `log(msg)` in scalac => + `ctx.log(msg)` in dotc +* Debug-Log messages displayed under `-Ydebug -Ylog:<phase>`: `debuglog(msg)` + in scalac => `ctx.debuglog(msg)` in dotc +* Assertions: `assert(invariant)` +* Fatal errors: `abort(msg)` in scalac => `throw new dotty.tools.dotc.FatalError(msg)` in dotc |