mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
ra_syntax::File is just RootNode
This commit is contained in:
parent
7196286ec5
commit
8eaf7952ae
4 changed files with 969 additions and 206 deletions
|
@ -11,7 +11,7 @@ use crate::{
|
|||
|
||||
pub(crate) fn validate(file: &File) -> Vec<SyntaxError> {
|
||||
let mut errors = Vec::new();
|
||||
for node in file.root.borrowed().descendants() {
|
||||
for node in file.syntax().descendants() {
|
||||
let _ = visitor_ctx(&mut errors)
|
||||
.visit::<ast::Char, _>(validate_char)
|
||||
.accept(node);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue