summaryrefslogtreecommitdiff
path: root/src/compiler
diff options
context:
space:
mode:
authorDavid MacIver <david.maciver@gmail.com>2008-10-29 22:35:01 +0000
committerDavid MacIver <david.maciver@gmail.com>2008-10-29 22:35:01 +0000
commit8c770d3a7a6bab2cec5a2f13b725d4f43b35f2b3 (patch)
tree8d2a14a5e6e2ec3a03a519b6322ebd04a09c8911 /src/compiler
parent32cebff4baf2cd9e85fd71e75fcf86947bb9f1cf (diff)
downloadscala-8c770d3a7a6bab2cec5a2f13b725d4f43b35f2b3.tar.gz
scala-8c770d3a7a6bab2cec5a2f13b725d4f43b35f2b3.tar.bz2
scala-8c770d3a7a6bab2cec5a2f13b725d4f43b35f2b3.zip
Minor cleanup of my last change.
Diffstat (limited to 'src/compiler')
-rw-r--r--src/compiler/scala/tools/nsc/matching/CodeFactory.scala3
-rw-r--r--src/compiler/scala/tools/nsc/matching/ParallelMatching.scala4
2 files changed, 5 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala
index ca44b5609e..6918bf0674 100644
--- a/src/compiler/scala/tools/nsc/matching/CodeFactory.scala
+++ b/src/compiler/scala/tools/nsc/matching/CodeFactory.scala
@@ -124,6 +124,9 @@ trait CodeFactory {
Apply(Select(tree, nme.ne), List(Literal(Constant(null))))
}
+ final def Get(tree : Tree)
+ = Apply(Select(tree, nme.get), List())
+
// statistics
var nremoved = 0
var nsubstituted = 0
diff --git a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala
index f319ac655c..47e3572180 100644
--- a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala
+++ b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala
@@ -361,12 +361,12 @@ trait ParallelMatching {
r.insert(List(EmptyTree, pat))
}}
- val vdef = typedValDef(vsym, Apply(Select(mkIdent(ures), nme.get), List()))
+ val vdef = typedValDef(vsym, Get(mkIdent(ures)))
(uacall, List(vdef), rep.make(ntemps, nrows), nrepFail)
case _ => // app.tpe is Option[? <: ProductN[T1,...,Tn]]
val uresGet = newVarCapture(ua.pos, app.tpe.typeArgs(0))
- val vdefHead = typedValDef(uresGet, Select(mkIdent(ures), nme.get))
+ val vdefHead = typedValDef(uresGet, Get(mkIdent(ures)))
val ts = definitions.getProductArgs(uresGet.tpe).get
val (vdefs: List[Tree], vsyms: List[Symbol]) = List.unzip(