parseEndOfStmtMark method

bool parseEndOfStmtMark({
  1. bool required = false,
})

Implementation

bool parseEndOfStmtMark({bool required = false}) {
  bool hasEndOfStmtMark = true;
  if (config.explicitEndOfStatement || required) {
    match(lexer.lexicon.endOfStatementMark);
  } else {
    hasEndOfStmtMark =
        expect([lexer.lexicon.endOfStatementMark], consume: true);
  }
  return hasEndOfStmtMark;
}