ts-simple-ast
Version:
TypeScript compiler wrapper for AST navigation and code generation.
17 lines (16 loc) • 427 B
TypeScript
export declare class AdvancedIterator<T> {
private readonly iterator;
private readonly buffer;
private bufferIndex;
private isDone;
private nextCount;
constructor(iterator: IterableIterator<T>);
readonly done: boolean;
readonly current: T;
readonly previous: T;
readonly peek: T;
next(): T;
rest(): IterableIterator<T>;
private advance();
private getNextBufferIndex();
}