Function rslint_core::util::token_list_range[][src]

pub fn token_list_range<I>(items: I) -> TextRange where
    I: IntoIterator,
    I::Item: Borrow<SyntaxToken>, 
Expand description

Get the range represented by a list of tokens.

Panics

Panics if the items is an empty iterator.