{
  "type": "File",
  "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
  "program": {
    "type": "Program",
    "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
    "sourceType": "module",
    "interpreter": null,
    "body": [
      {
        "type": "FunctionDeclaration",
        "start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":1}},
        "id": {
          "type": "Identifier",
          "start":10,"end":13,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":13},"identifierName":"foo"},
          "name": "foo"
        },
        "generator": true,
        "async": false,
        "params": [
          {
            "type": "Identifier",
            "start":14,"end":15,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":15},"identifierName":"z"},
            "name": "z"
          }
        ],
        "body": {
          "type": "BlockStatement",
          "start":17,"end":47,"loc":{"start":{"line":1,"column":17},"end":{"line":3,"column":1}},
          "body": [
            {
              "type": "VariableDeclaration",
              "start":21,"end":45,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":26}},
              "declarations": [
                {
                  "type": "VariableDeclarator",
                  "start":27,"end":45,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":26}},
                  "id": {
                    "type": "Identifier",
                    "start":27,"end":28,"loc":{"start":{"line":2,"column":8},"end":{"line":2,"column":9},"identifierName":"x"},
                    "name": "x"
                  },
                  "init": {
                    "type": "TypeCastExpression",
                    "start":32,"end":44,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":25}},
                    "expression": {
                      "type": "YieldExpression",
                      "start":32,"end":39,"loc":{"start":{"line":2,"column":13},"end":{"line":2,"column":20}},
                      "delegate": false,
                      "argument": {
                        "type": "NumericLiteral",
                        "start":38,"end":39,"loc":{"start":{"line":2,"column":19},"end":{"line":2,"column":20}},
                        "extra": {
                          "rawValue": 3,
                          "raw": "3"
                        },
                        "value": 3
                      }
                    },
                    "typeAnnotation": {
                      "type": "TypeAnnotation",
                      "start":39,"end":44,"loc":{"start":{"line":2,"column":20},"end":{"line":2,"column":25}},
                      "typeAnnotation": {
                        "type": "AnyTypeAnnotation",
                        "start":41,"end":44,"loc":{"start":{"line":2,"column":22},"end":{"line":2,"column":25}}
                      }
                    },
                    "extra": {
                      "parenthesized": true,
                      "parenStart": 31
                    }
                  }
                }
              ],
              "kind": "const"
            }
          ],
          "directives": []
        }
      }
    ],
    "directives": []
  }
}