3 pub(super) fn static_(p: &mut Parser, m: Marker) {
4 const_or_static(p, m, T![static], STATIC)
7 pub(super) fn konst(p: &mut Parser, m: Marker) {
8 const_or_static(p, m, T![const], CONST)
11 fn const_or_static(p: &mut Parser, m: Marker, kw: SyntaxKind, def: SyntaxKind) {
16 // Allow `_` in place of an identifier in a `const`.
17 let is_const_underscore = kw == T![const] && p.eat(T![_]);
18 if !is_const_underscore {
22 // test_err static_underscore
27 p.error("missing type for `const` or `static`")