tryName method

bool tryName(
  1. String name
)

Implementation

bool tryName(String name) {
  if (token?.type == Token.NAME && token?.text == name) {
    next();
    return true;
  } else {
    return false;
  }
}