diff options
author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2018-08-28 17:35:09 +0100 |
---|---|---|
committer | Aleksey Kladov <aleksey.kladov@gmail.com> | 2018-08-28 17:35:09 +0100 |
commit | dea6ed73fac6f3f4daf38b1cb6df4c8fb68872b7 (patch) | |
tree | 7aff1c3b0fbb32f142fce778c7ac6b16fab65756 /crates/libsyntax2/src/ast | |
parent | 537ea620bb2a73a5e79872f414af23cf4bf03179 (diff) |
better pattern recovery
Diffstat (limited to 'crates/libsyntax2/src/ast')
-rw-r--r-- | crates/libsyntax2/src/ast/generated.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/libsyntax2/src/ast/generated.rs b/crates/libsyntax2/src/ast/generated.rs index 2b400b847..999023e3d 100644 --- a/crates/libsyntax2/src/ast/generated.rs +++ b/crates/libsyntax2/src/ast/generated.rs | |||
@@ -893,6 +893,8 @@ pub enum ModuleItem<'a> { | |||
893 | ImplItem(ImplItem<'a>), | 893 | ImplItem(ImplItem<'a>), |
894 | UseItem(UseItem<'a>), | 894 | UseItem(UseItem<'a>), |
895 | ExternCrateItem(ExternCrateItem<'a>), | 895 | ExternCrateItem(ExternCrateItem<'a>), |
896 | ConstDef(ConstDef<'a>), | ||
897 | StaticDef(StaticDef<'a>), | ||
896 | } | 898 | } |
897 | 899 | ||
898 | impl<'a> AstNode<'a> for ModuleItem<'a> { | 900 | impl<'a> AstNode<'a> for ModuleItem<'a> { |
@@ -905,6 +907,8 @@ impl<'a> AstNode<'a> for ModuleItem<'a> { | |||
905 | IMPL_ITEM => Some(ModuleItem::ImplItem(ImplItem { syntax })), | 907 | IMPL_ITEM => Some(ModuleItem::ImplItem(ImplItem { syntax })), |
906 | USE_ITEM => Some(ModuleItem::UseItem(UseItem { syntax })), | 908 | USE_ITEM => Some(ModuleItem::UseItem(UseItem { syntax })), |
907 | EXTERN_CRATE_ITEM => Some(ModuleItem::ExternCrateItem(ExternCrateItem { syntax })), | 909 | EXTERN_CRATE_ITEM => Some(ModuleItem::ExternCrateItem(ExternCrateItem { syntax })), |
910 | CONST_DEF => Some(ModuleItem::ConstDef(ConstDef { syntax })), | ||
911 | STATIC_DEF => Some(ModuleItem::StaticDef(StaticDef { syntax })), | ||
908 | _ => None, | 912 | _ => None, |
909 | } | 913 | } |
910 | } | 914 | } |
@@ -917,6 +921,8 @@ impl<'a> AstNode<'a> for ModuleItem<'a> { | |||
917 | ModuleItem::ImplItem(inner) => inner.syntax(), | 921 | ModuleItem::ImplItem(inner) => inner.syntax(), |
918 | ModuleItem::UseItem(inner) => inner.syntax(), | 922 | ModuleItem::UseItem(inner) => inner.syntax(), |
919 | ModuleItem::ExternCrateItem(inner) => inner.syntax(), | 923 | ModuleItem::ExternCrateItem(inner) => inner.syntax(), |
924 | ModuleItem::ConstDef(inner) => inner.syntax(), | ||
925 | ModuleItem::StaticDef(inner) => inner.syntax(), | ||
920 | } | 926 | } |
921 | } | 927 | } |
922 | } | 928 | } |