mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-05 22:38:59 +08:00
Fabric: ShadowNode.revision_ field is now private
Summary: It prevents accidental access to the variable. Reviewed By: fkgozali Differential Revision: D7467789 fbshipit-source-id: fa026734f58f0039e9b6d401751e022a9ae2431d
This commit is contained in:
committed by
Facebook Github Bot
parent
2f1421dec7
commit
4ebb57b0ba
@@ -81,7 +81,15 @@ protected:
|
||||
SharedProps props_;
|
||||
SharedShadowNodeSharedList children_;
|
||||
WeakShadowNode sourceNode_;
|
||||
int revision_;
|
||||
|
||||
private:
|
||||
|
||||
/*
|
||||
* A number of the generation of the ShadowNode instance;
|
||||
* is used and useful for debug-printing purposes *only*.
|
||||
* Do not access this value in any circumstances.
|
||||
*/
|
||||
const int revision_;
|
||||
};
|
||||
|
||||
} // namespace react
|
||||
|
||||
Reference in New Issue
Block a user