swc_ecma_regexp/parser/reader/string_literal_parser/options.rs
1#[derive(Clone, Copy, Debug, Default)]
2pub struct Options {
3 /// Used to adjust `Span` positions to fit the global source code.
4 pub span_offset: u32,
5 /// In JavaScript, internal representation of strings is UTF-16.
6 /// But for our usage in Rust, it is more convenient to work with
7 /// UTF-32(char) unit if desired.
8 pub combine_surrogate_pair: bool,
9 /// If `true`, parser will emit error when legacy octal escape sequences are
10 /// found.
11 pub strict_mode: bool,
12}