{
  "type": "File",
  "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},
  "errors": [
    "SyntaxError: Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25` (1:20)"
  ],
  "program": {
    "type": "Program",
    "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},
    "sourceType": "module",
    "interpreter": null,
    "body": [
      {
        "type": "FunctionDeclaration",
        "start":0,"end":32,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":32}},
        "id": {
          "type": "Identifier",
          "start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"x"},
          "name": "x"
        },
        "generator": false,
        "async": false,
        "params": [
          {
            "type": "AssignmentPattern",
            "start":11,"end":28,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":28}},
            "left": {
              "type": "Identifier",
              "start":11,"end":14,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":14},"identifierName":"foo"},
              "name": "foo"
            },
            "right": {
              "type": "StringLiteral",
              "start":17,"end":20,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":20}},
              "extra": {
                "rawValue": "1",
                "raw": "\"1\""
              },
              "value": "1"
            },
            "typeAnnotation": {
              "type": "TypeAnnotation",
              "start":20,"end":28,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":28}},
              "typeAnnotation": {
                "type": "StringTypeAnnotation",
                "start":22,"end":28,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":28}}
              }
            }
          }
        ],
        "body": {
          "type": "BlockStatement",
          "start":30,"end":32,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":32}},
          "body": [],
          "directives": []
        }
      }
    ],
    "directives": []
  }
}