packager: make DependencyGraph.processFileChange private

Reviewed By: davidaurelio

Differential Revision: D4635645

fbshipit-source-id: baf3ec75927dfa2d1b29d6548a13453370f434ba
This commit is contained in:
Jean Lauliac 2017-03-02 08:33:06 -08:00 committed by Facebook Github Bot
parent 067496e5f6
commit 0cb2bc104f
1 changed files with 2 additions and 2 deletions

View File

@ -160,7 +160,7 @@ class DependencyGraph extends EventEmitter {
this._hasteFS = event.hasteFS;
this._moduleMap = event.moduleMap;
event.eventsQueue.forEach(({type, filePath, stat}) =>
this.processFileChange(type, filePath, stat)
this._onFileChange(type, filePath, stat)
);
this.emit('change');
});
@ -293,7 +293,7 @@ class DependencyGraph extends EventEmitter {
);
}
processFileChange(type: string, filePath: string, stat: Object) {
_onFileChange(type: string, filePath: string, stat: Object) {
this._moduleCache.processFileChange(type, filePath, stat);
// This code reports failures but doesn't block recovery in the dev server