mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 20:43:21 +00:00
Merge #5703
5703: Fix typos in syntax.md r=kjeremy a=lnicola Closes #5700 Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
b050937c10
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ Points of note:
|
||||||
* The original text can be recovered by concatenating the texts of all tokens in order.
|
* The original text can be recovered by concatenating the texts of all tokens in order.
|
||||||
* Accessing a child of particular type (for example, parameter list of a function) generally involves linerary traversing the children, looking for a specific `kind`.
|
* Accessing a child of particular type (for example, parameter list of a function) generally involves linerary traversing the children, looking for a specific `kind`.
|
||||||
* Modifying the tree is roughly `O(depth)`.
|
* Modifying the tree is roughly `O(depth)`.
|
||||||
We don't make special efforts to guarantree that the depth is not liner, but, in practice, syntax trees are branchy and shallow.
|
We don't make special efforts to guarantee that the depth is not linear, but, in practice, syntax trees are branchy and shallow.
|
||||||
* If mandatory (grammar wise) node is missing from the input, it's just missing from the tree.
|
* If mandatory (grammar wise) node is missing from the input, it's just missing from the tree.
|
||||||
* If an extra erroneous input is present, it is wrapped into a node with `ERROR` kind, and treated just like any other node.
|
* If an extra erroneous input is present, it is wrapped into a node with `ERROR` kind, and treated just like any other node.
|
||||||
* Parser errors are not a part of syntax tree.
|
* Parser errors are not a part of syntax tree.
|
||||||
|
|
Loading…
Reference in a new issue