{
  "method": "textDocument/codeAction",
  "result": [
    {
      "title": "Rewrite function as an arrow function",
      "kind": "quickfix",
      "diagnostics": [
        {
          "range": {
            "start": {
              "line": 6,
              "character": 8
            },
            "end": {
              "line": 6,
              "character": 9
            }
          },
          "severity": 1,
          "code": "InferError",
          "source": "Flow",
          "message": "Cannot get `(new A).f` because  property `f` [1] cannot be unbound from the  context [2] where it was defined.",
          "relatedInformation": []
        }
      ],
      "edit": {
        "changes": {
          "<PLACEHOLDER_PROJECT_URL>/method-unbinding.js": [
            {
              "range": {
                "start": {
                  "line": 2,
                  "character": 0
                },
                "end": {
                  "line": 4,
                  "character": 1
                }
              },
              "newText": "class A {\n  f = (x: number): number => {\n    return x;\n  };\n}"
            }
          ]
        }
      },
      "command": {
        "title": "",
        "command": "log:org.flow:<PLACEHOLDER_PROJECT_URL>",
        "arguments": [
          "textDocument/codeAction",
          "replace_method_with_arrow",
          "Rewrite function as an arrow function"
        ]
      }
    }
  ]
}
