From 21e56813cc9afa1d146e5e2250b1d054d0686322 Mon Sep 17 00:00:00 2001 From: Miguel Garcia Date: Mon, 8 Jul 2013 22:03:17 +0200 Subject: better encapsulation in constructors phase --- src/compiler/scala/tools/nsc/transform/Constructors.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3