Rizin
unix-like reverse engineering framework and cli tools
SubtreeHeapData Struct Reference

#include <subtree.h>

Public Attributes

volatile uint32_t ref_count
 
Length padding
 
Length size
 
uint32_t lookahead_bytes
 
uint32_t error_cost
 
uint32_t child_count
 
TSSymbol symbol
 
TSStateId parse_state
 
bool visible: 1
 
bool named: 1
 
bool extra: 1
 
bool fragile_left: 1
 
bool fragile_right: 1
 
bool has_changes: 1
 
bool has_external_tokens: 1
 
bool depends_on_column: 1
 
bool is_missing: 1
 
bool is_keyword: 1
 
union {
   struct {
      uint32_t   visible_child_count
 
      uint32_t   named_child_count
 
      uint32_t   node_count
 
      uint32_t   repeat_depth
 
      int32_t   dynamic_precedence
 
      uint16_t   production_id
 
      struct {
         TSSymbol   symbol
 
         TSStateId   parse_state
 
      }   first_leaf
 
   } 
 
   ExternalScannerState   external_scanner_state
 
   int32_t   lookahead_char
 
}; 
 

Detailed Description

Definition at line 111 of file subtree.h.

Member Data Documentation

◆ 

union { ... }

◆ child_count

◆ depends_on_column

bool SubtreeHeapData::depends_on_column

Definition at line 128 of file subtree.h.

Referenced by ts_subtree_edit(), and ts_subtree_summarize_children().

◆ dynamic_precedence

int32_t SubtreeHeapData::dynamic_precedence

Definition at line 139 of file subtree.h.

Referenced by ts_parser__reduce().

◆ error_cost

uint32_t SubtreeHeapData::error_cost

Definition at line 116 of file subtree.h.

Referenced by ts_subtree_edit().

◆ external_scanner_state

ExternalScannerState SubtreeHeapData::external_scanner_state

◆ extra

bool SubtreeHeapData::extra

Definition at line 123 of file subtree.h.

Referenced by ts_parser__reduce(), ts_subtree_edit(), and ts_subtree_new_error_node().

◆ 

struct { ... } SubtreeHeapData::first_leaf

◆ fragile_left

bool SubtreeHeapData::fragile_left

Definition at line 124 of file subtree.h.

Referenced by ts_parser__reduce(), ts_subtree_edit(), and ts_subtree_new_error().

◆ fragile_right

bool SubtreeHeapData::fragile_right

Definition at line 125 of file subtree.h.

Referenced by ts_parser__reduce(), ts_subtree_edit(), and ts_subtree_new_error().

◆ has_changes

bool SubtreeHeapData::has_changes

Definition at line 126 of file subtree.h.

Referenced by ts_subtree_edit().

◆ has_external_tokens

bool SubtreeHeapData::has_external_tokens

Definition at line 127 of file subtree.h.

Referenced by ts_subtree_edit(), and ts_subtree_release().

◆ is_keyword

bool SubtreeHeapData::is_keyword

Definition at line 130 of file subtree.h.

Referenced by ts_subtree_edit().

◆ is_missing

bool SubtreeHeapData::is_missing

Definition at line 129 of file subtree.h.

Referenced by ts_subtree_edit().

◆ lookahead_bytes

uint32_t SubtreeHeapData::lookahead_bytes

Definition at line 115 of file subtree.h.

Referenced by ts_subtree_edit().

◆ lookahead_char

int32_t SubtreeHeapData::lookahead_char

Definition at line 151 of file subtree.h.

Referenced by ts_subtree_new_error().

◆ named

bool SubtreeHeapData::named

Definition at line 122 of file subtree.h.

Referenced by ts_subtree_edit().

◆ named_child_count

◆ node_count

uint32_t SubtreeHeapData::node_count

Definition at line 137 of file subtree.h.

◆ padding

Length SubtreeHeapData::padding

Definition at line 113 of file subtree.h.

Referenced by ts_subtree_edit().

◆ parse_state

TSStateId SubtreeHeapData::parse_state

Definition at line 119 of file subtree.h.

Referenced by ts_parser__reduce(), and ts_subtree_edit().

◆ production_id

◆ ref_count

◆ repeat_depth

uint32_t SubtreeHeapData::repeat_depth

Definition at line 138 of file subtree.h.

Referenced by ts_subtree_balance().

◆ size

Length SubtreeHeapData::size

Definition at line 114 of file subtree.h.

Referenced by ts_subtree_edit().

◆ symbol

TSSymbol SubtreeHeapData::symbol

Definition at line 118 of file subtree.h.

Referenced by ts_subtree__compress(), and ts_subtree_edit().

◆ visible

bool SubtreeHeapData::visible

Definition at line 121 of file subtree.h.

Referenced by ts_subtree_edit().

◆ visible_child_count

uint32_t SubtreeHeapData::visible_child_count

The documentation for this struct was generated from the following file: