Skip to main content

has_in_newline_expr_first

Function has_in_newline_expr_first 

Source
fn has_in_newline_expr_first(node: &SyntaxNode, sense_node: &SyntaxNode) -> bool
Expand description

Similar to has_parens, heuristic sensing incomplete statement before ambiguous Expr

Heuristic:

Check if node follows a newline and if the ancestors of sense_node can be split all the way to StmtList