Home
last modified time | relevance | path

Searched refs:CodeAction (Results 1 – 25 of 28) sorted by relevance

12

/external/llvm-project/clang-tools-extra/clangd/refactor/tweaks/
DDumpAST.cpp48 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
94 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
120 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
156 llvm::StringLiteral kind() const override { return CodeAction::INFO_KIND; } in kind()
DObjCLocalizeStringLiteral.cpp39 return CodeAction::REFACTOR_KIND; in kind()
DAnnotateHighlightings.cpp32 return CodeAction::REFACTOR_KIND; in kind()
DRawStringLiteral.cpp45 return CodeAction::REFACTOR_KIND; in kind()
DSwapIfBranches.cpp43 return CodeAction::REFACTOR_KIND; in kind()
DExpandAutoType.cpp41 return CodeAction::REFACTOR_KIND; in kind()
DExpandMacro.cpp35 return CodeAction::REFACTOR_KIND; in kind()
DRemoveUsingNamespace.cpp45 return CodeAction::REFACTOR_KIND; in kind()
DPopulateSwitch.cpp57 return CodeAction::QUICKFIX_KIND; in kind()
DAddUsing.cpp42 return CodeAction::REFACTOR_KIND; in kind()
DDefineOutline.cpp360 return CodeAction::REFACTOR_KIND; in kind()
/external/llvm-project/clang-tools-extra/clangd/
DProtocol.cpp346 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()
[all …]
DClangdLSPServer.cpp76 CodeAction toCodeAction(const ClangdServer::TweakRef &T, const URIForFile &File, in toCodeAction()
78 CodeAction CA; in toCodeAction()
560 {CodeAction::QUICKFIX_KIND, CodeAction::REFACTOR_KIND, in onInitialize()
561 CodeAction::INFO_KIND}}}; in onInitialize()
976 static llvm::Optional<Command> asCommand(const CodeAction &Action) { in asCommand()
989 if (Action.kind && *Action.kind == CodeAction::QUICKFIX_KIND) in asCommand()
1012 std::vector<CodeAction> FixIts; in onCodeAction()
1013 if (KindAllowed(CodeAction::QUICKFIX_KIND)) { in onCodeAction()
1030 std::vector<CodeAction> Actions = std::move(FixIts); in onCodeAction()
1037 CodeAction *OnlyFix = nullptr; in onCodeAction()
[all …]
DDiagnostics.h115 CodeAction toCodeAction(const Fix &D, const URIForFile &File);
DDiagnostics.cpp370 CodeAction toCodeAction(const Fix &F, const URIForFile &File) { in toCodeAction()
371 CodeAction Action; in toCodeAction()
373 Action.kind = std::string(CodeAction::QUICKFIX_KIND); in toCodeAction()
DProtocol.h806 struct CodeAction;
838 llvm::Optional<std::vector<CodeAction>> codeActions;
953 struct CodeAction { struct
981 llvm::json::Value toJSON(const CodeAction &); argument
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dtsserver.go57 CodeAction(context.Context, *CodeActionParams) ([]CodeAction, error) methodSpec
408 resp, err := h.server.CodeAction(ctx, &params)
735 func (s *serverDispatcher) CodeAction(ctx context.Context, params *CodeActionParams) ([]CodeAction,… func
736 var result []CodeAction
Dtsprotocol.go654 CodeAction *CodeActionClientCapabilities `json:"codeAction,omitempty"` member
3677 type CodeAction struct { struct
/external/angle/third_party/vulkan-deps/spirv-tools/src/utils/vscode/src/lsp/protocol/
Dtsserver.go57 CodeAction(context.Context, *CodeActionParams) ([]CodeAction, error) methodSpec
408 resp, err := h.server.CodeAction(ctx, &params)
735 func (s *serverDispatcher) CodeAction(ctx context.Context, params *CodeActionParams) ([]CodeAction,… func
736 var result []CodeAction
Dtsprotocol.go654 CodeAction *CodeActionClientCapabilities `json:"codeAction,omitempty"` member
3677 type CodeAction struct { struct
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/lsp/protocol/
Dtsserver.go57 CodeAction(context.Context, *CodeActionParams) ([]CodeAction, error) methodSpec
408 resp, err := h.server.CodeAction(ctx, &params)
735 func (s *serverDispatcher) CodeAction(ctx context.Context, params *CodeActionParams) ([]CodeAction,… func
736 var result []CodeAction
Dtsprotocol.go654 CodeAction *CodeActionClientCapabilities `json:"codeAction,omitempty"` member
3677 type CodeAction struct { struct
/external/swiftshader/third_party/SPIRV-Tools/utils/vscode/src/
Dlangsvr.go335 func (s *server) CodeAction(ctx context.Context, p *lsp.CodeActionParams) ([]lsp.CodeAction, error)… func
/external/angle/third_party/vulkan-deps/spirv-tools/src/utils/vscode/src/
Dlangsvr.go340 func (s *server) CodeAction(ctx context.Context, p *lsp.CodeActionParams) ([]lsp.CodeAction, error)… func
/external/deqp-deps/SPIRV-Tools/utils/vscode/src/
Dlangsvr.go335 func (s *server) CodeAction(ctx context.Context, p *lsp.CodeActionParams) ([]lsp.CodeAction, error)… func

12