-
Notifications
You must be signed in to change notification settings - Fork 110
Extract matchTypes from matchAnnotation. #116
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
Conversation
Extract matchTypes from matchAnnotation so that it can be used in cases where the type comes from a different source (like a DartObject instance).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the changelog for 0.5.3 w/ this addition.
Also: are you using it outside of this package? If so, we should discuss where – since this is not part of the official source_gen api. It's implementation.
| return matchTypes(annotationType, annotationValueType); | ||
| } | ||
|
|
||
| bool matchTypes(Type annotationType, ParameterizedType annotationValueType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a Doc comment?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
I'm on board with the change. Will wait to merge it in until I get a chance to sync with @kevmoo |
See dart-lang/source_gen#116 for the corresponding source_gen PR. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144028180
See dart-lang/source_gen#116 for the corresponding source_gen PR. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144028180
Extract matchTypes from matchAnnotation so that it can be used in cases where the type comes from a different source (like a DartObject instance).
Extract matchTypes from matchAnnotation so that it can be used in cases where the type comes from a different source (like a DartObject instance).
Extract matchTypes from matchAnnotation so that it can be used in cases where the type comes from a different source (like a DartObject instance).