Use surfaceId type instead of int in PropsParserContext

Summary:
changelog: [internal]

Use surfaceId type instead of raw int type in PropsParserContext

Reviewed By: RSNara

Differential Revision: D30667540

fbshipit-source-id: 2bf890b892851e785318e3566692ac72ec782b91
This commit is contained in:
Samuel Susla
2021-09-01 10:08:25 -07:00
committed by Facebook GitHub Bot
parent 329b026f3a
commit 3e6eedaedb
7 changed files with 7 additions and 6 deletions
@@ -11,7 +11,6 @@
#include <memory>
#include <folly/Hash.h>
#include <folly/Optional.h>
#include <react/renderer/attributedstring/TextAttributes.h>
#include <react/renderer/core/Sealable.h>
#include <react/renderer/core/ShadowNode.h>
@@ -10,8 +10,8 @@
#include <functional>
#include <limits>
#include <better/optional.h>
#include <folly/Hash.h>
#include <folly/Optional.h>
#include <react/renderer/attributedstring/primitives.h>
#include <react/renderer/core/LayoutPrimitives.h>
#include <react/renderer/core/ReactPrimitives.h>
@@ -11,6 +11,7 @@
#include <react/renderer/core/ConcreteState.h>
#include <react/renderer/core/Props.h>
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/core/RawProps.h>
#include <react/renderer/core/ShadowNode.h>
#include <react/renderer/core/StateData.h>
+1
View File
@@ -10,6 +10,7 @@
#include <folly/dynamic.h>
#include <react/renderer/core/PropsParserContext.h>
#include <react/renderer/core/RawProps.h>
#include <react/renderer/core/ReactPrimitives.h>
#include <react/renderer/core/Sealable.h>
#include <react/renderer/debug/DebugStringConvertible.h>
@@ -7,6 +7,7 @@
#pragma once
#include <react/renderer/core/ReactPrimitives.h>
#include <react/utils/ContextContainer.h>
namespace facebook {
@@ -20,8 +21,8 @@ struct PropsParserContext {
PropsParserContext(const PropsParserContext &) = delete;
PropsParserContext &operator=(const PropsParserContext &) = delete;
int surfaceId; // TODO: use SurfaceId type
const ContextContainer &contextContainer;
SurfaceId const surfaceId;
ContextContainer const &contextContainer;
};
} // namespace react
@@ -8,8 +8,6 @@
#pragma once
#include <folly/dynamic.h>
#include <react/renderer/core/RawProps.h>
#include <react/renderer/core/RawValue.h>
#include <memory>
#include <string>
@@ -10,6 +10,7 @@
#include <memory>
#include <better/mutex.h>
#include <better/small_vector.h>
#include <react/renderer/core/EventEmitter.h>
#include <react/renderer/core/ReactPrimitives.h>