{
  "type" : "Source",
  "positions" : {
    "begin" : {
      "line" : 1,
      "column" : 1
    },
    "end" : {
      "line" : 9,
      "column" : 1
    }
  },
  "stats" : [ {
    "type" : "Defn.Object",
    "positions" : {
      "begin" : {
        "line" : 1,
        "column" : 1
      },
      "end" : {
        "line" : 8,
        "column" : 2
      }
    },
    "mods" : [ ],
    "name" : {
      "type" : "Term.Name",
      "positions" : {
        "begin" : {
          "line" : 1,
          "column" : 8
        },
        "end" : {
          "line" : 1,
          "column" : 23
        }
      },
      "value" : "matchOptionNone"
    },
    "templ" : {
      "type" : "Template",
      "positions" : {
        "begin" : {
          "line" : 1,
          "column" : 24
        },
        "end" : {
          "line" : 8,
          "column" : 2
        }
      },
      "early" : [ ],
      "inits" : [ ],
      "self" : {
        "type" : "Self",
        "positions" : {
          "begin" : {
            "line" : 2,
            "column" : 3
          },
          "end" : {
            "line" : 2,
            "column" : 3
          }
        },
        "name" : {
          "type" : "Name.Anonymous",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 3
            },
            "end" : {
              "line" : 2,
              "column" : 3
            }
          },
          "value" : ""
        }
      },
      "stats" : [ {
        "type" : "Defn.Def",
        "positions" : {
          "begin" : {
            "line" : 2,
            "column" : 3
          },
          "end" : {
            "line" : 7,
            "column" : 4
          }
        },
        "mods" : [ ],
        "name" : {
          "type" : "Term.Name",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 7
            },
            "end" : {
              "line" : 2,
              "column" : 10
            }
          },
          "value" : "foo"
        },
        "tparams" : [ ],
        "paramss" : [ [ {
          "type" : "Term.Param",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 11
            },
            "end" : {
              "line" : 2,
              "column" : 25
            }
          },
          "mods" : [ ],
          "name" : {
            "type" : "Term.Name",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 11
              },
              "end" : {
                "line" : 2,
                "column" : 12
              }
            },
            "value" : "x"
          },
          "decltpe" : {
            "type" : "Type.Apply",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 14
              },
              "end" : {
                "line" : 2,
                "column" : 25
              }
            },
            "tpe" : {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 2,
                  "column" : 14
                },
                "end" : {
                  "line" : 2,
                  "column" : 20
                }
              },
              "value" : "Option"
            },
            "args" : [ {
              "type" : "Type.Name",
              "positions" : {
                "begin" : {
                  "line" : 2,
                  "column" : 21
                },
                "end" : {
                  "line" : 2,
                  "column" : 24
                }
              },
              "value" : "Int"
            } ]
          }
        } ] ],
        "decltpe" : {
          "type" : "Type.Apply",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 28
            },
            "end" : {
              "line" : 2,
              "column" : 39
            }
          },
          "tpe" : {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 28
              },
              "end" : {
                "line" : 2,
                "column" : 34
              }
            },
            "value" : "Option"
          },
          "args" : [ {
            "type" : "Type.Name",
            "positions" : {
              "begin" : {
                "line" : 2,
                "column" : 35
              },
              "end" : {
                "line" : 2,
                "column" : 38
              }
            },
            "value" : "Int"
          } ]
        },
        "body" : {
          "type" : "Term.Block",
          "positions" : {
            "begin" : {
              "line" : 2,
              "column" : 42
            },
            "end" : {
              "line" : 7,
              "column" : 4
            }
          },
          "stats" : [ {
            "type" : "Term.Match",
            "positions" : {
              "begin" : {
                "line" : 3,
                "column" : 5
              },
              "end" : {
                "line" : 6,
                "column" : 6
              }
            },
            "expr" : {
              "type" : "Term.Name",
              "positions" : {
                "begin" : {
                  "line" : 3,
                  "column" : 5
                },
                "end" : {
                  "line" : 3,
                  "column" : 6
                }
              },
              "value" : "x"
            },
            "cases" : [ {
              "type" : "Case",
              "positions" : {
                "begin" : {
                  "line" : 4,
                  "column" : 7
                },
                "end" : {
                  "line" : 5,
                  "column" : 1
                }
              },
              "pat" : {
                "type" : "Pat.Extract",
                "positions" : {
                  "begin" : {
                    "line" : 4,
                    "column" : 12
                  },
                  "end" : {
                    "line" : 4,
                    "column" : 24
                  }
                },
                "fun" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 4,
                      "column" : 12
                    },
                    "end" : {
                      "line" : 4,
                      "column" : 16
                    }
                  },
                  "value" : "Some"
                },
                "args" : [ {
                  "type" : "Pat.Typed",
                  "positions" : {
                    "begin" : {
                      "line" : 4,
                      "column" : 17
                    },
                    "end" : {
                      "line" : 4,
                      "column" : 23
                    }
                  },
                  "lhs" : {
                    "type" : "Pat.Var",
                    "positions" : {
                      "begin" : {
                        "line" : 4,
                        "column" : 17
                      },
                      "end" : {
                        "line" : 4,
                        "column" : 18
                      }
                    },
                    "name" : {
                      "type" : "Term.Name",
                      "positions" : {
                        "begin" : {
                          "line" : 4,
                          "column" : 17
                        },
                        "end" : {
                          "line" : 4,
                          "column" : 18
                        }
                      },
                      "value" : "i"
                    }
                  },
                  "rhs" : {
                    "type" : "Type.Name",
                    "positions" : {
                      "begin" : {
                        "line" : 4,
                        "column" : 20
                      },
                      "end" : {
                        "line" : 4,
                        "column" : 23
                      }
                    },
                    "value" : "Int"
                  }
                } ]
              },
              "body" : {
                "type" : "Term.Apply",
                "positions" : {
                  "begin" : {
                    "line" : 4,
                    "column" : 28
                  },
                  "end" : {
                    "line" : 4,
                    "column" : 35
                  }
                },
                "fun" : {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 4,
                      "column" : 28
                    },
                    "end" : {
                      "line" : 4,
                      "column" : 32
                    }
                  },
                  "value" : "Some"
                },
                "args" : [ {
                  "type" : "Term.Name",
                  "positions" : {
                    "begin" : {
                      "line" : 4,
                      "column" : 33
                    },
                    "end" : {
                      "line" : 4,
                      "column" : 34
                    }
                  },
                  "value" : "i"
                } ]
              }
            }, {
              "type" : "Case",
              "positions" : {
                "begin" : {
                  "line" : 5,
                  "column" : 7
                },
                "end" : {
                  "line" : 5,
                  "column" : 24
                }
              },
              "pat" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 5,
                    "column" : 12
                  },
                  "end" : {
                    "line" : 5,
                    "column" : 16
                  }
                },
                "value" : "None"
              },
              "body" : {
                "type" : "Term.Name",
                "positions" : {
                  "begin" : {
                    "line" : 5,
                    "column" : 20
                  },
                  "end" : {
                    "line" : 5,
                    "column" : 24
                  }
                },
                "value" : "None"
              }
            } ]
          } ]
        }
      } ]
    }
  } ]
}
