@specs-feup/lara
Version:
A js port of the popular framework for building source-to-source compilers
30 lines • 784 B
TypeScript
import DseValues from "./DseValues.js";
type T = any;
/**
* Iterates over a list of values.
*/
export default class DseValuesList extends DseValues {
currentIndex: number;
values: T[];
constructor(...values: T[]);
getType(): string;
/**
* @returns the next element.
*/
next(): T;
/**
* @returns true if it has another element to return.
*/
hasNext(): boolean;
/**
* Resets the iterator.
*/
reset(): void;
getNumElements(): number;
/**
* @returns The number of values returned by a call to next(). A value of one means one value, a value greater than one means an array with that amount of values.
*/
getNumValuesPerElement(): number;
}
export {};
//# sourceMappingURL=DseValuesList.d.ts.map