Skip to content

Commit ffe52b7

Browse files
nlutsenkofacebook-github-bot
authored andcommitted
xplat/js/react-native-github/packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp (#53412)
Summary: Pull Request resolved: #53412 Changelog: [General][Internal] - Encapsulated internal class into anonymous namespace to ensure no collisions with public symbols. Differential Revision: D80689084 fbshipit-source-id: 53ebd8a16a3c217efead0bfe91f66bd50bb6dd2f
1 parent a2a7373 commit ffe52b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/react-native/ReactCommon/react/renderer/mounting/Differentiator.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ static void calculateShadowViewMutations(
126126
const CullingContext& oldCullingContext = {},
127127
const CullingContext& newCullingContext = {});
128128

129+
namespace {
130+
129131
struct OrderedMutationInstructionContainer {
130132
ShadowViewMutation::List createMutations{};
131133
ShadowViewMutation::List deleteMutations{};
@@ -136,6 +138,8 @@ struct OrderedMutationInstructionContainer {
136138
ShadowViewMutation::List destructiveDownwardMutations{};
137139
};
138140

141+
} // namespace
142+
139143
static void updateMatchedPairSubtrees(
140144
ViewNodePairScope& scope,
141145
OrderedMutationInstructionContainer& mutationContainer,

0 commit comments

Comments
 (0)