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