Rename the `accept` local function to `metroAccept`

Reviewed By: rubennorte

Differential Revision: D7487829

fbshipit-source-id: f9055d7c42542124cf8db2652638973f6dfef63f
This commit is contained in:
Peter van der Zee 2018-04-05 06:14:57 -07:00 committed by Facebook Github Bot
parent 7e523b21e5
commit 5714c450f7
1 changed files with 5 additions and 5 deletions

View File

@ -276,7 +276,7 @@ if (__DEV__) {
return hot;
};
const acceptAll = function(
const metroAcceptAll = function(
dependentModules,
inverseDependencies,
patchedModules,
@ -287,7 +287,7 @@ if (__DEV__) {
const notAccepted = dependentModules.filter(
module =>
!accept(
!metroAccept(
module,
/*factory*/ undefined,
/*dependencyMap*/ undefined,
@ -309,7 +309,7 @@ if (__DEV__) {
return parents.length == 0;
};
const accept = function(
const metroAccept = function(
id: ModuleID,
factory?: FactoryFn,
dependencyMap?: DependencyMap,
@ -378,12 +378,12 @@ if (__DEV__) {
}
// accept parent modules recursively up until all siblings are accepted
return acceptAll(
return metroAcceptAll(
inverseDependencies[id],
inverseDependencies,
patchedModules,
);
};
global.__accept = accept;
global.__accept = metroAccept;
}