Rizin
unix-like reverse engineering framework and cli tools
|
#include "./subtree.h"
Go to the source code of this file.
Classes | |
struct | TreeCursorEntry |
struct | TreeCursor |
Functions | |
void | ts_tree_cursor_init (TreeCursor *, TSNode) |
void | ts_tree_cursor_current_status (const TSTreeCursor *, TSFieldId *, bool *, bool *, bool *, TSSymbol *, unsigned *) |
TSNode | ts_tree_cursor_parent_node (const TSTreeCursor *) |
void ts_tree_cursor_current_status | ( | const TSTreeCursor * | _self, |
TSFieldId * | field_id, | ||
bool * | has_later_siblings, | ||
bool * | has_later_named_siblings, | ||
bool * | can_have_later_siblings_with_this_field, | ||
TSSymbol * | supertypes, | ||
unsigned * | supertype_count | ||
) |
Definition at line 284 of file tree_cursor.c.
References SubtreeHeapData::child_count, field_id, i, TSSymbolMetadata::named, SubtreeHeapData::named_child_count, SubtreeHeapData::production_id, Subtree::ptr, TreeCursorEntry::subtree, subtree_symbol, TSSymbolMetadata::supertype, ts_language_alias_sequence(), ts_language_field_map(), ts_language_symbol_metadata(), ts_subtree_children, ts_subtree_extra(), ts_subtree_visible_child_count(), and TSSymbolMetadata::visible.
Referenced by ts_query_cursor__advance().
void ts_tree_cursor_init | ( | TreeCursor * | self, |
TSNode | node | ||
) |
Definition at line 80 of file tree_cursor.c.
References array_clear, array_push, and TSNode::tree.
Referenced by ts_tree_cursor_new(), ts_tree_cursor_reset(), and ts_tree_get_changed_ranges().
TSNode ts_tree_cursor_parent_node | ( | const TSTreeCursor * | _self | ) |
Definition at line 404 of file tree_cursor.c.
References i, length_zero(), NULL, SubtreeHeapData::production_id, Subtree::ptr, TreeCursorEntry::subtree, ts_language_alias_at(), ts_node_new(), and ts_subtree_visible().
Referenced by ts_query_cursor__advance().