Skip to main content

is_expression_position

Function is_expression_position 

Source
pub fn is_expression_position(line: &str) -> bool
Expand description

The cursor sits where a value expression is expected — after =/(/,, a => lambda arrow, or a binary operator — so in-scope locals are offered (v0.31, ADR 0064). Conservative: covers the common positions, excludes the type arrow ->. (The handler also offers locals at keyword position.)