More fixes for the new IDE

git-svn-id: http://lampsvn.epfl.ch/svn-repos/scala/scala/trunk@14036 5e8d7ff9-d8ef-0310-90f0-a4852d11357a
This commit is contained in:
mcdirmid 2008-02-17 14:19:46 +00:00
parent 637dfbf79b
commit 2f3cfc16fc
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ trait IdeSupport extends Global with symtab.IdeSupport {
protected def normalCompile[T](f : => T) : T = f
override def unpickleIDEHook : (( => Type) => Type) = f => normalCompile(f)
class IdeRun extends Run {
override def compiles(sym : Symbol) : Boolean = throw new Error
override def compiles(sym : Symbol) : Boolean = false // throw new Error
override def compileLate(file : AbstractFile) = {
// don't bother with any of the phase crap since adapt isn't supported
reloadSource(file)

View File

@ -275,7 +275,8 @@ trait Namers { self: Analyzer =>
}
def applicableTypeParams(owner: Symbol): List[Symbol] =
if (owner.isTerm || owner.isPackageClass) List()
if (inIDE && (owner eq NoSymbol)) List()
else if (owner.isTerm || owner.isPackageClass) List()
else applicableTypeParams(owner.owner) ::: owner.typeParams
def deSkolemize: TypeMap = new DeSkolemizeMap(applicableTypeParams(context.owner))