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:
parent
637dfbf79b
commit
2f3cfc16fc
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue