TreeSitterPoint.fromNative constructor

TreeSitterPoint.fromNative(
  1. int row,
  2. int column
)

Converts the native TSPoint row and column into the public point type.

Implementation

factory TreeSitterPoint.fromNative(int row, int column) {
  RangeError.checkValueInInterval(row, 0, 0xffffffff, 'row');
  RangeError.checkValueInInterval(column, 0, 0xffffffff, 'column');
  return TreeSitterPoint(row, column);
}