pub(crate) fn is_line_term(&self) -> bool {
        self.kind == TokenKind::LineTerm || self.kind == TokenKind::Punct(Punct::Semi)
    }
Examine the token, and return true if it is a line terminator.
ruruby-parse/src/token.rs