diff options
author | Paul Phillips <paulp@improving.org> | 2010-10-15 05:38:20 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-10-15 05:38:20 +0000 |
commit | c5c38fc6420ce5a22448a2eeb3b45e1644358575 (patch) | |
tree | d6a7ed0994c407520e932e1fe3fe0aefdccc72ce /src/compiler/scala/tools/nsc/CompilationUnits.scala | |
parent | 185700607dc2fd12cf47a61f583bdbafd726558b (diff) | |
download | scala-c5c38fc6420ce5a22448a2eeb3b45e1644358575.tar.gz scala-c5c38fc6420ce5a22448a2eeb3b45e1644358575.tar.bz2 scala-c5c38fc6420ce5a22448a2eeb3b45e1644358575.zip |
There was a fascinating tangle of name creation...
There was a fascinating tangle of name creation functions passing around
positions only to reach the end of the line and discard the position
since names don't have positions. I deleted all of it. The winner for
most creative use of parameters was the freshName function in etaExpand,
with this signature:
def freshName(pos: util.Position, n: Int)
And an implementation referencing neither pos nor n. "In a world beset
by attrition on all sides... a people defeated by entropy... one man
will show them the power of deletion." No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/CompilationUnits.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/CompilationUnits.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/CompilationUnits.scala b/src/compiler/scala/tools/nsc/CompilationUnits.scala index de48ff9931..564e4f2705 100644 --- a/src/compiler/scala/tools/nsc/CompilationUnits.scala +++ b/src/compiler/scala/tools/nsc/CompilationUnits.scala @@ -16,7 +16,7 @@ trait CompilationUnits { self: Global => class CompilationUnit(val source: SourceFile) extends CompilationUnitTrait { /** the fresh name creator */ - var fresh : FreshNameCreator = new FreshNameCreator.Default + var fresh: FreshNameCreator = new FreshNameCreator.Default /** the content of the compilation unit in tree form */ var body: Tree = EmptyTree |