Parse Class declarations and promoted types.