add top level tests for types

This commit is contained in:
Aleksey Kladov 2022-01-02 17:45:18 +03:00
parent e78424846e
commit 640cc27ff0
3 changed files with 65 additions and 1 deletions

View file

@ -122,6 +122,19 @@ pub(crate) mod entry {
}
m.complete(p, ERROR);
}
pub(crate) fn type_(p: &mut Parser) {
let m = p.start();
types::type_(p);
if p.at(EOF) {
m.abandon(p);
return;
}
while !p.at(EOF) {
p.bump_any();
}
m.complete(p, ERROR);
}
}
}