Permalink
Browse files

Make sure the structure builder completes the class symbol before

looking at its methods.
  • Loading branch information...
1 parent 81fe1aa commit e9e44973f8b356f4320981b3eb453ab3408664cb @dragos dragos committed Apr 5, 2011
@@ -313,6 +313,8 @@ trait ScalaStructureBuilder { self : ScalaPresentationCompiler =>
override def addClass(c : ClassDef) : Owner = {
val sym = c.symbol
if (sym eq NoSymbol) return self // Local class hasn't been attributed yet, can't show anything meaningful.
+ // make sure classes are completed
+ sym.initialize
val name = c.name.toString
val parentTree = c.impl.parents.head
@@ -789,7 +791,7 @@ trait ScalaStructureBuilder { self : ScalaPresentationCompiler =>
case vd : ValDef => (builder.addVal(vd), List(vd.rhs))
case td : TypeDef => (builder.addType(td), List(td.rhs))
case dd : DefDef => {
- if(dd.name != nme.MIXIN_CONSTRUCTOR) {
+ if(dd.name != nme.MIXIN_CONSTRUCTOR && (dd.symbol ne NoSymbol)) {
(builder.addDef(dd), List(dd.tpt, dd.rhs))
} else (builder, Nil)
}

0 comments on commit e9e4497

Please sign in to comment.