functionCall.js 325 B

123456789101112131415161718
  1. import { Expression } from './expression';
  2. export class FunctionCall extends Expression {
  3. constructor (id, actualParameters) {
  4. super();
  5. this.id = id;
  6. this.actualParameters = actualParameters;
  7. }
  8. get isMainCall () {
  9. return this.id === null;
  10. }
  11. get parametersSize () {
  12. return this.actualParameters.length;
  13. }
  14. }