Lines Matching refs:CodeAction
346 if (auto *CodeAction = TextDocument->getObject("codeAction")) { in fromJSON() local
347 if (CodeAction->getObject("codeActionLiteralSupport")) in fromJSON()
738 const llvm::StringLiteral CodeAction::QUICKFIX_KIND = "quickfix";
739 const llvm::StringLiteral CodeAction::REFACTOR_KIND = "refactor";
740 const llvm::StringLiteral CodeAction::INFO_KIND = "info";
742 llvm::json::Value toJSON(const CodeAction &CA) { in toJSON()
743 auto CodeAction = llvm::json::Object{{"title", CA.title}}; in toJSON()
745 CodeAction["kind"] = *CA.kind; in toJSON()
747 CodeAction["diagnostics"] = llvm::json::Array(*CA.diagnostics); in toJSON()
749 CodeAction["isPreferred"] = true; in toJSON()
751 CodeAction["edit"] = *CA.edit; in toJSON()
753 CodeAction["command"] = *CA.command; in toJSON()
754 return std::move(CodeAction); in toJSON()