nixd
Loading...
Searching...
No Matches
AttrName.h File Reference

Code action for quoting/unquoting attribute names. More...

#include <lspserver/Protocol.h>
#include <nixf/Sema/ParentMap.h>
#include <llvm/ADT/StringRef.h>
#include <string>
#include <vector>

Go to the source code of this file.

Namespaces

namespace  nixf
namespace  nixd

Functions

void nixd::addAttrNameActions (const nixf::Node &N, const nixf::ParentMapAnalysis &PM, const std::string &FileURI, llvm::StringRef Src, std::vector< lspserver::CodeAction > &Actions)
 Add refactoring code actions for attribute names (quote/unquote).

Detailed Description

Code action for quoting/unquoting attribute names.

Offers to quote an unquoted attribute name (foo -> "foo") or unquote a quoted attribute name if it's a valid identifier ("foo" -> foo).

Definition in file AttrName.h.