1
0

arrayDeclaration.js 316 B

1234567891011121314
  1. import { Declaration } from './declaration';
  2. export class ArrayDeclaration extends Declaration {
  3. constructor (id, type, lines, columns, initial, isConst) {
  4. super(id, type, initial, isConst);
  5. this.lines = lines;
  6. this.columns = columns;
  7. }
  8. get isVector () {
  9. return this.columns == null;
  10. }
  11. }