mirror of https://github.com/status-im/metro.git
Rename the `accept` local function to `metroAccept`
Reviewed By: rubennorte Differential Revision: D7487829 fbshipit-source-id: f9055d7c42542124cf8db2652638973f6dfef63f
This commit is contained in:
parent
7e523b21e5
commit
5714c450f7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue