positionString static method

String positionString(
  1. String buffer,
  2. int position
)

Returns a human readable string representing the position index in a buffer.

Implementation

static String positionString(String buffer, int position) {
  final lineAndColumn = lineAndColumnOf(buffer, position);
  return '${lineAndColumn[0]}:${lineAndColumn[1]}';
}