mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-01 17:57:36 +08:00
Now UIString is defined in Platform [1] we need to update the GRDP
parsing code to look for calls to it rather than `Common.UIString`.
We still support `Common.UIString` so this CL extends the script to look
for:
1) Usage outside of Platform:
```
import * as Platform from '../platform/platform.js';
Platform.UIString.UIString('foobarbaz');
```
2) Usage inside of Platform:
```
import {UIString} from './UIString.js';
UIString('foobarbaz');
```
[1]: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2165793
Change-Id: I8c0f97817709e936bdddce8f0b60d759e80fd1ba
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2170067
Reviewed-by: Paul Lewis <aerotwist@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Jack Franklin <jacktfranklin@chromium.org>