readKeyword static method

String readKeyword(
  1. UDocCursor cursor
)

Implementation

static String readKeyword(UDocCursor cursor) {
  final StringBuffer buffer = StringBuffer();
  while (!cursor.isEmpty && isRegular(cursor.peek)) {
    buffer.writeCharCode(cursor.u8());
  }
  return buffer.toString();
}