Permalink
Browse files

Help our new exhaustiveness checker.

...be a little less chatty.
  • Loading branch information...
paulp committed May 26, 2012
1 parent 688c558 commit cf6cd56e14daef93ff82d8da4e7247df11d748f9
Showing with 9 additions and 6 deletions.
  1. +9 −6 src/compiler/scala/reflect/internal/Names.scala
@@ -431,13 +431,16 @@ trait Names extends api.Names {
/** A name that contains no operator chars nor dollar signs.
* TODO - see if it's any faster to do something along these lines.
* Cute: now that exhaustivity kind of works, the mere presence of
* this trait causes TermName and TypeName to stop being exhaustive.
* Commented out.
*/
trait AlphaNumName extends Name {
final override def encode = thisName
final override def decodedName = thisName
final override def decode = toString
final override def isOperatorName = false
}
// trait AlphaNumName extends Name {
// final override def encode = thisName
// final override def decodedName = thisName
// final override def decode = toString
// final override def isOperatorName = false
// }
/** TermName_S and TypeName_S have fields containing the string version of the name.
* TermName_R and TypeName_R recreate it each time toString is called.

0 comments on commit cf6cd56

Please sign in to comment.