diff options
author | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-01-23 14:06:37 +0100 |
---|---|---|
committer | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-01-23 14:15:27 +0100 |
commit | 0a529b903c77e5ce2dc81214964ff6781ff9e339 (patch) | |
tree | 2bb912c3636cfc0908ebe317e052cd31d6923190 | |
parent | adf990ac516d8e04c725a4c7be7c23bdbf922ffa (diff) | |
download | scala-0a529b903c77e5ce2dc81214964ff6781ff9e339.tar.gz scala-0a529b903c77e5ce2dc81214964ff6781ff9e339.tar.bz2 scala-0a529b903c77e5ce2dc81214964ff6781ff9e339.zip |
Address pull request feedback
-rw-r--r-- | src/compiler/scala/tools/reflect/quasiquotes/Reifiers.scala | 2 | ||||
-rw-r--r-- | src/reflect/scala/reflect/internal/StdAttachments.scala | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/scala/tools/reflect/quasiquotes/Reifiers.scala b/src/compiler/scala/tools/reflect/quasiquotes/Reifiers.scala index e0b863b749..e18bf7d5ee 100644 --- a/src/compiler/scala/tools/reflect/quasiquotes/Reifiers.scala +++ b/src/compiler/scala/tools/reflect/quasiquotes/Reifiers.scala @@ -189,7 +189,7 @@ trait Reifiers { self: Quasiquotes => mirrorBuildCall(nme.SyntacticBlock, tree) case Block(Nil, other) => reifyTree(other) - case SyntacticBlock(stats) if stats.size > 1 => + case SyntacticBlock(stats @ (_ :: _ :: _)) => reifyBuildCall(nme.SyntacticBlock, stats) case Try(block, catches, finalizer) => reifyBuildCall(nme.SyntacticTry, block, catches, finalizer) diff --git a/src/reflect/scala/reflect/internal/StdAttachments.scala b/src/reflect/scala/reflect/internal/StdAttachments.scala index b331bf75f6..139a79ffe1 100644 --- a/src/reflect/scala/reflect/internal/StdAttachments.scala +++ b/src/reflect/scala/reflect/internal/StdAttachments.scala @@ -36,7 +36,7 @@ trait StdAttachments { */ case object ForAttachment extends PlainAttachment - /** Identifies unit constants which were inserted by the compiler. + /** Identifies unit constants which were inserted by the compiler (e.g. gen.mkBlock) */ case object SyntheticUnitAttachment extends PlainAttachment |