summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMiguel Garcia <miguelalfredo.garcia@epfl.ch>2013-07-08 22:03:17 +0200
committerAdriaan Moors <adriaan.moors@typesafe.com>2013-08-08 12:09:49 -0700
commit21e56813cc9afa1d146e5e2250b1d054d0686322 (patch)
tree3e56e985e8a92dbbe1b4796def33981bb4454700 /src
parentd41152ad6a3739d41e146f2444c85f5655df1e40 (diff)
downloadscala-21e56813cc9afa1d146e5e2250b1d054d0686322.tar.gz
scala-21e56813cc9afa1d146e5e2250b1d054d0686322.tar.bz2
scala-21e56813cc9afa1d146e5e2250b1d054d0686322.zip
better encapsulation in constructors phase
Diffstat (limited to 'src')
-rw-r--r--src/compiler/scala/tools/nsc/transform/Constructors.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/Constructors.scala b/src/compiler/scala/tools/nsc/transform/Constructors.scala
index e7e4f88d6a..2b7402100b 100644
--- a/src/compiler/scala/tools/nsc/transform/Constructors.scala
+++ b/src/compiler/scala/tools/nsc/transform/Constructors.scala
@@ -147,7 +147,7 @@ abstract class Constructors extends Transform with ast.TreeDSL {
* (the primary constructor) into a dedicated synthetic method that an anon-closure may invoke, as required by DelayedInit.
*
*/
- trait OmittablesHelper { self: TemplateTransformer =>
+ private trait OmittablesHelper { self: TemplateTransformer =>
/*
* Initially populated with all elision candidates.
@@ -264,7 +264,7 @@ abstract class Constructors extends Transform with ast.TreeDSL {
* @return the DefDef for (c) above
*
* */
- trait DelayedInitHelper { self: TemplateTransformer =>
+ private trait DelayedInitHelper { self: TemplateTransformer =>
private def delayedEndpointDef(stats: List[Tree]): DefDef = {
@@ -355,7 +355,7 @@ abstract class Constructors extends Transform with ast.TreeDSL {
} // DelayedInitHelper
- class TemplateTransformer(val unit: CompilationUnit, val impl: Template)
+ private class TemplateTransformer(val unit: CompilationUnit, val impl: Template)
extends Transformer
with DelayedInitHelper
with OmittablesHelper {