From e2d000654aba9e53bb45d061cea0d847b61e1410 Mon Sep 17 00:00:00 2001 From: josephsavona Date: Wed, 25 Jun 2025 11:19:06 -0700 Subject: [PATCH] [compiler] Consolidate HIRFunction return information (#33640) We now have `HIRFunction.returns: Place` as well as `returnType: Type`. I want to add additional return information, so as a first step i'm consolidating everything under an object at `HIRFunction.returns: {place: Place}`. We use the type of this place as the return type. Next step is to add more properties to this object to represent things like the return kind. --- [//]: # (BEGIN SAPLING FOOTER) Stack created with [Sapling](https://sapling-scm.com). Best reviewed with [ReviewStack](https://reviewstack.dev/facebook/react/pull/33640). * #33643 * #33642 * __->__ #33640 * #33625 * #33624 DiffTrain build for [123ff13b193cd361a61b99056dd08f2decd7f55d](https://github.com/facebook/react/commit/123ff13b193cd361a61b99056dd08f2decd7f55d) --- 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 | 28 +++++++++---------- .../eslint-plugin-react-hooks.production.js | 28 +++++++++---------- .../eslint-plugin-react-hooks/package.json | 2 +- 26 files changed, 115 insertions(+), 115 deletions(-) diff --git a/compiled-rn/VERSION_NATIVE_FB b/compiled-rn/VERSION_NATIVE_FB index f4a21c075a..993e8c7d80 100644 --- a/compiled-rn/VERSION_NATIVE_FB +++ b/compiled-rn/VERSION_NATIVE_FB @@ -1 +1 @@ -19.2.0-native-fb-e130c08b-20250625 \ No newline at end of file +19.2.0-native-fb-123ff13b-20250625 \ 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 745043755a..024bb32cac 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-e130c08b-20250625"; + exports.version = "19.2.0-native-fb-123ff13b-20250625"; })(); 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 090c6e3faf..19691f073f 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<<6bb137893e32f92de29fd33f2f29e56d>> + * @generated SignedSource<<2b56cd6a7ad78f2b3d764aab65963425>> */ "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-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 090c6e3faf..19691f073f 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<<6bb137893e32f92de29fd33f2f29e56d>> + * @generated SignedSource<<2b56cd6a7ad78f2b3d764aab65963425>> */ "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-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 601b886862..a423b55972 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<> + * @generated SignedSource<> */ /* @@ -28651,11 +28651,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-e130c08b-20250625" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-123ff13b-20250625" !== 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-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28692,10 +28692,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -28833,5 +28833,5 @@ __DEV__ && listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; - exports.version = "19.2.0-native-fb-e130c08b-20250625"; + exports.version = "19.2.0-native-fb-123ff13b-20250625"; })(); 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 8561fe29fd..9d04c23384 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<<46e83bd3e42ab9040d6bb857d6199d99>> */ /* @@ -17121,14 +17121,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2023 = React.version; if ( - "19.2.0-native-fb-e130c08b-20250625" !== + "19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2023 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2023, - "19.2.0-native-fb-e130c08b-20250625" + "19.2.0-native-fb-123ff13b-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17150,10 +17150,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2542 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2543 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17251,4 +17251,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 4f4e7883b9..bd23d82a48 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<<46f43939266513cdd4d5042fe49826d3>> + * @generated SignedSource<<9e77781e22bbfffb66b15e57cfb2de13>> */ /* @@ -19053,14 +19053,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2261 = React.version; if ( - "19.2.0-native-fb-e130c08b-20250625" !== + "19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2261 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2261, - "19.2.0-native-fb-e130c08b-20250625" + "19.2.0-native-fb-123ff13b-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19082,10 +19082,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2268 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625", + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$331 = 0; @@ -19198,4 +19198,4 @@ exports.hydrateRoot = function (container, initialChildren, options) { listenToAllSupportedEvents(container); return new ReactDOMHydrationRoot(initialChildren); }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 d93101dd98..94307dcc5b 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<<893d210ae28d5944f4bf8530d0216e6b>> + * @generated SignedSource<<2c61d4febbdcc5334e51372d20b00ce3>> */ /* @@ -28707,11 +28707,11 @@ __DEV__ && }; (function () { var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-e130c08b-20250625" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-123ff13b-20250625" !== 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-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-dom: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); })(); ("function" === typeof Map && @@ -28748,10 +28748,10 @@ __DEV__ && !(function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -29205,7 +29205,7 @@ __DEV__ && exports.useFormStatus = function () { return resolveDispatcher().useHostTransitionStatus(); }; - exports.version = "19.2.0-native-fb-e130c08b-20250625"; + exports.version = "19.2.0-native-fb-123ff13b-20250625"; "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 9b199d6521..542fbdf57f 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<<2bc6c13448bd986e4644c03571985dbd>> + * @generated SignedSource<> */ /* @@ -17132,14 +17132,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2024 = React.version; if ( - "19.2.0-native-fb-e130c08b-20250625" !== + "19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2024 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2024, - "19.2.0-native-fb-e130c08b-20250625" + "19.2.0-native-fb-123ff13b-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -17161,10 +17161,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2545 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_2546 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -17415,4 +17415,4 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 24c6d19285..9d7a5b0be5 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<> + * @generated SignedSource<<614bb4ec9801ce31d283c1cc1605e3c0>> */ /* @@ -19068,14 +19068,14 @@ ReactDOMHydrationRoot.prototype.unstable_scheduleHydration = function (target) { }; var isomorphicReactPackageVersion$jscomp$inline_2262 = React.version; if ( - "19.2.0-native-fb-e130c08b-20250625" !== + "19.2.0-native-fb-123ff13b-20250625" !== isomorphicReactPackageVersion$jscomp$inline_2262 ) throw Error( formatProdErrorMessage( 527, isomorphicReactPackageVersion$jscomp$inline_2262, - "19.2.0-native-fb-e130c08b-20250625" + "19.2.0-native-fb-123ff13b-20250625" ) ); ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { @@ -19097,10 +19097,10 @@ ReactDOMSharedInternals.findDOMNode = function (componentOrElement) { }; var internals$jscomp$inline_2269 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-dom", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625", + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$331 = 0; @@ -19366,7 +19366,7 @@ exports.useFormState = function (action, initialState, permalink) { exports.useFormStatus = function () { return ReactSharedInternals.H.useHostTransitionStatus(); }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; "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 86f8d9dbfa..c5f0a0971c 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<> + * @generated SignedSource<<5bb0ee5eebe0be143ece7d9516211c05>> */ "use strict"; @@ -15722,10 +15722,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; internals.overrideHookState = overrideHookState; internals.overrideHookStateDeletePath = overrideHookStateDeletePath; @@ -15870,5 +15870,5 @@ __DEV__ && flushSyncWorkAcrossRoots_impl(0, !0)); } }; - exports.version = "19.2.0-native-fb-e130c08b-20250625"; + exports.version = "19.2.0-native-fb-123ff13b-20250625"; })(); 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 47052345ff..3d024d4643 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<<268d5a14dc847e98f38848cfe8f4929c>> + * @generated SignedSource<<6fedf75fecabfd8dfd784e3f55657446>> */ "use strict"; @@ -9905,10 +9905,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1453 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) { var hook$jscomp$inline_1454 = __REACT_DEVTOOLS_GLOBAL_HOOK__; @@ -10044,4 +10044,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 73005759a3..5c6c750b82 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<> + * @generated SignedSource<> */ "use strict"; @@ -10525,10 +10525,10 @@ function wrapFiber(fiber) { } var internals$jscomp$inline_1260 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-test-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625", + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625", getLaneLabelMap: function () { for ( var map = new Map(), lane = 1, index$155 = 0; @@ -10679,4 +10679,4 @@ exports.unstable_batchedUpdates = function (fn, a) { flushSyncWorkAcrossRoots_impl(0, !0)); } }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 5a86872d8a..960c1f69b0 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<<80975a2832a7080632a220f184504d9c>> + * @generated SignedSource<<9085edf03d745ff16534dcfd53bf6617>> */ "use strict"; @@ -1413,7 +1413,7 @@ __DEV__ && exports.useTransition = function () { return resolveDispatcher().useTransition(); }; - exports.version = "19.2.0-native-fb-e130c08b-20250625"; + exports.version = "19.2.0-native-fb-123ff13b-20250625"; "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 1fabf39d5d..a99da4f22d 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<<3b22b346d2c2d340ed16f80c9d5b3131>> + * @generated SignedSource<> */ "use strict"; @@ -589,4 +589,4 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; 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 a94352df3d..8a844bb8ad 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<<0133d305c1bf0c26368f6796515b1ab1>> + * @generated SignedSource<<46da79099267acec86e8fadf7fa9f56c>> */ "use strict"; @@ -593,7 +593,7 @@ exports.useSyncExternalStore = function ( exports.useTransition = function () { return ReactSharedInternals.H.useTransition(); }; -exports.version = "19.2.0-native-fb-e130c08b-20250625"; +exports.version = "19.2.0-native-fb-123ff13b-20250625"; "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 4630e2783a..099276d20c 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 @@ -e130c08b06470b5fc4ec8095310d19e782924427 +123ff13b193cd361a61b99056dd08f2decd7f55d 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 92fc03f29c..697f8ff6bc 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<> + * @generated SignedSource<> */ "use strict"; @@ -18875,10 +18875,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; 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 b48e69c425..c9c5563aad 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<<64aafacb59cd74686ff07d97f3f52083>> + * @generated SignedSource<> */ "use strict"; @@ -11029,10 +11029,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1257 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1257.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 341cfed2d6..95e761ec82 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"; @@ -12932,10 +12932,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1490 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1490.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 584498539f..4dd83673e8 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<<94103cd99b60c1bb0da38eb87f9733e0>> + * @generated SignedSource<> */ "use strict"; @@ -19208,11 +19208,11 @@ __DEV__ && shouldSuspendImpl = newShouldSuspendImpl; }; var isomorphicReactPackageVersion = React.version; - if ("19.2.0-native-fb-e130c08b-20250625" !== isomorphicReactPackageVersion) + if ("19.2.0-native-fb-123ff13b-20250625" !== 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-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -19238,10 +19238,10 @@ __DEV__ && (function () { var internals = { bundleType: 1, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; 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 d88b2df68a..724c095012 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<<4dd9f366afb7bee86190108c44d2fb54>> */ "use strict"; @@ -11221,11 +11221,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-e130c08b-20250625" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-123ff13b-20250625" !== 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-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -11275,10 +11275,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1313 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1313.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 0429100056..c31eaf8d97 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<<21420dd18650e92159e8b7e4714b3722>> + * @generated SignedSource<<76eac4a6a2639d1298c7f8a895c02283>> */ "use strict"; @@ -13113,11 +13113,11 @@ function updateContainer(element, container, parentComponent, callback) { return lane; } var isomorphicReactPackageVersion = React.version; -if ("19.2.0-native-fb-e130c08b-20250625" !== isomorphicReactPackageVersion) +if ("19.2.0-native-fb-123ff13b-20250625" !== 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-e130c08b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") + "\n - react-native-renderer: 19.2.0-native-fb-123ff13b-20250625\nLearn more: https://react.dev/warnings/version-mismatch") ); if ( "function" !== @@ -13167,10 +13167,10 @@ batchedUpdatesImpl = function (fn, a) { var roots = new Map(), internals$jscomp$inline_1546 = { bundleType: 0, - version: "19.2.0-native-fb-e130c08b-20250625", + version: "19.2.0-native-fb-123ff13b-20250625", rendererPackageName: "react-native-renderer", currentDispatcherRef: ReactSharedInternals, - reconcilerVersion: "19.2.0-native-fb-e130c08b-20250625" + reconcilerVersion: "19.2.0-native-fb-123ff13b-20250625" }; null !== extraDevToolsConfig && (internals$jscomp$inline_1546.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 0097f6ed64..3bc1c8d1e4 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<<8e98f9380eef35f26401f575917c3fd4>> */ 'use strict'; @@ -27077,6 +27077,9 @@ function printFunction(fn) { if (fn.id !== null) { definition += fn.id; } + else { + definition += '<>'; + } if (fn.params.length !== 0) { definition += '(' + @@ -27095,10 +27098,8 @@ function printFunction(fn) { else { definition += '()'; } - if (definition.length !== 0) { - output.push(definition); - } - output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`); + definition += `: ${printPlace(fn.returns)}`; + output.push(definition); output.push(...fn.directives); output.push(printHIR(fn.body)); return output.join('\n'); @@ -30923,7 +30924,6 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) { params, fnType: bindings == null ? env.fnType : 'Other', returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource), body: builder.build(), context, @@ -51684,12 +51684,13 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) { } } } + const returns = fn.returns.identifier; functionEffects.push({ kind: 'Create', into: fn.returns, - value: fn.returnType.kind === 'Primitive' + value: isPrimitiveType(returns) ? ValueKind.Primitive - : isJsxType(fn.returnType) + : isJsxType(returns.type) ? ValueKind.Frozen : ValueKind.Mutable, reason: ValueReason.KnownReturnSignature, @@ -55273,7 +55274,8 @@ function apply(func, unifier) { } } } - func.returnType = unifier.get(func.returnType); + const returns = func.returns.identifier; + returns.type = unifier.get(returns.type); } function equation(left, right) { return { @@ -55315,13 +55317,13 @@ function* generate(func) { } } if (returnTypes.length > 1) { - yield equation(func.returnType, { + yield equation(func.returns.identifier.type, { kind: 'Phi', operands: returnTypes, }); } else if (returnTypes.length === 1) { - yield equation(func.returnType, returnTypes[0]); + yield equation(func.returns.identifier.type, returnTypes[0]); } } function setName(names, id, name) { @@ -55532,7 +55534,7 @@ function* generateInstructionTypes(env, names, instr) { yield equation(left, { kind: 'Function', shapeId: BuiltInFunctionId, - return: value.loweredFunc.func.returnType, + return: value.loweredFunc.func.returns.identifier.type, isConstructor: false, }); break; @@ -57675,7 +57677,6 @@ function emitSelectorFn(env, keys) { env, params: [obj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, @@ -58093,7 +58094,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { env, params: [propsObj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, 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 35639bbdbf..8bab0b2522 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<<6b5208e0c1ed68042ba2b701c7c8078e>> + * @generated SignedSource<<6e88fc340696386e79bbd83502277d08>> */ 'use strict'; @@ -27062,6 +27062,9 @@ function printFunction(fn) { if (fn.id !== null) { definition += fn.id; } + else { + definition += '<>'; + } if (fn.params.length !== 0) { definition += '(' + @@ -27080,10 +27083,8 @@ function printFunction(fn) { else { definition += '()'; } - if (definition.length !== 0) { - output.push(definition); - } - output.push(`: ${printType(fn.returnType)} @ ${printPlace(fn.returns)}`); + definition += `: ${printPlace(fn.returns)}`; + output.push(definition); output.push(...fn.directives); output.push(printHIR(fn.body)); return output.join('\n'); @@ -30908,7 +30909,6 @@ function lower$1(func, env, bindings = null, capturedRefs = new Map()) { params, fnType: bindings == null ? env.fnType : 'Other', returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, (_b = func.node.loc) !== null && _b !== void 0 ? _b : GeneratedSource), body: builder.build(), context, @@ -51463,12 +51463,13 @@ function inferMutationAliasingRanges(fn, { isFunctionExpression }) { } } } + const returns = fn.returns.identifier; functionEffects.push({ kind: 'Create', into: fn.returns, - value: fn.returnType.kind === 'Primitive' + value: isPrimitiveType(returns) ? ValueKind.Primitive - : isJsxType(fn.returnType) + : isJsxType(returns.type) ? ValueKind.Frozen : ValueKind.Mutable, reason: ValueReason.KnownReturnSignature, @@ -55052,7 +55053,8 @@ function apply(func, unifier) { } } } - func.returnType = unifier.get(func.returnType); + const returns = func.returns.identifier; + returns.type = unifier.get(returns.type); } function equation(left, right) { return { @@ -55094,13 +55096,13 @@ function* generate(func) { } } if (returnTypes.length > 1) { - yield equation(func.returnType, { + yield equation(func.returns.identifier.type, { kind: 'Phi', operands: returnTypes, }); } else if (returnTypes.length === 1) { - yield equation(func.returnType, returnTypes[0]); + yield equation(func.returns.identifier.type, returnTypes[0]); } } function setName(names, id, name) { @@ -55311,7 +55313,7 @@ function* generateInstructionTypes(env, names, instr) { yield equation(left, { kind: 'Function', shapeId: BuiltInFunctionId, - return: value.loweredFunc.func.returnType, + return: value.loweredFunc.func.returns.identifier.type, isConstructor: false, }); break; @@ -57454,7 +57456,6 @@ function emitSelectorFn(env, keys) { env, params: [obj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, @@ -57872,7 +57873,6 @@ function emitOutlinedFn(env, jsx, oldProps, globals) { env, params: [propsObj], returnTypeAnnotation: null, - returnType: makeType(), returns: createTemporaryPlace(env, GeneratedSource), context: [], effects: null, 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 f356d6dbf8..7738bf2d1c 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-e130c08b-20250625", + "version": "0.0.0-experimental-123ff13b-20250625", "repository": { "type": "git", "url": "https://github.com/facebook/react.git",