|
238 | 238 | }, this.clonable) |
239 | 239 | } |
240 | 240 | skip(count) { |
241 | | - return iter.chainIter({kind: "Skip", args: [count]}, |
| 241 | + return this.chainIter({kind: "Skip", args: [count]}, |
242 | 242 | {iter: this, count}, function*(state, thread, target, runtime, stage) { |
243 | 243 | while(state.count > 0) { |
244 | 244 | const item = yield* state.iter.next(thread, target, runtime, stage); |
|
1083 | 1083 | iterBuilder(node, compiler, imports) { |
1084 | 1084 | const state = compiler.descendInput(node.STATE).asUnknown(); |
1085 | 1085 | const next = descendSubstack(compiler, node.NEXT, new imports.Frame(false, "_divIterBuilder")) |
1086 | | - +`\nreturn vm.IteratorType.Item("");\n` |
| 1086 | + +`\nreturn vm.divIterator.Type.Item("");\n` |
1087 | 1087 | return new imports.TypedInput( |
1088 | | - /*js*/`vm.divIterator.Type.iterBuilder(\n` |
| 1088 | + /*js*/`new vm.divIterator.Type("Custom",\n` |
1089 | 1089 | +` ${state},\n` |
1090 | 1090 | +` ${substackThunk(compiler, next, '_divIterState')}\n` |
1091 | 1091 | +`)\n` |
|
1104 | 1104 | iterBuilderItem(node, compiler, imports) { |
1105 | 1105 | if(!compiler.frames.some(f => f.parent === "_divIterBuilder")) return; |
1106 | 1106 | const item = compiler.descendInput(node.ITEM).asUnknown() |
1107 | | - compiler.source += `return vm.IteratorType.Item(${item});` |
| 1107 | + compiler.source += `return vm.divIterator.Type.Item(${item});` |
1108 | 1108 | }, |
1109 | 1109 | iterBuilderDone(node, compiler, imports) { |
1110 | 1110 | if(!compiler.frames.some(f => f.parent === "_divIterBuilder")) return; |
1111 | | - compiler.source += `return vm.IteratorType.Done();` |
| 1111 | + compiler.source += `return vm.divIterator.Type.Done();` |
1112 | 1112 | }, |
1113 | 1113 |
|
1114 | 1114 | iterAdapterMap(node, compiler, imports) { |
|
0 commit comments