1
0

for.js 357 B

12345678910111213141516
  1. import { Command } from './command';
  2. export class For extends Command {
  3. constructor (assignment, condition, increment, commandBlock) {
  4. super();
  5. this.assignment = assignment;
  6. this.condition = condition;
  7. this.increment = increment;
  8. this.commandBlock = commandBlock;
  9. }
  10. get commands () {
  11. return this.commandBlock.commands;
  12. }
  13. }