From 311dbb854536dd526cdbcadc6d270f9a37e4b816 Mon Sep 17 00:00:00 2001 From: Ekaterina Babshukova Date: Sat, 5 Oct 2019 17:48:31 +0300 Subject: remove `visitor` module --- docs/dev/architecture.md | 4 +--- docs/user/features.md | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'docs') diff --git a/docs/dev/architecture.md b/docs/dev/architecture.md index 1201f6e5a..1ffabc6ef 100644 --- a/docs/dev/architecture.md +++ b/docs/dev/architecture.md @@ -79,9 +79,7 @@ Rust syntax tree structure and parser. See - `grammar.ron` RON description of the grammar, which is used to generate `syntax_kinds` and `ast` modules, using `cargo gen-syntax` command. - `algo`: generic tree algorithms, including `walk` for O(1) stack - space tree traversal (this is cool) and `visit` for type-driven - visiting the nodes (this is double plus cool, if you understand how - `Visitor` works, you understand the design of syntax trees). + space tree traversal (this is cool). Tests for ra_syntax are mostly data-driven: `test_data/parser` contains subdirectories with a bunch of `.rs` (test vectors) and `.txt` files with corresponding syntax trees. During testing, we check diff --git a/docs/user/features.md b/docs/user/features.md index 0ce8f577b..757a02838 100644 --- a/docs/user/features.md +++ b/docs/user/features.md @@ -367,9 +367,9 @@ impl VariantData { ```rust // before: -use algo:<|>:visitor::{Visitor, visit}; +use crate:<|>:db::{RootDatabase, FileSymbol}; // after: -use algo::{<|>visitor::{Visitor, visit}}; +use crate::{<|>db::{RootDatabase, FileSymbol}}; ``` - Flip binary expression -- cgit v1.2.3