From ffe52b75a3c3c244c046bf88a128afc1dbe5aac9 Mon Sep 17 00:00:00 2001 From: Nikita Lutsenko Date: Thu, 21 Aug 2025 14:59:24 -0700 Subject: [PATCH] xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp (#53412) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/53412 Changelog: [General][Internal] - Encapsulated internal class into anonymous namespace to ensure no collisions with public symbols. Differential Revision: D80689084 fbshipit-source-id: 53ebd8a16a3c217efead0bfe91f66bd50bb6dd2f --- .../ReactCommon/react/renderer/mounting/Differentiator.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp b/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp index 001238d6960..611180e6a20 100644 --- a/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp +++ b/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp @@ -126,6 +126,8 @@ static void calculateShadowViewMutations( const CullingContext& oldCullingContext = {}, const CullingContext& newCullingContext = {}); +namespace { + struct OrderedMutationInstructionContainer { ShadowViewMutation::List createMutations{}; ShadowViewMutation::List deleteMutations{}; @@ -136,6 +138,8 @@ struct OrderedMutationInstructionContainer { ShadowViewMutation::List destructiveDownwardMutations{}; }; +} // namespace + static void updateMatchedPairSubtrees( ViewNodePairScope& scope, OrderedMutationInstructionContainer& mutationContainer,