Skip to content

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

Merged
merged 10 commits into from
Nov 8, 2019
Merged

Improve couldApplyTo and add tests #2062

merged 10 commits into from
Nov 8, 2019

Conversation

jcollins-g
Copy link
Contributor

Make couldApplyTo work for cases involving mixins and interfaces, dropping the original extension-tree implementation at least for now.

@googlebot googlebot added the cla: yes Google CLA check succeeded. label Nov 7, 2019
/// Return true if this extension could apply to [t].
bool _couldApplyTo(DefinedElementType t) {
if (t.element.name == 'Implementor2' && name == 'ExtensionCheckLeft') {
print('hi');
Copy link
Member

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?

Copy link
Contributor Author

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.

@coveralls
Copy link

coveralls commented Nov 7, 2019

Coverage Status

Coverage decreased (-0.06%) to 93.818% when pulling 98079cf on extension-tree into 5983455 on master.

@jcollins-g jcollins-g merged commit fc46f99 into master Nov 8, 2019
@jcollins-g jcollins-g deleted the extension-tree branch November 8, 2019 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Google CLA check succeeded.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants