decord/source/modules/app_database/util/Iterable.tsx

45 lines
1 KiB
TypeScript
Raw Normal View History

// Module ID: 7555
// Function ID: 7556
// Name: Iterable
2026-07-29 08:29:29 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: chain
// Module 7555 (Iterable)
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
2026-07-29 08:29:29 +00:00
class Chained {
constructor(arg0) {
obj = Object.create(new.target.prototype);
obj.index = 0;
obj.items = global;
return obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
}
const prototype = Chained.prototype;
prototype[Symbol.iterator] = function() {
2026-07-29 08:29:29 +00:00
return this;
};
prototype["next"] = function next() {
const self = this;
if (this.index < this.items.length) {
const iter2 = self.items[self.index].next();
while (iter2.done) {
self.index = self.index + 1;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return iter2;
}
return { done: true, value: "a" };
};
const result = size.fileFinishedImporting("modules/app_database/util/Iterable.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export const chain = function chain() {
if (typeof Chained === "function") {
const obj = Object.create(Chained.prototype);
obj.index = 0;
obj.items = tmp;
return obj;
} else {
throw new TypeError("Trying to call a non-function");
2026-07-29 08:29:29 +00:00
}
2026-07-20 16:05:17 +00:00
};