Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Prevent escope referencer from traversing into param pattern type annotations #246

Merged
merged 3 commits into from
Feb 2, 2016

Conversation

sebmck
Copy link
Contributor

@sebmck sebmck commented Feb 1, 2016

No description provided.

// set them back to normal...
estraverses.forEach(function (estraverse) {
estraverse.VisitorKeys.ObjectPattern = t.VISITOR_KEYS.ObjectPattern;
estraverse.VisitorKeys.ObjectPattern = t.VISITOR_KEYS.ArrayPattern;
Copy link
Member

Choose a reason for hiding this comment

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

estraverse.VisitorKeys.ArrayPattern

@hzoo
Copy link
Member

hzoo commented Feb 2, 2016

Fixes #236

hzoo added a commit that referenced this pull request Feb 2, 2016
Prevent escope referencer from traversing into param pattern type annotations
@hzoo hzoo merged commit 7a038d5 into master Feb 2, 2016
@hzoo hzoo deleted the escope-patterns branch February 2, 2016 04:07
hzoo added a commit that referenced this pull request Feb 2, 2016
fix issues with flow types + objectpattern - backport of #246
nicolo-ribaudo pushed a commit to babel/babel that referenced this pull request Nov 14, 2019
Prevent escope referencer from traversing into param pattern type annotations
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