aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2019-10-05 15:54:25 +0100
committerGitHub <[email protected]>2019-10-05 15:54:25 +0100
commitd3872964f88a0d751c428c150bb40d8b4f4c89a9 (patch)
tree14b7045119a1918118c18857cc094c914284705c /docs
parentae6305b90c80eb919cfde985cba66975b6222ed2 (diff)
parent311dbb854536dd526cdbcadc6d270f9a37e4b816 (diff)
Merge #1960
1960: Replace AST visitors with macro r=viorina a=viorina Fixes #1672. Co-authored-by: Ekaterina Babshukova <[email protected]>
Diffstat (limited to 'docs')
-rw-r--r--docs/dev/architecture.md4
-rw-r--r--docs/user/features.md4
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
86Tests for ra_syntax are mostly data-driven: `test_data/parser` contains subdirectories with a bunch of `.rs` 84Tests 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:
370use algo:<|>:visitor::{Visitor, visit}; 370use crate:<|>:db::{RootDatabase, FileSymbol};
371// after: 371// after:
372use algo::{<|>visitor::{Visitor, visit}}; 372use crate::{<|>db::{RootDatabase, FileSymbol}};
373``` 373```
374 374
375- Flip binary expression 375- Flip binary expression