summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/SampleTransform.scala
diff options
context:
space:
mode:
authorKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-06-18 14:21:47 +0000
committerKato Kazuyoshi <kato.kazuyoshi@gmail.com>2011-06-18 14:21:47 +0000
commit60c8697f0c39f71c7e735ad02f483cd8779c3567 (patch)
tree02dc4f35d0ab8b443e2d094e6f3de5799a5c1a92 /src/compiler/scala/tools/nsc/transform/SampleTransform.scala
parent8e10b0579b15ef85ca577ae941adc941dfb62079 (diff)
downloadscala-60c8697f0c39f71c7e735ad02f483cd8779c3567.tar.gz
scala-60c8697f0c39f71c7e735ad02f483cd8779c3567.tar.bz2
scala-60c8697f0c39f71c7e735ad02f483cd8779c3567.zip
Fixes #4490 and #4467.
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/SampleTransform.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/SampleTransform.scala14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/SampleTransform.scala b/src/compiler/scala/tools/nsc/transform/SampleTransform.scala
index e7e394b21f..73d17458bf 100644
--- a/src/compiler/scala/tools/nsc/transform/SampleTransform.scala
+++ b/src/compiler/scala/tools/nsc/transform/SampleTransform.scala
@@ -9,7 +9,7 @@ package transform
/** A sample transform.
*/
abstract class SampleTransform extends Transform {
- // inherits abstract value `global' and class `Phase' from Transform
+ // inherits abstract value `global` and class `Phase` from Transform
import global._ // the global environment
import definitions._ // standard classes and methods
@@ -24,19 +24,19 @@ abstract class SampleTransform extends Transform {
class SampleTransformer(unit: CompilationUnit) extends Transformer {
override def transform(tree: Tree): Tree = {
- val tree1 = super.transform(tree); // transformers always maintain `currentOwner'.
+ val tree1 = super.transform(tree); // transformers always maintain `currentOwner`.
tree1 match {
case Block(List(), expr) => // a simple optimization
expr
case Block(defs, sup @ Super(qual, mix)) => // A hypthothetic transformation, which replaces
// {super} by {super.sample}
- treeCopy.Block( // `copy' is the usual lazy tree copier
+ treeCopy.Block( // `copy` is the usual lazy tree copier
tree1, defs,
- typed( // `typed' assigns types to its tree argument
- atPos(tree1.pos)( // `atPos' fills in position of its tree argument
- Select( // The `Select' factory method is defined in class `Trees'
+ typed( // `typed` assigns types to its tree argument
+ atPos(tree1.pos)( // `atPos` fills in position of its tree argument
+ Select( // The `Select` factory method is defined in class `Trees`
sup,
- currentOwner.newValue( // creates a new term symbol owned by `currentowner'
+ currentOwner.newValue( // creates a new term symbol owned by `currentowner`
tree1.pos,
newTermName("sample")))))) // The standard term name creator
case _ =>