diff options
author | odersky <odersky@gmail.com> | 2014-12-15 16:35:25 +0100 |
---|---|---|
committer | odersky <odersky@gmail.com> | 2014-12-15 16:35:25 +0100 |
commit | 21fa5dd1a47727c977848163e2610be745951dbc (patch) | |
tree | 18aeec907ef20fe0be746cbc01dcfd898191e98a | |
parent | 8088ef2d162d877119b762ae156824d19afb5f6d (diff) | |
parent | 4954bd0060124387cbcfcb387512804b792245df (diff) | |
download | dotty-21fa5dd1a47727c977848163e2610be745951dbc.tar.gz dotty-21fa5dd1a47727c977848163e2610be745951dbc.tar.bz2 dotty-21fa5dd1a47727c977848163e2610be745951dbc.zip |
Merge pull request #291 from dotty-staging/fix-transform-bind
Fix Bind node contents not being transformed if phase didn't register transformBind.
-rw-r--r-- | src/dotty/tools/dotc/transform/TreeTransform.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dotty/tools/dotc/transform/TreeTransform.scala b/src/dotty/tools/dotc/transform/TreeTransform.scala index 814d7bf31..c9d3dcb98 100644 --- a/src/dotty/tools/dotc/transform/TreeTransform.scala +++ b/src/dotty/tools/dotc/transform/TreeTransform.scala @@ -994,8 +994,8 @@ object TreeTransforms { implicit val mutatedInfo: TransformerInfo = mutateTransformers(info, prepForBind, info.nx.nxPrepBind, tree, cur) if (mutatedInfo eq null) tree else { - val body = transform(tree.body, mutatedInfo, mutatedInfo.nx.nxTransBind(cur)) - goBind(cpy.Bind(tree)(tree.name, body), cur) + val body = transform(tree.body, mutatedInfo, cur) + goBind(cpy.Bind(tree)(tree.name, body), mutatedInfo.nx.nxTransBind(cur)) } case tree: ValDef if !tree.isEmpty => // As a result of discussing with Martin: emptyValDefs shouldn't be copied // NAME implicit val mutatedInfo: TransformerInfo = mutateTransformers(info, prepForValDef, info.nx.nxPrepValDef, tree, cur) |