{
  "type": "Program",
  "statements": [
    {
      "type": "FunctionDeclaration",
      "function": {
        "type": "ScriptFunction",
        "id": {
          "type": "Identifier",
          "name": "test",
          "loc": {
            "start": {
              "line": 17,
              "column": 10
            },
            "end": {
              "line": 17,
              "column": 14
            }
          }
        },
        "generator": false,
        "async": false,
        "expression": false,
        "params": [
          {
            "type": "Identifier",
            "name": "x",
            "typeAnnotation": {
              "type": "TSBooleanKeyword",
              "loc": {
                "start": {
                  "line": 17,
                  "column": 18
                },
                "end": {
                  "line": 17,
                  "column": 25
                }
              }
            },
            "loc": {
              "start": {
                "line": 17,
                "column": 15
              },
              "end": {
                "line": 17,
                "column": 16
              }
            }
          }
        ],
        "returnType": {
          "type": "TSBooleanKeyword",
          "loc": {
            "start": {
              "line": 17,
              "column": 28
            },
            "end": {
              "line": 17,
              "column": 35
            }
          }
        },
        "body": {
          "type": "BlockStatement",
          "statements": [
            {
              "type": "ReturnStatement",
              "argument": {
                "type": "Identifier",
                "name": "x",
                "loc": {
                  "start": {
                    "line": 17,
                    "column": 45
                  },
                  "end": {
                    "line": 17,
                    "column": 46
                  }
                }
              },
              "loc": {
                "start": {
                  "line": 17,
                  "column": 38
                },
                "end": {
                  "line": 17,
                  "column": 47
                }
              }
            }
          ],
          "loc": {
            "start": {
              "line": 17,
              "column": 36
            },
            "end": {
              "line": 17,
              "column": 49
            }
          }
        },
        "loc": {
          "start": {
            "line": 17,
            "column": 1
          },
          "end": {
            "line": 17,
            "column": 49
          }
        }
      },
      "loc": {
        "start": {
          "line": 17,
          "column": 1
        },
        "end": {
          "line": 17,
          "column": 49
        }
      }
    },
    {
      "type": "VariableDeclaration",
      "declarations": [
        {
          "type": "VariableDeclarator",
          "id": {
            "type": "Identifier",
            "name": "state",
            "loc": {
              "start": {
                "line": 19,
                "column": 5
              },
              "end": {
                "line": 19,
                "column": 10
              }
            }
          },
          "init": {
            "type": "BooleanLiteral",
            "value": true,
            "loc": {
              "start": {
                "line": 19,
                "column": 13
              },
              "end": {
                "line": 19,
                "column": 17
              }
            }
          },
          "loc": {
            "start": {
              "line": 19,
              "column": 5
            },
            "end": {
              "line": 19,
              "column": 17
            }
          }
        }
      ],
      "kind": "let",
      "loc": {
        "start": {
          "line": 19,
          "column": 1
        },
        "end": {
          "line": 19,
          "column": 18
        }
      }
    },
    {
      "type": "IfStatement",
      "test": {
        "type": "Identifier",
        "name": "state",
        "loc": {
          "start": {
            "line": 21,
            "column": 5
          },
          "end": {
            "line": 21,
            "column": 10
          }
        }
      },
      "consequent": {
        "type": "BlockStatement",
        "statements": [
          {
            "type": "ExpressionStatement",
            "expression": {
              "type": "CallExpression",
              "callee": {
                "type": "Identifier",
                "name": "test",
                "loc": {
                  "start": {
                    "line": 22,
                    "column": 3
                  },
                  "end": {
                    "line": 22,
                    "column": 7
                  }
                }
              },
              "arguments": [
                {
                  "type": "LogicalExpression",
                  "operator": "&&",
                  "left": {
                    "type": "TSAsExpression",
                    "expression": {
                      "type": "Identifier",
                      "name": "state",
                      "loc": {
                        "start": {
                          "line": 22,
                          "column": 8
                        },
                        "end": {
                          "line": 22,
                          "column": 13
                        }
                      }
                    },
                    "typeAnnotation": {
                      "type": "TSAnyKeyword",
                      "loc": {
                        "start": {
                          "line": 22,
                          "column": 17
                        },
                        "end": {
                          "line": 22,
                          "column": 20
                        }
                      }
                    },
                    "loc": {
                      "start": {
                        "line": 22,
                        "column": 8
                      },
                      "end": {
                        "line": 22,
                        "column": 23
                      }
                    }
                  },
                  "right": {
                    "type": "Identifier",
                    "name": "state",
                    "loc": {
                      "start": {
                        "line": 22,
                        "column": 24
                      },
                      "end": {
                        "line": 22,
                        "column": 29
                      }
                    }
                  },
                  "loc": {
                    "start": {
                      "line": 22,
                      "column": 8
                    },
                    "end": {
                      "line": 22,
                      "column": 29
                    }
                  }
                }
              ],
              "optional": false,
              "loc": {
                "start": {
                  "line": 22,
                  "column": 3
                },
                "end": {
                  "line": 22,
                  "column": 30
                }
              }
            },
            "loc": {
              "start": {
                "line": 22,
                "column": 3
              },
              "end": {
                "line": 22,
                "column": 31
              }
            }
          }
        ],
        "loc": {
          "start": {
            "line": 21,
            "column": 12
          },
          "end": {
            "line": 23,
            "column": 2
          }
        }
      },
      "alternate": null,
      "loc": {
        "start": {
          "line": 21,
          "column": 1
        },
        "end": {
          "line": 23,
          "column": 2
        }
      }
    }
  ],
  "loc": {
    "start": {
      "line": 1,
      "column": 1
    },
    "end": {
      "line": 23,
      "column": 2
    }
  }
}