Parse a namespace from a class definition