diff options
author | Martin Odersky <odersky@gmail.com> | 2015-03-04 16:21:45 +0100 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2015-03-04 16:21:45 +0100 |
commit | b558d6196bb75217acd466bffd59cd4ee339ba27 (patch) | |
tree | 0c79a9828333b53e22715034cccf043b5ff2849a /src/dotty/tools/backend | |
parent | 2bdce25034d50bc7526dc1d1c8f57e9c20e45b60 (diff) | |
download | dotty-b558d6196bb75217acd466bffd59cd4ee339ba27.tar.gz dotty-b558d6196bb75217acd466bffd59cd4ee339ba27.tar.bz2 dotty-b558d6196bb75217acd466bffd59cd4ee339ba27.zip |
Eliminate Throw as a typed Tree
Replace with
<compiler-ops>.throw(exception)
Only leave Throw as an untyped tree.
Diffstat (limited to 'src/dotty/tools/backend')
-rw-r--r-- | src/dotty/tools/backend/jvm/DottyBackendInterface.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala index 09d0452cf..44377cab4 100644 --- a/src/dotty/tools/backend/jvm/DottyBackendInterface.scala +++ b/src/dotty/tools/backend/jvm/DottyBackendInterface.scala @@ -29,6 +29,8 @@ import Decorators._ import tpd._ import StdNames.nme +case class DummyThrow(expr: tpd.Tree) extends tpd.TermTree + class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ trait NonExistentTree extends tpd.Tree type Symbol = Symbols.Symbol @@ -48,7 +50,7 @@ class DottyBackendInterface()(implicit ctx: Context) extends BackendInterface{ type Ident = tpd.Ident type If = tpd.If type ValDef = tpd.ValDef - type Throw = tpd.Throw + type Throw = DummyThrow type Return = tpd.Return type Block = tpd.Block type Typed = tpd.Typed |