---
Function {
 argument: Destructured {
  identifier: None,
  arguments: [
   DestructuredArgument {
    identifier: "config",
    default: None,
   },
   DestructuredArgument {
    identifier: "pkgs",
    default: None,
   },
   DestructuredArgument {
    identifier: "lib",
    default: None,
   },
   DestructuredArgument {
    identifier: "generators",
    default: None,
   },
  ],
  ellipsis: true,
 },
 definition: With {
  expression: Variable {
   identifier: "lib",
   position: (2, 6),
  },
  target: LetIn {
   bindings: [
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "cfg",
        position: (4, 3),
       },
      ],
     },
     to: PropertyAccess {
      expression: Variable {
       identifier: "config",
       position: (4, 9),
      },
      attribute_path: AttributePath {
       parts: [
        Raw {
         content: "i18n",
         position: (4, 16),
        },
        Raw {
         content: "inputMethod",
         position: (4, 21),
        },
        Raw {
         content: "kime",
         position: (4, 33),
        },
       ],
      },
      default: None,
     },
    },
    Binding {
     from: AttributePath {
      parts: [
       Raw {
        content: "yamlFormat",
        position: (5, 3),
       },
      ],
     },
     to: FunctionApplication {
      function: PropertyAccess {
       expression: Variable {
        identifier: "pkgs",
        position: (5, 16),
       },
       attribute_path: AttributePath {
        parts: [
         Raw {
          content: "formats",
          position: (5, 21),
         },
         Raw {
          content: "yaml",
          position: (5, 29),
         },
        ],
       },
       default: None,
      },
      arguments: [
       Map {
        bindings: [],
        recursive: false,
        position: (5, 34),
       },
      ],
     },
    },
   ],
   target: Map {
    bindings: [
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "options",
         position: (8, 3),
        },
       ],
      },
      to: Map {
       bindings: [
        Binding {
         from: AttributePath {
          parts: [
           Raw {
            content: "i18n",
            position: (9, 5),
           },
           Raw {
            content: "inputMethod",
            position: (9, 10),
           },
           Raw {
            content: "kime",
            position: (9, 22),
           },
          ],
         },
         to: Map {
          bindings: [
           Binding {
            from: AttributePath {
             parts: [
              Raw {
               content: "config",
               position: (10, 7),
              },
             ],
            },
            to: FunctionApplication {
             function: Variable {
              identifier: "mkOption",
              position: (10, 16),
             },
             arguments: [
              Map {
               bindings: [
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "type",
                    position: (11, 9),
                   },
                  ],
                 },
                 to: PropertyAccess {
                  expression: Variable {
                   identifier: "yamlFormat",
                   position: (11, 16),
                  },
                  attribute_path: AttributePath {
                   parts: [
                    Raw {
                     content: "type",
                     position: (11, 27),
                    },
                   ],
                  },
                  default: None,
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "default",
                    position: (12, 9),
                   },
                  ],
                 },
                 to: Map {
                  bindings: [],
                  recursive: false,
                  position: (12, 19),
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "example",
                    position: (13, 9),
                   },
                  ],
                 },
                 to: FunctionApplication {
                  function: Variable {
                   identifier: "literalExpression",
                   position: (13, 19),
                  },
                  arguments: [
                   String {
                    parts: [
                     Raw {
                      content: "{\n  daemon = {\n    modules = [\"Xim\" \"Indicator\"];\n  };\n\n  indicator = {\n    icon_color = \"White\";\n  };\n\n  engine = {\n    hangul = {\n      layout = \"dubeolsik\";\n    };\n  };\n}\n",
                      position: (14, 1),
                     },
                    ],
                    position: (13, 37),
                   },
                  ],
                 },
                },
                Binding {
                 from: AttributePath {
                  parts: [
                   Raw {
                    content: "description",
                    position: (30, 9),
                   },
                  ],
                 },
                 to: String {
                  parts: [
                   Raw {
                    content: "kime configuration. Refer to <link xlink:href=\"https://github.com/Riey/kime/blob/v",
                    position: (31, 1),
                   },
                   Interpolation {
                    expression: PropertyAccess {
                     expression: Variable {
                      identifier: "pkgs",
                      position: (31, 95),
                     },
                     attribute_path: AttributePath {
                      parts: [
                       Raw {
                        content: "kime",
                        position: (31, 100),
                       },
                       Raw {
                        content: "version",
                        position: (31, 105),
                       },
                      ],
                     },
                     default: None,
                    },
                   },
                   Raw {
                    content: "/docs/CONFIGURATION.md\"/> for details on supported values.\n",
                    position: (31, 113),
                   },
                  ],
                  position: (30, 23),
                 },
                },
               ],
               recursive: false,
               position: (10, 25),
              },
             ],
            },
           },
          ],
          recursive: false,
          position: (9, 29),
         },
        },
       ],
       recursive: false,
       position: (8, 13),
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "config",
         position: (37, 3),
        },
       ],
      },
      to: FunctionApplication {
       function: Variable {
        identifier: "mkIf",
        position: (37, 12),
       },
       arguments: [
        Parentheses {
         expression: BinaryOperation {
          operator: EqualTo,
          operands: [
           PropertyAccess {
            expression: Variable {
             identifier: "config",
             position: (37, 18),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "i18n",
               position: (37, 25),
              },
              Raw {
               content: "inputMethod",
               position: (37, 30),
              },
              Raw {
               content: "enabled",
               position: (37, 42),
              },
             ],
            },
            default: None,
           },
           String {
            parts: [
             Raw {
              content: "kime",
              position: (37, 54),
             },
            ],
            position: (37, 53),
           },
          ],
          position: (37, 50),
         },
         position: (37, 17),
        },
        Map {
         bindings: [
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "i18n",
              position: (38, 5),
             },
             Raw {
              content: "inputMethod",
              position: (38, 10),
             },
             Raw {
              content: "package",
              position: (38, 22),
             },
            ],
           },
           to: PropertyAccess {
            expression: Variable {
             identifier: "pkgs",
             position: (38, 32),
            },
            attribute_path: AttributePath {
             parts: [
              Raw {
               content: "kime",
               position: (38, 37),
              },
             ],
            },
            default: None,
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (40, 5),
             },
             Raw {
              content: "variables",
              position: (40, 17),
             },
            ],
           },
           to: Map {
            bindings: [
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "GTK_IM_MODULE",
                 position: (41, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "kime",
                 position: (41, 24),
                },
               ],
               position: (41, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "QT_IM_MODULE",
                 position: (42, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "kime",
                 position: (42, 24),
                },
               ],
               position: (42, 23),
              },
             },
             Binding {
              from: AttributePath {
               parts: [
                Raw {
                 content: "XMODIFIERS",
                 position: (43, 7),
                },
               ],
              },
              to: String {
               parts: [
                Raw {
                 content: "@im=kime",
                 position: (43, 24),
                },
               ],
               position: (43, 23),
              },
             },
            ],
            recursive: false,
            position: (40, 29),
           },
          },
          Binding {
           from: AttributePath {
            parts: [
             Raw {
              content: "environment",
              position: (46, 5),
             },
             Raw {
              content: "etc",
              position: (46, 17),
             },
             Expression {
              ast: String {
               parts: [
                Raw {
                 content: "xdg/kime/config.yaml",
                 position: (46, 22),
                },
               ],
               position: (46, 21),
              },
             },
             Raw {
              content: "text",
              position: (46, 44),
             },
            ],
           },
           to: FunctionApplication {
            function: Variable {
             identifier: "replaceStrings",
             position: (46, 51),
            },
            arguments: [
             List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "\\\\",
                  position: (46, 69),
                 },
                ],
                position: (46, 68),
               },
              ],
              position: (46, 66),
             },
             List {
              elements: [
               String {
                parts: [
                 Raw {
                  content: "\\",
                  position: (46, 80),
                 },
                ],
                position: (46, 79),
               },
              ],
              position: (46, 77),
             },
             Parentheses {
              expression: FunctionApplication {
               function: PropertyAccess {
                expression: Variable {
                 identifier: "builtins",
                 position: (46, 87),
                },
                attribute_path: AttributePath {
                 parts: [
                  Raw {
                   content: "toJSON",
                   position: (46, 96),
                  },
                 ],
                },
                default: None,
               },
               arguments: [
                PropertyAccess {
                 expression: Variable {
                  identifier: "cfg",
                  position: (46, 103),
                 },
                 attribute_path: AttributePath {
                  parts: [
                   Raw {
                    content: "config",
                    position: (46, 107),
                   },
                  ],
                 },
                 default: None,
                },
               ],
              },
              position: (46, 86),
             },
            ],
           },
          },
         ],
         recursive: false,
         position: (37, 61),
        },
       ],
      },
     },
     Binding {
      from: AttributePath {
       parts: [
        Raw {
         content: "meta",
         position: (50, 3),
        },
        Raw {
         content: "buildDocsInSandbox",
         position: (50, 8),
        },
       ],
      },
      to: Variable {
       identifier: "false",
       position: (50, 29),
      },
     },
    ],
    recursive: false,
    position: (7, 1),
   },
   position: (3, 1),
  },
  position: (2, 1),
 },
 position: (1, 1),
}