Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libnixf: fix typo Identifer -> Identifier #601

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion libnixf/include/nixf/Basic/NodeKinds.inc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ NODE(InterpolableParts)
/// \see Misc
NODE(Misc)
NODE(Dot)
NODE(Identifer)
NODE(Identifier)
NODE(AttrName)
NODE(AttrPath)
NODE(Binding)
Expand Down
2 changes: 1 addition & 1 deletion libnixf/include/nixf/Basic/Nodes/Basic.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class Identifier : public Node {

public:
Identifier(LexerCursorRange Range, std::string Name)
: Node(NK_Identifer, Range), Name(std::move(Name)) {}
: Node(NK_Identifier, Range), Name(std::move(Name)) {}
[[nodiscard]] const std::string &name() const { return Name; }

[[nodiscard]] ChildVector children() const override { return {}; }
Expand Down
2 changes: 1 addition & 1 deletion libnixf/test/Basic/Nodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ TEST(Node, Descend) {
std::vector<Diagnostic> Diag;
auto Root = parse(Src, Diag);

ASSERT_EQ(Root->descend({{0, 2}, {0, 2}})->kind(), Node::NK_Identifer);
ASSERT_EQ(Root->descend({{0, 2}, {0, 2}})->kind(), Node::NK_Identifier);
ASSERT_EQ(Root->descend({{0, 2}, {0, 4}})->kind(), Node::NK_Binding);
}

Expand Down
2 changes: 1 addition & 1 deletion libnixf/test/Sema/ParentMap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ TEST_F(ParentMapTest, Basic) {
PMA.runOnAST(*AST);

const Node *ID = AST->descend({{0, 0}, {0, 1}});
ASSERT_EQ(ID->kind(), Node::NK_Identifer);
ASSERT_EQ(ID->kind(), Node::NK_Identifier);

const Node *Var = PMA.upExpr(*ID);

Expand Down
2 changes: 1 addition & 1 deletion libnixf/test/Sema/VariableLookup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ TEST_F(VLATest, ToDefLambda) {

ASSERT_TRUE(AST);
const Node *ID = AST->descend({{0, 1}, {0, 1}});
ASSERT_EQ(ID->kind(), Node::NK_Identifer);
ASSERT_EQ(ID->kind(), Node::NK_Identifier);

const auto *Def = VLA.toDef(*ID);
ASSERT_TRUE(Def);
Expand Down
2 changes: 1 addition & 1 deletion nixd/lib/Controller/AST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ nixd::Selector nixd::idioms::mkSelector(const nixf::ExprSelect &Sel,

std::pair<std::vector<std::string>, std::string>
nixd::getScopeAndPrefix(const Node &N, const ParentMapAnalysis &PM) {
if (N.kind() != Node::NK_Identifer)
if (N.kind() != Node::NK_Identifier)
return {};

// FIXME: impl scoped packages
Expand Down
2 changes: 1 addition & 1 deletion nixd/tools/nixd/test/hover/1.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ CHECK-NEXT: "jsonrpc": "2.0",
CHECK-NEXT: "result": {
CHECK-NEXT: "contents": {
CHECK-NEXT: "kind": "markdown",
CHECK-NEXT: "value": "`Identifer`"
CHECK-NEXT: "value": "`Identifier`"
CHECK-NEXT: },
CHECK-NEXT: "range": {
CHECK-NEXT: "end": {
Expand Down
Loading