summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
diff options
context:
space:
mode:
authorMartin Odersky <odersky@gmail.com>2009-06-18 15:22:12 +0000
committerMartin Odersky <odersky@gmail.com>2009-06-18 15:22:12 +0000
commite6c140fecd361fdec9ad1d3c1579b8bbd3e9f007 (patch)
tree4ce37c932a6e5dff0237f4d2cbc1b2b0258bb41e /src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
parent5d11bc473378d30483488889de7b8c381c1d66c7 (diff)
downloadscala-e6c140fecd361fdec9ad1d3c1579b8bbd3e9f007.tar.gz
scala-e6c140fecd361fdec9ad1d3c1579b8bbd3e9f007.tar.bz2
scala-e6c140fecd361fdec9ad1d3c1579b8bbd3e9f007.zip
(1) some changes to interactive compiler interf...
(1) some changes to interactive compiler interface. 2) added (symbol.hasTypeAt 3) Added flatten/transpose/unzip to TraversableClass
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/Parsers.scala')
-rwxr-xr-xsrc/compiler/scala/tools/nsc/ast/parser/Parsers.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
index 229c7aeb5a..c78886b823 100755
--- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
+++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala
@@ -1029,7 +1029,7 @@ self =>
if (isWildcard(t))
(placeholderParams: @unchecked) match {
case (vd @ ValDef(mods, name, _, _)) :: rest =>
- placeholderParams = treeCopy.ValDef(vd, mods, name, tpt.duplicate, EmptyTree) :: rest
+ placeholderParams = treeCopy.ValDef(vd, mods, name, tpt.syntheticDuplicate, EmptyTree) :: rest
}
// this does not correspond to syntax, but is necessary to
// accept closures. We might restrict closures to be between {...} only.
@@ -1949,7 +1949,7 @@ self =>
val trees =
makePatDef(newmods, if (tp.isEmpty) p else Typed(p, tp), rhs) map
atPos(p.pos.start, p.pos.point)
- rhs = rhs.duplicate
+ rhs = rhs.syntheticDuplicate
if (newmods hasFlag Flags.DEFERRED) {
trees match {
case List(ValDef(_, _, _, EmptyTree)) =>
@@ -1998,7 +1998,7 @@ self =>
val start = in.skipToken()
if (in.token == THIS) {
atPos(start, in.skipToken()) {
- val vparamss = paramClauses(nme.CONSTRUCTOR, implicitClassViews map (_.duplicate), false)
+ val vparamss = paramClauses(nme.CONSTRUCTOR, implicitClassViews map (_.syntheticDuplicate), false)
newLineOptWhenFollowedBy(LBRACE)
val rhs = if (in.token == LBRACE) constrBlock(vparamss)
else { accept(EQUALS); constrExpr(vparamss) }