diff --git a/.cache/clangd/index/parser.c.2B232C44BA60FD9D.idx b/.cache/clangd/index/parser.c.2B232C44BA60FD9D.idx new file mode 100644 index 0000000..1e26bb8 Binary files /dev/null and b/.cache/clangd/index/parser.c.2B232C44BA60FD9D.idx differ diff --git a/.cache/clangd/index/parser.h.31A79418023DF33E.idx b/.cache/clangd/index/parser.h.31A79418023DF33E.idx new file mode 100644 index 0000000..611b299 Binary files /dev/null and b/.cache/clangd/index/parser.h.31A79418023DF33E.idx differ diff --git a/parse_tree.hpp b/parse_tree.hpp index f0a9577..15a9e7a 100644 --- a/parse_tree.hpp +++ b/parse_tree.hpp @@ -13,16 +13,7 @@ class ParseTree { public: class Node { public: - Node() : uninitialized_(true) { - for (unsigned int& i : node_.context) { - i = 0; - } - node_.id = nullptr; - node_.tree = nullptr; - - source_ = nullptr; - }; - Node(const TSNode& node, const std::string* source) : uninitialized_(false), node_(node), source_(source) {} + Node(const TSNode& node, const std::string* source) : node_(node), source_(source) {} std::string GetType() { return ts_node_type(node_); @@ -103,7 +94,6 @@ public: return Node(ts_node_next_named_sibling(node_), source_); } private: - bool uninitialized_; TSNode node_; const std::string* source_; };