This change adds the child_by_type() function to the tree-sitter Node class as a convenience function.
Note: this is only added to Python parser for now as other languages might support child_by_field_name(). tree-sitter-python apparently does not support child_by_field_name.
This change adds the child_by_type() function to the tree-sitter Node class as a convenience function.
Note: this is only added to Python parser for now as other languages might support child_by_field_name(). tree-sitter-python apparently does not support child_by_field_name.