[−][src]Module ra_ap_syntax::algo
FIXME: write short doc here
Structs
| SyntaxRewriter | |
| TreeDiff |
Enums
| InsertPosition |
Functions
| ancestors_at_offset | Returns ancestors of the node at the offset, sorted by length. This should
do the right thing at an edge, e.g. when searching for expressions at |
| diff | Finds a (potentially minimal) diff, which, applied to |
| find_covering_element | |
| find_node_at_offset | Finds a node of specific Ast type at offset. Note that this is slightly imprecise: if the cursor is strictly between two nodes of the desired type, as in |
| find_node_at_range | |
| has_errors | |
| insert_children | Adds specified children (tokens or nodes) to the current node at the specific position. |
| least_common_ancestor | |
| neighbor | |
| non_trivia_sibling | Finds the first sibling in the given direction which is not |
| replace_children | Replaces all nodes in |
| skip_trivia_token | Skip to next non |