class TreeSitter::TreeEditor

Defined in:

tree_sitter/editor.cr

Constructors

Instance Method Summary

Instance methods inherited from class TreeSitter::Editor

delete(line : Int32, column : Int32, n_bytes : Int32) delete, insert(line : Int32, column : Int32, n_bytes : Int32) insert

Constructor methods inherited from class TreeSitter::Editor

new(point_to_offset_callback : Int32, Int32 -> UInt32, offset_to_point_callback : UInt32 -> TreeSitter::Point) new

Constructor Detail

def self.new(tree : TreeSitter::Tree, point_to_offset_callback, offset_to_point_callback) #

[View source]

Instance Method Detail

def edit(edit : Pointer(LibTreeSitter::TSInputEdit)) #

[View source]
def tree : Tree #

[View source]
def tree=(tree : Tree) #

[View source]