Module mun_syntax::utils [−][src]
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 |
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 |