src/transform/step.js
// Create a JSON-serializeable representation of this step.
Create a JSON-serializeable representation of this step.
Create a JSON - serializeable representation of this step .
toJSON() {
    let impl = steps[this.type]
    return {
      type: this.type,
      from: this.from,
      to: this.to,
      pos: this.pos,
      param: impl.paramToJSON ? impl.paramToJSON(this.param) : this.param
    }
  }
toJSON ( ) { let impl = steps [ this . type ] return { type : this . type , from : this . from , to : this . to , pos : this . pos , param : impl . paramToJSON ? impl . paramToJSON ( this . param ) : this . param } }
Create a JSON-serializeable representation of this step.
Create a JSON - serializeable representation of this step .