Skip to main content

Span

Type Alias Span 

Source
pub type Span = (u32, u32);
Expand description

A source range as UTF-8 byte offsets (start, end) into the text the parser read. (0, 0) means none was recorded (a ${…} template field is re-parsed from a copy, so its offsets would not point into the script). Function.prototype.toString returns this slice (20.2.3.5).