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 коммит произвёл Facebook Github Bot
Родитель 2f1421dec7
Коммит 4ebb57b0ba
1 изменённых файлов: 9 добавлений и 1 удалений

Просмотреть файл

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