diff options
author | Martin Odersky <odersky@gmail.com> | 2007-02-08 09:48:46 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2007-02-08 09:48:46 +0000 |
commit | f045549b48e6e22a1f705a2b913f1e3c8d5f68e8 (patch) | |
tree | a529591462a44dbbe9c05e527bd531958faf9d2e /src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala | |
parent | 67cf4f5e32bc036788ff7a5426a5f5c0bb07fb70 (diff) | |
download | scala-f045549b48e6e22a1f705a2b913f1e3c8d5f68e8.tar.gz scala-f045549b48e6e22a1f705a2b913f1e3c8d5f68e8.tar.bz2 scala-f045549b48e6e22a1f705a2b913f1e3c8d5f68e8.zip |
changed exhaustivity check suppression to attri...
changed exhaustivity check suppression to attribute.
Diffstat (limited to 'src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala')
-rw-r--r-- | src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala | 4 |
1 files changed, 4 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 f6cbead3ca..cf6faf7e41 100644 --- a/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala +++ b/src/compiler/scala/tools/nsc/ast/parser/TreeBuilder.scala @@ -103,6 +103,10 @@ abstract class TreeBuilder { case _ => AppliedTypeTree(scalaDot(newTypeName("Tuple" + trees.length)), trees) } + def makeAttributed(t: Tree, attr: Tree): Tree = attr match { + case Attribute(constr, elements) => Attributed(constr, elements, t) setPos attr.pos + } + /** If tree is a variable pattern, return Some("its name and type"). * Otherwise return none */ private def matchVarPattern(tree: Tree): Option[{Name, Tree}] = tree match { |