MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / load

Function load

src/LuaLib.ts:200–210  ·  view source on GitHub ↗
(feature: LuaLibFeature)

Source from the content-addressed store, hash-verified

198 const result: LuaLibFeature[] = [];
199
200 function load(feature: LuaLibFeature): void {
201 if (loadedFeatures.has(feature)) return;
202 loadedFeatures.add(feature);
203
204 const dependencies = luaLibModulesInfo[feature]?.dependencies;
205 if (dependencies) {
206 dependencies.forEach(load);
207 }
208
209 result.push(feature);
210 }
211
212 for (const feature of features) {
213 load(feature);

Callers 1

Calls 3

hasMethod · 0.45
addMethod · 0.45
forEachMethod · 0.45

Tested by

no test coverage detected