Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic generated message #180

Closed
wants to merge 6 commits into from

Conversation

sigurdm
Copy link
Collaborator

@sigurdm sigurdm commented Jan 11, 2019

This would solve #177 .
We have to measure the impact on existing codebases before landing this.

}

@override
// TODO: implement info_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove TODO?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done


BuilderInfo(String messageName, {PackageName package = const PackageName('')})
: qualifiedMessageName = "${package.prefix}$messageName";
BuilderInfo(String messageName, {CreateBuilderFunc<M> builder, PackageName package = const PackageName('')})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think builder should be optional.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. Fixed

@@ -5,17 +5,23 @@
import 'package:protobuf/protobuf.dart';
import 'package:test/test.dart';

class Foo extends GeneratedMessage<Foo> {
@override
// TODO: implement info_
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Resolve TODO?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -18,3 +18,7 @@ dev_dependencies:

executables:
protoc-gen-dart: protoc_plugin

dependency_overrides:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove :-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Member

@szakarias szakarias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remember the usual pubspec and CHANGELOG updates. :-)

Copy link
Member

@szakarias szakarias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@listepo
Copy link
Contributor

listepo commented Feb 18, 2019

Hello @sigurdm, any news for this PR?

@sigurdm
Copy link
Collaborator Author

sigurdm commented Feb 19, 2019

I want to do some measurements of the performance impact before landing this.
Unfortunately it might still be a few weeks in the future before I get around to it.

@sigurdm
Copy link
Collaborator Author

sigurdm commented Sep 30, 2019

I will not get time to land this in the short future.
Closing the PR for now.

@sigurdm sigurdm closed this Sep 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants