{
  "type": "File",
  "start": 0,
  "end": 870,
  "loc": {
    "start": {
      "line": 1,
      "column": 0
    },
    "end": {
      "line": 30,
      "column": 0
    }
  },
  "program": {
    "type": "Program",
    "start": 0,
    "end": 870,
    "loc": {
      "start": {
        "line": 1,
        "column": 0
      },
      "end": {
        "line": 30,
        "column": 0
      }
    },
    "sourceType": "module",
    "body": [
      {
        "type": "ImportDeclaration",
        "start": 0,
        "end": 40,
        "loc": {
          "start": {
            "line": 1,
            "column": 0
          },
          "end": {
            "line": 1,
            "column": 40
          }
        },
        "specifiers": [
          {
            "type": "ImportDefaultSpecifier",
            "start": 7,
            "end": 18,
            "loc": {
              "start": {
                "line": 1,
                "column": 7
              },
              "end": {
                "line": 1,
                "column": 18
              }
            },
            "local": {
              "type": "Identifier",
              "start": 7,
              "end": 18,
              "loc": {
                "start": {
                  "line": 1,
                  "column": 7
                },
                "end": {
                  "line": 1,
                  "column": 18
                },
                "identifierName": "Transformer"
              },
              "name": "Transformer"
            }
          }
        ],
        "source": {
          "type": "StringLiteral",
          "start": 24,
          "end": 39,
          "loc": {
            "start": {
              "line": 1,
              "column": 24
            },
            "end": {
              "line": 1,
              "column": 39
            }
          },
          "extra": {
            "rawValue": "./Transformer",
            "raw": "'./Transformer'"
          },
          "value": "./Transformer"
        },
        "trailingComments": [
          {
            "type": "CommentBlock",
            "value": "*\n * A transformer that transforms only some of the files read.\n * @abstract\n * @example <caption>Minimum implementation</caption>\n * class MyTransformer extends PartialTransformer {\n *   shouldBeTransformed(node) {\n *     return true; // or false\n *   }\n *   transformFromFilesystem(state, context) {\n *     if (!this.shouldBeTransformed(state.node)) { return; }\n *\n *     // Apply actual transformation\n *   }\n * }\n ",
            "start": 42,
            "end": 464,
            "loc": {
              "start": {
                "line": 3,
                "column": 0
              },
              "end": {
                "line": 17,
                "column": 3
              }
            }
          }
        ]
      },
      {
        "type": "ExportDefaultDeclaration",
        "start": 465,
        "end": 869,
        "loc": {
          "start": {
            "line": 18,
            "column": 0
          },
          "end": {
            "line": 29,
            "column": 1
          }
        },
        "declaration": {
          "type": "ClassDeclaration",
          "start": 480,
          "end": 869,
          "loc": {
            "start": {
              "line": 18,
              "column": 15
            },
            "end": {
              "line": 29,
              "column": 1
            }
          },
          "id": {
            "type": "Identifier",
            "start": 486,
            "end": 510,
            "loc": {
              "start": {
                "line": 18,
                "column": 21
              },
              "end": {
                "line": 18,
                "column": 45
              },
              "identifierName": "ModernPartialTransformer"
            },
            "name": "ModernPartialTransformer",
            "leadingComments": null
          },
          "superClass": {
            "type": "Identifier",
            "start": 519,
            "end": 530,
            "loc": {
              "start": {
                "line": 18,
                "column": 54
              },
              "end": {
                "line": 18,
                "column": 65
              },
              "identifierName": "Transformer"
            },
            "name": "Transformer"
          },
          "body": {
            "type": "ClassBody",
            "start": 531,
            "end": 869,
            "loc": {
              "start": {
                "line": 18,
                "column": 66
              },
              "end": {
                "line": 29,
                "column": 1
              }
            },
            "body": [
              {
                "type": "ClassMethod",
                "start": 735,
                "end": 867,
                "loc": {
                  "start": {
                    "line": 26,
                    "column": 2
                  },
                  "end": {
                    "line": 28,
                    "column": 3
                  }
                },
                "static": false,
                "computed": false,
                "key": {
                  "type": "Identifier",
                  "start": 735,
                  "end": 754,
                  "loc": {
                    "start": {
                      "line": 26,
                      "column": 2
                    },
                    "end": {
                      "line": 26,
                      "column": 21
                    },
                    "identifierName": "shouldBeTransformed"
                  },
                  "name": "shouldBeTransformed",
                  "leadingComments": null
                },
                "kind": "method",
                "id": null,
                "generator": false,
                "expression": false,
                "async": false,
                "params": [
                  {
                    "type": "Identifier",
                    "start": 755,
                    "end": 759,
                    "loc": {
                      "start": {
                        "line": 26,
                        "column": 22
                      },
                      "end": {
                        "line": 26,
                        "column": 26
                      },
                      "identifierName": "file"
                    },
                    "name": "file"
                  }
                ],
                "body": {
                  "type": "BlockStatement",
                  "start": 761,
                  "end": 867,
                  "loc": {
                    "start": {
                      "line": 26,
                      "column": 28
                    },
                    "end": {
                      "line": 28,
                      "column": 3
                    }
                  },
                  "body": [
                    {
                      "type": "ThrowStatement",
                      "start": 767,
                      "end": 863,
                      "loc": {
                        "start": {
                          "line": 27,
                          "column": 4
                        },
                        "end": {
                          "line": 27,
                          "column": 100
                        }
                      },
                      "argument": {
                        "type": "NewExpression",
                        "start": 773,
                        "end": 862,
                        "loc": {
                          "start": {
                            "line": 27,
                            "column": 10
                          },
                          "end": {
                            "line": 27,
                            "column": 99
                          }
                        },
                        "callee": {
                          "type": "Identifier",
                          "start": 777,
                          "end": 782,
                          "loc": {
                            "start": {
                              "line": 27,
                              "column": 14
                            },
                            "end": {
                              "line": 27,
                              "column": 19
                            },
                            "identifierName": "Error"
                          },
                          "name": "Error"
                        },
                        "arguments": [
                          {
                            "type": "StringLiteral",
                            "start": 783,
                            "end": 861,
                            "loc": {
                              "start": {
                                "line": 27,
                                "column": 20
                              },
                              "end": {
                                "line": 27,
                                "column": 98
                              }
                            },
                            "extra": {
                              "rawValue": "PartialTransformer#shouldBeTransformed must be implemented by all subclasses",
                              "raw": "'PartialTransformer#shouldBeTransformed must be implemented by all subclasses'"
                            },
                            "value": "PartialTransformer#shouldBeTransformed must be implemented by all subclasses"
                          }
                        ]
                      }
                    }
                  ],
                  "directives": []
                },
                "leadingComments": [
                  {
                    "type": "CommentBlock",
                    "value": "*\n   * `true` if `file` should be transformed.\n   * @param {AtviseFile} file The file to transform or not.\n   * @return {boolean}\n   * @abstract\n   ",
                    "start": 535,
                    "end": 687,
                    "loc": {
                      "start": {
                        "line": 19,
                        "column": 2
                      },
                      "end": {
                        "line": 24,
                        "column": 5
                      }
                    }
                  },
                  {
                    "type": "CommentLine",
                    "value": " eslint-disable-next-line no-unused-vars",
                    "start": 690,
                    "end": 732,
                    "loc": {
                      "start": {
                        "line": 25,
                        "column": 2
                      },
                      "end": {
                        "line": 25,
                        "column": 44
                      }
                    }
                  }
                ]
              }
            ]
          },
          "leadingComments": [
            {
              "type": "CommentBlock",
              "value": "*\n * A transformer that transforms only some of the files read.\n * @abstract\n * @example <caption>Minimum implementation</caption>\n * class MyTransformer extends PartialTransformer {\n *   shouldBeTransformed(node) {\n *     return true; // or false\n *   }\n *   transformFromFilesystem(state, context) {\n *     if (!this.shouldBeTransformed(state.node)) { return; }\n *\n *     // Apply actual transformation\n *   }\n * }\n ",
              "start": 42,
              "end": 464,
              "loc": {
                "start": {
                  "line": 3,
                  "column": 0
                },
                "end": {
                  "line": 17,
                  "column": 3
                }
              }
            }
          ],
          "trailingComments": []
        },
        "leadingComments": [
          {
            "type": "CommentBlock",
            "value": "*\n * A transformer that transforms only some of the files read.\n * @abstract\n * @example <caption>Minimum implementation</caption>\n * class MyTransformer extends PartialTransformer {\n *   shouldBeTransformed(node) {\n *     return true; // or false\n *   }\n *   transformFromFilesystem(state, context) {\n *     if (!this.shouldBeTransformed(state.node)) { return; }\n *\n *     // Apply actual transformation\n *   }\n * }\n ",
            "start": 42,
            "end": 464,
            "loc": {
              "start": {
                "line": 3,
                "column": 0
              },
              "end": {
                "line": 17,
                "column": 3
              }
            }
          }
        ]
      }
    ],
    "directives": []
  },
  "comments": [
    {
      "type": "CommentBlock",
      "value": "*\n * A transformer that transforms only some of the files read.\n * @abstract\n * @example <caption>Minimum implementation</caption>\n * class MyTransformer extends PartialTransformer {\n *   shouldBeTransformed(node) {\n *     return true; // or false\n *   }\n *   transformFromFilesystem(state, context) {\n *     if (!this.shouldBeTransformed(state.node)) { return; }\n *\n *     // Apply actual transformation\n *   }\n * }\n ",
      "start": 42,
      "end": 464,
      "loc": {
        "start": {
          "line": 3,
          "column": 0
        },
        "end": {
          "line": 17,
          "column": 3
        }
      }
    },
    {
      "type": "CommentBlock",
      "value": "*\n   * `true` if `file` should be transformed.\n   * @param {AtviseFile} file The file to transform or not.\n   * @return {boolean}\n   * @abstract\n   ",
      "start": 535,
      "end": 687,
      "loc": {
        "start": {
          "line": 19,
          "column": 2
        },
        "end": {
          "line": 24,
          "column": 5
        }
      }
    },
    {
      "type": "CommentLine",
      "value": " eslint-disable-next-line no-unused-vars",
      "start": 690,
      "end": 732,
      "loc": {
        "start": {
          "line": 25,
          "column": 2
        },
        "end": {
          "line": 25,
          "column": 44
        }
      }
    }
  ],
  "tokens": [
    {
      "type": {
        "label": "import",
        "keyword": "import",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "import",
      "start": 0,
      "end": 6,
      "loc": {
        "start": {
          "line": 1,
          "column": 0
        },
        "end": {
          "line": 1,
          "column": 6
        }
      }
    },
    {
      "type": {
        "label": "name",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "value": "Transformer",
      "start": 7,
      "end": 18,
      "loc": {
        "start": {
          "line": 1,
          "column": 7
        },
        "end": {
          "line": 1,
          "column": 18
        }
      }
    },
    {
      "type": {
        "label": "name",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "value": "from",
      "start": 19,
      "end": 23,
      "loc": {
        "start": {
          "line": 1,
          "column": 19
        },
        "end": {
          "line": 1,
          "column": 23
        }
      }
    },
    {
      "type": {
        "label": "string",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "./Transformer",
      "start": 24,
      "end": 39,
      "loc": {
        "start": {
          "line": 1,
          "column": 24
        },
        "end": {
          "line": 1,
          "column": 39
        }
      }
    },
    {
      "type": {
        "label": ";",
        "beforeExpr": true,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "start": 39,
      "end": 40,
      "loc": {
        "start": {
          "line": 1,
          "column": 39
        },
        "end": {
          "line": 1,
          "column": 40
        }
      }
    },
    {
      "type": "CommentBlock",
      "value": "*\n * A transformer that transforms only some of the files read.\n * @abstract\n * @example <caption>Minimum implementation</caption>\n * class MyTransformer extends PartialTransformer {\n *   shouldBeTransformed(node) {\n *     return true; // or false\n *   }\n *   transformFromFilesystem(state, context) {\n *     if (!this.shouldBeTransformed(state.node)) { return; }\n *\n *     // Apply actual transformation\n *   }\n * }\n ",
      "start": 42,
      "end": 464,
      "loc": {
        "start": {
          "line": 3,
          "column": 0
        },
        "end": {
          "line": 17,
          "column": 3
        }
      }
    },
    {
      "type": {
        "label": "export",
        "keyword": "export",
        "beforeExpr": false,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "export",
      "start": 465,
      "end": 471,
      "loc": {
        "start": {
          "line": 18,
          "column": 0
        },
        "end": {
          "line": 18,
          "column": 6
        }
      }
    },
    {
      "type": {
        "label": "default",
        "keyword": "default",
        "beforeExpr": true,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "default",
      "start": 472,
      "end": 479,
      "loc": {
        "start": {
          "line": 18,
          "column": 7
        },
        "end": {
          "line": 18,
          "column": 14
        }
      }
    },
    {
      "type": {
        "label": "class",
        "keyword": "class",
        "beforeExpr": false,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "class",
      "start": 480,
      "end": 485,
      "loc": {
        "start": {
          "line": 18,
          "column": 15
        },
        "end": {
          "line": 18,
          "column": 20
        }
      }
    },
    {
      "type": {
        "label": "name",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "value": "ModernPartialTransformer",
      "start": 486,
      "end": 510,
      "loc": {
        "start": {
          "line": 18,
          "column": 21
        },
        "end": {
          "line": 18,
          "column": 45
        }
      }
    },
    {
      "type": {
        "label": "extends",
        "keyword": "extends",
        "beforeExpr": true,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "extends",
      "start": 511,
      "end": 518,
      "loc": {
        "start": {
          "line": 18,
          "column": 46
        },
        "end": {
          "line": 18,
          "column": 53
        }
      }
    },
    {
      "type": {
        "label": "name",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "value": "Transformer",
      "start": 519,
      "end": 530,
      "loc": {
        "start": {
          "line": 18,
          "column": 54
        },
        "end": {
          "line": 18,
          "column": 65
        }
      }
    },
    {
      "type": {
        "label": "{",
        "beforeExpr": true,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 531,
      "end": 532,
      "loc": {
        "start": {
          "line": 18,
          "column": 66
        },
        "end": {
          "line": 18,
          "column": 67
        }
      }
    },
    {
      "type": "CommentBlock",
      "value": "*\n   * `true` if `file` should be transformed.\n   * @param {AtviseFile} file The file to transform or not.\n   * @return {boolean}\n   * @abstract\n   ",
      "start": 535,
      "end": 687,
      "loc": {
        "start": {
          "line": 19,
          "column": 2
        },
        "end": {
          "line": 24,
          "column": 5
        }
      }
    },
    {
      "type": "CommentLine",
      "value": " eslint-disable-next-line no-unused-vars",
      "start": 690,
      "end": 732,
      "loc": {
        "start": {
          "line": 25,
          "column": 2
        },
        "end": {
          "line": 25,
          "column": 44
        }
      }
    },
    {
      "type": {
        "label": "name",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "value": "shouldBeTransformed",
      "start": 735,
      "end": 754,
      "loc": {
        "start": {
          "line": 26,
          "column": 2
        },
        "end": {
          "line": 26,
          "column": 21
        }
      }
    },
    {
      "type": {
        "label": "(",
        "beforeExpr": true,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 754,
      "end": 755,
      "loc": {
        "start": {
          "line": 26,
          "column": 21
        },
        "end": {
          "line": 26,
          "column": 22
        }
      }
    },
    {
      "type": {
        "label": "name",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "value": "file",
      "start": 755,
      "end": 759,
      "loc": {
        "start": {
          "line": 26,
          "column": 22
        },
        "end": {
          "line": 26,
          "column": 26
        }
      }
    },
    {
      "type": {
        "label": ")",
        "beforeExpr": false,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 759,
      "end": 760,
      "loc": {
        "start": {
          "line": 26,
          "column": 26
        },
        "end": {
          "line": 26,
          "column": 27
        }
      }
    },
    {
      "type": {
        "label": "{",
        "beforeExpr": true,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 761,
      "end": 762,
      "loc": {
        "start": {
          "line": 26,
          "column": 28
        },
        "end": {
          "line": 26,
          "column": 29
        }
      }
    },
    {
      "type": {
        "label": "throw",
        "keyword": "throw",
        "beforeExpr": true,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "throw",
      "start": 767,
      "end": 772,
      "loc": {
        "start": {
          "line": 27,
          "column": 4
        },
        "end": {
          "line": 27,
          "column": 9
        }
      }
    },
    {
      "type": {
        "label": "new",
        "keyword": "new",
        "beforeExpr": true,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "new",
      "start": 773,
      "end": 776,
      "loc": {
        "start": {
          "line": 27,
          "column": 10
        },
        "end": {
          "line": 27,
          "column": 13
        }
      }
    },
    {
      "type": {
        "label": "name",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "value": "Error",
      "start": 777,
      "end": 782,
      "loc": {
        "start": {
          "line": 27,
          "column": 14
        },
        "end": {
          "line": 27,
          "column": 19
        }
      }
    },
    {
      "type": {
        "label": "(",
        "beforeExpr": true,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 782,
      "end": 783,
      "loc": {
        "start": {
          "line": 27,
          "column": 19
        },
        "end": {
          "line": 27,
          "column": 20
        }
      }
    },
    {
      "type": {
        "label": "string",
        "beforeExpr": false,
        "startsExpr": true,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "value": "PartialTransformer#shouldBeTransformed must be implemented by all subclasses",
      "start": 783,
      "end": 861,
      "loc": {
        "start": {
          "line": 27,
          "column": 20
        },
        "end": {
          "line": 27,
          "column": 98
        }
      }
    },
    {
      "type": {
        "label": ")",
        "beforeExpr": false,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 861,
      "end": 862,
      "loc": {
        "start": {
          "line": 27,
          "column": 98
        },
        "end": {
          "line": 27,
          "column": 99
        }
      }
    },
    {
      "type": {
        "label": ";",
        "beforeExpr": true,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "start": 862,
      "end": 863,
      "loc": {
        "start": {
          "line": 27,
          "column": 99
        },
        "end": {
          "line": 27,
          "column": 100
        }
      }
    },
    {
      "type": {
        "label": "}",
        "beforeExpr": false,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 866,
      "end": 867,
      "loc": {
        "start": {
          "line": 28,
          "column": 2
        },
        "end": {
          "line": 28,
          "column": 3
        }
      }
    },
    {
      "type": {
        "label": "}",
        "beforeExpr": false,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null
      },
      "start": 868,
      "end": 869,
      "loc": {
        "start": {
          "line": 29,
          "column": 0
        },
        "end": {
          "line": 29,
          "column": 1
        }
      }
    },
    {
      "type": {
        "label": "eof",
        "beforeExpr": false,
        "startsExpr": false,
        "rightAssociative": false,
        "isLoop": false,
        "isAssign": false,
        "prefix": false,
        "postfix": false,
        "binop": null,
        "updateContext": null
      },
      "start": 870,
      "end": 870,
      "loc": {
        "start": {
          "line": 30,
          "column": 0
        },
        "end": {
          "line": 30,
          "column": 0
        }
      }
    }
  ]
}