end method

bool end ()

A Declaration terminator.

Note that the peek() use to check for }, because the block rule will be expecting it, but we still need to make sure it's there, if ; was omitted.

Implementation

bool end() => (parserInput.$char(';') != null) || parserInput.peekChar('}');