diff options
author | Adolfo OchagavĂa <[email protected]> | 2018-11-11 19:27:00 +0000 |
---|---|---|
committer | Adolfo OchagavĂa <[email protected]> | 2018-11-11 19:27:00 +0000 |
commit | c258b4fdb0e421813330c2428985c4537c787582 (patch) | |
tree | e53263f28c0cd07911a1e9c9ef6538c8ff0227fd /crates/ra_syntax/src/validation/mod.rs | |
parent | a4f7d7a7cd85a5b9b64a935dd84ad493b6860236 (diff) |
Add validator for byte
Diffstat (limited to 'crates/ra_syntax/src/validation/mod.rs')
-rw-r--r-- | crates/ra_syntax/src/validation/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crates/ra_syntax/src/validation/mod.rs b/crates/ra_syntax/src/validation/mod.rs index 2ff0bc26d..acad7cb7f 100644 --- a/crates/ra_syntax/src/validation/mod.rs +++ b/crates/ra_syntax/src/validation/mod.rs | |||
@@ -5,6 +5,7 @@ use crate::{ | |||
5 | yellow::SyntaxError, | 5 | yellow::SyntaxError, |
6 | }; | 6 | }; |
7 | 7 | ||
8 | mod byte; | ||
8 | mod char; | 9 | mod char; |
9 | mod string; | 10 | mod string; |
10 | 11 | ||
@@ -12,6 +13,7 @@ pub(crate) fn validate(file: &SourceFileNode) -> Vec<SyntaxError> { | |||
12 | let mut errors = Vec::new(); | 13 | let mut errors = Vec::new(); |
13 | for node in file.syntax().descendants() { | 14 | for node in file.syntax().descendants() { |
14 | let _ = visitor_ctx(&mut errors) | 15 | let _ = visitor_ctx(&mut errors) |
16 | .visit::<ast::Byte, _>(self::byte::validate_byte_node) | ||
15 | .visit::<ast::Char, _>(self::char::validate_char_node) | 17 | .visit::<ast::Char, _>(self::char::validate_char_node) |
16 | .visit::<ast::String, _>(self::string::validate_string_node) | 18 | .visit::<ast::String, _>(self::string::validate_string_node) |
17 | .accept(node); | 19 | .accept(node); |