fix compiler interface to work with 2.10.0-SNAPSHOT

This commit is contained in:
Mark Harrah 2012-01-19 11:00:24 -05:00
parent 3a0938878d
commit b5c4e5290e
1 changed files with 4 additions and 0 deletions

View File

@ -260,7 +260,11 @@ final class API(val global: Global, val callback: xsbti.AnalysisCallback) extend
None
}
private def ignoreClass(sym: Symbol): Boolean =
{
// 2.10 only has Name.endsWith(s: String)
implicit def nameToStringCompat(n: Name): String = n.toString
sym.isLocalClass || sym.isAnonymousClass || sym.fullName.endsWith(LocalChild)
}
// This filters private[this] vals/vars that were not in the original source.
// The getter will be used for processing instead.