Add Diagnosis to ScalaParser.