diff options
Diffstat (limited to 'crates/ra_syntax/src/grammar/attributes.rs')
-rw-r--r-- | crates/ra_syntax/src/grammar/attributes.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/crates/ra_syntax/src/grammar/attributes.rs b/crates/ra_syntax/src/grammar/attributes.rs index 2624d2e16..cd30e8a45 100644 --- a/crates/ra_syntax/src/grammar/attributes.rs +++ b/crates/ra_syntax/src/grammar/attributes.rs | |||
@@ -1,15 +1,5 @@ | |||
1 | use super::*; | 1 | use super::*; |
2 | 2 | ||
3 | /// Parses both inner & outer attributes. | ||
4 | /// | ||
5 | /// Allowing to run validation for reporting errors | ||
6 | /// regarding attributes | ||
7 | pub(super) fn all_attributes(p: &mut Parser) { | ||
8 | while p.at(POUND) { | ||
9 | attribute(p, p.nth(1) == EXCL) | ||
10 | } | ||
11 | } | ||
12 | |||
13 | pub(super) fn inner_attributes(p: &mut Parser) { | 3 | pub(super) fn inner_attributes(p: &mut Parser) { |
14 | while p.current() == POUND && p.nth(1) == EXCL { | 4 | while p.current() == POUND && p.nth(1) == EXCL { |
15 | attribute(p, true) | 5 | attribute(p, true) |