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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue