Skip to main content

locate_tokens_at

Function locate_tokens_at 

Source
pub(crate) fn locate_tokens_at(tokens: TokenStream, span: Span) -> TokenStream
Expand description

Adjusts a tokes stream so that the location for the stream comes from Span.

This affects where error messages will arise in the compiler output.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here