Skip to content

Fix definingCombo == null for static field members of extension methods #2404

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 4 commits into from
Oct 21, 2020

Conversation

jcollins-g
Copy link
Contributor

Fixes #2402. Static fields weren't properly initialized or documented in extensions.

@google-cla google-cla bot added the cla: yes Google CLA check succeeded. label Oct 21, 2020
@jcollins-g jcollins-g requested a review from srawlins October 21, 2020 17:55
@@ -359,12 +359,14 @@ abstract class ModelElement extends Canonicalization
}
}
if (e is PropertyAccessorElement) {
// TODO(jcollins-g): why test for ClassElement in enclosingElement?
// Accessors can be part of a [Container], or a part of a [Library].
Copy link
Member

Choose a reason for hiding this comment

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

Haha love the question on the left, the answer on the right.

@jcollins-g jcollins-g merged commit b47c37d into master Oct 21, 2020
@coveralls
Copy link

Coverage Status

Coverage increased (+0.004%) to 91.729% when pulling 2674254 on fix-combo-crash into 39cec16 on master.

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.

NPE with documentationComment
3 participants