diff options
author | Paul Phillips <paulp@improving.org> | 2010-12-04 18:33:23 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-12-04 18:33:23 +0000 |
commit | b1e969a11b2b24f5883198dc0b90d9ab5513498b (patch) | |
tree | 434257c2afc84c4d86e55cd2bf78d9e29ca66dc9 /src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala | |
parent | 3d97123034a9d82e6e6961d589ccd3a1afde4390 (diff) | |
download | scala-b1e969a11b2b24f5883198dc0b90d9ab5513498b.tar.gz scala-b1e969a11b2b24f5883198dc0b90d9ab5513498b.tar.bz2 scala-b1e969a11b2b24f5883198dc0b90d9ab5513498b.zip |
A foot in the door with Parsers/JavaParsers and...
A foot in the door with Parsers/JavaParsers and Scanners/JavaScanners.
Recently clued in as to how this situation came to be, I now know
there's no reason not to start containing the damage. Also more work
on names: made a general method for transforming Trees into type-named
Trees and put it to work. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala index afb9999db8..c75ca15959 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala @@ -33,6 +33,8 @@ abstract class TreeBuilder { def productConstr = gen.productConstr def serializableConstr = gen.serializableConstr + def convertToTypeName(t: Tree) = gen.convertToTypeName(t) + /** Convert all occurrences of (lower-case) variables in a pattern as follows: * x becomes x @ _ * x: T becomes x @ (_: T) |