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::empty(self.offset),
        }
    }
// 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::empty(self.offset),
        }
    }
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 :: empty ( self . offset ) , } }
The range of the identifier that is being completed.
The range of the identifier that is being completed .
&self
&self