refactoring core for Dart: support for simple Dart classes.