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

Add checks for class properties #77

Merged
merged 8 commits into from
Mar 25, 2019
Merged

Conversation

sirbrillig
Copy link
Owner

@sirbrillig sirbrillig commented Mar 25, 2019

Prior to now, the sniff was treating class property declarations as regular variable declarations in some cases and property reads in other cases. I think this was causing some odd bugs, like #75.

This PR adds an explicit check for class property declarations (using public, private, protected, var, static, or public static, etc.) and ignores them.

Fixes #75

@sirbrillig sirbrillig force-pushed the fix-anon-class-with-properties branch from 2701848 to 063ea67 Compare March 25, 2019 23:48
@sirbrillig sirbrillig merged commit 22ab15e into master Mar 25, 2019
@sirbrillig sirbrillig deleted the fix-anon-class-with-properties branch March 25, 2019 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant