diff options
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 79394fd53..8996eb921 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -39,11 +39,12 @@ mod grammar; | |||
39 | mod parser_api; | 39 | mod parser_api; |
40 | mod parser_impl; | 40 | mod parser_impl; |
41 | mod reparsing; | 41 | mod reparsing; |
42 | 42 | mod string_lexing; | |
43 | mod syntax_kinds; | 43 | mod syntax_kinds; |
44 | pub mod text_utils; | 44 | pub mod text_utils; |
45 | /// Utilities for simple uses of the parser. | 45 | /// Utilities for simple uses of the parser. |
46 | pub mod utils; | 46 | pub mod utils; |
47 | mod validation; | ||
47 | mod yellow; | 48 | mod yellow; |
48 | 49 | ||
49 | pub use crate::{ | 50 | pub use crate::{ |
@@ -98,6 +99,8 @@ impl File { | |||
98 | self.root.borrowed() | 99 | self.root.borrowed() |
99 | } | 100 | } |
100 | pub fn errors(&self) -> Vec<SyntaxError> { | 101 | pub fn errors(&self) -> Vec<SyntaxError> { |
101 | self.root.root_data().clone() | 102 | let mut errors = self.root.root_data().clone(); |
103 | errors.extend(validation::validate(self)); | ||
104 | errors | ||
102 | } | 105 | } |
103 | } | 106 | } |