tinymist_query::syntax

Function adjust_expr

Source
pub fn adjust_expr(node: LinkedNode<'_>) -> Option<LinkedNode<'_>>
Expand description

Adjusts an expression node to a more suitable one for classification. It is not formal, but the following cases are forbidden:

  • Parenthesized expression.
  • Identifier on the right side of a dot operator (field access).