facebook / facebook/jscodeshift

Find does not traverse ObjectPattern's TypeAnnotation

オープン
#175 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
upstream
主要言語
JavaScript
スター
10k
フォーク
498
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。