diff options
author | James Iry <james.iry@typesafe.com> | 2013-07-22 17:45:36 -0700 |
---|---|---|
committer | James Iry <james.iry@typesafe.com> | 2013-11-06 12:28:04 -0800 |
commit | 10a061d425857c9e7bf4fa9aba9923b90467e24e (patch) | |
tree | a619f5e66a25a05da71cbbf24a282c4c17d4fb3c /src/compiler/scala/tools/nsc/settings/ScalaSettings.scala | |
parent | 9136e76ca1a9827e1a8c90fa4f7f63c2967cb019 (diff) | |
download | scala-10a061d425857c9e7bf4fa9aba9923b90467e24e.tar.gz scala-10a061d425857c9e7bf4fa9aba9923b90467e24e.tar.bz2 scala-10a061d425857c9e7bf4fa9aba9923b90467e24e.zip |
Adds a setting to delay delambdafication. If set then uncurry lifts
the body of a lambda into a local def. Tests are included to show the
different tree shapes.
Diffstat (limited to 'src/compiler/scala/tools/nsc/settings/ScalaSettings.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/settings/ScalaSettings.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala b/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala index 01d5791f60..b8ca4adc14 100644 --- a/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala +++ b/src/compiler/scala/tools/nsc/settings/ScalaSettings.scala @@ -184,6 +184,8 @@ trait ScalaSettings extends AbsScalaSettings val YnoLoadImplClass = BooleanSetting ("-Yno-load-impl-class", "Do not load $class.class files.") val exposeEmptyPackage = BooleanSetting("-Yexpose-empty-package", "Internal only: expose the empty package.").internalOnly() + // the current standard is "inline" but we are moving towards "method" + val Ydelambdafy = ChoiceSetting ("-Ydelambdafy", "strategy", "Strategy used for translating lambdas into JVM code.", List("inline", "method"), "inline") private def removalIn212 = "This flag is scheduled for removal in 2.12. If you have a case where you need this flag then please report a bug." |