[compiler] Prepare HIRBuilder to be used by later passes (#32286)

---
[//]: # (BEGIN SAPLING FOOTER)
Stack created with [Sapling](https://sapling-scm.com). Best reviewed
with [ReviewStack](https://reviewstack.dev/facebook/react/pull/32286).
* #33326
* #33325
* __->__ #32286

DiffTrain build for [13f20044f3](https://github.com/facebook/react/commit/13f20044f3a5a9433eb4c6ef4c6577b8f0d13350)
This commit is contained in:
mofeiZ
2025-05-22 13:20:39 -07:00
parent 27e38b43c9
commit eed66bfa2c
26 changed files with 143 additions and 117 deletions
+1 -1
View File
@@ -1 +1 @@
19.2.0-native-fb-459a2c42-20250521
19.2.0-native-fb-13f20044-20250522
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b54409e321be2dda465b9ee4b439c822>>
* @generated SignedSource<<b847caa2f6fff0708e23ca061cb9730a>>
*/
"use strict";
@@ -404,5 +404,5 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<cba25d16e906fd3d3e8831ee06d0cc24>>
* @generated SignedSource<<27d4b365b413f8d5130bc30a1930356b>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<cba25d16e906fd3d3e8831ee06d0cc24>>
* @generated SignedSource<<27d4b365b413f8d5130bc30a1930356b>>
*/
"use strict";
@@ -203,4 +203,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4710c19bfc6b0b8775c62c626520099a>>
* @generated SignedSource<<5adc7ffb115156aab37703b8285bfce5>>
*/
/*
@@ -27026,11 +27026,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-459a2c42-20250521" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-13f20044-20250522" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-native-fb-459a2c42-20250521\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-13f20044-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27067,10 +27067,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27208,5 +27208,5 @@ __DEV__ &&
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ed6fdfe005593ffa6da782388a485827>>
* @generated SignedSource<<85a9705b5497b14abe8441ec9c31bc63>>
*/
/*
@@ -17094,14 +17094,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2017 = React.version;
if (
"19.2.0-native-fb-459a2c42-20250521" !==
"19.2.0-native-fb-13f20044-20250522" !==
isomorphicReactPackageVersion$jscomp$inline_2017
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2017,
"19.2.0-native-fb-459a2c42-20250521"
"19.2.0-native-fb-13f20044-20250522"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17123,10 +17123,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2536 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2537 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17224,4 +17224,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<3c063c41e5a68dd3088e869dd2a7ffb1>>
* @generated SignedSource<<a8e2f84cea4a5dfaee78a259aa168250>>
*/
/*
@@ -17804,14 +17804,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2120 = React.version;
if (
"19.2.0-native-fb-459a2c42-20250521" !==
"19.2.0-native-fb-13f20044-20250522" !==
isomorphicReactPackageVersion$jscomp$inline_2120
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2120,
"19.2.0-native-fb-459a2c42-20250521"
"19.2.0-native-fb-13f20044-20250522"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17833,10 +17833,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2127 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521",
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$313 = 0;
@@ -17949,4 +17949,4 @@ exports.hydrateRoot = function (container, initialChildren, options) {
listenToAllSupportedEvents(container);
return new ReactDOMHydrationRoot(initialChildren);
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<1fe1045de02f66f8663640009e53205f>>
* @generated SignedSource<<a2157dc7552103cedf0daa535dc32a1e>>
*/
/*
@@ -27082,11 +27082,11 @@ __DEV__ &&
};
(function () {
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-459a2c42-20250521" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-13f20044-20250522" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-dom: 19.2.0-native-fb-459a2c42-20250521\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-dom: 19.2.0-native-fb-13f20044-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
);
})();
("function" === typeof Map &&
@@ -27123,10 +27123,10 @@ __DEV__ &&
!(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -27580,7 +27580,7 @@ __DEV__ &&
exports.useFormStatus = function () {
return resolveDispatcher().useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<2471072c3c37975a29f2a27840636019>>
* @generated SignedSource<<dd0a0b4474fafdd68e3c48dd886863b3>>
*/
/*
@@ -17105,14 +17105,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2018 = React.version;
if (
"19.2.0-native-fb-459a2c42-20250521" !==
"19.2.0-native-fb-13f20044-20250522" !==
isomorphicReactPackageVersion$jscomp$inline_2018
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2018,
"19.2.0-native-fb-459a2c42-20250521"
"19.2.0-native-fb-13f20044-20250522"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17134,10 +17134,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2539 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_2540 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -17388,4 +17388,4 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<57d106b30a00c25e06192eb1935bfc19>>
* @generated SignedSource<<c9904722136de5b4dbd687ee0f3252d8>>
*/
/*
@@ -17819,14 +17819,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) {
};
var isomorphicReactPackageVersion$jscomp$inline_2121 = React.version;
if (
"19.2.0-native-fb-459a2c42-20250521" !==
"19.2.0-native-fb-13f20044-20250522" !==
isomorphicReactPackageVersion$jscomp$inline_2121
)
throw Error(
formatProdErrorMessage(
527,
isomorphicReactPackageVersion$jscomp$inline_2121,
"19.2.0-native-fb-459a2c42-20250521"
"19.2.0-native-fb-13f20044-20250522"
)
);
ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
@@ -17848,10 +17848,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) {
};
var internals$jscomp$inline_2128 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-dom",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521",
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$313 = 0;
@@ -18117,7 +18117,7 @@ exports.useFormState = function (action, initialState, permalink) {
exports.useFormStatus = function () {
return ReactSharedInternals.H.useHostTransitionStatus();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<4ecac593c90369a796e35d07223cf504>>
* @generated SignedSource<<0c3be0a6802ea112899c8fd4d7fd47a0>>
*/
"use strict";
@@ -15675,10 +15675,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
internals.overrideHookState = overrideHookState;
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -15823,5 +15823,5 @@ __DEV__ &&
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
})();
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<531d7e9e65317a1830886428a1b2ddc2>>
* @generated SignedSource<<9272ae71d23d778923bb18d9d1bfa1f8>>
*/
"use strict";
@@ -9896,10 +9896,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1447 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
var hook$jscomp$inline_1448 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
@@ -10035,4 +10035,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9fb8c0467e70df68d34130ff49acbd25>>
* @generated SignedSource<<532cc5d1829320d8f4c30900147ad1e0>>
*/
"use strict";
@@ -10516,10 +10516,10 @@ function wrapFiber(fiber) {
}
var internals$jscomp$inline_1254 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-test-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521",
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522",
getLaneLabelMap: function () {
for (
var map = new Map(), lane = 1, index$155 = 0;
@@ -10670,4 +10670,4 @@ exports.unstable_batchedUpdates = function (fn, a) {
flushSyncWorkAcrossRoots_impl(0, !0));
}
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<9308911007fa90ee066b8b1c2f181464>>
* @generated SignedSource<<7193ec333a14ae01d0d7c00b1b37312e>>
*/
"use strict";
@@ -1411,7 +1411,7 @@ __DEV__ &&
exports.useTransition = function () {
return resolveDispatcher().useTransition();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<47875b7c591e0ed721b34031e40cda68>>
* @generated SignedSource<<1d7a1bf04d6f14546004636de2ffaf70>>
*/
"use strict";
@@ -586,4 +586,4 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<8c9f3e7645fb6e3d5e953a92f3dcd57c>>
* @generated SignedSource<<bcd8cf15fafb691d08bc16af5aee1c70>>
*/
"use strict";
@@ -590,7 +590,7 @@ exports.useSyncExternalStore = function (
exports.useTransition = function () {
return ReactSharedInternals.H.useTransition();
};
exports.version = "19.2.0-native-fb-459a2c42-20250521";
exports.version = "19.2.0-native-fb-13f20044-20250522";
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
"function" ===
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&
@@ -1 +1 @@
459a2c4298187cb0ee45605e2575ff35f4a81183
13f20044f3a5a9433eb4c6ef4c6577b8f0d13350
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<329a6434b4896b840e077142feb5d01a>>
* @generated SignedSource<<877f2ee546acfd39692adb32f0f74749>>
*/
"use strict";
@@ -17572,10 +17572,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<40ea1cc1bd61d18a4bb2d02762800f86>>
* @generated SignedSource<<a36be89ef5d7d7a80626f065b7fbc606>>
*/
"use strict";
@@ -11277,10 +11277,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1262 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1262.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ab77050186d96109653a0b2867411aa5>>
* @generated SignedSource<<d85ce30d6a1018e391ae56f1ca37a9ce>>
*/
"use strict";
@@ -11981,10 +11981,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1363 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1363.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<473ed13db5ba437448a23f23cbf31dfb>>
* @generated SignedSource<<b950b5a3fc7a3e8cd5b076766a4ff854>>
*/
"use strict";
@@ -17626,11 +17626,11 @@ __DEV__ &&
shouldSuspendImpl = newShouldSuspendImpl;
};
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-459a2c42-20250521" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-13f20044-20250522" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.2.0-native-fb-459a2c42-20250521\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-13f20044-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -17656,10 +17656,10 @@ __DEV__ &&
(function () {
var internals = {
bundleType: 1,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
null !== extraDevToolsConfig &&
(internals.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<ddf52e05ada2a991ba59d6875f776f03>>
* @generated SignedSource<<117557601055bfb70796b7b90b8d12f0>>
*/
"use strict";
@@ -11212,11 +11212,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-459a2c42-20250521" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-13f20044-20250522" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.2.0-native-fb-459a2c42-20250521\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-13f20044-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11266,10 +11266,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1307 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1307.rendererConfig = extraDevToolsConfig);
@@ -7,7 +7,7 @@
* @noflow
* @nolint
* @preventMunge
* @generated SignedSource<<b37b8c44bcae3dad32ccc65b11fd833b>>
* @generated SignedSource<<9f1042b3065d68a52dedbdca6bd65deb>>
*/
"use strict";
@@ -11914,11 +11914,11 @@ function updateContainer(element, container, parentComponent, callback) {
return lane;
}
var isomorphicReactPackageVersion = React.version;
if ("19.2.0-native-fb-459a2c42-20250521" !== isomorphicReactPackageVersion)
if ("19.2.0-native-fb-13f20044-20250522" !== isomorphicReactPackageVersion)
throw Error(
'Incompatible React versions: The "react" and "react-native-renderer" packages must have the exact same version. Instead got:\n - react: ' +
(isomorphicReactPackageVersion +
"\n - react-native-renderer: 19.2.0-native-fb-459a2c42-20250521\nLearn more: https://react.dev/warnings/version-mismatch")
"\n - react-native-renderer: 19.2.0-native-fb-13f20044-20250522\nLearn more: https://react.dev/warnings/version-mismatch")
);
if (
"function" !==
@@ -11968,10 +11968,10 @@ batchedUpdatesImpl = function (fn, a) {
var roots = new Map(),
internals$jscomp$inline_1408 = {
bundleType: 0,
version: "19.2.0-native-fb-459a2c42-20250521",
version: "19.2.0-native-fb-13f20044-20250522",
rendererPackageName: "react-native-renderer",
currentDispatcherRef: ReactSharedInternals,
reconcilerVersion: "19.2.0-native-fb-459a2c42-20250521"
reconcilerVersion: "19.2.0-native-fb-13f20044-20250522"
};
null !== extraDevToolsConfig &&
(internals$jscomp$inline_1408.rendererConfig = extraDevToolsConfig);
@@ -12,7 +12,7 @@
* @lightSyntaxTransform
* @preventMunge
* @oncall react_core
* @generated SignedSource<<c302138ab1d122c4373df15409127816>>
* @generated SignedSource<<930dbc8623b19bcc35904cfd0dffc392>>
*/
'use strict';
@@ -29032,7 +29032,8 @@ class HIRBuilder {
get environment() {
return __classPrivateFieldGet(this, _HIRBuilder_env, "f");
}
constructor(env, parentFunction, bindings = null, context = null) {
constructor(env, options) {
var _a, _b, _c;
_HIRBuilder_instances.add(this);
_HIRBuilder_completed.set(this, new Map());
_HIRBuilder_current.set(this, void 0);
@@ -29045,11 +29046,10 @@ class HIRBuilder {
this.errors = new CompilerError();
this.fbtDepth = 0;
__classPrivateFieldSet(this, _HIRBuilder_env, env, "f");
__classPrivateFieldSet(this, _HIRBuilder_bindings, bindings !== null && bindings !== void 0 ? bindings : new Map(), "f");
this.parentFunction = parentFunction;
__classPrivateFieldSet(this, _HIRBuilder_context, context !== null && context !== void 0 ? context : [], "f");
__classPrivateFieldSet(this, _HIRBuilder_bindings, (_a = options === null || options === void 0 ? void 0 : options.bindings) !== null && _a !== void 0 ? _a : new Map(), "f");
__classPrivateFieldSet(this, _HIRBuilder_context, (_b = options === null || options === void 0 ? void 0 : options.context) !== null && _b !== void 0 ? _b : [], "f");
__classPrivateFieldSet(this, _HIRBuilder_entry, makeBlockId(env.nextBlockId), "f");
__classPrivateFieldSet(this, _HIRBuilder_current, newBlock(__classPrivateFieldGet(this, _HIRBuilder_entry, "f"), 'block'), "f");
__classPrivateFieldSet(this, _HIRBuilder_current, newBlock(__classPrivateFieldGet(this, _HIRBuilder_entry, "f"), (_c = options === null || options === void 0 ? void 0 : options.entryBlockKind) !== null && _c !== void 0 ? _c : 'block'), "f");
}
currentBlockKind() {
return __classPrivateFieldGet(this, _HIRBuilder_current, "f").kind;
@@ -29087,7 +29087,7 @@ class HIRBuilder {
if (babelBinding == null) {
return { kind: 'Global', name: originalName };
}
const outerBinding = this.parentFunction.scope.parent.getBinding(originalName);
const outerBinding = __classPrivateFieldGet(this, _HIRBuilder_env, "f").parentFunction.scope.parent.getBinding(originalName);
if (babelBinding === outerBinding) {
const path = babelBinding.path;
if (path.isImportDefaultSpecifier()) {
@@ -29137,7 +29137,7 @@ class HIRBuilder {
isContextIdentifier(path) {
const binding = __classPrivateFieldGet(this, _HIRBuilder_instances, "m", _HIRBuilder_resolveBabelBinding).call(this, path);
if (binding) {
const outerBinding = this.parentFunction.scope.parent.getBinding(path.node.name);
const outerBinding = __classPrivateFieldGet(this, _HIRBuilder_env, "f").parentFunction.scope.parent.getBinding(path.node.name);
if (binding === outerBinding) {
return false;
}
@@ -29226,6 +29226,7 @@ class HIRBuilder {
const nextId = __classPrivateFieldGet(this, _HIRBuilder_env, "f").nextBlockId;
__classPrivateFieldSet(this, _HIRBuilder_current, newBlock(nextId, nextBlockKind), "f");
}
return blockId;
}
terminateWithContinuation(terminal, continuation) {
const { id: blockId, kind, instructions } = __classPrivateFieldGet(this, _HIRBuilder_current, "f");
@@ -29431,6 +29432,11 @@ function getReversePostorderedBlocks(func) {
return;
}
const block = func.blocks.get(blockId);
CompilerError.invariant(block != null, {
reason: '[HIRBuilder] Unexpected null block',
description: `expected block ${blockId} to exist`,
loc: GeneratedSource,
});
const successors = [...eachTerminalSuccessor(block.terminal)].reverse();
const fallthrough = terminalFallthrough(block.terminal);
if (fallthrough != null) {
@@ -30370,9 +30376,12 @@ const DefaultNonmutatingHook = addHook(BUILTIN_SHAPES, {
returnValueKind: ValueKind.Frozen,
}, 'DefaultNonmutatingHook');
function lower$1(func, env, bindings = null, capturedRefs = [], parent = null) {
function lower$1(func, env, bindings = null, capturedRefs = []) {
var _a, _b, _c;
const builder = new HIRBuilder(env, parent !== null && parent !== void 0 ? parent : func, bindings, capturedRefs);
const builder = new HIRBuilder(env, {
bindings,
context: capturedRefs,
});
const context = [];
for (const ref of capturedRefs !== null && capturedRefs !== void 0 ? capturedRefs : []) {
context.push({
@@ -30491,7 +30500,7 @@ function lower$1(func, env, bindings = null, capturedRefs = [], parent = null) {
return Ok({
id,
params,
fnType: parent == null ? env.fnType : 'Other',
fnType: bindings == null ? env.fnType : 'Other',
returnTypeAnnotation: null,
returnType: makeType(),
body: builder.build(),
@@ -33164,9 +33173,12 @@ function lowerFunctionToValue(builder, expr) {
};
}
function lowerFunction(builder, expr) {
const componentScope = builder.parentFunction.scope;
const componentScope = builder.environment.parentFunction.scope;
const capturedContext = gatherCapturedContext(expr, componentScope);
const lowering = lower$1(expr, builder.environment, builder.bindings, [...builder.context, ...capturedContext], builder.parentFunction);
const lowering = lower$1(expr, builder.environment, builder.bindings, [
...builder.context,
...capturedContext,
]);
let loweredFunc;
if (lowering.isErr()) {
lowering
@@ -38577,7 +38589,7 @@ const EnvironmentConfigSchema = zod.z.object({
lowerContextAccess: ExternalFunctionSchema.nullable().default(null),
});
class Environment {
constructor(scope, fnType, compilerMode, config, contextIdentifiers, logger, filename, code, programContext) {
constructor(scope, fnType, compilerMode, config, contextIdentifiers, parentFunction, logger, filename, code, programContext) {
_Environment_instances.add(this);
_Environment_globals.set(this, void 0);
_Environment_shapes.set(this, void 0);
@@ -38634,6 +38646,7 @@ class Environment {
const reanimatedModuleType = getReanimatedModuleType(__classPrivateFieldGet(this, _Environment_shapes, "f"));
__classPrivateFieldGet(this, _Environment_moduleTypes, "f").set(REANIMATED_MODULE_NAME, reanimatedModuleType);
}
this.parentFunction = parentFunction;
__classPrivateFieldSet(this, _Environment_contextIdentifiers, contextIdentifiers, "f");
__classPrivateFieldSet(this, _Environment_hoistedIdentifiers, new Set(), "f");
}
@@ -55493,7 +55506,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
function run(func, config, fnType, mode, programContext, logger, filename, code) {
var _a, _b;
const contextIdentifiers = findContextIdentifiers(func);
const env = new Environment(func.scope, fnType, mode, config, contextIdentifiers, logger, filename, code, programContext);
const env = new Environment(func.scope, fnType, mode, config, contextIdentifiers, func, logger, filename, code, programContext);
(_b = (_a = env.logger) === null || _a === void 0 ? void 0 : _a.debugLogIRs) === null || _b === void 0 ? void 0 : _b.call(_a, {
kind: 'debug',
name: 'EnvironmentConfig',
@@ -6,7 +6,7 @@
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
* @generated SignedSource<<b5fc27344d90540c59050df7e7824523>>
* @generated SignedSource<<4d700f808825d94e524fee57ec05a757>>
*/
'use strict';
@@ -29017,7 +29017,8 @@ class HIRBuilder {
get environment() {
return __classPrivateFieldGet(this, _HIRBuilder_env, "f");
}
constructor(env, parentFunction, bindings = null, context = null) {
constructor(env, options) {
var _a, _b, _c;
_HIRBuilder_instances.add(this);
_HIRBuilder_completed.set(this, new Map());
_HIRBuilder_current.set(this, void 0);
@@ -29030,11 +29031,10 @@ class HIRBuilder {
this.errors = new CompilerError();
this.fbtDepth = 0;
__classPrivateFieldSet(this, _HIRBuilder_env, env, "f");
__classPrivateFieldSet(this, _HIRBuilder_bindings, bindings !== null && bindings !== void 0 ? bindings : new Map(), "f");
this.parentFunction = parentFunction;
__classPrivateFieldSet(this, _HIRBuilder_context, context !== null && context !== void 0 ? context : [], "f");
__classPrivateFieldSet(this, _HIRBuilder_bindings, (_a = options === null || options === void 0 ? void 0 : options.bindings) !== null && _a !== void 0 ? _a : new Map(), "f");
__classPrivateFieldSet(this, _HIRBuilder_context, (_b = options === null || options === void 0 ? void 0 : options.context) !== null && _b !== void 0 ? _b : [], "f");
__classPrivateFieldSet(this, _HIRBuilder_entry, makeBlockId(env.nextBlockId), "f");
__classPrivateFieldSet(this, _HIRBuilder_current, newBlock(__classPrivateFieldGet(this, _HIRBuilder_entry, "f"), 'block'), "f");
__classPrivateFieldSet(this, _HIRBuilder_current, newBlock(__classPrivateFieldGet(this, _HIRBuilder_entry, "f"), (_c = options === null || options === void 0 ? void 0 : options.entryBlockKind) !== null && _c !== void 0 ? _c : 'block'), "f");
}
currentBlockKind() {
return __classPrivateFieldGet(this, _HIRBuilder_current, "f").kind;
@@ -29072,7 +29072,7 @@ class HIRBuilder {
if (babelBinding == null) {
return { kind: 'Global', name: originalName };
}
const outerBinding = this.parentFunction.scope.parent.getBinding(originalName);
const outerBinding = __classPrivateFieldGet(this, _HIRBuilder_env, "f").parentFunction.scope.parent.getBinding(originalName);
if (babelBinding === outerBinding) {
const path = babelBinding.path;
if (path.isImportDefaultSpecifier()) {
@@ -29122,7 +29122,7 @@ class HIRBuilder {
isContextIdentifier(path) {
const binding = __classPrivateFieldGet(this, _HIRBuilder_instances, "m", _HIRBuilder_resolveBabelBinding).call(this, path);
if (binding) {
const outerBinding = this.parentFunction.scope.parent.getBinding(path.node.name);
const outerBinding = __classPrivateFieldGet(this, _HIRBuilder_env, "f").parentFunction.scope.parent.getBinding(path.node.name);
if (binding === outerBinding) {
return false;
}
@@ -29211,6 +29211,7 @@ class HIRBuilder {
const nextId = __classPrivateFieldGet(this, _HIRBuilder_env, "f").nextBlockId;
__classPrivateFieldSet(this, _HIRBuilder_current, newBlock(nextId, nextBlockKind), "f");
}
return blockId;
}
terminateWithContinuation(terminal, continuation) {
const { id: blockId, kind, instructions } = __classPrivateFieldGet(this, _HIRBuilder_current, "f");
@@ -29416,6 +29417,11 @@ function getReversePostorderedBlocks(func) {
return;
}
const block = func.blocks.get(blockId);
CompilerError.invariant(block != null, {
reason: '[HIRBuilder] Unexpected null block',
description: `expected block ${blockId} to exist`,
loc: GeneratedSource,
});
const successors = [...eachTerminalSuccessor(block.terminal)].reverse();
const fallthrough = terminalFallthrough(block.terminal);
if (fallthrough != null) {
@@ -30355,9 +30361,12 @@ const DefaultNonmutatingHook = addHook(BUILTIN_SHAPES, {
returnValueKind: ValueKind.Frozen,
}, 'DefaultNonmutatingHook');
function lower$1(func, env, bindings = null, capturedRefs = [], parent = null) {
function lower$1(func, env, bindings = null, capturedRefs = []) {
var _a, _b, _c;
const builder = new HIRBuilder(env, parent !== null && parent !== void 0 ? parent : func, bindings, capturedRefs);
const builder = new HIRBuilder(env, {
bindings,
context: capturedRefs,
});
const context = [];
for (const ref of capturedRefs !== null && capturedRefs !== void 0 ? capturedRefs : []) {
context.push({
@@ -30476,7 +30485,7 @@ function lower$1(func, env, bindings = null, capturedRefs = [], parent = null) {
return Ok({
id,
params,
fnType: parent == null ? env.fnType : 'Other',
fnType: bindings == null ? env.fnType : 'Other',
returnTypeAnnotation: null,
returnType: makeType(),
body: builder.build(),
@@ -33149,9 +33158,12 @@ function lowerFunctionToValue(builder, expr) {
};
}
function lowerFunction(builder, expr) {
const componentScope = builder.parentFunction.scope;
const componentScope = builder.environment.parentFunction.scope;
const capturedContext = gatherCapturedContext(expr, componentScope);
const lowering = lower$1(expr, builder.environment, builder.bindings, [...builder.context, ...capturedContext], builder.parentFunction);
const lowering = lower$1(expr, builder.environment, builder.bindings, [
...builder.context,
...capturedContext,
]);
let loweredFunc;
if (lowering.isErr()) {
lowering
@@ -38356,7 +38368,7 @@ const EnvironmentConfigSchema = zod.z.object({
lowerContextAccess: ExternalFunctionSchema.nullable().default(null),
});
class Environment {
constructor(scope, fnType, compilerMode, config, contextIdentifiers, logger, filename, code, programContext) {
constructor(scope, fnType, compilerMode, config, contextIdentifiers, parentFunction, logger, filename, code, programContext) {
_Environment_instances.add(this);
_Environment_globals.set(this, void 0);
_Environment_shapes.set(this, void 0);
@@ -38413,6 +38425,7 @@ class Environment {
const reanimatedModuleType = getReanimatedModuleType(__classPrivateFieldGet(this, _Environment_shapes, "f"));
__classPrivateFieldGet(this, _Environment_moduleTypes, "f").set(REANIMATED_MODULE_NAME, reanimatedModuleType);
}
this.parentFunction = parentFunction;
__classPrivateFieldSet(this, _Environment_contextIdentifiers, contextIdentifiers, "f");
__classPrivateFieldSet(this, _Environment_hoistedIdentifiers, new Set(), "f");
}
@@ -55272,7 +55285,7 @@ function validateNoFreezingKnownMutableFunctions(fn) {
function run(func, config, fnType, mode, programContext, logger, filename, code) {
var _a, _b;
const contextIdentifiers = findContextIdentifiers(func);
const env = new Environment(func.scope, fnType, mode, config, contextIdentifiers, logger, filename, code, programContext);
const env = new Environment(func.scope, fnType, mode, config, contextIdentifiers, func, logger, filename, code, programContext);
(_b = (_a = env.logger) === null || _a === void 0 ? void 0 : _a.debugLogIRs) === null || _b === void 0 ? void 0 : _b.call(_a, {
kind: 'debug',
name: 'EnvironmentConfig',
@@ -1,7 +1,7 @@
{
"name": "eslint-plugin-react-hooks",
"description": "ESLint rules for React Hooks",
"version": "0.0.0-experimental-459a2c42-20250521",
"version": "0.0.0-experimental-13f20044-20250522",
"repository": {
"type": "git",
"url": "https://github.com/facebook/react.git",