moonbit-community/treesitter/runtime does not have a README file
type DecodeFunction = (BytesView) -> (UInt, Int)pub(all) struct CursorStatus {
field_id : Int
has_later_siblings : Bool
has_later_named_siblings : Bool
can_have_later_siblings_with_this_field : Bool
supertypes : Array[Int]
}pub(all) struct Input {
read : (UInt, Point) -> BytesView
encoding : InputEncoding
decode : (BytesView) -> (UInt, Int)?
}pub(all) struct Lexer {
lookahead : Int
result_symbol : Int
// private fields
}pub struct Node {
// private fields
}pub struct Parser {
// private fields
}fn Parser::parse_string_encoding(self : Parser, old_tree : Tree?, string : Bytes, encoding : InputEncoding) -> Tree?fn Parser::set_language(self : Parser, language : Language?, scanner? : () -> ExternalScanner) -> Boolpub struct Stack {
// private fields
}pub(all) struct SubtreeHeapData {
ref_count : Int
padding : Length
size : Length
lookahead_bytes : UInt
error_cost : UInt
children : Array[Subtree]
symbol : Int
parse_state : Int
visible : Bool
named : Bool
extra : Bool
fragile_left : Bool
fragile_right : Bool
has_changes : Bool
has_external_tokens : Bool
has_external_scanner_state_change : Bool
depends_on_column : Bool
is_missing : Bool
is_keyword : Bool
visible_child_count : UInt
named_child_count : UInt
visible_descendant_count : UInt
dynamic_precedence : Int
repeat_depth : UInt
production_id : Int
first_leaf_symbol : Int
first_leaf_parse_state : Int
external_scanner_state : Bytes
lookahead_char : Int
address : Int
}pub(all) struct SubtreeInlineData {
visible : Bool
named : Bool
extra : Bool
has_changes : Bool
is_missing : Bool
is_keyword : Bool
depends_on_column : Bool
symbol : Int
parse_state : Int
padding_columns : UInt
padding_rows : UInt
lookahead_bytes : UInt
padding_bytes : UInt
size_bytes : UInt
} derive(Eq, Debug)pub struct TreeCursor {
// private fields
}pub(all) struct TreeCursorEntry {
subtree : SubtreeSlot
position : Length
child_index : Int
structural_child_index : Int
descendant_index : UInt
}fn decode_utf8(string : BytesView) -> (UInt, Int)fn external_scanner_state_eq(state : Bytes, buffer : BytesView) -> Boolfn subtree_get_changed_ranges(old_tree : SubtreeSlot, new_tree : SubtreeSlot, language : Language, included_range_differences : Array[Range]) -> Array[Range]