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:
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
|
||||
|
|
Loading…
Reference in New Issue