Parse integer / float types

This commit is contained in:
Florian Diebold
2018-12-22 22:17:55 +01:00
parent 3ac605e687
commit 3899898d75
4 changed files with 58 additions and 4 deletions

View File

@@ -2697,7 +2697,11 @@ impl<R: TreeRoot<RaTypes>> PathTypeNode<R> {
}
impl<'a> PathType<'a> {}
impl<'a> PathType<'a> {
pub fn path(self) -> Option<Path<'a>> {
super::child_opt(self)
}
}
// PlaceholderPat
#[derive(Debug, Clone, Copy,)]

View File

@@ -304,7 +304,7 @@ Grammar(
"ParenType": (),
"TupleType": (),
"NeverType": (),
"PathType": (),
"PathType": (options: ["Path"]),
"PointerType": (),
"ArrayType": (),
"SliceType": (),