Move well-known-type support code to mixins. (#264)

* Move well-known-type support code to mixins.

This makes it easier to implement support for additional well-known types
as it moves more code away from being injected strings.

The static methods still have to be injected, because you cannot mix in
static methods.

Changes mixin imports in generated code to use a prefix instead of a name.

Also changes the import of dart:core to not use a `show` list. It was
not needed after we use prefix imports.

Also moves the protobuf/lib/src/mixins_meta.dart and associated tests to
protoc_plugin/lib/mixins.dart. It was not used there.
21 files changed
tree: 8997bb3ef4b66680637266cceaf868336822e8aa
  1. api_benchmark/
  2. protobuf/
  3. protoc_plugin/
  4. query_benchmark/
  5. tool/
  6. .gitignore
  7. .travis.yml
  8. analysis_options.yaml
  9. mono_repo.yaml
  10. README.md
README.md

Protobuf support for dart

Build Status

This repository is home to packages related to support for the protobuf format for dart. It contains: