Skip to content
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.

Fix: Ensure modifiers are applied to enums (fixes #365) #366

Merged
merged 1 commit into from
Aug 19, 2017

Conversation

JamesHenry
Copy link
Member

Fixes bug introduced by enum refactor that enums were missing modifiers. We did not have a test to catch this, so I have added the slight crazy test case that caught it in the first place (from prettier). This is classed as errorRecovery, because it's semantically invalid:

export private public protected static readonly abstract async enum X {}

I have also added more generic way to handle modifiers being applied to nodes as per #365, and this will be used more and more as we align on AST.

@eslintbot
Copy link

LGTM

@JamesHenry JamesHenry merged commit 7bcc0d6 into master Aug 19, 2017
@JamesHenry JamesHenry deleted the enum-modifiers-fix branch August 19, 2017 17:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants