nixd
Loading...
Searching...
No Matches
AttrName.h
Go to the documentation of this file.
1/// \file
2/// \brief Code action for quoting/unquoting attribute names.
3///
4/// Offers to quote an unquoted attribute name (foo -> "foo") or
5/// unquote a quoted attribute name if it's a valid identifier ("foo" -> foo).
6
7#pragma once
8
10
11#include <nixf/Sema/ParentMap.h>
12
13#include <llvm/ADT/StringRef.h>
14
15#include <string>
16#include <vector>
17
18namespace nixf {
19class Node;
20} // namespace nixf
21
22namespace nixd {
23
24/// \brief Add refactoring code actions for attribute names (quote/unquote).
25void addAttrNameActions(const nixf::Node &N, const nixf::ParentMapAnalysis &PM,
26 const std::string &FileURI, llvm::StringRef Src,
27 std::vector<lspserver::CodeAction> &Actions);
28
29} // namespace nixd
ParentMap analysis.
void 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).
Definition AttrName.cpp:13