match method

bool match(
  1. String expected
)

Implementation

bool match(String expected) {
  if (isAtEnd()) return false;
  if (source[current] != expected) return false;
  current++;
  return true;
}