diff options
author | Aleksey Kladov <[email protected]> | 2018-02-04 10:39:24 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-02-04 10:53:05 +0000 |
commit | a40b715ce1cae4db1b4c3b4c383ee7517d4202c4 (patch) | |
tree | 6d18d8c47065ea28bb4414a52855ad1c2407c81b /src/parser/event_parser/grammar/items/traits.rs | |
parent | 5e5313a7c71d8aa873b418575f56d23b2eac6e7f (diff) |
G: unsafe impl & trait
Diffstat (limited to 'src/parser/event_parser/grammar/items/traits.rs')
-rw-r--r-- | src/parser/event_parser/grammar/items/traits.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/parser/event_parser/grammar/items/traits.rs b/src/parser/event_parser/grammar/items/traits.rs new file mode 100644 index 000000000..3bef9639f --- /dev/null +++ b/src/parser/event_parser/grammar/items/traits.rs | |||
@@ -0,0 +1,17 @@ | |||
1 | use super::*; | ||
2 | |||
3 | pub(super) fn trait_item(p: &mut Parser) { | ||
4 | assert!(p.at(TRAIT_KW)); | ||
5 | p.bump(); | ||
6 | p.expect(IDENT); | ||
7 | p.expect(L_CURLY); | ||
8 | p.expect(R_CURLY); | ||
9 | } | ||
10 | |||
11 | pub(super) fn impl_item(p: &mut Parser) { | ||
12 | assert!(p.at(IMPL_KW)); | ||
13 | p.bump(); | ||
14 | p.expect(IDENT); | ||
15 | p.expect(L_CURLY); | ||
16 | p.expect(R_CURLY); | ||
17 | } | ||