summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2012-10-03 13:54:30 -0700
committerPaul Phillips <paulp@improving.org>2012-10-03 13:58:14 -0700
commitdee6a347335e9a4b42342664aa50b0cb217c00a9 (patch)
tree19054a14a7e0dea902156183c1fec41a386c9cf4 /src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
parent5132659241e25b7695b3203fe0bc5c81c17b65d3 (diff)
downloadscala-dee6a347335e9a4b42342664aa50b0cb217c00a9.tar.gz
scala-dee6a347335e9a4b42342664aa50b0cb217c00a9.tar.bz2
scala-dee6a347335e9a4b42342664aa50b0cb217c00a9.zip
Renamed hasSymbol to hasSymbolField.
Suggestion by retronym that the obvious implementation of "hasSymbol" be called "hasSymbol" reminded me we have a method called "hasSymbol" which does not have that implementation, and which has burned us already with subtle bugginess. I think that "hasSymbolField" is self-documenting.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/AddInterfaces.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/AddInterfaces.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
index 3e0e40e525..32c2d63b2a 100644
--- a/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
+++ b/src/compiler/scala/tools/nsc/transform/AddInterfaces.scala
@@ -321,7 +321,7 @@ abstract class AddInterfaces extends InfoTransform { self: Erasure =>
Block(List(Apply(gen.mkSuperInitCall, Nil)), expr)
case Block(stats, expr) =>
- // needs `hasSymbol` check because `supercall` could be a block (named / default args)
+ // needs `hasSymbolField` check because `supercall` could be a block (named / default args)
val (presuper, supercall :: rest) = stats span (t => t.hasSymbolWhich(_ hasFlag PRESUPER))
treeCopy.Block(tree, presuper ::: (supercall :: mixinConstructorCalls ::: rest), expr)
}