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:
Valentin Shergin 2018-04-10 12:45:28 -07:00 committed by Facebook Github Bot
parent 2f1421dec7
commit 4ebb57b0ba
1 changed files with 9 additions and 1 deletions

View File

@ -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