3 Commits
Author SHA1 Message Date
Jakub Piasecki e59957137a Deduplicate constructors when a class has multiple base classes (#56213)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56213

Changelog: [Internal]

When a class has multiple base classes, all defining a constructor with the same signature, the inherited constructors were being duplicated in the snapshot (for each base class).

This diff deduplicates them.

Reviewed By: cipolleschi

Differential Revision: D98102286

fbshipit-source-id: 2086645880afab8ec30d245b7cae5caa5e19679e
2026-03-26 08:40:54 -07:00
Dawid Małecki 20cf9bca83 Move scope string generation logic to the base class (#56085)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56085

Changelog: [Internal]

Moves the logic responsible for generating a string view of the scope's body to the base class to reduce duplication.

Similarly, moves the logic responsible for qualifying template arguments to the `Extensible` class.

Reviewed By: cipolleschi

Differential Revision: D96455746

fbshipit-source-id: 1d800c7992080e02831f61fee4aaa9cb31f8fc9a
2026-03-18 09:29:02 -07:00
Dawid Małecki 62ce98db99 Split scope definitions into smaller files (#56073)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/56073

Changelog: [Internal]

Splits `scope.py` into multiple smaller files, each containing a separate defitnition.

Reviewed By: cipolleschi

Differential Revision: D96284004

fbshipit-source-id: f99275cc9b5f8844f9a14f9d6207ae988aa9ccd7
2026-03-18 09:29:02 -07:00