|
nixd
|
Shared utilities for code actions. More...
Go to the source code of this file.
Namespaces | |
| namespace | nixd |
Functions | |
| lspserver::CodeAction | nixd::createSingleEditAction (const std::string &Title, llvm::StringLiteral Kind, const std::string &FileURI, const lspserver::Range &EditRange, std::string NewText) |
| Create a CodeAction with a single text edit. | |
| bool | nixd::isValidNixIdentifier (const std::string &S) |
| Check if a string is a valid Nix identifier that can be unquoted. | |
| std::string | nixd::escapeNixString (llvm::StringRef S) |
| Escape special characters for Nix double-quoted string literals. | |
| std::string | nixd::quoteNixAttrKey (const std::string &Key) |
| Quote and escape a Nix attribute key if necessary. | |
Variables | |
| constexpr size_t | nixd::MaxJsonDepth = 100 |
| Maximum recursion depth for JSON to Nix conversion. | |
| constexpr size_t | nixd::MaxJsonWidth = 10000 |
| Maximum array/object width for JSON to Nix conversion. | |
Shared utilities for code actions.
This header provides common functions used across multiple code action implementations, including text manipulation, Nix identifier validation, and CodeAction construction helpers.
Definition in file Utils.h.