diff options
author | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-01-27 18:38:39 +0100 |
---|---|---|
committer | Denys Shabalin <denys.shabalin@typesafe.com> | 2014-01-27 18:38:39 +0100 |
commit | 0200375e670b5dcc865c8636faf00ae5e767a81b (patch) | |
tree | fc71059e69b0fc96d16459935e1fb3f4370bcd04 /src/compiler/scala/tools/nsc/ast/parser | |
parent | 30748571d44f604917eeef834a4aa4f7c2c1425e (diff) | |
download | scala-0200375e670b5dcc865c8636faf00ae5e767a81b.tar.gz scala-0200375e670b5dcc865c8636faf00ae5e767a81b.tar.bz2 scala-0200375e670b5dcc865c8636faf00ae5e767a81b.zip |
Addresses feedback from Jason
1. Adds tests for new synthetic unit stripping.
2. Marks implementation-specific parts of Holes as private.
3. Trims description of iterated method a bit.
4. Provides a bit more clear wrapper for q interpolator.
5. Refactors SyntacticBlock, adds documentation.
6. Makes q"{ ..$Nil }" return q"" to be consist with extractor.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/Parsers.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala index 0728fff74f..e6b353f82f 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/Parsers.scala @@ -33,7 +33,7 @@ trait ParsersCommon extends ScannersCommon { self => import global.{currentUnit => _, _} def newLiteral(const: Any) = Literal(Constant(const)) - def literalUnit = newLiteral(()) + def literalUnit = gen.mkSyntheticUnit() /** This is now an abstract class, only to work around the optimizer: * methods in traits are never inlined. |