This page is no longer maintained — Please continue to the home page at www.scala-lang.org

scalap and determining if ClassSymbol is Class or Object

No replies
Konstantine Kougios
Joined: 2011-04-08,
User offline. Last seen 47 weeks 2 days ago.
I am trying to determine if a ClassSymbol is an Object or a Class:

        ScalaSigParser.parse(cf).foreach(_.symbols.foreach({
            case cs@ClassSymbol(symbolInfo: SymbolInfo, thisTypeRef: Option[Int]) =>
                val cn = symbolInfo.name

Anyone knows how can this be done?

for scalap 2.9.0 & scala 2.9.0

Thanks,

Kostas

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland