defmodule TreeSitter.Node do @doc """ Extract the content of the node from the given source_code/content """ def content(node, content) do {s, e} = TreeSitter.Nif.node_byte_range(node) Kernel.binary_part(content, s, e - s) end end