{
  "type": "File",
  "start":0,"end":139,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}},
  "program": {
    "type": "Program",
    "start":0,"end":139,"loc":{"start":{"line":1,"column":0},"end":{"line":6,"column":1}},
    "sourceType": "module",
    "interpreter": null,
    "body": [
      {
        "type": "TSTypeAliasDeclaration",
        "start":0,"end":19,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":19}},
        "id": {
          "type": "Identifier",
          "start":5,"end":14,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":14},"identifierName":"intrinsic"},
          "name": "intrinsic"
        },
        "typeAnnotation": {
          "type": "TSLiteralType",
          "start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},
          "literal": {
            "type": "NumericLiteral",
            "start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},
            "extra": {
              "rawValue": 2,
              "raw": "2"
            },
            "value": 2
          }
        }
      },
      {
        "type": "FunctionDeclaration",
        "start":20,"end":139,"loc":{"start":{"line":2,"column":0},"end":{"line":6,"column":1}},
        "id": {
          "type": "Identifier",
          "start":29,"end":32,"loc":{"start":{"line":2,"column":9},"end":{"line":2,"column":12},"identifierName":"foo"},
          "name": "foo"
        },
        "generator": false,
        "async": false,
        "params": [
          {
            "type": "Identifier",
            "start":33,"end":45,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":25},"identifierName":"x"},
            "name": "x",
            "typeAnnotation": {
              "type": "TSTypeAnnotation",
              "start":34,"end":45,"loc":{"start":{"line":2,"column":14},"end":{"line":2,"column":25}},
              "typeAnnotation": {
                "type": "TSTypeReference",
                "start":36,"end":45,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":25}},
                "typeName": {
                  "type": "Identifier",
                  "start":36,"end":45,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":25},"identifierName":"intrinsic"},
                  "name": "intrinsic"
                }
              }
            }
          }
        ],
        "returnType": {
          "type": "TSTypeAnnotation",
          "start":46,"end":57,"loc":{"start":{"line":2,"column":26},"end":{"line":2,"column":37}},
          "typeAnnotation": {
            "type": "TSTypeReference",
            "start":48,"end":57,"loc":{"start":{"line":2,"column":28},"end":{"line":2,"column":37}},
            "typeName": {
              "type": "Identifier",
              "start":48,"end":57,"loc":{"start":{"line":2,"column":28},"end":{"line":2,"column":37},"identifierName":"intrinsic"},
              "name": "intrinsic"
            }
          }
        },
        "body": {
          "type": "BlockStatement",
          "start":58,"end":139,"loc":{"start":{"line":2,"column":38},"end":{"line":6,"column":1}},
          "body": [
            {
              "type": "VariableDeclaration",
              "start":62,"end":83,"loc":{"start":{"line":3,"column":2},"end":{"line":3,"column":23}},
              "declarations": [
                {
                  "type": "VariableDeclarator",
                  "start":66,"end":82,"loc":{"start":{"line":3,"column":6},"end":{"line":3,"column":22}},
                  "id": {
                    "type": "Identifier",
                    "start":66,"end":78,"loc":{"start":{"line":3,"column":6},"end":{"line":3,"column":18},"identifierName":"a"},
                    "name": "a",
                    "typeAnnotation": {
                      "type": "TSTypeAnnotation",
                      "start":67,"end":78,"loc":{"start":{"line":3,"column":7},"end":{"line":3,"column":18}},
                      "typeAnnotation": {
                        "type": "TSTypeReference",
                        "start":69,"end":78,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":18}},
                        "typeName": {
                          "type": "Identifier",
                          "start":69,"end":78,"loc":{"start":{"line":3,"column":9},"end":{"line":3,"column":18},"identifierName":"intrinsic"},
                          "name": "intrinsic"
                        }
                      }
                    }
                  },
                  "init": {
                    "type": "NumericLiteral",
                    "start":81,"end":82,"loc":{"start":{"line":3,"column":21},"end":{"line":3,"column":22}},
                    "extra": {
                      "rawValue": 2,
                      "raw": "2"
                    },
                    "value": 2
                  }
                }
              ],
              "kind": "var"
            },
            {
              "type": "TSTypeAliasDeclaration",
              "start":86,"end":109,"loc":{"start":{"line":4,"column":2},"end":{"line":4,"column":25}},
              "id": {
                "type": "Identifier",
                "start":91,"end":92,"loc":{"start":{"line":4,"column":7},"end":{"line":4,"column":8},"identifierName":"X"},
                "name": "X"
              },
              "typeAnnotation": {
                "type": "TSUnionType",
                "start":95,"end":108,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":24}},
                "types": [
                  {
                    "type": "TSLiteralType",
                    "start":95,"end":96,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":12}},
                    "literal": {
                      "type": "NumericLiteral",
                      "start":95,"end":96,"loc":{"start":{"line":4,"column":11},"end":{"line":4,"column":12}},
                      "extra": {
                        "rawValue": 1,
                        "raw": "1"
                      },
                      "value": 1
                    }
                  },
                  {
                    "type": "TSTypeReference",
                    "start":99,"end":108,"loc":{"start":{"line":4,"column":15},"end":{"line":4,"column":24}},
                    "typeName": {
                      "type": "Identifier",
                      "start":99,"end":108,"loc":{"start":{"line":4,"column":15},"end":{"line":4,"column":24},"identifierName":"intrinsic"},
                      "name": "intrinsic"
                    }
                  }
                ]
              }
            },
            {
              "type": "TSTypeAliasDeclaration",
              "start":112,"end":137,"loc":{"start":{"line":5,"column":2},"end":{"line":5,"column":27}},
              "id": {
                "type": "Identifier",
                "start":117,"end":120,"loc":{"start":{"line":5,"column":7},"end":{"line":5,"column":10},"identifierName":"Foo"},
                "name": "Foo"
              },
              "typeAnnotation": {
                "type": "TSTypeReference",
                "start":123,"end":136,"loc":{"start":{"line":5,"column":13},"end":{"line":5,"column":26}},
                "typeName": {
                  "type": "TSQualifiedName",
                  "start":123,"end":136,"loc":{"start":{"line":5,"column":13},"end":{"line":5,"column":26}},
                  "left": {
                    "type": "Identifier",
                    "start":123,"end":132,"loc":{"start":{"line":5,"column":13},"end":{"line":5,"column":22},"identifierName":"intrinsic"},
                    "name": "intrinsic"
                  },
                  "right": {
                    "type": "Identifier",
                    "start":133,"end":136,"loc":{"start":{"line":5,"column":23},"end":{"line":5,"column":26},"identifierName":"bar"},
                    "name": "bar"
                  }
                }
              }
            }
          ],
          "directives": []
        }
      }
    ],
    "directives": []
  }
}