tinymist_query::syntax

Function previous_decls

Source
pub fn previous_decls<T>(
    node: LinkedNode<'_>,
    recv: impl FnMut(PreviousDecl<'_>) -> Option<T>,
) -> Option<T>
Expand description

Finds the previous declarations starting from the given position. It checks PreviousItem and returns the found declarations.