Class: TreeSitter::Node::Point

Inherits:
Object
  • Object
show all
Defined in:
ext/tree-sitter/node.c

Instance Method Summary collapse

Instance Method Details

#columnObject

Public: Return the column for a point.

Returns an Integer.



271
272
273
274
275
276
# File 'ext/tree-sitter/node.c', line 271

VALUE rb_point_column(VALUE self)
{
  Point *point;
  Data_Get_Struct(self, Point, point);
  return UINT2NUM(point->ts_point.column);
}

#rowObject

Public: Return the row for a point.

Returns an Integer.



259
260
261
262
263
264
# File 'ext/tree-sitter/node.c', line 259

VALUE rb_point_row(VALUE self)
{
  Point *point;
  Data_Get_Struct(self, Point, point);
  return UINT2NUM(point->ts_point.row);
}