nixd
Loading...
Searching...
No Matches
nixd
lib
Controller
CodeActions
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
9
#include <
lspserver/Protocol.h
>
10
11
#include <
nixf/Sema/ParentMap.h
>
12
13
#include <llvm/ADT/StringRef.h>
14
15
#include <string>
16
#include <vector>
17
18
namespace
nixf
{
19
class
Node
;
20
}
// namespace nixf
21
22
namespace
nixd
{
23
24
/// \brief Add refactoring code actions for attribute names (quote/unquote).
25
void
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.h
ParentMap analysis.
nixf::Node
Definition
Basic.h:12
Protocol.h
nixd
Definition
CommandLine/Configuration.h:9
nixd::addAttrNameActions
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
nixf
Definition
Diagnostic.h:19
Generated by
1.15.0