Skip to content

Commit

Permalink
libnixf: fix typo Identifer -> Identifier (#601)
Browse files Browse the repository at this point in the history
  • Loading branch information
inclyc authored Sep 28, 2024
1 parent a47ac2c commit e5e144f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
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

0 comments on commit e5e144f

Please sign in to comment.