facebook / facebook/jscodeshift

Find does not traverse ObjectPattern's TypeAnnotation

Đang mở
#175 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
upstream
Ngôn ngữ chính
JavaScript
Star
10k
Fork
498
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

This probably has the same root cause as issue #34 , but I thought I'd flag it just in case:

`find` seems to have trouble searching through type annotations of object patterns. It can't find the identifier T, nor the `TypeAnnotation` here:

```
function f({x}: {x: T}) {}
```

But it can find both without the `ObjectPattern`:

```
function f(obj: {x: T}) {}
```

Example: http://astexplorer.net/#/tHx2YYTvvd/1

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.