switch.js 480 B

12345678910111213141516171819
  1. import { Command } from './command';
  2. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  3. import { Expression } from '../expressions/expression';
  4. // eslint-disable-next-line @typescript-eslint/no-unused-vars
  5. import { Case } from '.';
  6. export class Switch extends Command {
  7. /**
  8. *
  9. * @param {Expression} expression
  10. * @param {Case[]} cases
  11. */
  12. constructor (expression, cases) {
  13. super();
  14. this.expression = expression;
  15. this.cases = cases;
  16. }
  17. }