formalParameter.js 341 B

123456789101112131415161718
  1. export class FormalParameter {
  2. constructor (type, id, byRef = false, variadic = false) {
  3. this.type = type;
  4. this.id = id;
  5. this.byRef = byRef;
  6. this.variadic = variadic;
  7. this._sourceInfo = null;
  8. }
  9. set sourceInfo (sourceInfo) {
  10. this._sourceInfo = sourceInfo;
  11. }
  12. get sourceInfo () {
  13. return this._sourceInfo;
  14. }
  15. }