diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-24 17:18:03 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-24 17:18:03 +0000 |
commit | a09cf5dbf7ed64e1ff52bebb53971d16304b58e5 (patch) | |
tree | 1fc48d708f2768e5135814bf5763c2ab87b04484 /src/scalap | |
parent | d43ccc679de41aca085072d96a61e363e5e23e34 (diff) | |
download | scala-a09cf5dbf7ed64e1ff52bebb53971d16304b58e5.tar.gz scala-a09cf5dbf7ed64e1ff52bebb53971d16304b58e5.tar.bz2 scala-a09cf5dbf7ed64e1ff52bebb53971d16304b58e5.zip |
Renamed partialMap to collect.
method on Iterator called collect which I had to remove, because if
the method is overloaded it puts a bullet in the type inference, an
intolerable result for a function which takes a partial function as its
argument. I don't think there's much chance of confusion, but I put a
migration warning on collect just in case. No review.
Diffstat (limited to 'src/scalap')
-rw-r--r-- | src/scalap/scala/tools/scalap/Decode.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scalap/scala/tools/scalap/Decode.scala b/src/scalap/scala/tools/scalap/Decode.scala index 4b319da13a..e9f9a390c5 100644 --- a/src/scalap/scala/tools/scalap/Decode.scala +++ b/src/scalap/scala/tools/scalap/Decode.scala @@ -58,7 +58,7 @@ object Decode { xs.toList map (_.name dropRight 1) } - (ssig.symbols partialMap f).flatten toList + (ssig.symbols collect f).flatten toList } } @@ -70,7 +70,7 @@ object Decode { ssig <- ScalaSigParser.parse(clazz) } yield { - val typeAliases = ssig.symbols partialMap { case x: AliasSymbol => x } + val typeAliases = ssig.symbols collect { case x: AliasSymbol => x } Map(typeAliases map (x => (x.name, getAliasSymbol(x.infoType).path)): _*) } } |