summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/Typers.scala
diff options
context:
space:
mode:
authorAdriaan Moors <adriaan.moors@epfl.ch>2011-11-24 14:55:11 +0000
committerAdriaan Moors <adriaan.moors@epfl.ch>2011-11-24 14:55:11 +0000
commit1b98d1fa2a54dc1d8fafed6d270534d729420c21 (patch)
tree531809f42ad76c3b913faa324bca77449c65e4fc /src/compiler/scala/tools/nsc/typechecker/Typers.scala
parent5fb26c6a889cf1609823338df8783bf880769b3f (diff)
downloadscala-1b98d1fa2a54dc1d8fafed6d270534d729420c21.tar.gz
scala-1b98d1fa2a54dc1d8fafed6d270534d729420c21.tar.bz2
scala-1b98d1fa2a54dc1d8fafed6d270534d729420c21.zip
low-hanging optimization fruit for virtpatmat
removed unnecessary zero that was added to all matches... providing runOrElse's type args explicitly: speeds up compilation, removes hacks needed to bootstrap a bit of clean up to keep a list of list of treemakers, which encodes the match, until the last possible moment this list of list is going to be the subject of the analyses coming next no review
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/Typers.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/Typers.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/Typers.scala b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
index 4da98d0fef..054fb1c036 100644
--- a/src/compiler/scala/tools/nsc/typechecker/Typers.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/Typers.scala
@@ -3218,7 +3218,7 @@ trait Typers extends Modes with Adaptations with PatMatVirtualiser {
val owntype = elimAnonymousClass(owntype0)
if (needAdapt) cases1 = cases1 map (adaptCase(_, owntype))
- val translated = (new MatchTranslator(this)).translateMatch(treeCopy.Match(tree, selector1, cases1), owntype)
+ val translated = (new MatchTranslator(this)).translateMatch(selector1, cases1, owntype)
typed1(translated, mode, WildcardType) setType owntype // TODO: get rid of setType owntype -- it should all typecheck
}