pub(crate) fn source_range(&self) -> TextRange {
        // check kind of macro-expanded token, but use range of original token
        match self.token.kind() {
            // workaroud when completion is triggered by trigger characters.
            IDENT => self.original_token.text_range(),
            _ => TextRange::offset_len(self.offset, 0.into()),
        }
    }
// The range of the identifier that is being completed.
The range of the identifier that is being completed.
The range of the identifier that is being completed .
pub(crate) fn source_range(&self) -> TextRange {
        // check kind of macro-expanded token, but use range of original token
        match self.token.kind() {
            // workaroud when completion is triggered by trigger characters.
            IDENT => self.original_token.text_range(),
            _ => TextRange::offset_len(self.offset, 0.into()),
        }
    }
pub ( crate ) fn source_range ( & self ) -> TextRange { // check kind of macro-expanded token, but use range of original token match self . token . kind ( ) { // workaroud when completion is triggered by trigger characters. IDENT => self . original_token . text_range ( ) , _ => TextRange :: offset_len ( self . offset , 0 . into ( ) ) , } }
The range of the identifier that is being completed.
The range of the identifier that is being completed .
&self
&self