diff options
author | Martin Odersky <odersky@gmail.com> | 2013-08-09 17:53:20 +0200 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2013-08-09 17:53:20 +0200 |
commit | 2fffa023502cbaffe0e282495e18aefe2bff0d22 (patch) | |
tree | 006358958080a55ff7f156443faeb33c22d767c3 /src/dotty/tools/dotc/ast/TreeInfo.scala | |
parent | 73525ada82375ef0ff4be61a3bfbae8c74963ad0 (diff) | |
download | dotty-2fffa023502cbaffe0e282495e18aefe2bff0d22.tar.gz dotty-2fffa023502cbaffe0e282495e18aefe2bff0d22.tar.bz2 dotty-2fffa023502cbaffe0e282495e18aefe2bff0d22.zip |
Typing of SeqLiterals
Also revised handling of SeqLiterals by replacing additional type member with split into SeqLiteral and JavaSeqLiteral.
Diffstat (limited to 'src/dotty/tools/dotc/ast/TreeInfo.scala')
-rw-r--r-- | src/dotty/tools/dotc/ast/TreeInfo.scala | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/dotty/tools/dotc/ast/TreeInfo.scala b/src/dotty/tools/dotc/ast/TreeInfo.scala index 9fcbeeea4..2c38d2c62 100644 --- a/src/dotty/tools/dotc/ast/TreeInfo.scala +++ b/src/dotty/tools/dotc/ast/TreeInfo.scala @@ -239,13 +239,6 @@ trait TreeInfo[T >: Untyped] { self: Trees.Instance[T] => /** Is this case guarded? */ def isGuardedCase(cdef: CaseDef) = cdef.guard ne EmptyTree - /** Is this pattern node a sequence-valued pattern? */ - def isSequenceValued(tree: Tree): Boolean = unbind(tree) match { - case Alternative(ts) => ts exists isSequenceValued - case SeqLiteral(_) => true - case _ => false - } - /** The underlying pattern ignoring any bindings */ def unbind(x: Tree): Tree = x match { case Bind(_, y) => unbind(y) |