mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
135993b36b
Summary: It's more correct and we will rely on this in the future. Changelog: [Internal] Fabric-specific internal change. Reviewed By: JoshuaGross Differential Revision: D23681508 fbshipit-source-id: 5fef0ea164e8a400e6ca9a67947252b47ce6d44e
35 lines
835 B
C++
35 lines
835 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#include "ShadowTreeRevision.h"
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
using Number = ShadowTreeRevision::Number;
|
|
|
|
ShadowTreeRevision::ShadowTreeRevision(
|
|
RootShadowNode::Shared const &rootShadowNode,
|
|
Number number,
|
|
TransactionTelemetry telemetry)
|
|
: rootShadowNode_(rootShadowNode), number_(number), telemetry_(telemetry) {}
|
|
|
|
TransactionTelemetry const &ShadowTreeRevision::getTelemetry() const {
|
|
return telemetry_;
|
|
}
|
|
|
|
RootShadowNode const &ShadowTreeRevision::getRootShadowNode() {
|
|
return *rootShadowNode_;
|
|
}
|
|
|
|
Number ShadowTreeRevision::getNumber() const {
|
|
return number_;
|
|
}
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|