Skip to main content

prefix_context

Function prefix_context 

Source
pub(super) fn prefix_context(
    text: &str,
    position: Position,
) -> PrefixContext<'_>
Expand description

Find the dot-qualified identifier prefix at the cursor position.

Scans backward from position through identifier characters (alphanumeric, underscore) and dots to determine what the user has typed so far.