Skip to main content

in_service_body_item_position

Function in_service_body_item_position 

Source
pub fn in_service_body_item_position(
    text: &str,
    offset: usize,
    line_prefix: &str,
) -> bool
Expand description

v0.131: the cursor is at a service-body item start — a bare word inside a service … { block (not a nested block) — where cors may begin, alongside the on handler kinds. Gated on is_keyword_position so it only fires at a fresh item start, and on the enclosing brace’s header line naming service.