Module sway_lsp::core::token_map_ext

source ·
Expand description

This module provides the TokenMapExt trait, which extends iterators over tokens with additional functionality, such as finding all references of a given token in a TokenMap.

The TokenMapExt trait is implemented for any iterator that yields (Ident, Token) pairs.

Structs§

Traits§

  • A trait for extending iterators with the all_references_of_token method.