You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev/syntax.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,7 @@ Points of note:
72
72
* Trivia and non-trivia tokens are not distinguished on the type level.
73
73
* Each token carries its full text.
74
74
* The original text can be recovered by concatenating the texts of all tokens in order.
75
-
* Accessing a child of particular type (for example, parameter list of a function) generally involves linear traversing the children, looking for a specific `kind`.
75
+
* Accessing a child of particular type (for example, parameter list of a function) generally involves linearly traversing the children, looking for a specific `kind`.
76
76
* Modifying the tree is roughly `O(depth)`.
77
77
We don't make special efforts to guarantee that the depth is not linear, but, in practice, syntax trees are branchy and shallow.
78
78
* If mandatory (grammar wise) node is missing from the input, it's just missing from the tree.
0 commit comments