diff options
author | Paul Phillips <paulp@improving.org> | 2010-12-21 19:31:28 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-12-21 19:31:28 +0000 |
commit | 5bc2fc576949f03980ddd092b303b4484ab3172c (patch) | |
tree | c72cad9532854ccf436c72cfabfa0bdc0fc974fa /src/compiler/scala/tools/nsc/ast/TreeGen.scala | |
parent | c9ae821b7702169147fe324eb160710623c16280 (diff) | |
download | scala-5bc2fc576949f03980ddd092b303b4484ab3172c.tar.gz scala-5bc2fc576949f03980ddd092b303b4484ab3172c.tar.bz2 scala-5bc2fc576949f03980ddd092b303b4484ab3172c.zip |
More elimination of avoidable calls to List#len...
More elimination of avoidable calls to List#length. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/TreeGen.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/TreeGen.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/TreeGen.scala b/src/compiler/scala/tools/nsc/ast/TreeGen.scala index e2ff0f6600..686adc1800 100644 --- a/src/compiler/scala/tools/nsc/ast/TreeGen.scala +++ b/src/compiler/scala/tools/nsc/ast/TreeGen.scala @@ -35,7 +35,7 @@ abstract class TreeGen { mkAttributedRef(AbstractFunctionClass(argtpes.length)) else mkAttributedRef(FunctionClass(argtpes.length)) - AppliedTypeTree(cls, argtpes ::: List(restpe)) + AppliedTypeTree(cls, argtpes :+ restpe) } /** Builds a reference to value whose type is given stable prefix. |