Skip to main content

preceding_binary_op_span

Function preceding_binary_op_span 

Source
fn preceding_binary_op_span(seq: &[TokenTree], pos: usize) -> Option<Span>
Expand description

Returns the span of a binary operator token at pos if it is a binary op. Used to anchor the “empty paren after binary op” diagnostic.