diff options
author | Ekaterina Babshukova <[email protected]> | 2019-10-05 15:48:31 +0100 |
---|---|---|
committer | Ekaterina Babshukova <[email protected]> | 2019-10-05 15:48:31 +0100 |
commit | 311dbb854536dd526cdbcadc6d270f9a37e4b816 (patch) | |
tree | db4857e394f6bd6a1045a13d0b3f11a98be8da49 /docs | |
parent | 2fc22901730f35405d2bdfe33f88d7b3c6b14304 (diff) |
remove `visitor` module
Diffstat (limited to 'docs')
-rw-r--r-- | docs/dev/architecture.md | 4 | ||||
-rw-r--r-- | docs/user/features.md | 4 |
2 files changed, 3 insertions, 5 deletions
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 | |||
79 | - `grammar.ron` RON description of the grammar, which is used to | 79 | - `grammar.ron` RON description of the grammar, which is used to |
80 | generate `syntax_kinds` and `ast` modules, using `cargo gen-syntax` command. | 80 | generate `syntax_kinds` and `ast` modules, using `cargo gen-syntax` command. |
81 | - `algo`: generic tree algorithms, including `walk` for O(1) stack | 81 | - `algo`: generic tree algorithms, including `walk` for O(1) stack |
82 | space tree traversal (this is cool) and `visit` for type-driven | 82 | space tree traversal (this is cool). |
83 | visiting the nodes (this is double plus cool, if you understand how | ||
84 | `Visitor` works, you understand the design of syntax trees). | ||
85 | 83 | ||
86 | Tests for ra_syntax are mostly data-driven: `test_data/parser` contains subdirectories with a bunch of `.rs` | 84 | Tests for ra_syntax are mostly data-driven: `test_data/parser` contains subdirectories with a bunch of `.rs` |
87 | (test vectors) and `.txt` files with corresponding syntax trees. During testing, we check | 85 | (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 { | |||
367 | 367 | ||
368 | ```rust | 368 | ```rust |
369 | // before: | 369 | // before: |
370 | use algo:<|>:visitor::{Visitor, visit}; | 370 | use crate:<|>:db::{RootDatabase, FileSymbol}; |
371 | // after: | 371 | // after: |
372 | use algo::{<|>visitor::{Visitor, visit}}; | 372 | use crate::{<|>db::{RootDatabase, FileSymbol}}; |
373 | ``` | 373 | ``` |
374 | 374 | ||
375 | - Flip binary expression | 375 | - Flip binary expression |