checkSingle method

bool checkSingle(
  1. String ch,
  2. String test,
  3. TokenType type
)

Implementation

bool checkSingle(String ch, String test, TokenType type) {
  if (ch == test) {
    token = test;
    this.type = type;
    return true;
  }
  return false;
}