summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-10-13 21:07:11 +0000
committerPaul Phillips <paulp@improving.org>2011-10-13 21:07:11 +0000
commit1bd14badd7092596564572c601b47236818363ff (patch)
tree93a07a0711ade71075f0303394595ea1a22f8a6a /src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala
parente3b58d0c993aa4be16214ce52aea5952a9e5f877 (diff)
downloadscala-1bd14badd7092596564572c601b47236818363ff.tar.gz
scala-1bd14badd7092596564572c601b47236818363ff.tar.bz2
scala-1bd14badd7092596564572c601b47236818363ff.zip
Renamed isPureExpr to isExprSafeToInline.
Taking adriaan's advice for what name would better describe this method. Yours in reduction of ambiguous terminology, no review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala')
-rw-r--r--src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala b/src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala
index ce206b55fd..92ce0e6de4 100644
--- a/src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala
+++ b/src/compiler/scala/tools/nsc/typechecker/EtaExpansion.scala
@@ -64,7 +64,7 @@ trait EtaExpansion { self: Analyzer =>
*/
def liftoutPrefix(tree: Tree): Tree = {
def liftout(tree: Tree): Tree =
- if (treeInfo.isPureExpr(tree)) tree
+ if (treeInfo.isExprSafeToInline(tree)) tree
else {
val vname: Name = freshName()
// Problem with ticket #2351 here