ra_syntax::File is just RootNode

This commit is contained in:
Aleksey Kladov 2018-11-06 22:47:38 +03:00
parent 7196286ec5
commit 8eaf7952ae
4 changed files with 969 additions and 206 deletions

View file

@ -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);