text: export class BaseAccessor {
    constructor (node, name) {
      this.node = node;
      this.name = name;
    }
  
    set (value) {
      if (typeof this.node.set === 'function') {
        this.node.set(this.name, value);
      } else {
        this.node[this.name] = value;
      }
    }
  
    get () {
      if (typeof this.node.get === 'function') {
        return this.node.get(this.name);
      } else {
        return this.node[this.name];
      }
    }
  }
  