12#include <llvm/ADT/StringRef.h>
21 llvm::StringLiteral Kind,
22 const std::string &FileURI,
constexpr size_t MaxJsonDepth
Maximum recursion depth for JSON to Nix conversion.
constexpr size_t MaxJsonWidth
Maximum array/object width for JSON to Nix conversion.
bool isValidNixIdentifier(const std::string &S)
Check if a string is a valid Nix identifier that can be unquoted.
lspserver::CodeAction 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.
std::string escapeNixString(llvm::StringRef S)
Escape special characters for Nix double-quoted string literals.
std::string quoteNixAttrKey(const std::string &Key)
Quote and escape a Nix attribute key if necessary.