---
source: crates/react_estree/src/lib.rs
expression: "format!(\"Input:\\n{input}\\n\\nOutput:\\n{serialized}\")"
input_file: crates/react_estree/src/fixtures/import.json
---
Input:
{
    "type": "Program",
    "loc": {
      "source": null,
      "start": {
        "line": 1,
        "column": 0
      },
      "end": {
        "line": 1,
        "column": 26
      }
    },
    "body": [
      {
        "type": "ImportDeclaration",
        "loc": {
          "source": null,
          "start": {
            "line": 1,
            "column": 0
          },
          "end": {
            "line": 1,
            "column": 26
          }
        },
        "specifiers": [
          {
            "type": "ImportDefaultSpecifier",
            "loc": {
              "source": null,
              "start": {
                "line": 1,
                "column": 7
              },
              "end": {
                "line": 1,
                "column": 12
              }
            },
            "local": {
              "type": "Identifier",
              "loc": {
                "source": null,
                "start": {
                  "line": 1,
                  "column": 7
                },
                "end": {
                  "line": 1,
                  "column": 12
                }
              },
              "name": "React",
              "typeAnnotation": null,
              "optional": false,
              "range": [
                7,
                12
              ]
            },
            "range": [
              7,
              12
            ]
          }
        ],
        "source": {
          "type": "Literal",
          "loc": {
            "source": null,
            "start": {
              "line": 1,
              "column": 18
            },
            "end": {
              "line": 1,
              "column": 25
            }
          },
          "value": "react",
          "range": [
            18,
            25
          ],
          "raw": "'react'"
        },
        "attributes": [],
        "importKind": "value",
        "range": [
          0,
          26
        ]
      }
    ],
    "comments": [],
    "interpreter": null,
    "range": [
      0,
      26
    ],
    "sourceType": "module"
  }

Output:
{
  "type": "Program",
  "body": [
    {
      "type": "ImportDeclaration",
      "specifiers": [
        {
          "type": "ImportDefaultSpecifier",
          "local": {
            "type": "Identifier",
            "name": "React",
            "typeAnnotation": null,
            "loc": {
              "source": null,
              "start": {
                "line": 1,
                "column": 7
              },
              "end": {
                "line": 1,
                "column": 12
              }
            },
            "range": [
              7,
              12
            ]
          },
          "loc": {
            "source": null,
            "start": {
              "line": 1,
              "column": 7
            },
            "end": {
              "line": 1,
              "column": 12
            }
          },
          "range": [
            7,
            12
          ]
        }
      ],
      "source": {
        "type": "Literal",
        "value": "react",
        "raw": "'react'",
        "regex": null,
        "bigint": null,
        "loc": {
          "source": null,
          "start": {
            "line": 1,
            "column": 18
          },
          "end": {
            "line": 1,
            "column": 25
          }
        },
        "range": [
          18,
          25
        ]
      },
      "loc": {
        "source": null,
        "start": {
          "line": 1,
          "column": 0
        },
        "end": {
          "line": 1,
          "column": 26
        }
      },
      "range": [
        0,
        26
      ]
    }
  ],
  "sourceType": "module",
  "loc": {
    "source": null,
    "start": {
      "line": 1,
      "column": 0
    },
    "end": {
      "line": 1,
      "column": 26
    }
  },
  "range": [
    0,
    26
  ]
}
