Class: TreeSitter::Node::Point
- Inherits:
-
Object
- Object
- TreeSitter::Node::Point
- Defined in:
- ext/tree-sitter/node.c
Instance Method Summary collapse
-
#column ⇒ Object
Public: Return the column for a point.
-
#row ⇒ Object
Public: Return the row for a point.
Instance Method Details
#column ⇒ Object
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);
}
|
#row ⇒ Object
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);
}
|