{
  "kind" : "Program",
  "location" : [ 1, 1, 5, 1 ],
  "declarations" : [ {
    "kind" : "VarDef",
    "location" : [ 1, 1, 1, 9 ],
    "var" : {
      "kind" : "TypedVar",
      "location" : [ 1, 1, 1, 5 ],
      "identifier" : {
        "kind" : "Identifier",
        "location" : [ 1, 1, 1, 1 ],
        "name" : "x"
      },
      "type" : {
        "kind" : "ClassType",
        "location" : [ 1, 3, 1, 5 ],
        "className" : "int"
      }
    },
    "value" : {
      "kind" : "IntegerLiteral",
      "location" : [ 1, 9, 1, 9 ],
      "inferredType" : {
        "kind" : "ClassValueType",
        "className" : "int"
      },
      "value" : 1
    }
  } ],
  "statements" : [ {
    "kind" : "WhileStmt",
    "location" : [ 2, 1, 5, 1 ],
    "condition" : {
      "kind" : "BinaryExpr",
      "location" : [ 2, 7, 2, 12 ],
      "inferredType" : {
        "kind" : "ClassValueType",
        "className" : "bool"
      },
      "left" : {
        "kind" : "Identifier",
        "location" : [ 2, 7, 2, 7 ],
        "inferredType" : {
          "kind" : "ClassValueType",
          "className" : "int"
        },
        "name" : "x"
      },
      "operator" : "<",
      "right" : {
        "kind" : "IntegerLiteral",
        "location" : [ 2, 11, 2, 12 ],
        "inferredType" : {
          "kind" : "ClassValueType",
          "className" : "int"
        },
        "value" : 10
      }
    },
    "body" : [ {
      "kind" : "ExprStmt",
      "location" : [ 3, 5, 3, 12 ],
      "expr" : {
        "kind" : "CallExpr",
        "location" : [ 3, 5, 3, 12 ],
        "inferredType" : {
          "kind" : "ClassValueType",
          "className" : "<None>"
        },
        "function" : {
          "kind" : "Identifier",
          "location" : [ 3, 5, 3, 9 ],
          "inferredType" : {
            "kind" : "FuncType",
            "parameters" : [ {
              "kind" : "ClassValueType",
              "className" : "object"
            } ],
            "returnType" : {
              "kind" : "ClassValueType",
              "className" : "<None>"
            }
          },
          "name" : "print"
        },
        "args" : [ {
          "kind" : "Identifier",
          "location" : [ 3, 11, 3, 11 ],
          "inferredType" : {
            "kind" : "ClassValueType",
            "className" : "int"
          },
          "name" : "x"
        } ]
      }
    }, {
      "kind" : "AssignStmt",
      "location" : [ 4, 5, 4, 13 ],
      "targets" : [ {
        "kind" : "Identifier",
        "location" : [ 4, 5, 4, 5 ],
        "inferredType" : {
          "kind" : "ClassValueType",
          "className" : "int"
        },
        "name" : "x"
      } ],
      "value" : {
        "kind" : "BinaryExpr",
        "location" : [ 4, 9, 4, 13 ],
        "inferredType" : {
          "kind" : "ClassValueType",
          "className" : "int"
        },
        "left" : {
          "kind" : "Identifier",
          "location" : [ 4, 9, 4, 9 ],
          "inferredType" : {
            "kind" : "ClassValueType",
            "className" : "int"
          },
          "name" : "x"
        },
        "operator" : "+",
        "right" : {
          "kind" : "IntegerLiteral",
          "location" : [ 4, 13, 4, 13 ],
          "inferredType" : {
            "kind" : "ClassValueType",
            "className" : "int"
          },
          "value" : 1
        }
      }
    } ]
  } ],
  "errors" : {
    "errors" : [ ],
    "kind" : "Errors",
    "location" : [ 0, 0, 0, 0 ]
  }
}