Modern javascript has a short-hand for function properties, embrace it for better readability and to prepare for an eventual port to ES6 classes. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/23
This is a ClutterInputMethod implementation using IBus underneath. The input method will interact with the currently focused ClutterInputFocus, be it shell chrome or wayland clients through the text_input protocol.