Finalize union grammar

This commit is contained in:
Aleksey Kladov 2020-07-30 17:36:46 +02:00
parent 8ddbf06e39
commit 1ae4721c9c
23 changed files with 51 additions and 51 deletions

View file

@ -11,7 +11,7 @@ pub(super) fn struct_def(p: &mut Parser, m: Marker) {
pub(super) fn union_def(p: &mut Parser, m: Marker) {
assert!(p.at_contextual_kw("union"));
p.bump_remap(T![union]);
struct_or_union(p, m, T![union], UNION_DEF);
struct_or_union(p, m, T![union], UNION);
}
fn struct_or_union(p: &mut Parser, m: Marker, kw: SyntaxKind, def: SyntaxKind) {

View file

@ -124,7 +124,7 @@ pub enum SyntaxKind {
R_DOLLAR,
SOURCE_FILE,
STRUCT_DEF,
UNION_DEF,
UNION,
ENUM_DEF,
FN,
RET_TYPE,