aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r--crates/ra_syntax/src/lib.rs7
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;
39mod parser_api; 39mod parser_api;
40mod parser_impl; 40mod parser_impl;
41mod reparsing; 41mod reparsing;
42 42mod string_lexing;
43mod syntax_kinds; 43mod syntax_kinds;
44pub mod text_utils; 44pub mod text_utils;
45/// Utilities for simple uses of the parser. 45/// Utilities for simple uses of the parser.
46pub mod utils; 46pub mod utils;
47mod validation;
47mod yellow; 48mod yellow;
48 49
49pub use crate::{ 50pub 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}