From eed66bfa2cd0fc7b5e4e740c8abf190f512358de Mon Sep 17 00:00:00 2001 From: mofeiZ Date: Thu, 22 May 2025 13:20:39 -0700 Subject: [PATCH] [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 [13f20044f3a5a9433eb4c6ef4c6577b8f0d13350](https://github.com/facebook/react/commit/13f20044f3a5a9433eb4c6ef4c6577b8f0d13350) --- compiled-rn/VERSION_NATIVE_FB | 2 +- .../react/react-dom/cjs/ReactDOM-dev.js | 4 +- .../react/react-dom/cjs/ReactDOM-prod.js | 4 +- .../react/react-dom/cjs/ReactDOM-profiling.js | 4 +- .../react/react-dom/cjs/ReactDOMClient-dev.js | 12 +++--- .../react-dom/cjs/ReactDOMClient-prod.js | 12 +++--- .../react-dom/cjs/ReactDOMClient-profiling.js | 12 +++--- .../react-dom/cjs/ReactDOMProfiling-dev.js | 12 +++--- .../react-dom/cjs/ReactDOMProfiling-prod.js | 12 +++--- .../cjs/ReactDOMProfiling-profiling.js | 12 +++--- .../cjs/ReactTestRenderer-dev.js | 8 ++-- .../cjs/ReactTestRenderer-prod.js | 8 ++-- .../cjs/ReactTestRenderer-profiling.js | 8 ++-- .../vendor/react/react/cjs/React-dev.js | 4 +- .../vendor/react/react/cjs/React-prod.js | 4 +- .../vendor/react/react/cjs/React-profiling.js | 4 +- .../Libraries/Renderer/REVISION | 2 +- .../implementations/ReactFabric-dev.fb.js | 6 +-- .../implementations/ReactFabric-prod.fb.js | 6 +-- .../ReactFabric-profiling.fb.js | 6 +-- .../ReactNativeRenderer-dev.fb.js | 10 ++--- .../ReactNativeRenderer-prod.fb.js | 10 ++--- .../ReactNativeRenderer-profiling.fb.js | 10 ++--- .../eslint-plugin-react-hooks.development.js | 43 ++++++++++++------- .../eslint-plugin-react-hooks.production.js | 43 ++++++++++++------- .../eslint-plugin-react-hooks/package.json | 2 +- 26 files changed, 143 insertions(+), 117 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index ebcbfe9b62..4063dc8dd9 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.2.0-native-fb-459a2c42-20250521 \ No newline at end of file +19.2.0-native-fb-13f20044-20250522 \ No newline at end of file diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js index b829d37a2e..f0f1cd183a 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "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"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js index 7747665738..5af932d846 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js index 7747665738..5af932d846 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOM-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js index 740d157a2c..ce8a5a5605 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-dev.js @@ -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"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js index bd9c897235..83b8bade2d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js index a70ef713ae..844a4e4bb5 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMClient-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<3c063c41e5a68dd3088e869dd2a7ffb1>> + * @generated SignedSource<> */ /* @@ -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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js index 72160f98d0..bbc10a43ab 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-dev.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<1fe1045de02f66f8663640009e53205f>> + * @generated SignedSource<> */ /* @@ -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 && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js index a5a60fc41e..9d4640d633 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-prod.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<2471072c3c37975a29f2a27840636019>> + * @generated SignedSource<> */ /* @@ -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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js index 6769679a20..0f131cb932 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-dom/cjs/ReactDOMProfiling-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<57d106b30a00c25e06192eb1935bfc19>> + * @generated SignedSource<> */ /* @@ -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 && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js index 334d530b16..4676e2f3bc 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-dev.js @@ -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"; })(); diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js index 0884f3f597..fa5210320a 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-prod.js @@ -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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js index e16faf987b..06b1096270 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react-test-renderer/cjs/ReactTestRenderer-profiling.js @@ -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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js index 2062666773..c2bf2e2d3d 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-dev.js @@ -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 && diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js index 68a200c56e..6a359e0061 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-prod.js @@ -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"; diff --git a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js index a6b334dbf9..c215083372 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js +++ b/compiled-rn/facebook-fbsource/xplat/js/RKJSModules/vendor/react/react/cjs/React-profiling.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<8c9f3e7645fb6e3d5e953a92f3dcd57c>> + * @generated SignedSource<> */ "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 && diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION index 011a64d574..41240d5a0c 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/REVISION @@ -1 +1 @@ -459a2c4298187cb0ee45605e2575ff35f4a81183 +13f20044f3a5a9433eb4c6ef4c6577b8f0d13350 diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js index 12b261658c..90aac742ec 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-dev.fb.js @@ -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); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js index f2acde74e7..8f11a2ca35 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<40ea1cc1bd61d18a4bb2d02762800f86>> + * @generated SignedSource<> */ "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); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js index 26feff0110..140fd71d61 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @generated SignedSource<> */ "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); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js index c21bf79c44..0df7ae9aea 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<<473ed13db5ba437448a23f23cbf31dfb>> + * @generated SignedSource<> */ "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); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js index 41a3350123..4175fd9a70 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @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); diff --git a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js index 8163686d28..e6f34a87c2 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +++ b/compiled-rn/facebook-fbsource/xplat/js/react-native-github/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js @@ -7,7 +7,7 @@ * @noflow * @nolint * @preventMunge - * @generated SignedSource<> + * @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); diff --git a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js index d80ecd4895..4b4d2b7fd8 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js +++ b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js @@ -12,7 +12,7 @@ * @lightSyntaxTransform * @preventMunge * @oncall react_core - * @generated SignedSource<> + * @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', diff --git a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js index 28b7b3eb3f..d6360f9af0 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js +++ b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.production.js @@ -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<> + * @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', diff --git a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json index dc64fa11b6..a7594001ac 100644 --- a/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json +++ b/compiled-rn/facebook-fbsource/xplat/js/tools/eslint-plugin-react-hooks/package.json @@ -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",