transform(program) {
    const transformedProgram = this.mapNode(program);

    // Comments are not traversed via visitor keys
    for (const comment of transformedProgram.comments) {
      this.fixSourceLocation(comment);
    }

    return transformedProgram;
  }
/**
   * Transform the input Hermes AST to the desired output format.
   * This modifies the input AST in place instead of constructing a new AST.
   */
Transform the input Hermes AST to the desired output format.
This modifies the input AST in place instead of constructing a new AST.
Transform the input Hermes AST to the desired output format . This modifies the input AST in place instead of constructing a new AST .
transform(program) {
    const transformedProgram = this.mapNode(program);
    for (const comment of transformedProgram.comments) {
      this.fixSourceLocation(comment);
    }
    return transformedProgram;
  }
transform ( program ) { const transformedProgram = this . mapNode ( program ) ; for ( const comment of transformedProgram . comments ) { this . fixSourceLocation ( comment ) ; } return transformedProgram ; }
Transform the input Hermes AST to the desired output format.
Transform the input Hermes AST to the desired output format .
// Comments are not traversed via visitor keys