fixed error analysis in Dart 'part of' files.
(cherry picked from commit f4335fe)