Map<String, MainMessage> parseFile(File file)

Parse the source of the Dart program file file and return a Map from message names to IntlMessage instances.

Source Link to Crossdart

Map<String, MainMessage> parseFile(File file) {
  _root = parseDartFile(file.path);
  _origin = file.path;
  var visitor = new MessageFindingVisitor();
  _root.accept(visitor);
  return visitor.messages;
}