-
Notifications
You must be signed in to change notification settings - Fork 125
Improve couldApplyTo and add tests #2062
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
lib/src/model.dart
Outdated
/// Return true if this extension could apply to [t]. | ||
bool _couldApplyTo(DefinedElementType t) { | ||
if (t.element.name == 'Implementor2' && name == 'ExtensionCheckLeft') { | ||
print('hi'); |
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.
Dubugging code that should be removed?
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.
Eventually I will figure out how to make conditional breakpoints more persistent than they seem to be in intellij, but not so persistent that I forget to remove them when uploading PRs. *sigh* Fixed.
Make couldApplyTo work for cases involving mixins and interfaces, dropping the original extension-tree implementation at least for now.