aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar/types.rs
blob: c798edd08a4d671ec87f8651c2bcd7b68dc2cc6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use super::*;

pub(super) fn type_ref(p: &mut Parser) {
    match p.current() {
        IDENT => p.bump(),
        L_PAREN => {
            p.bump();
            p.expect(R_PAREN);
        }
        _ => {
            p.error("expected type");
        }
    }
}