diff --git a/.changeset/metal-radios-swim.md b/.changeset/metal-radios-swim.md new file mode 100644 index 000000000000..5f72ca8f809a --- /dev/null +++ b/.changeset/metal-radios-swim.md @@ -0,0 +1,5 @@ +--- +swc_ecma_ast: major +--- + +fix(es/ast): Fix unicode lone surrogates handling diff --git a/bindings/binding_core_node/src/bundle.rs b/bindings/binding_core_node/src/bundle.rs index f4bf14d7421f..3abab1582daa 100644 --- a/bindings/binding_core_node/src/bundle.rs +++ b/bindings/binding_core_node/src/bundle.rs @@ -281,6 +281,7 @@ impl swc_core::bundler::Hook for Hook { span, raw: None, value: file_name.into(), + lone_surrogates: false, }))), }, KeyValueProp { diff --git a/crates/swc/tests/fixture/issues-7xxx/7678/output/1.js b/crates/swc/tests/fixture/issues-7xxx/7678/output/1.js index 4581a3820115..90f649fa88aa 100644 --- a/crates/swc/tests/fixture/issues-7xxx/7678/output/1.js +++ b/crates/swc/tests/fixture/issues-7xxx/7678/output/1.js @@ -1 +1 @@ -let str="\uD83D\uDC68\\u200D\uD83D\uDE80";let obj={"\uD83D\uDC68\\u200D\uD83D\uDE80":"wrong"}; +let str="\\uD83D\\uDC68\\u200D\\uD83D\\uDE80";let obj={"\\uD83D\\uDC68\\u200D\\uD83D\\uDE80":"wrong"}; diff --git a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES5.1.normal.js b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES5.1.normal.js index 9842e56d882e..07b9aa51e415 100644 --- a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES5.1.normal.js @@ -3,4 +3,4 @@ // 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. // Although we should just get back a single code point value of 0xD800, // this is a useful edge-case test. -var x = "\u{D800}"; +var x = "\ud800"; diff --git a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES6.1.normal.js b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES6.1.normal.js index bbb88f7e94ee..d368c232d7bc 100644 --- a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES6.1.normal.js +++ b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings10_ES6.1.normal.js @@ -3,4 +3,4 @@ // 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. // Although we should just get back a single code point value of 0xD800, // this is a useful edge-case test. -var x = "\u{D800}"; +var x = "\ud800"; diff --git a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES5.1.normal.js b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES5.1.normal.js index 2e2d5e00cd6d..7c2cdf85ffb0 100644 --- a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES5.1.normal.js @@ -3,4 +3,4 @@ // 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. // Although we should just get back a single code point value of 0xDC00, // this is a useful edge-case test. -var x = "\u{DC00}"; +var x = "\udc00"; diff --git a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES6.1.normal.js b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES6.1.normal.js index 77be3de0b741..70753f51e29a 100644 --- a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES6.1.normal.js +++ b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInStrings11_ES6.1.normal.js @@ -3,4 +3,4 @@ // 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. // Although we should just get back a single code point value of 0xDC00, // this is a useful edge-case test. -var x = "\u{DC00}"; +var x = "\udc00"; diff --git a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates10_ES5.1.normal.js b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates10_ES5.1.normal.js index 1e3e0fa950b4..0846583ea5ca 100644 --- a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates10_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates10_ES5.1.normal.js @@ -3,4 +3,4 @@ // 2. Let cu1 be floor((cp – 65536) / 1024) + 0xD800. // Although we should just get back a single code point value of 0xD800, // this is a useful edge-case test. -var x = "\u{D800}"; +var x = "\ud800"; diff --git a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates11_ES5.1.normal.js b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates11_ES5.1.normal.js index db96092c3f5f..1d09990ebbc0 100644 --- a/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates11_ES5.1.normal.js +++ b/crates/swc/tests/tsc-references/unicodeExtendedEscapesInTemplates11_ES5.1.normal.js @@ -3,4 +3,4 @@ // 2. Let cu2 be ((cp – 65536) modulo 1024) + 0xDC00. // Although we should just get back a single code point value of 0xDC00, // this is a useful edge-case test. -var x = "\u{DC00}"; +var x = "\udc00"; diff --git a/crates/swc/tests/vercel/full/utf8-1/output/index.js b/crates/swc/tests/vercel/full/utf8-1/output/index.js index adfd5a878e91..0afac7863537 100644 --- a/crates/swc/tests/vercel/full/utf8-1/output/index.js +++ b/crates/swc/tests/vercel/full/utf8-1/output/index.js @@ -5,7 +5,7 @@ import r from './on-demand-entries-client'; import { addMessageListener as n, connectHMR as c } from './error-overlay/websocket'; var o = JSON.parse(document.getElementById('__NEXT_DATA__').textContent); window.__NEXT_DATA__ = o; -var s = o.assetPrefix, i = o.page, _ = null, u = __webpack_hash__, d = (s = s || '') + (s.endsWith('/') ? '' : '/') + '_next/static/webpack/'; +var s = o.assetPrefix, i = o.page, _ = null, d = __webpack_hash__, u = (s = s || '') + (s.endsWith('/') ? '' : '/') + '_next/static/webpack/'; n(function(a) { if ('\uD83D\uDC93' !== a.data) try { var r = JSON.parse(a.data); @@ -28,7 +28,7 @@ n(function(a) { 5 ]), [ 4, - fetch('undefined' != typeof __webpack_runtime_id__ ? "".concat(d).concat(u, ".").concat(__webpack_runtime_id__, ".hot-update.json") : "".concat(d).concat(u, ".hot-update.json")) + fetch('undefined' != typeof __webpack_runtime_id__ ? "".concat(u).concat(d, ".").concat(__webpack_runtime_id__, ".hot-update.json") : "".concat(u).concat(d, ".hot-update.json")) ]; case 2: return [ @@ -38,7 +38,7 @@ n(function(a) { case 3: return e = t.sent(), a = '/' === i ? 'index' : i, (Array.isArray(e.c) ? e.c : Object.keys(e.c)).some(function(e) { return -1 !== e.indexOf("pages".concat(a.startsWith('/') ? a : "/".concat(a))) || -1 !== e.indexOf("pages".concat(a.startsWith('/') ? a : "/".concat(a)).replace(/\//g, '\\')); - }) ? document.location.reload(!0) : u = _, [ + }) ? document.location.reload(!0) : d = _, [ 3, 5 ]; diff --git a/crates/swc_bundler/examples/bundle.rs b/crates/swc_bundler/examples/bundle.rs index 6b823175da08..386b00799800 100644 --- a/crates/swc_bundler/examples/bundle.rs +++ b/crates/swc_bundler/examples/bundle.rs @@ -195,6 +195,7 @@ impl swc_bundler::Hook for Hook { span, raw: None, value: file_name.into(), + lone_surrogates: false, }))), }, KeyValueProp { diff --git a/crates/swc_bundler/src/util.rs b/crates/swc_bundler/src/util.rs index 127ffc80c4b7..428bb9f1a14f 100644 --- a/crates/swc_bundler/src/util.rs +++ b/crates/swc_bundler/src/util.rs @@ -33,6 +33,7 @@ pub(crate) trait VarDeclaratorExt: Into { span: DUMMY_SP, raw: None, value: name.into(), + lone_surrogates: false, } .assign_to(Ident::new_no_ctxt(atom!("INJECTED_FROM"), DUMMY_SP)), ] @@ -193,6 +194,7 @@ fn metadata(key: &str, value: &str) -> PropOrSpread { span: DUMMY_SP, value: value.into(), raw: None, + lone_surrogates: false, }) .into(), }))) diff --git a/crates/swc_bundler/tests/deno.rs b/crates/swc_bundler/tests/deno.rs index 22a089795d3e..cf2836ccc15b 100644 --- a/crates/swc_bundler/tests/deno.rs +++ b/crates/swc_bundler/tests/deno.rs @@ -1120,6 +1120,7 @@ impl swc_bundler::Hook for Hook { span, raw: None, value: file_name.into(), + lone_surrogates: false, }))), }, KeyValueProp { diff --git a/crates/swc_bundler/tests/fixture.rs b/crates/swc_bundler/tests/fixture.rs index bc0cb28f6ae8..2b0679419c30 100644 --- a/crates/swc_bundler/tests/fixture.rs +++ b/crates/swc_bundler/tests/fixture.rs @@ -153,6 +153,7 @@ impl swc_bundler::Hook for Hook { span, raw: None, value: file_name.into(), + lone_surrogates: false, }))), }, KeyValueProp { diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs index af7d6c2f5b05..a8c299377017 100644 --- a/crates/swc_ecma_ast/src/expr.rs +++ b/crates/swc_ecma_ast/src/expr.rs @@ -1199,6 +1199,15 @@ pub struct TplElement { /// You may need to perform. `.replace("\r\n", "\n").replace('\r', "\n")` on /// this value. pub raw: Atom, + + /// The string value contains lone surrogates. + /// + /// `cooked` is encoded with `\u{FFFD}` to mark the lone surrogate as an + /// escaped value. + /// + /// For example, a "\uD808" is a lone surrogate, and it's encoded as + /// `\u{FFFD}D808`. + pub lone_surrogates: bool, } impl Take for TplElement { @@ -1208,6 +1217,7 @@ impl Take for TplElement { tail: Default::default(), cooked: None, raw: Default::default(), + lone_surrogates: false, } } } @@ -1219,12 +1229,14 @@ impl<'a> arbitrary::Arbitrary<'a> for TplElement { let span = u.arbitrary()?; let cooked = Some(u.arbitrary::()?.into()); let raw = u.arbitrary::()?.into(); + let lone_surrogates = u.arbitrary::()?.into(); Ok(Self { span, tail: false, cooked, raw, + lone_surrogates, }) } } diff --git a/crates/swc_ecma_ast/src/lib.rs b/crates/swc_ecma_ast/src/lib.rs index 60291b480469..6735b7adb96e 100644 --- a/crates/swc_ecma_ast/src/lib.rs +++ b/crates/swc_ecma_ast/src/lib.rs @@ -571,7 +571,7 @@ mod rkyv_layout_assert { assert_size!(ArchivedTaggedTpl, 28); assert_size!(ArchivedThisExpr, 8); assert_size!(ArchivedTpl, 24); - assert_size!(ArchivedTplElement, 32); + assert_size!(ArchivedTplElement, 36); assert_size!(ArchivedUnaryExpr, 16); assert_size!(ArchivedUpdateExpr, 16); assert_size!(ArchivedYieldExpr, 20); @@ -616,7 +616,7 @@ mod rkyv_layout_assert { assert_size!(ArchivedNull, 8); assert_size!(ArchivedNumber, 32); assert_size!(ArchivedRegex, 24); - assert_size!(ArchivedStr, 28); + assert_size!(ArchivedStr, 32); // Module declaration types assert_size!(ArchivedDefaultDecl, 36); @@ -625,16 +625,16 @@ mod rkyv_layout_assert { assert_size!(ArchivedExportDefaultDecl, 44); assert_size!(ArchivedExportDefaultExpr, 12); assert_size!(ArchivedExportDefaultSpecifier, 24); - assert_size!(ArchivedExportNamedSpecifier, 80); - assert_size!(ArchivedExportNamespaceSpecifier, 40); - assert_size!(ArchivedExportSpecifier, 84); + assert_size!(ArchivedExportNamedSpecifier, 88); + assert_size!(ArchivedExportNamespaceSpecifier, 44); + assert_size!(ArchivedExportSpecifier, 92); assert_size!(ArchivedImportDecl, 36); assert_size!(ArchivedImportDefaultSpecifier, 32); - assert_size!(ArchivedImportNamedSpecifier, 72); - assert_size!(ArchivedImportSpecifier, 76); + assert_size!(ArchivedImportNamedSpecifier, 76); + assert_size!(ArchivedImportSpecifier, 80); assert_size!(ArchivedImportStarAsSpecifier, 32); assert_size!(ArchivedModuleDecl, 48); - assert_size!(ArchivedModuleExportName, 32); + assert_size!(ArchivedModuleExportName, 36); assert_size!(ArchivedNamedExport, 36); // Operator types @@ -700,17 +700,17 @@ mod rkyv_layout_assert { assert_size!(ArchivedTsConstructorType, 32); assert_size!(ArchivedTsEntityName, 28); assert_size!(ArchivedTsEnumDecl, 44); - assert_size!(ArchivedTsEnumMember, 48); - assert_size!(ArchivedTsEnumMemberId, 32); + assert_size!(ArchivedTsEnumMember, 52); + assert_size!(ArchivedTsEnumMemberId, 36); assert_size!(ArchivedTsExportAssignment, 12); assert_size!(ArchivedTsExprWithTypeArgs, 20); - assert_size!(ArchivedTsExternalModuleRef, 36); + assert_size!(ArchivedTsExternalModuleRef, 40); assert_size!(ArchivedTsFnOrConstructorType, 36); assert_size!(ArchivedTsFnParam, 36); assert_size!(ArchivedTsFnType, 28); assert_size!(ArchivedTsGetterSignature, 24); - assert_size!(ArchivedTsImportEqualsDecl, 76); - assert_size!(ArchivedTsImportType, 92); + assert_size!(ArchivedTsImportEqualsDecl, 80); + assert_size!(ArchivedTsImportType, 96); assert_size!(ArchivedTsIndexSignature, 28); assert_size!(ArchivedTsIndexedAccessType, 20); assert_size!(ArchivedTsInferType, 60); @@ -725,9 +725,9 @@ mod rkyv_layout_assert { assert_size!(ArchivedTsMappedType, 84); assert_size!(ArchivedTsMethodSignature, 40); assert_size!(ArchivedTsModuleBlock, 16); - assert_size!(ArchivedTsModuleDecl, 92); - assert_size!(ArchivedTsModuleName, 32); - assert_size!(ArchivedTsModuleRef, 40); + assert_size!(ArchivedTsModuleDecl, 96); + assert_size!(ArchivedTsModuleName, 36); + assert_size!(ArchivedTsModuleRef, 44); assert_size!(ArchivedTsNamespaceBody, 44); assert_size!(ArchivedTsNamespaceDecl, 40); assert_size!(ArchivedTsNamespaceExportDecl, 32); @@ -758,8 +758,8 @@ mod rkyv_layout_assert { assert_size!(ArchivedTsTypeParamDecl, 16); assert_size!(ArchivedTsTypeParamInstantiation, 16); assert_size!(ArchivedTsTypePredicate, 48); - assert_size!(ArchivedTsTypeQuery, 112); - assert_size!(ArchivedTsTypeQueryExpr, 96); + assert_size!(ArchivedTsTypeQuery, 116); + assert_size!(ArchivedTsTypeQueryExpr, 100); assert_size!(ArchivedTsTypeRef, 44); assert_size!(ArchivedTsUnionOrIntersectionType, 20); assert_size!(ArchivedTsUnionType, 16); diff --git a/crates/swc_ecma_ast/src/lit.rs b/crates/swc_ecma_ast/src/lit.rs index b2eb23046fbf..b31ff25bb4d9 100644 --- a/crates/swc_ecma_ast/src/lit.rs +++ b/crates/swc_ecma_ast/src/lit.rs @@ -190,6 +190,15 @@ pub struct Str { /// Use `None` value only for transformations to avoid recalculate escaped /// characters in strings pub raw: Option, + + /// The string value contains lone surrogates. + /// + /// `value` is encoded with `\u{FFFD}` to mark the lone surrogate as an + /// escaped value. + /// + /// For example, a "\uD808" is a lone surrogate, and it's encoded as + /// `\u{FFFD}D808`. + pub lone_surrogates: bool, } impl Take for Str { @@ -198,6 +207,7 @@ impl Take for Str { span: DUMMY_SP, value: atom!(""), raw: None, + lone_surrogates: false, } } } @@ -209,8 +219,14 @@ impl<'a> arbitrary::Arbitrary<'a> for Str { let span = u.arbitrary()?; let value = u.arbitrary::()?.into(); let raw = Some(u.arbitrary::()?.into()); + let lone_surrogates = u.arbitrary()?; - Ok(Self { span, value, raw }) + Ok(Self { + span, + value, + raw, + lone_surrogates, + }) } } @@ -282,6 +298,7 @@ impl From for Str { span: DUMMY_SP, value, raw: None, + lone_surrogates: false, } } } diff --git a/crates/swc_ecma_codegen/src/lit.rs b/crates/swc_ecma_codegen/src/lit.rs index 1ebe6497faf6..ebfe4a105f0e 100644 --- a/crates/swc_ecma_codegen/src/lit.rs +++ b/crates/swc_ecma_codegen/src/lit.rs @@ -53,6 +53,7 @@ impl MacroNode for Str { && self.raw.is_some() && self.raw.as_ref().unwrap().contains('\\') && (!emitter.cfg.inline_script || !self.raw.as_ref().unwrap().contains("script")) + && !self.lone_surrogates { emitter .wr @@ -65,7 +66,7 @@ impl MacroNode for Str { let target = emitter.cfg.target; - if !emitter.cfg.minify { + if !emitter.cfg.minify && !self.lone_surrogates { if let Some(raw) = &self.raw { let es5_safe = match emitter.cfg.target { EsVersion::Es3 | EsVersion::Es5 => { @@ -87,7 +88,12 @@ impl MacroNode for Str { } } - let (quote_char, mut value) = get_quoted_utf16(&self.value, emitter.cfg.ascii_only, target); + let (quote_char, mut value) = get_quoted_utf16( + &self.value, + self.lone_surrogates, + emitter.cfg.ascii_only, + target, + ); if emitter.cfg.inline_script { value = CowStr::Owned( @@ -312,7 +318,12 @@ where } /// Returns `(quote_char, value)` -pub fn get_quoted_utf16(v: &str, ascii_only: bool, target: EsVersion) -> (AsciiChar, CowStr) { +pub fn get_quoted_utf16( + v: &str, + lone_surrogates: bool, + ascii_only: bool, + target: EsVersion, +) -> (AsciiChar, CowStr) { // Fast path: If the string is ASCII and doesn't need escaping, we can avoid // allocation if v.is_ascii() { @@ -397,88 +408,21 @@ pub fn get_quoted_utf16(v: &str, ascii_only: bool, target: EsVersion) -> (AsciiC '\r' => buf.push_str("\\r"), '\u{000b}' => buf.push_str("\\v"), '\t' => buf.push('\t'), - '\\' => { - let next = iter.peek(); - match next { - Some('u') => { - let mut inner_iter = iter.clone(); - inner_iter.next(); - - let mut is_curly = false; - let mut next = inner_iter.peek(); - - if next == Some(&'{') { - is_curly = true; - inner_iter.next(); - next = inner_iter.peek(); - } else if next != Some(&'D') && next != Some(&'d') { - buf.push('\\'); - } - - if let Some(c @ 'D' | c @ 'd') = next { - let mut inner_buf = String::with_capacity(8); - inner_buf.push('\\'); - inner_buf.push('u'); - - if is_curly { - inner_buf.push('{'); - } - - inner_buf.push(*c); - inner_iter.next(); - - let mut is_valid = true; - for _ in 0..3 { - match inner_iter.next() { - Some(c @ '0'..='9') | Some(c @ 'a'..='f') - | Some(c @ 'A'..='F') => { - inner_buf.push(c); - } - _ => { - is_valid = false; - break; - } - } - } - - if is_curly { - inner_buf.push('}'); - } - - let range = if is_curly { - 3..(inner_buf.len() - 1) - } else { - 2..6 - }; - - if is_valid { - let val_str = &inner_buf[range]; - if let Ok(v) = u32::from_str_radix(val_str, 16) { - if v > 0xffff { - buf.push_str(&inner_buf); - let end = if is_curly { 7 } else { 5 }; - for _ in 0..end { - iter.next(); - } - } else if (0xd800..=0xdfff).contains(&v) { - buf.push('\\'); - } else { - buf.push_str("\\\\"); - } - } else { - buf.push_str("\\\\"); - } - } else { - buf.push_str("\\\\"); - } - } else if is_curly { - buf.push_str("\\\\"); - } else { - buf.push('\\'); - } - } - _ => buf.push_str("\\\\"), - } + '\\' => buf.push_str("\\\\"), + '\u{FFFD}' if lone_surrogates => { + // If the string contains any lone surrogate, + // then '\u{FFFD}' is used to escape the lone surrogate. + // For example `\uD800` is escaped to `\u{FFFD}D800`. + + // Restore 4 hex characters + // SAFETY: `\u{FFFD}` should always have 4 trailing hex + // characters if the string contains any lone surrogate. + let hex1 = iter.next().unwrap(); + let hex2 = iter.next().unwrap(); + let hex3 = iter.next().unwrap(); + let hex4 = iter.next().unwrap(); + + buf.extend(['\\', 'u', hex1, hex2, hex3, hex4]); } c if c == escape_char => { buf.push('\\'); diff --git a/crates/swc_ecma_codegen/src/tests.rs b/crates/swc_ecma_codegen/src/tests.rs index 108b89cf80e9..b83c0f811f1d 100644 --- a/crates/swc_ecma_codegen/src/tests.rs +++ b/crates/swc_ecma_codegen/src/tests.rs @@ -596,7 +596,7 @@ fn test_get_quoted_utf16() { #[track_caller] fn es2020(src: &str, expected: &str) { assert_eq!( - combine(get_quoted_utf16(src, true, EsVersion::Es2020)), + combine(get_quoted_utf16(src, false, true, EsVersion::Es2020)), expected ) } @@ -604,7 +604,7 @@ fn test_get_quoted_utf16() { #[track_caller] fn es2020_nonascii(src: &str, expected: &str) { assert_eq!( - combine(get_quoted_utf16(src, true, EsVersion::Es2020)), + combine(get_quoted_utf16(src, false, true, EsVersion::Es2020)), expected ) } @@ -612,7 +612,7 @@ fn test_get_quoted_utf16() { #[track_caller] fn es5(src: &str, expected: &str) { assert_eq!( - combine(get_quoted_utf16(src, true, EsVersion::Es5)), + combine(get_quoted_utf16(src, false, true, EsVersion::Es5)), expected ) } @@ -681,7 +681,7 @@ fn issue_1619_2() { #[test] fn issue_1619_3() { assert_eq!( - &*get_quoted_utf16("\x00\x31", true, EsVersion::Es3).1, + &*get_quoted_utf16("\x00\x31", false, true, EsVersion::Es3).1, "\\x001" ); } @@ -701,15 +701,15 @@ fn check_latest(src: &str, expected: &str) { #[test] fn invalid_unicode_in_ident() { - check_latest("\\ud83d;", "\\ud83d;"); + check_latest("\\ud83d;", "\u{FFFD}d83d;"); } #[test] fn test_escape_with_source_str() { - check_latest("'\\ud83d'", "'\\ud83d';"); + check_latest("'\\ud83d'", "\"\\ud83d\";"); check_latest( "'\\ud83d\\ud83d\\ud83d\\ud83d\\ud83d'", - "'\\ud83d\\ud83d\\ud83d\\ud83d\\ud83d';", + "\"\\ud83d\\ud83d\\ud83d\\ud83d\\ud83d\";", ); } diff --git a/crates/swc_ecma_codegen/tests/fixture/issue-10978/input.js b/crates/swc_ecma_codegen/tests/fixture/issue-10978/input.js new file mode 100644 index 000000000000..cdf2fe1cbfc8 --- /dev/null +++ b/crates/swc_ecma_codegen/tests/fixture/issue-10978/input.js @@ -0,0 +1,4 @@ +"\"\\\\uD83D\\\\uDD25\""; +"\"\\uD83D\\uDD25\""; +`\\uD83D\\uDD25`; +`\uD83D\uDD25`; diff --git a/crates/swc_ecma_codegen/tests/fixture/issue-10978/output.js b/crates/swc_ecma_codegen/tests/fixture/issue-10978/output.js new file mode 100644 index 000000000000..cdf2fe1cbfc8 --- /dev/null +++ b/crates/swc_ecma_codegen/tests/fixture/issue-10978/output.js @@ -0,0 +1,4 @@ +"\"\\\\uD83D\\\\uDD25\""; +"\"\\uD83D\\uDD25\""; +`\\uD83D\\uDD25`; +`\uD83D\uDD25`; diff --git a/crates/swc_ecma_codegen/tests/fixture/issue-10978/output.min.js b/crates/swc_ecma_codegen/tests/fixture/issue-10978/output.min.js new file mode 100644 index 000000000000..ada19f9f566e --- /dev/null +++ b/crates/swc_ecma_codegen/tests/fixture/issue-10978/output.min.js @@ -0,0 +1 @@ +'"\\\\uD83D\\\\uDD25"';'"\\uD83D\\uDD25"';`\\uD83D\\uDD25`;`\uD83D\uDD25`; diff --git a/crates/swc_ecma_codegen/tests/fixture/string/output.js b/crates/swc_ecma_codegen/tests/fixture/string/output.js index 7c28c3491033..4fe25a7bb955 100644 --- a/crates/swc_ecma_codegen/tests/fixture/string/output.js +++ b/crates/swc_ecma_codegen/tests/fixture/string/output.js @@ -67,14 +67,14 @@ const string61 = '\uABCD'; const string62 = '\U000123AB'; const string63 = '\u{123AB}'; const string64 = '\uD808\uDFAB'; -const string65 = '\uD808'; -const string66 = '\uD808X'; -const string67 = '\uDFAB'; -const string68 = '\uDFABX'; +const string65 = "\ud808"; +const string66 = "\ud808X"; +const string67 = "\udfab"; +const string68 = "\udfabX"; const string69 = '\x80'; const string70 = '\xFF'; const string71 = '\xF0\x9F\x8D\x95'; -const string72 = '\uD801\uDC02\uDC03\uD804'; +const string72 = "𐐂\udc03\ud804"; const string73 = 'π'; const 貓 = '🐈'; const 貓abc = '🐈'; @@ -107,22 +107,22 @@ const string98 = "\ud83d\ude00"; const string99 = "\ud83d@\ude00"; const string100 = "\a"; const string101 = "
"; -const string102 = "\uD800"; -const string103 = "\u{D800}"; -const string104 = "\uDBFF"; -const string105 = "\u{DBFF}"; -const string106 = "\uDC00"; -const string107 = "\u{DC00}"; -const string108 = "\uDFFF"; -const string109 = "\u{DFFF}"; +const string102 = "\ud800"; +const string103 = "\ud800"; +const string104 = "\udbff"; +const string105 = "\udbff"; +const string106 = "\udc00"; +const string107 = "\udc00"; +const string108 = "\udfff"; +const string109 = "\udfff"; const string110 = "\uFFFF"; const string111 = "\u{FFFF}"; const string112 = "\ud800"; -const string113 = "\uD800"; +const string113 = "\ud800"; React.createElement("div", null, "this should not parse as unicode: \\u00a0"); -const a = "\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc"; -const b = "A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff"; -var x = "\u{D800}"; -var x2 = "\u{D800}"; -var x3 = "\u{D800}\u{D800}"; +const a = "֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ"; +const b = "A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-￿"; +var x = "\ud800"; +var x2 = "\ud800"; +var x3 = "\ud800\ud800"; const zzz = "\0a"; diff --git a/crates/swc_ecma_codegen/tests/fixture/string/output.min.js b/crates/swc_ecma_codegen/tests/fixture/string/output.min.js index c500cab45a4b..cfaeedb3a061 100644 --- a/crates/swc_ecma_codegen/tests/fixture/string/output.min.js +++ b/crates/swc_ecma_codegen/tests/fixture/string/output.min.js @@ -1,3 +1,3 @@ import*as commonjsHelpers from"\0commonjsHelpers.js";const string1="test";const string2="test";const string3='te"st';const string4="te'st";const string5="test\ntest\ntest";const string6=`Yet another string primitive`;const string7="This is a very long string which needs to wrap across multiple lines because otherwise my code is unreadable.";const string8="中文 español English हिन्दी العربية português বাংলা русский 日本語 ਪੰਜਾਬੀ 한국어 தமிழ்";const string9=``;const string10=`xx\`x`;const string11=`${foo+2}`;const string12=` foo ${bar+`baz ${qux}`}`;const string13=String.raw`foo`;const string14=foo`bar`;const string15=`foo bar -ↂωↂ`;const string16=`\``;const string17=`${4+4} equals 4 + 4`;const string18=`This is ${undefined}`;const string19=`This is ${NaN}`;const string20=`This is ${null}`;const string21=`This is ${Infinity}`;const string22="This is ${1/0}";const string23="This is ${1/0}";const string24="This is ${NaN}";const string25="This is ${null}";const string26=`This is ${1/0}`;const string27=`This is ${0/0}`;const string28="This is ${0/0}";const string29="This is ${0/0}";const string30=`${4**11}`;const string31=`${4**12}`;const string32=`${4**14}`;const string33="";const string34="\b";const string35="\f";const string36=" ";const string37="\v";const string38="\n";const string39="\\n";const string40="\\";const string41='\\"';const string42="'\"";const string43="\\\\";const string44="\0";const string45="\0!";const string46="\x001";const string47="\\0";const string48="\\0!";const string49="\x07";const string50="\x07!";const string51="\x071";const string52="\x07";const string53="\\7";const string54="\\7!";const string55="\\01";const string56="\x10";const string57="\\x10";const string58="\x1b";const string59="\\x1B";const string60="ꯍ";const string61="ꯍ";const string62="U000123AB";const string63="𒎫";const string64="\uD808\uDFAB";const string65="\uD808";const string66="\uD808X";const string67="\uDFAB";const string68="\uDFABX";const string69="€";const string70="ÿ";const string71="🍕";const string72="\uD801\uDC02\uDC03\uD804";const string73="π";const 貓="🐈";const 貓abc="🐈";const abc貓="🐈";const string74="\u2028";const string75="\u2029";const string76="\uFEFF";const string77="\x10";const string78=" ";const string79=" ";const string80="2";const string81="\x16";const string82="\x06";const string83="\0a";const string84='"test"test"test';const string85="\"test'test'test";const string86='"test"test"test';const string87="'test'test'test";const string88="😄";const string89=new RegExp("\r").test("\r");const string90=new RegExp(" ").test(" ");const string91=new RegExp("\x1b").test("["+"\x1b"+"]");const string92=new RegExp("\\x1b").test("\x1b");const string93=new RegExp("\x1b").test("\x1b");const string94="퟿";const string95="ퟻ";const string96=sql`'#ERROR'`;const string97=" ";const string98="\ud83d\ude00";const string99="\ud83d@\ude00";const string100="a";const string101="\u2028";const string102="\uD800";const string103="\u{D800}";const string104="\uDBFF";const string105="\u{DBFF}";const string106="\uDC00";const string107="\u{DC00}";const string108="\uDFFF";const string109="\u{DFFF}";const string110="￿";const string111="￿";const string112="\ud800";const string113="\uD800";React.createElement("div",null,"this should not parse as unicode: \\u00a0");const a="֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ";const b="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-￿";var x="\u{D800}";var x2="\u{D800}";var x3="\u{D800}\u{D800}";const zzz="\0a"; +ↂωↂ`;const string16=`\``;const string17=`${4+4} equals 4 + 4`;const string18=`This is ${undefined}`;const string19=`This is ${NaN}`;const string20=`This is ${null}`;const string21=`This is ${Infinity}`;const string22="This is ${1/0}";const string23="This is ${1/0}";const string24="This is ${NaN}";const string25="This is ${null}";const string26=`This is ${1/0}`;const string27=`This is ${0/0}`;const string28="This is ${0/0}";const string29="This is ${0/0}";const string30=`${4**11}`;const string31=`${4**12}`;const string32=`${4**14}`;const string33="";const string34="\b";const string35="\f";const string36=" ";const string37="\v";const string38="\n";const string39="\\n";const string40="\\";const string41='\\"';const string42="'\"";const string43="\\\\";const string44="\0";const string45="\0!";const string46="\x001";const string47="\\0";const string48="\\0!";const string49="\x07";const string50="\x07!";const string51="\x071";const string52="\x07";const string53="\\7";const string54="\\7!";const string55="\\01";const string56="\x10";const string57="\\x10";const string58="\x1b";const string59="\\x1B";const string60="ꯍ";const string61="ꯍ";const string62="U000123AB";const string63="𒎫";const string64="𒎫";const string65="\ud808";const string66="\ud808X";const string67="\udfab";const string68="\udfabX";const string69="€";const string70="ÿ";const string71="🍕";const string72="𐐂\udc03\ud804";const string73="π";const 貓="🐈";const 貓abc="🐈";const abc貓="🐈";const string74="\u2028";const string75="\u2029";const string76="\uFEFF";const string77="\x10";const string78=" ";const string79=" ";const string80="2";const string81="\x16";const string82="\x06";const string83="\0a";const string84='"test"test"test';const string85="\"test'test'test";const string86='"test"test"test';const string87="'test'test'test";const string88="😄";const string89=new RegExp("\r").test("\r");const string90=new RegExp(" ").test(" ");const string91=new RegExp("\x1b").test("["+"\x1b"+"]");const string92=new RegExp("\\x1b").test("\x1b");const string93=new RegExp("\x1b").test("\x1b");const string94="퟿";const string95="ퟻ";const string96=sql`'#ERROR'`;const string97=" ";const string98="😀";const string99="\ud83d@\ude00";const string100="a";const string101="\u2028";const string102="\ud800";const string103="\ud800";const string104="\udbff";const string105="\udbff";const string106="\udc00";const string107="\udc00";const string108="\udfff";const string109="\udfff";const string110="￿";const string111="￿";const string112="\ud800";const string113="\ud800";React.createElement("div",null,"this should not parse as unicode: \\u00a0");const a="֑-ۯۺ-ࣿ‏\ud802-\ud803\ud83a-\ud83bיִ-﷿ﹰ-ﻼ";const b="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ऀ-῿‎Ⰰ-\ud801\ud804-\ud839\ud83c-\udbff豈-﬜︀-﹯﻽-￿";var x="\ud800";var x2="\ud800";var x3="\ud800\ud800";const zzz="\0a"; diff --git a/crates/swc_ecma_codegen/tests/fixture/template-literal/output.js b/crates/swc_ecma_codegen/tests/fixture/template-literal/output.js index b9529677fcd2..a0e0619139ef 100644 Binary files a/crates/swc_ecma_codegen/tests/fixture/template-literal/output.js and b/crates/swc_ecma_codegen/tests/fixture/template-literal/output.js differ diff --git a/crates/swc_ecma_codegen/tests/fixture/vercel/2/output.min.js b/crates/swc_ecma_codegen/tests/fixture/vercel/2/output.min.js index 7715f1f01994..950a5f49ab8c 100644 --- a/crates/swc_ecma_codegen/tests/fixture/vercel/2/output.min.js +++ b/crates/swc_ecma_codegen/tests/fixture/vercel/2/output.min.js @@ -5,4 +5,4 @@ function isUpdateAvailable(){// __webpack_hash__ is the hash of the current comp function canApplyUpdates(){return module.hot.status()==="idle"}// This function reads code updates on the fly and hard // reloads the page when it has changed. async function tryApplyUpdates(){if(!isUpdateAvailable()||!canApplyUpdates()){return}try{const res=await fetch(typeof __webpack_runtime_id__!=="undefined"?`${hotUpdatePath}${curHash}.${__webpack_runtime_id__}.hot-update.json`:`${hotUpdatePath}${curHash}.hot-update.json`);const jsonData=await res.json();const curPage=page==="/"?"index":page;// webpack 5 uses an array instead -const pageUpdated=(Array.isArray(jsonData.c)?jsonData.c:Object.keys(jsonData.c)).some(mod=>{return(mod.indexOf(`pages${curPage.startsWith("/")?curPage:`/${curPage}`}`)!==-1||mod.indexOf(`pages${curPage.startsWith("/")?curPage:`/${curPage}`}`.replace(/\//g,"\\"))!==-1)});if(pageUpdated){document.location.reload(true)}else{curHash=mostRecentHash}}catch(err){console.error("Error occurred checking for update",err);document.location.reload(true)}}addMessageListener(event=>{if(event.data==="\uD83D\uDC93"){return}try{const message=JSON.parse(event.data);if(message.action==="sync"||message.action==="built"){if(!message.hash){return}mostRecentHash=message.hash;tryApplyUpdates()}else if(message.action==="reloadPage"){document.location.reload(true)}}catch(ex){console.warn("Invalid HMR message: "+event.data+"\n"+ex)}});connectHMR({assetPrefix,path:"/_next/webpack-hmr"});displayContent();initOnDemandEntries(data.page); +const pageUpdated=(Array.isArray(jsonData.c)?jsonData.c:Object.keys(jsonData.c)).some(mod=>{return(mod.indexOf(`pages${curPage.startsWith("/")?curPage:`/${curPage}`}`)!==-1||mod.indexOf(`pages${curPage.startsWith("/")?curPage:`/${curPage}`}`.replace(/\//g,"\\"))!==-1)});if(pageUpdated){document.location.reload(true)}else{curHash=mostRecentHash}}catch(err){console.error("Error occurred checking for update",err);document.location.reload(true)}}addMessageListener(event=>{if(event.data==="💓"){return}try{const message=JSON.parse(event.data);if(message.action==="sync"||message.action==="built"){if(!message.hash){return}mostRecentHash=message.hash;tryApplyUpdates()}else if(message.action==="reloadPage"){document.location.reload(true)}}catch(ex){console.warn("Invalid HMR message: "+event.data+"\n"+ex)}});connectHMR({assetPrefix,path:"/_next/webpack-hmr"});displayContent();initOnDemandEntries(data.page); diff --git a/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs b/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs index e6b35370283f..82843c1b398b 100644 --- a/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs +++ b/crates/swc_ecma_compat_es2015/src/block_scoping/mod.rs @@ -782,6 +782,7 @@ impl VisitMut for FlowHelper<'_> { span, value, raw: None, + lone_surrogates: false, }) .into(), ), @@ -808,6 +809,7 @@ impl VisitMut for FlowHelper<'_> { span, value, raw: None, + lone_surrogates: false, }) .into(), ), diff --git a/crates/swc_ecma_compat_es2015/src/classes/mod.rs b/crates/swc_ecma_compat_es2015/src/classes/mod.rs index f61a92c14876..5993664fe87e 100644 --- a/crates/swc_ecma_compat_es2015/src/classes/mod.rs +++ b/crates/swc_ecma_compat_es2015/src/classes/mod.rs @@ -567,6 +567,7 @@ impl Classes { span: DUMMY_SP, value: atom!("use strict"), raw: Some(atom!("\"use strict\"")), + lone_surrogates: false, }) .into_stmt(), ); @@ -628,6 +629,7 @@ impl Classes { PropName::BigInt(b) => Str { span: b.span, raw: None, + lone_surrogates: false, value: b.value.to_string().into(), } .into(), @@ -652,6 +654,7 @@ impl Classes { expr: Str { span: b.span, raw: None, + lone_surrogates: false, value: b.value.to_string().into(), } .into(), diff --git a/crates/swc_ecma_compat_es2015/src/computed_props.rs b/crates/swc_ecma_compat_es2015/src/computed_props.rs index e63e5c9dc3d6..b9fff9ba5f69 100644 --- a/crates/swc_ecma_compat_es2015/src/computed_props.rs +++ b/crates/swc_ecma_compat_es2015/src/computed_props.rs @@ -134,6 +134,7 @@ impl VisitMut for ComputedProps { Lit::Str(Str { span: ident.span, raw: None, + lone_surrogates: false, value: ident.sym.clone(), }) .into() @@ -414,6 +415,7 @@ fn prop_name_to_expr(p: PropName, loose: bool) -> (Expr, bool) { } else { Lit::Str(Str { raw: None, + lone_surrogates: false, value: i.sym, span: i.span, }) diff --git a/crates/swc_ecma_compat_es2015/src/duplicate_keys.rs b/crates/swc_ecma_compat_es2015/src/duplicate_keys.rs index c97454b93975..340e8c53cd82 100644 --- a/crates/swc_ecma_compat_es2015/src/duplicate_keys.rs +++ b/crates/swc_ecma_compat_es2015/src/duplicate_keys.rs @@ -106,6 +106,7 @@ impl VisitMut for PropNameFolder<'_> { expr: Lit::Str(Str { span, raw: None, + lone_surrogates: false, value: ident.sym.clone(), }) .into(), diff --git a/crates/swc_ecma_compat_es2015/src/object_super.rs b/crates/swc_ecma_compat_es2015/src/object_super.rs index 85b4fea6d3f1..5314eb47c186 100644 --- a/crates/swc_ecma_compat_es2015/src/object_super.rs +++ b/crates/swc_ecma_compat_es2015/src/object_super.rs @@ -194,6 +194,7 @@ impl SuperReplacer { sym: value, span, .. }) => Lit::Str(Str { raw: None, + lone_surrogates: false, value, span, }) diff --git a/crates/swc_ecma_compat_es2015/src/template_literal.rs b/crates/swc_ecma_compat_es2015/src/template_literal.rs index fc17ac3c8b08..407f0a07b15d 100644 --- a/crates/swc_ecma_compat_es2015/src/template_literal.rs +++ b/crates/swc_ecma_compat_es2015/src/template_literal.rs @@ -64,11 +64,13 @@ impl VisitMut for TemplateLiteral { .cooked .clone() .unwrap_or_else(|| quasis[0].raw.clone()); + let ls = quasis[0].lone_surrogates; Str { span: quasis[0].span, value: Atom::from(&*s), raw: None, + lone_surrogates: ls, } }) .into(), @@ -91,7 +93,11 @@ impl VisitMut for TemplateLiteral { // Quasis match quasis.next() { Some(TplElement { - span, cooked, raw, .. + span, + cooked, + raw, + lone_surrogates, + .. }) => { let s = cooked.clone().unwrap_or_else(|| raw.clone()); @@ -100,6 +106,7 @@ impl VisitMut for TemplateLiteral { span: *span, value: (&*s).into(), raw: None, + lone_surrogates: *lone_surrogates, }) .into(), ) @@ -123,23 +130,37 @@ impl VisitMut for TemplateLiteral { }; if !is_empty && args.is_empty() { - if let Expr::Lit(Lit::Str(Str { span, value, raw })) = *obj { + if let Expr::Lit(Lit::Str(Str { + span, + value, + raw, + lone_surrogates, + })) = *obj + { match *expr { Expr::Lit(Lit::Str(Str { span: r_span, value: r_value, + lone_surrogates: r_ls, .. })) => { obj = Lit::Str(Str { span: span.with_hi(r_span.hi()), raw: None, value: format!("{value}{r_value}").into(), + lone_surrogates: lone_surrogates || r_ls, }) .into(); continue; } _ => { - obj = Lit::Str(Str { span, raw, value }).into(); + obj = Lit::Str(Str { + span, + raw, + value, + lone_surrogates, + }) + .into(); } } } diff --git a/crates/swc_ecma_compat_es2018/src/object_rest.rs b/crates/swc_ecma_compat_es2018/src/object_rest.rs index ca43ed2ddf82..5a25f9977880 100644 --- a/crates/swc_ecma_compat_es2018/src/object_rest.rs +++ b/crates/swc_ecma_compat_es2018/src/object_rest.rs @@ -730,7 +730,9 @@ impl ObjectRest { expr: Lit::Str(Str { span, raw: None, + value: format!("{value}").into(), + lone_surrogates: false, }) .into(), }), @@ -747,6 +749,7 @@ impl ObjectRest { span, raw: None, value: format!("{value}").into(), + lone_surrogates: false, }) .into(), }), @@ -895,6 +898,7 @@ fn object_without_properties( span, raw: None, value: value.to_string().into(), + lone_surrogates: false, }) .into(), ..v @@ -948,6 +952,7 @@ fn excluded_props(props: &[ObjectPatProp]) -> Vec> { PropName::Ident(ident) => Lit::Str(Str { span: ident.span, raw: None, + lone_surrogates: false, value: ident.sym.clone(), }) .as_arg(), @@ -955,13 +960,17 @@ fn excluded_props(props: &[ObjectPatProp]) -> Vec> { PropName::Num(Number { span, value, .. }) => Lit::Str(Str { span: *span, raw: None, + value: format!("{value}").into(), + lone_surrogates: false, }) .as_arg(), PropName::BigInt(BigInt { span, value, .. }) => Lit::Str(Str { span: *span, raw: None, + value: format!("{value}").into(), + lone_surrogates: false, }) .as_arg(), PropName::Computed(c) => c.expr.clone().as_arg(), @@ -969,6 +978,7 @@ fn excluded_props(props: &[ObjectPatProp]) -> Vec> { ObjectPatProp::Assign(AssignPatProp { key, .. }) => Lit::Str(Str { span: key.span, raw: None, + lone_surrogates: false, value: key.sym.clone(), }) .as_arg(), diff --git a/crates/swc_ecma_compat_es2022/src/class_properties/class_name_tdz.rs b/crates/swc_ecma_compat_es2022/src/class_properties/class_name_tdz.rs index 3302d644fc8a..7616adbb2201 100644 --- a/crates/swc_ecma_compat_es2022/src/class_properties/class_name_tdz.rs +++ b/crates/swc_ecma_compat_es2022/src/class_properties/class_name_tdz.rs @@ -28,6 +28,7 @@ impl VisitMut for ClassNameTdzFolder<'_> { args: vec![Str { span: i.span, raw: None, + lone_surrogates: false, value: i.sym.clone(), } .as_arg()], diff --git a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs index b29b0bde5de2..1ebf0ba91c1a 100644 --- a/crates/swc_ecma_compat_es3/src/member_expr_lits.rs +++ b/crates/swc_ecma_compat_es3/src/member_expr_lits.rs @@ -45,6 +45,7 @@ impl Fold for MemberExprLit { expr: Lit::Str(Str { span: i.span, raw: None, + lone_surrogates: false, value: i.sym, }) .into(), diff --git a/crates/swc_ecma_compat_es3/src/prop_lits.rs b/crates/swc_ecma_compat_es3/src/prop_lits.rs index 81d2e213eadd..470256b90614 100644 --- a/crates/swc_ecma_compat_es3/src/prop_lits.rs +++ b/crates/swc_ecma_compat_es3/src/prop_lits.rs @@ -48,7 +48,12 @@ impl Fold for PropertyLiteral { raw, value, span, .. }) => { if value.is_reserved() || !is_valid_ident(&value) { - PropName::Str(Str { span, raw, value }) + PropName::Str(Str { + span, + raw, + value, + lone_surrogates: false, + }) } else { PropName::Ident(IdentName::new(value, span)) } @@ -59,6 +64,7 @@ impl Fold for PropertyLiteral { PropName::Str(Str { span, raw: None, + lone_surrogates: false, value: sym, }) } else { diff --git a/crates/swc_ecma_lexer/src/common/lexer/mod.rs b/crates/swc_ecma_lexer/src/common/lexer/mod.rs index 7be808407c43..b59307183d75 100644 --- a/crates/swc_ecma_lexer/src/common/lexer/mod.rs +++ b/crates/swc_ecma_lexer/src/common/lexer/mod.rs @@ -62,6 +62,38 @@ static NOT_ASCII_ID_CONTINUE_TABLE: SafeByteMatchTable = static TEMPLATE_LITERAL_TABLE: SafeByteMatchTable = safe_byte_match_table!(|b| matches!(b, b'$' | b'`' | b'\\' | b'\r')); +/// Converts UTF-16 surrogate pair to Unicode code point. +/// `https://tc39.es/ecma262/#sec-utf16decodesurrogatepair` +#[inline] +const fn pair_to_code_point(high: u32, low: u32) -> u32 { + (high - 0xd800) * 0x400 + low - 0xdc00 + 0x10000 +} + +/// A Unicode escape sequence. +/// +/// `\u Hex4Digits`, `\u Hex4Digits \u Hex4Digits`, or `\u{ HexDigits }`. +pub enum UnicodeEscape { + // `\u Hex4Digits` or `\u{ HexDigits }`, which forms a valid Unicode code point. + // Char cannot be in range 0xD800..=0xDFFF. + CodePoint(char), + // `\u Hex4Digits \u Hex4Digits`, which forms a valid Unicode astral code point. + // Char is in the range 0x10000..=0x10FFFF. + SurrogatePair(char), + // `\u Hex4Digits` or `\u{ HexDigits }`, which forms an invalid Unicode code point. + // Code unit is in the range 0xD800..=0xDFFF. + LoneSurrogate(u32), +} + +/// An escaped character. +/// +/// The character can either be a valid Unicode character and a lone surrogate. +pub enum EscapedChar { + /// A valid Unicode character. + Char(Char), + /// A lone surrogate character, like `\u{D800}` or `\uD800`. + LoneSurrogate(u32), +} + pub type LexResult = Result; fn remove_underscore(s: &str, has_underscore: bool) -> Cow<'_, str> { @@ -1116,13 +1148,76 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { self.input_slice(start, end) }; let raw = self.atom(raw); - Ok(Self::Token::str(value, raw, self)) + Ok(Self::Token::str( + value, raw, /* lone surrogate */ false, self, + )) + } + + // Modified based on + /// Unicode code unit (`\uXXXX`). + /// + /// The opening `\u` must already have been consumed before calling this + /// method. + /// + /// See background info on surrogate pairs: + /// * `https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae` + /// * `https://mathiasbynens.be/notes/javascript-identifiers-es6` + fn read_unicode_code_unit(&mut self) -> LexResult> { + const MIN_HIGH: u32 = 0xd800; + const MAX_HIGH: u32 = 0xdbff; + const MIN_LOW: u32 = 0xdc00; + const MAX_LOW: u32 = 0xdfff; + + let Some(high) = self.read_int_u32::<16>(4)? else { + return Ok(None); + }; + if let Some(ch) = char::from_u32(high) { + return Ok(Some(UnicodeEscape::CodePoint(ch))); + } + + // The first code unit of a surrogate pair is always in the range from 0xD800 to + // 0xDBFF, and is called a high surrogate or a lead surrogate. + // Note: `high` must be >= `MIN_HIGH`, otherwise `char::from_u32` would have + // returned `Some`, and already exited. + debug_assert!(high >= MIN_HIGH); + let is_pair = high <= MAX_HIGH + && self.input().cur() == Some('\\') + && self.input().peek() == Some('u'); + if !is_pair { + return Ok(Some(UnicodeEscape::LoneSurrogate(high))); + } + + let before_second = self.input().cur_pos(); + + // Bump `\u` + self.input_mut().bump_bytes(2); + + let Some(low) = self.read_int_u32::<16>(4)? else { + return Ok(None); + }; + + // The second code unit of a surrogate pair is always in the range from 0xDC00 + // to 0xDFFF, and is called a low surrogate or a trail surrogate. + // If this isn't a valid pair, rewind to before the 2nd, and return the first + // only. The 2nd could be the first part of a valid pair. + if !(MIN_LOW..=MAX_LOW).contains(&low) { + unsafe { + // Safety: state is valid position because we got it from cur_pos() + self.input_mut().reset_to(before_second); + } + return Ok(Some(UnicodeEscape::LoneSurrogate(high))); + } + + let code_point = pair_to_code_point(high, low); + // SAFETY: `high` and `low` have been checked to be in ranges which always yield + // a `code_point` which is a valid `char` + let ch = unsafe { char::from_u32_unchecked(code_point) }; + Ok(Some(UnicodeEscape::SurrogatePair(ch))) } - fn read_unicode_escape(&mut self) -> LexResult> { + fn read_unicode_escape(&mut self) -> LexResult { debug_assert_eq!(self.cur(), Some('u')); - let mut chars = Vec::with_capacity(4); let mut is_curly = false; self.bump(); // 'u' @@ -1169,7 +1264,11 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { match c { Some(c) => { - chars.push(c.into()); + if is_curly && !self.eat(b'}') { + self.error(state, SyntaxError::InvalidUnicodeEscape)? + } + + Ok(UnicodeEscape::CodePoint(c)) } _ => { unsafe { @@ -1177,44 +1276,26 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { self.input_mut().reset_to(state); } - chars.push(Char::from('\\')); - chars.push(Char::from('u')); - - if is_curly { - chars.push(Char::from('{')); - - for _ in 0..6 { - if let Some(c) = self.input().cur() { - if c == '}' { - break; - } - - self.bump(); - - chars.push(Char::from(c)); - } else { - break; - } - } - - chars.push(Char::from('}')); - } else { - for _ in 0..4 { - if let Some(c) = self.input().cur() { - self.bump(); + let Some(value) = self.read_unicode_code_unit()? else { + self.error( + state, + SyntaxError::BadCharacterEscapeSequence { + expected: if is_curly { + "1-6 hex characters" + } else { + "4 hex characters" + }, + }, + )? + }; - chars.push(Char::from(c)); - } - } + if is_curly && !self.eat(b'}') { + self.error(state, SyntaxError::InvalidUnicodeEscape)? } - } - } - if is_curly && !self.eat(b'}') { - self.error(state, SyntaxError::InvalidUnicodeEscape)? + Ok(value) + } } - - Ok(chars) } #[cold] @@ -1233,6 +1314,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { let mut cooked = Ok(String::new()); let mut cooked_slice_start = start; + let mut contains_lone_surrogates = false; let raw_slice_start = start; macro_rules! consume_cooked { @@ -1298,7 +1380,12 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { self.input_slice(raw_slice_start, end) }; let raw = self.atom(raw); - return Ok(Self::Token::template(cooked, raw, self)); + return Ok(Self::Token::template( + cooked, + raw, + contains_lone_surrogates, + self, + )); } else { // Just a regular $ character, continue scanning self.bump(); @@ -1319,7 +1406,12 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { let end = self.input().cur_pos(); let raw = unsafe { self.input_slice(raw_slice_start, end) }; let raw = self.atom(raw); - return Ok(Self::Token::template(cooked, raw, self)); + return Ok(Self::Token::template( + cooked, + raw, + contains_lone_surrogates, + self, + )); } b'\r' => { // Handle carriage return line terminator @@ -1342,10 +1434,22 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { consume_cooked!(); match self.read_escaped_char(true) { - Ok(Some(chars)) => { + Ok(Some(escaped)) => { if let Ok(ref mut cooked) = cooked { - for c in chars { - cooked.extend(c); + match escaped { + EscapedChar::Char(ch) => { + cooked.extend(ch); + } + EscapedChar::LoneSurrogate(ch) => { + contains_lone_surrogates |= true; + // Following what we did in string literals, + // this need to be restored in the following optimization + // parts if you're going to use the cooked value. + // For example, merging two lone surrogates + // `TemplateElement` into a surrogate + // pair. + cooked.push_str(format!("\u{FFFD}{ch:04x}").as_str()); + } } } } @@ -1365,7 +1469,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { /// Read an escaped character for string literal. /// /// In template literal, we should preserve raw string. - fn read_escaped_char(&mut self, in_template: bool) -> LexResult>> { + fn read_escaped_char(&mut self, in_template: bool) -> LexResult> { debug_assert_eq!(self.cur(), Some('\\')); let start = self.cur_pos(); @@ -1403,7 +1507,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { self.bump(); // 'x' match self.read_int_u32::<16>(2)? { - Some(val) => return Ok(Some(vec![Char::from(val)])), + Some(val) => return Ok(Some(EscapedChar::Char(Char::from(val)))), None => self.error( start, SyntaxError::BadCharacterEscapeSequence { @@ -1415,7 +1519,26 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { // read unicode escape sequences 'u' => match self.read_unicode_escape() { - Ok(chars) => return Ok(Some(chars)), + Ok(value) => match value { + UnicodeEscape::CodePoint(ch) | UnicodeEscape::SurrogatePair(ch) => { + if ch == '\u{FFFD}' { + // `\uFFFD` is used to escape lone surrogates in the string literal. + // + // To avoid any confusion, we will treat the user input `\uFFFD` + // character as a lone surrogate. Because we don't even know if there's + // any upcoming lone surrogates in the same string literal. + // + // And if we don't treat it as a lone surrogate, then the upcoming lone + // surrogate will be translated to `\uFFFDXXXX` and we will not be able + // to distinguish them afterwards. + return Ok(Some(EscapedChar::LoneSurrogate(ch as u32))); + } + return Ok(Some(EscapedChar::Char(ch.into()))); + } + UnicodeEscape::LoneSurrogate(ch) => { + return Ok(Some(EscapedChar::LoneSurrogate(ch))); + } + }, Err(err) => self.error(start, err.into_kind())?, }, @@ -1427,7 +1550,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { match self.cur() { Some(next) if next.is_digit(8) => c, // \0 is not an octal literal nor decimal literal. - _ => return Ok(Some(vec!['\u{0000}'.into()])), + _ => return Ok(Some(EscapedChar::Char('\u{0000}'.into()))), } } else { c @@ -1454,7 +1577,11 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { .and_then(|value| value.checked_add(v as u8)); match new_val { Some(val) => val, - None => return Ok(Some(vec![Char::from(value as char)])), + None => { + return Ok(Some(EscapedChar::Char(Char::from( + value as u32, + )))) + } } } else { value * 8 + v as u8 @@ -1462,7 +1589,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { self.bump(); } - _ => return Ok(Some(vec![Char::from(value as u32)])), + _ => return Ok(Some(EscapedChar::Char(Char::from(value as u32)))), } }}; } @@ -1470,7 +1597,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { one!(false); one!(true); - return Ok(Some(vec![Char::from(value as char)])); + return Ok(Some(EscapedChar::Char(Char::from(value as u32)))); } _ => c, }; @@ -1480,7 +1607,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { self.input_mut().bump(); } - Ok(Some(vec![c.into()])) + Ok(Some(EscapedChar::Char(Char::from(c as u32)))) } /// Expects current char to be '/' @@ -1665,23 +1792,44 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { } } - let chars = self.read_unicode_escape()?; - - if let Some(c) = chars.first() { - let valid = if first { - c.is_ident_start() - } else { - c.is_ident_part() - }; - - if !valid { + let value = self.read_unicode_escape()?; + match value { + UnicodeEscape::CodePoint(ch) => { + let ch = Char::from(ch); + let valid = if first { + ch.is_ident_start() + } else { + ch.is_ident_part() + }; + if !valid { + self.emit_error(start, SyntaxError::InvalidIdentChar); + } + buf.extend(ch); + } + UnicodeEscape::SurrogatePair(ch) => { + buf.extend(Char::from(ch)); self.emit_error(start, SyntaxError::InvalidIdentChar); } - } - - for c in chars { - buf.extend(c); - } + UnicodeEscape::LoneSurrogate(ch) => { + // Lone surrogates can be stored in UTF-16 context like how strings are + // stored in JavaScript. So this is not a problem in JavaScript. + // + // Hoever, in Rust, strings need to be valid UTF-8 sequence which, with + // regard to its nature, these lone surrogates are invalid sequences. + // + // Here, instead of chaning the current `StringLiteral` implementation, + // we use `\u{FFFD}`(Replacement Character) to escape lone surrogates by + // appending the 4 hex values to the char and mark the whole + // `StringLiteral` as it contains lone surrogates. So that we can + // restore the correct codepoint in the following optimization phase. + // + // For example: + // * for a lone surrogate `\uD800`, + // we use sym: `\u{FFFD}D880` as the value. + buf.push_str(format!("\u{FFFD}{ch:04x}").as_str()); + self.emit_error(start, SyntaxError::InvalidIdentChar); + } + }; slice_start = self.cur_pos(); continue; @@ -1966,6 +2114,8 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { let mut buf: Option = None; + let mut contains_lone_surrogates = false; + loop { let table = if quote == b'"' { &DOUBLE_QUOTE_STRING_END_TABLE @@ -1988,9 +2138,10 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { let end = self.cur_pos(); let raw = unsafe { self.input_slice(start, end) }; - return Ok(Self::Token::str(self.atom(s), self.atom(raw), self)); + return Ok(Self::Token::str(self.atom(s), self.atom(raw), contains_lone_surrogates, self)); }, }; + // dbg!(char::from_u32(fast_path_result as u32)); match fast_path_result { b'"' | b'\'' if fast_path_result == quote => { @@ -2023,7 +2174,7 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { self.input_slice(start, end) }; let raw = self.atom(raw); - return Ok(Self::Token::str(value, raw, self)); + return Ok(Self::Token::str(value, raw, contains_lone_surrogates, self)); } b'\\' => { let end = self.cur_pos(); @@ -2039,9 +2190,18 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { buf.as_mut().unwrap().push_str(s); } - if let Some(chars) = self.read_escaped_char(false)? { - for c in chars { - buf.as_mut().unwrap().extend(c); + if let Some(escaped) = self.read_escaped_char(false)? { + match escaped { + EscapedChar::Char(ch) => buf.as_mut().unwrap().extend(ch), + EscapedChar::LoneSurrogate(ch) => { + // Mark the whole string literal as it contains lone surrogates + // so that we can restore the correct codepoint in the following + // optimization parts + contains_lone_surrogates |= true; + buf.as_mut() + .unwrap() + .push_str(format!("\u{FFFD}{ch:04x}").as_str()); + } } } @@ -2065,7 +2225,12 @@ pub trait Lexer<'a, TokenAndSpan>: Tokens + Sized { // `self.input` self.input_slice(start, end) }; - return Ok(Self::Token::str(self.atom(s), self.atom(raw), self)); + return Ok(Self::Token::str( + self.atom(s), + self.atom(raw), + contains_lone_surrogates, + self, + )); } _ => self.bump(), } diff --git a/crates/swc_ecma_lexer/src/common/lexer/token.rs b/crates/swc_ecma_lexer/src/common/lexer/token.rs index b068a4a3f8ac..0b350511ae6d 100644 --- a/crates/swc_ecma_lexer/src/common/lexer/token.rs +++ b/crates/swc_ecma_lexer/src/common/lexer/token.rs @@ -154,14 +154,19 @@ pub trait TokenFactory<'a, TokenAndSpan, I: Tokens>: Sized + Parti fn is_jsx_name(&self) -> bool; fn take_jsx_name(self, buffer: &mut Self::Buffer) -> Atom; - fn str(value: Atom, raw: Atom, lexer: &mut Self::Lexer) -> Self; + fn str(value: Atom, raw: Atom, lone_surrogates: bool, lexer: &mut Self::Lexer) -> Self; fn is_str(&self) -> bool; fn is_str_raw_content(&self, content: &str, buffer: &Self::Buffer) -> bool; - fn take_str(self, buffer: &mut Self::Buffer) -> (Atom, Atom); + fn take_str(self, buffer: &mut Self::Buffer) -> (Atom, Atom, bool); - fn template(cooked: LexResult, raw: Atom, lexer: &mut Self::Lexer) -> Self; + fn template( + cooked: LexResult, + raw: Atom, + lone_surrogates: bool, + lexer: &mut Self::Lexer, + ) -> Self; fn is_template(&self) -> bool; - fn take_template(self, buffer: &mut Self::Buffer) -> (LexResult, Atom); + fn take_template(self, buffer: &mut Self::Buffer) -> (LexResult, Atom, bool); fn jsx_text(value: Atom, raw: Atom, lexer: &mut Self::Lexer) -> Self; fn is_jsx_text(&self) -> bool; diff --git a/crates/swc_ecma_lexer/src/common/parser/buffer.rs b/crates/swc_ecma_lexer/src/common/parser/buffer.rs index b681f53995d3..c02cc546b62e 100644 --- a/crates/swc_ecma_lexer/src/common/parser/buffer.rs +++ b/crates/swc_ecma_lexer/src/common/parser/buffer.rs @@ -55,10 +55,10 @@ pub trait Buffer<'a> { fn bump(&mut self); fn expect_word_token_and_bump(&mut self) -> Atom; fn expect_number_token_and_bump(&mut self) -> (f64, Atom); - fn expect_string_token_and_bump(&mut self) -> (Atom, Atom); + fn expect_string_token_and_bump(&mut self) -> (Atom, Atom, bool); fn expect_bigint_token_and_bump(&mut self) -> (Box, Atom); fn expect_regex_token_and_bump(&mut self) -> (Atom, Atom); - fn expect_template_token_and_bump(&mut self) -> (LexResult, Atom); + fn expect_template_token_and_bump(&mut self) -> (LexResult, Atom, bool); fn expect_error_token_and_bump(&mut self) -> crate::error::Error; fn expect_jsx_name_token_and_bump(&mut self) -> Atom; fn expect_jsx_text_token_and_bump(&mut self) -> (Atom, Atom); diff --git a/crates/swc_ecma_lexer/src/common/parser/expr.rs b/crates/swc_ecma_lexer/src/common/parser/expr.rs index 8a74f6fb7899..249f3deff58a 100644 --- a/crates/swc_ecma_lexer/src/common/parser/expr.rs +++ b/crates/swc_ecma_lexer/src/common/parser/expr.rs @@ -226,11 +226,12 @@ pub fn parse_str_lit<'a>(p: &mut impl Parser<'a>) -> swc_ecma_ast::Str { debug_assert!(p.input().cur().is_str()); let token_and_span = p.input().get_cur(); let start = token_and_span.span().lo; - let (value, raw) = p.input_mut().expect_string_token_and_bump(); + let (value, raw, lone_surrogates) = p.input_mut().expect_string_token_and_bump(); swc_ecma_ast::Str { span: p.span(start), value, raw: Some(raw), + lone_surrogates, } } diff --git a/crates/swc_ecma_lexer/src/common/parser/mod.rs b/crates/swc_ecma_lexer/src/common/parser/mod.rs index e17910ad4e04..7746ad9696c7 100644 --- a/crates/swc_ecma_lexer/src/common/parser/mod.rs +++ b/crates/swc_ecma_lexer/src/common/parser/mod.rs @@ -322,13 +322,13 @@ pub trait Parser<'a>: Sized + Clone { fn parse_tpl_element(&mut self, is_tagged_tpl: bool) -> PResult { let start = self.cur_pos(); let cur = self.input().cur(); - let (raw, cooked) = if cur.is_template() { - let (cooked, raw) = self.input_mut().expect_template_token_and_bump(); + let (raw, cooked, lone_surrogates) = if cur.is_template() { + let (cooked, raw, lone_surrogates) = self.input_mut().expect_template_token_and_bump(); match cooked { - Ok(cooked) => (raw, Some(cooked)), + Ok(cooked) => (raw, Some(cooked), lone_surrogates), Err(err) => { if is_tagged_tpl { - (raw, None) + (raw, None, lone_surrogates) } else { return Err(err); } @@ -343,6 +343,7 @@ pub trait Parser<'a>: Sized + Clone { raw, tail, cooked, + lone_surrogates, }) } diff --git a/crates/swc_ecma_lexer/src/common/parser/typescript.rs b/crates/swc_ecma_lexer/src/common/parser/typescript.rs index ae2dc5f458ed..ac6aa82eb1d9 100644 --- a/crates/swc_ecma_lexer/src/common/parser/typescript.rs +++ b/crates/swc_ecma_lexer/src/common/parser/typescript.rs @@ -968,6 +968,7 @@ fn parse_ts_enum_member<'a, P: Parser<'a>>(p: &mut P) -> PResult { span, value: value.to_string().into(), raw: Some(new_raw.into()), + lone_surrogates: false, }) } else if cur.is_lbracket() { p.assert_and_bump(&P::Token::LBRACKET); @@ -2197,6 +2198,7 @@ fn parse_ts_import_type<'a, P: Parser<'a>>(p: &mut P) -> PResult { span: arg_span, value: atom!(""), raw: Some(atom!("\"\"")), + lone_surrogates: false, } }; diff --git a/crates/swc_ecma_lexer/src/input.rs b/crates/swc_ecma_lexer/src/input.rs index 42c650939d8a..ea178d2fa7c8 100644 --- a/crates/swc_ecma_lexer/src/input.rs +++ b/crates/swc_ecma_lexer/src/input.rs @@ -449,7 +449,7 @@ impl<'a, I: Tokens> crate::common::parser::buffer::Buffer<'a> for t.take_num(self) } - fn expect_string_token_and_bump(&mut self) -> (swc_atoms::Atom, swc_atoms::Atom) { + fn expect_string_token_and_bump(&mut self) -> (swc_atoms::Atom, swc_atoms::Atom, bool) { let t = self.bump(); t.take_str(self) } @@ -469,6 +469,7 @@ impl<'a, I: Tokens> crate::common::parser::buffer::Buffer<'a> for ) -> ( crate::common::lexer::LexResult, swc_atoms::Atom, + bool, ) { let t = self.bump(); t.take_template(self) diff --git a/crates/swc_ecma_lexer/src/lexer/tests.rs b/crates/swc_ecma_lexer/src/lexer/tests.rs index a2df8f425bd5..46e0f180c0cf 100644 --- a/crates/swc_ecma_lexer/src/lexer/tests.rs +++ b/crates/swc_ecma_lexer/src/lexer/tests.rs @@ -201,6 +201,7 @@ fn test262_lexer_error_0002() { Token::Str { value: atom!("use strict"), raw: atom!("'use\\x20strict'"), + lone_surrogates: false, } .span(0..15) .lb(), @@ -254,6 +255,7 @@ multiline`" Token::Template { cooked: Ok(atom!("this\nis\nmultiline")), raw: atom!("this\nis\nmultiline"), + lone_surrogates: false, }, tok!('`'), ] @@ -269,6 +271,7 @@ fn tpl_raw_unicode_escape() { Token::Template { cooked: Ok(format!("{}", '\u{0010}').into()), raw: atom!("\\u{0010}"), + lone_surrogates: false, }, tok!('`'), ] @@ -292,6 +295,7 @@ fn tpl_invalid_unicode_escape() { } )), raw: atom!("\\unicode"), + lone_surrogates: false, }, tok!('`'), ] @@ -311,6 +315,7 @@ fn tpl_invalid_unicode_escape() { } )), raw: atom!("\\u{"), + lone_surrogates: false, }, tok!('`'), ] @@ -330,6 +335,7 @@ fn tpl_invalid_unicode_escape() { } )), raw: atom!("\\xhex"), + lone_surrogates: false, }, tok!('`'), ] @@ -343,6 +349,7 @@ fn str_escape() { vec![Token::Str { value: atom!("\n"), raw: atom!("'\\n'"), + lone_surrogates: false, }] ); } @@ -354,6 +361,7 @@ fn str_escape_2() { vec![Token::Str { value: atom!("\\n"), raw: atom!("'\\\\n'"), + lone_surrogates: false, }] ); } @@ -365,6 +373,7 @@ fn str_escape_3() { vec![Token::Str { value: atom!("\x00"), raw: atom!("'\\x00'"), + lone_surrogates: false, }] ); } @@ -376,6 +385,7 @@ fn str_escape_hex() { vec![Token::Str { value: atom!("a"), raw: atom!("'\\x61'"), + lone_surrogates: false, } .span(0..6) .lb(),] @@ -389,6 +399,7 @@ fn str_escape_octal() { vec![Token::Str { value: atom!("Hello\nWorld"), raw: atom!("'Hello\\012World'"), + lone_surrogates: false, } .span(0..16) .lb(),] @@ -402,6 +413,7 @@ fn str_escape_unicode_long() { vec![Token::Str { value: atom!("4"), raw: atom!("'\\u{00000000034}'"), + lone_surrogates: false, } .span(0..17) .lb(),] @@ -759,6 +771,7 @@ fn str_lit() { vec![Token::Str { value: atom!("abcde"), raw: atom!("'abcde'"), + lone_surrogates: false, }], ); assert_eq!( @@ -766,6 +779,7 @@ fn str_lit() { vec![Token::Str { value: atom!("abcde"), raw: atom!("\"abcde\""), + lone_surrogates: false, }], ); assert_eq!( @@ -773,6 +787,7 @@ fn str_lit() { vec![Token::Str { value: atom!("русский"), raw: atom!("'русский'"), + lone_surrogates: false, }], ); assert_eq!( @@ -780,6 +795,7 @@ fn str_lit() { vec![Token::Str { value: atom!("2"), raw: atom!("'\\x32'"), + lone_surrogates: false, }], ); assert_eq!( @@ -787,6 +803,7 @@ fn str_lit() { vec![Token::Str { value: atom!("ᄑ"), raw: atom!("'\\u1111'"), + lone_surrogates: false, }], ); assert_eq!( @@ -794,6 +811,7 @@ fn str_lit() { vec![Token::Str { value: atom!("ᄑ"), raw: atom!("'\\u{1111}'"), + lone_surrogates: false, }], ); assert_eq!( @@ -801,6 +819,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\t"), raw: atom!("'\t'"), + lone_surrogates: false, }], ); assert_eq!( @@ -808,6 +827,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\n"), raw: atom!("'\\n'"), + lone_surrogates: false, }], ); assert_eq!( @@ -815,6 +835,7 @@ fn str_lit() { vec![Token::Str { value: atom!("abc"), raw: atom!("'\\\nabc'"), + lone_surrogates: false, }] ); assert_eq!( @@ -822,6 +843,7 @@ fn str_lit() { vec![Token::Str { value: atom!(""), raw: atom!("''"), + lone_surrogates: false, }], ); assert_eq!( @@ -829,6 +851,7 @@ fn str_lit() { vec![Token::Str { value: atom!("'"), raw: atom!("'\\''"), + lone_surrogates: false, }], ); assert_eq!( @@ -836,6 +859,7 @@ fn str_lit() { vec![Token::Str { value: atom!(""), raw: atom!("\"\""), + lone_surrogates: false, }], ); assert_eq!( @@ -843,6 +867,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\""), raw: atom!("\"\\\"\""), + lone_surrogates: false, }], ); assert_eq!( @@ -850,6 +875,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\u{0000}"), raw: atom!("'\\0'"), + lone_surrogates: false, }], ); assert_eq!( @@ -857,6 +883,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\n"), raw: atom!("'\\n'"), + lone_surrogates: false, }], ); assert_eq!( @@ -864,6 +891,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\r"), raw: atom!("'\\r'"), + lone_surrogates: false, }], ); assert_eq!( @@ -871,6 +899,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\n"), raw: atom!("'\\012'"), + lone_surrogates: false, }], ); assert_eq!( @@ -878,6 +907,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\u{0007}"), raw: atom!("'\\07'"), + lone_surrogates: false, }], ); assert_eq!( @@ -885,6 +915,7 @@ fn str_lit() { vec![Token::Str { value: atom!("\u{0000}8"), raw: atom!("'\\08'"), + lone_surrogates: false, }], ); } @@ -898,6 +929,7 @@ fn tpl_empty() { Template { raw: atom!(""), cooked: Ok(atom!("")), + lone_surrogates: false, }, tok!('`') ] @@ -913,6 +945,7 @@ fn tpl() { Template { raw: atom!(""), cooked: Ok(atom!("")), + lone_surrogates: false, }, tok!("${"), Word(Word::Ident("a".into())), @@ -920,6 +953,7 @@ fn tpl() { Template { raw: atom!(""), cooked: Ok(atom!("")), + lone_surrogates: false, }, tok!('`'), ] @@ -932,6 +966,7 @@ fn tpl() { Template { raw: atom!("te\\nst"), cooked: Ok(atom!("te\nst")), + lone_surrogates: false, }, tok!("${"), Word(Word::Ident("a".into())), @@ -939,6 +974,20 @@ fn tpl() { Template { raw: atom!("test"), cooked: Ok(atom!("test")), + lone_surrogates: false, + }, + tok!('`'), + ] + ); + + assert_eq!( + lex_tokens(Syntax::default(), r"`\uD800`"), + vec![ + tok!('`'), + Template { + raw: atom!("\\uD800"), + cooked: Ok(atom!("\u{FFFD}d800")), + lone_surrogates: true }, tok!('`'), ] @@ -1110,6 +1159,7 @@ fn issue_191() { Token::Template { raw: atom!(""), cooked: Ok(atom!("")), + lone_surrogates: false, }, tok!("${"), Token::Word(Word::Ident("foo".into())), @@ -1117,6 +1167,7 @@ fn issue_191() { Token::Template { raw: atom!(""), cooked: Ok(atom!("")), + lone_surrogates: false, }, tok!('`') ] @@ -1132,6 +1183,7 @@ fn issue_5722() { Template { raw: atom!(""), cooked: Ok(atom!("")), + lone_surrogates: false, }, tok!("${"), tok!('{'), @@ -1146,6 +1198,7 @@ fn issue_5722() { Template { raw: atom!(""), cooked: Ok(atom!("")), + lone_surrogates: false, }, tok!('`'), ] @@ -1198,6 +1251,7 @@ fn issue_299_01() { Token::Str { value: atom!("\\ "), raw: atom!("'\\ '"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1235,6 +1289,7 @@ fn issue_299_02() { Token::Str { value: atom!("\\\\"), raw: atom!("'\\\\'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1272,6 +1327,7 @@ fn jsx_string_1() { Token::Str { value: atom!("abc"), raw: atom!("'abc'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1309,6 +1365,7 @@ fn jsx_string_2() { Token::Str { value: atom!("abc"), raw: atom!("\"abc\""), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1346,6 +1403,7 @@ fn jsx_string_3() { Token::Str { value: atom!("\n"), raw: atom!("'\n'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1383,6 +1441,7 @@ fn jsx_string_4() { Token::Str { value: atom!("³"), raw: atom!("'³'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1420,6 +1479,7 @@ fn jsx_string_5() { Token::Str { value: atom!("*"), raw: atom!("'*'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1457,6 +1517,7 @@ fn jsx_string_6() { Token::Str { value: atom!("#"), raw: atom!("'#'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1494,6 +1555,7 @@ fn jsx_string_7() { Token::Str { value: atom!("&"), raw: atom!("'&'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1531,6 +1593,7 @@ fn jsx_string_8() { Token::Str { value: atom!("&;"), raw: atom!("'&;'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1568,6 +1631,7 @@ fn jsx_string_9() { Token::Str { value: atom!("&&"), raw: atom!("'&&'"), + lone_surrogates: false, }, Token::JSXTagEnd, JSXText { @@ -1592,6 +1656,7 @@ fn issue_316() { vec![Token::Str { value: atom!("Hi\r\n.."), raw: atom!("'Hi\\r\\n..'"), + lone_surrogates: false, }] ); } @@ -1604,6 +1669,7 @@ fn issue_401() { Token::Str { value: atom!("17"), raw: atom!("'17'"), + lone_surrogates: false, }, tok!("as"), tok!("const") @@ -1654,6 +1720,7 @@ fn issue_915_1() { Token::Str { value: atom!("\r\n"), raw: atom!("\"\\r\\n\""), + lone_surrogates: false, }, RParen ] @@ -1887,6 +1954,7 @@ fn issue_2853_1_js() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\\0a\""), + lone_surrogates: false, } ], ); @@ -1909,6 +1977,7 @@ fn issue_2853_2_ts() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\\0a\""), + lone_surrogates: false, } ], ); @@ -1931,6 +2000,7 @@ fn issue_2853_3_js() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\u{0000}a\""), + lone_surrogates: false, } ], ); @@ -1953,6 +2023,7 @@ fn issue_2853_4_ts() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\u{0000}a\""), + lone_surrogates: false, } ], ); @@ -1978,6 +2049,7 @@ fn issue_2853_5_jsx() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\\0a\""), + lone_surrogates: false, } ] ); @@ -2003,6 +2075,7 @@ fn issue_2853_6_tsx() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\\0a\""), + lone_surrogates: false, } ] ); @@ -2028,6 +2101,7 @@ fn issue_2853_7_jsx() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\u{0000}a\""), + lone_surrogates: false, } ] ); @@ -2053,6 +2127,7 @@ fn issue_2853_8_tsx() { Token::Str { value: atom!("\u{0000}a"), raw: atom!("\"\u{0000}a\""), + lone_surrogates: false, } ] ); diff --git a/crates/swc_ecma_lexer/src/token.rs b/crates/swc_ecma_lexer/src/token.rs index f560c95a9ed8..bed8cf89a01d 100644 --- a/crates/swc_ecma_lexer/src/token.rs +++ b/crates/swc_ecma_lexer/src/token.rs @@ -437,6 +437,7 @@ pub enum Token { Template { raw: Atom, cooked: LexResult, + lone_surrogates: bool, }, /// ':' Colon, @@ -461,6 +462,7 @@ pub enum Token { Str { value: Atom, raw: Atom, + lone_surrogates: bool, }, /// Regexp literal. @@ -654,13 +656,26 @@ impl<'a, I: Tokens> crate::common::lexer::token::TokenFactory<'a, } #[inline(always)] - fn str(value: Atom, raw: Atom, _: &mut crate::Lexer<'a>) -> Self { - Self::Str { value, raw } + fn str(value: Atom, raw: Atom, lone_surrogates: bool, _: &mut crate::Lexer<'a>) -> Self { + Self::Str { + value, + raw, + lone_surrogates, + } } #[inline(always)] - fn template(cooked: LexResult, raw: Atom, _: &mut crate::Lexer<'a>) -> Self { - Self::Template { cooked, raw } + fn template( + cooked: LexResult, + raw: Atom, + lone_surrogates: bool, + _: &mut crate::Lexer<'a>, + ) -> Self { + Self::Template { + cooked, + raw, + lone_surrogates, + } } #[inline(always)] @@ -733,9 +748,13 @@ impl<'a, I: Tokens> crate::common::lexer::token::TokenFactory<'a, } #[inline(always)] - fn take_str(self, _: &mut Self::Buffer) -> (Atom, Atom) { + fn take_str(self, _: &mut Self::Buffer) -> (Atom, Atom, bool) { match self { - Self::Str { value, raw } => (value, raw), + Self::Str { + value, + raw, + lone_surrogates, + } => (value, raw, lone_surrogates), _ => unreachable!(), } } @@ -824,9 +843,13 @@ impl<'a, I: Tokens> crate::common::lexer::token::TokenFactory<'a, } #[inline(always)] - fn take_template(self, _: &mut Self::Buffer) -> (LexResult, Atom) { + fn take_template(self, _: &mut Self::Buffer) -> (LexResult, Atom, bool) { match self { - Self::Template { cooked, raw } => (cooked, raw), + Self::Template { + cooked, + raw, + lone_surrogates, + } => (cooked, raw, lone_surrogates), _ => unreachable!(), } } @@ -1647,7 +1670,11 @@ impl Debug for Token { PlusPlus => write!(f, "++")?, MinusMinus => write!(f, "--")?, Tilde => write!(f, "~")?, - Str { value, raw } => write!(f, "string literal ({value}, {raw})")?, + Str { + value, + raw, + lone_surrogates, + } => write!(f, "string literal ({value}, {raw}, {lone_surrogates})")?, Regex(exp, flags) => write!(f, "regexp literal ({exp}, {flags})")?, Num { value, raw, .. } => write!(f, "numeric literal ({value}, {raw})")?, BigInt { value, raw } => write!(f, "bigint literal ({value}, {raw})")?, diff --git a/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs b/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs index 0e98eaf0d6ff..fb920974ab05 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/evaluate.rs @@ -71,6 +71,7 @@ impl Optimizer<'_> { span: *span, value: obj.sym.clone(), raw: None, + lone_surrogates: false, }) .into(); self.changed = true; @@ -322,6 +323,7 @@ impl Optimizer<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value: value.into(), }) .into(); @@ -353,6 +355,7 @@ impl Optimizer<'_> { expr: Lit::Str(Str { span: p.span, raw: None, + lone_surrogates: false, value: p.sym.clone(), }) .into(), @@ -365,6 +368,7 @@ impl Optimizer<'_> { expr: Lit::Str(Str { span: key.span, raw: None, + lone_surrogates: false, value: key.sym.clone(), }) .into(), diff --git a/crates/swc_ecma_minifier/src/compress/optimize/ops.rs b/crates/swc_ecma_minifier/src/compress/optimize/ops.rs index 19897778fbdb..22e3d474a66c 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/ops.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/ops.rs @@ -257,6 +257,7 @@ impl Optimizer<'_> { *e = Lit::Str(Str { span: *span, raw: None, + lone_surrogates: false, value, }) .into(); @@ -269,6 +270,7 @@ impl Optimizer<'_> { *e = Lit::Str(Str { span: *span, raw: None, + lone_surrogates: false, value: atom!("function"), }) .into(); @@ -280,6 +282,7 @@ impl Optimizer<'_> { *e = Lit::Str(Str { span: *span, raw: None, + lone_surrogates: false, value: atom!("object"), }) .into(); diff --git a/crates/swc_ecma_minifier/src/compress/optimize/strings.rs b/crates/swc_ecma_minifier/src/compress/optimize/strings.rs index f7272f75459a..b81d46d0d52d 100644 --- a/crates/swc_ecma_minifier/src/compress/optimize/strings.rs +++ b/crates/swc_ecma_minifier/src/compress/optimize/strings.rs @@ -69,6 +69,7 @@ impl Optimizer<'_> { *n = Lit::Str(Str { span, raw: None, + lone_surrogates: false, value: value.into(), }) .into(); @@ -89,6 +90,7 @@ impl Optimizer<'_> { *n = Lit::Str(Str { span: v.span, raw: None, + lone_surrogates: false, value: value.into(), }) .into(); @@ -110,6 +112,7 @@ impl Optimizer<'_> { *n = Lit::Str(Str { span: v.span, raw: None, + lone_surrogates: false, value: value.into(), }) .into(); @@ -158,6 +161,7 @@ impl Optimizer<'_> { cooked: Some(s.value.clone()), raw: convert_str_value_to_tpl_raw(&s.value), tail: true, + lone_surrogates: s.lone_surrogates, }], }); self.changed = true; diff --git a/crates/swc_ecma_minifier/src/compress/pure/evaluate.rs b/crates/swc_ecma_minifier/src/compress/pure/evaluate.rs index afb961fe2203..659e4cf70cd3 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/evaluate.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/evaluate.rs @@ -412,6 +412,7 @@ impl Pure<'_> { span: call.span, value: atom!("function(){}"), raw: None, + lone_surrogates: false, } .into(); } @@ -553,6 +554,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value: value.into(), }) .into(); @@ -578,6 +580,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value, }) .into(); @@ -604,6 +607,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value: value.into(), }) .into(); @@ -626,6 +630,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value, }) .into(); @@ -653,6 +658,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value, }) .into(); @@ -670,6 +676,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value, }) .into(); @@ -695,6 +702,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: e.span(), raw: None, + lone_surrogates: false, value, }) .into() @@ -935,6 +943,7 @@ impl Pure<'_> { *e = Lit::Str(Str { value: new_val.into(), raw: None, + lone_surrogates: false, ..s }) .into(); diff --git a/crates/swc_ecma_minifier/src/compress/pure/misc.rs b/crates/swc_ecma_minifier/src/compress/pure/misc.rs index 7ca4e41256bc..867cbbe6094a 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/misc.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/misc.rs @@ -517,6 +517,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: call.span, raw: None, + lone_surrogates: false, value: atom!(""), }) .into(); @@ -573,12 +574,14 @@ impl Pure<'_> { let sep: Box = Lit::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value: separator, }) .into(); let mut res = Lit::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value: atom!(""), }) .into(); @@ -657,6 +660,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: call.span, raw: None, + lone_surrogates: false, value: res.into(), }) .into() @@ -803,6 +807,7 @@ impl Pure<'_> { result_parts.push(Box::new(Expr::Lit(Lit::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value: atom!(""), })))); } @@ -830,6 +835,7 @@ impl Pure<'_> { result_parts.push(Box::new(Expr::Lit(Lit::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value: joined.into(), })))); } @@ -886,6 +892,7 @@ impl Pure<'_> { expr: Box::new(Expr::Lit(Lit::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value: joined.into(), }))), })); @@ -914,6 +921,7 @@ impl Pure<'_> { expr: Box::new(Expr::Lit(Lit::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value: separator.into(), }))), }] @@ -1217,6 +1225,7 @@ impl Pure<'_> { span: *span, value: atom!(""), raw: None, + lone_surrogates: false, }) .into(), ), @@ -1231,6 +1240,7 @@ impl Pure<'_> { span: *span, value: atom!(""), raw: None, + lone_surrogates: false, }) .into(), } @@ -1372,6 +1382,7 @@ impl Pure<'_> { }; let mut cur_raw = String::new(); let mut cur_cooked = String::new(); + let mut cur_lone_surrogates = false; let mut first = true; for elem in elems.take().into_iter().flatten() { @@ -1390,6 +1401,7 @@ impl Pure<'_> { // quasis let e = tpl.quasis[idx / 2].take(); + cur_lone_surrogates |= e.lone_surrogates; cur_cooked.push_str(&e.cooked.unwrap()); cur_raw.push_str(&e.raw); } else { @@ -1398,10 +1410,12 @@ impl Pure<'_> { tail: false, cooked: Some((&*cur_cooked).into()), raw: (&*cur_raw).into(), + lone_surrogates: cur_lone_surrogates, }); cur_raw.clear(); cur_cooked.clear(); + cur_lone_surrogates = false; let e = tpl.exprs[idx / 2].take(); @@ -1410,6 +1424,7 @@ impl Pure<'_> { } } Expr::Lit(Lit::Str(s)) => { + cur_lone_surrogates |= s.lone_surrogates; cur_cooked.push_str(&convert_str_value_to_tpl_cooked(&s.value)); cur_raw.push_str(&convert_str_value_to_tpl_raw(&s.value)); } @@ -1424,6 +1439,7 @@ impl Pure<'_> { tail: false, cooked: Some(cur_cooked.into()), raw: cur_raw.into(), + lone_surrogates: cur_lone_surrogates, }); Some(new_tpl.into()) diff --git a/crates/swc_ecma_minifier/src/compress/pure/strings.rs b/crates/swc_ecma_minifier/src/compress/pure/strings.rs index 9e3be0025c99..108e2b32a3af 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/strings.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/strings.rs @@ -123,11 +123,13 @@ impl Pure<'_> { }; let mut cur_cooked_str = String::new(); let mut cur_raw_str = String::new(); + let mut cur_lone_surrogates = false; for idx in 0..(tpl.quasis.len() + tpl.exprs.len()) { if idx % 2 == 0 { let q = tpl.quasis[idx / 2].take(); + cur_lone_surrogates |= q.lone_surrogates; cur_cooked_str.push_str(&Str::from_tpl_raw(&q.raw)); cur_raw_str.push_str(&q.raw); } else { @@ -145,17 +147,21 @@ impl Pure<'_> { cur_cooked_str.push_str(Str::from_tpl_raw(&q.raw).as_ref()); cur_raw_str.push_str(&q.raw); + cur_lone_surrogates |= q.lone_surrogates; } else { let cooked = Atom::from(&*cur_cooked_str); let raw = Atom::from(&*cur_raw_str); + let lone_surrogates = cur_lone_surrogates; cur_cooked_str.clear(); cur_raw_str.clear(); + cur_lone_surrogates = false; new_tpl.quasis.push(TplElement { span: DUMMY_SP, tail: false, cooked: Some(cooked), raw, + lone_surrogates, }); let e = e.exprs[idx / 2].take(); @@ -167,14 +173,17 @@ impl Pure<'_> { _ => { let cooked = Atom::from(&*cur_cooked_str); let raw = Atom::from(&*cur_raw_str); + let lone_surrogates = cur_lone_surrogates; cur_cooked_str.clear(); cur_raw_str.clear(); + cur_lone_surrogates = false; new_tpl.quasis.push(TplElement { span: DUMMY_SP, tail: false, cooked: Some(cooked), raw, + lone_surrogates, }); new_tpl.exprs.push(e); @@ -185,11 +194,13 @@ impl Pure<'_> { let cooked = Atom::from(&*cur_cooked_str); let raw = Atom::from(&*cur_raw_str); + let lone_surrogates = cur_lone_surrogates; new_tpl.quasis.push(TplElement { span: DUMMY_SP, tail: false, cooked: Some(cooked), raw, + lone_surrogates, }); *e = new_tpl.into(); @@ -211,6 +222,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: t.span, raw: None, + lone_surrogates: false, value: value.clone(), }) .into(); @@ -238,6 +250,7 @@ impl Pure<'_> { *e = Lit::Str(Str { span: t.span, raw: None, + lone_surrogates: false, value, }) .into(); @@ -268,6 +281,7 @@ impl Pure<'_> { let mut exprs = Vec::new(); let mut cur_raw = String::new(); let mut cur_cooked = Some(String::new()); + let mut cur_lone_surrogates = false; for i in 0..(tpl.exprs.len() + tpl.quasis.len()) { if i % 2 == 0 { @@ -275,6 +289,7 @@ impl Pure<'_> { let q = tpl.quasis[i].clone(); if q.cooked.is_some() { + cur_lone_surrogates |= q.lone_surrogates; if let Some(cur_cooked) = &mut cur_cooked { cur_cooked.push_str(""); } @@ -293,6 +308,8 @@ impl Pure<'_> { return; } + cur_lone_surrogates |= s.lone_surrogates; + if let Some(cur_cooked) = &mut cur_cooked { cur_cooked.push_str(""); } @@ -313,6 +330,7 @@ impl Pure<'_> { cur_raw.push_str(&q.raw); if let Some(cooked) = q.cooked { + cur_lone_surrogates |= q.lone_surrogates; if let Some(cur_cooked) = &mut cur_cooked { cur_cooked.push_str(&cooked); } @@ -327,6 +345,8 @@ impl Pure<'_> { match *e { Expr::Lit(Lit::Str(s)) => { + cur_lone_surrogates |= s.lone_surrogates; + if let Some(cur_cooked) = &mut cur_cooked { cur_cooked.push_str(&convert_str_value_to_tpl_cooked(&s.value)); } @@ -347,6 +367,7 @@ impl Pure<'_> { tail: true, cooked: cur_cooked.take().map(From::from), raw: take(&mut cur_raw).into(), + lone_surrogates: cur_lone_surrogates, }); cur_cooked = Some(String::new()); @@ -363,6 +384,7 @@ impl Pure<'_> { tail: true, cooked: cur_cooked.map(From::from), raw: cur_raw.into(), + lone_surrogates: cur_lone_surrogates, }); debug_assert_eq!(exprs.len() + 1, quasis.len()); @@ -496,6 +518,8 @@ impl Pure<'_> { if let Value::Known(third_str) = bin.right.as_pure_string(self.expr_ctx) { let new_str = format!("{second_str}{third_str}"); + let new_lone_surrogates = left.right.is_str_lone_surrogates() + || bin.right.is_str_lone_surrogates(); let left_span = left.span; self.changed = true; @@ -513,6 +537,7 @@ impl Pure<'_> { right: Lit::Str(Str { span: left_span, raw: None, + lone_surrogates: new_lone_surrogates, value: new_str.into(), }) .into(), diff --git a/crates/swc_ecma_minifier/src/option/terser.rs b/crates/swc_ecma_minifier/src/option/terser.rs index 73a57583076c..1dda901a3567 100644 --- a/crates/swc_ecma_minifier/src/option/terser.rs +++ b/crates/swc_ecma_minifier/src/option/terser.rs @@ -494,6 +494,7 @@ fn value_to_expr(v: Value) -> Box { Lit::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value, }) .into() @@ -520,6 +521,7 @@ fn value_to_expr(v: Value) -> Box { key: PropName::Str(Str { span: DUMMY_SP, raw: None, + lone_surrogates: false, value: key.into(), }), value, diff --git a/crates/swc_ecma_minifier/tests/benches-full/jquery.js b/crates/swc_ecma_minifier/tests/benches-full/jquery.js index 46ddab49788e..d2968ef5e8d0 100644 --- a/crates/swc_ecma_minifier/tests/benches-full/jquery.js +++ b/crates/swc_ecma_minifier/tests/benches-full/jquery.js @@ -284,7 +284,7 @@ // https://drafts.csswg.org/cssom/#common-serializing-idioms rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g, fcssescape = function(ch, asCodePoint) { return asCodePoint ? // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER - "\0" === ch ? "\uFFFD" : ch.slice(0, -1) + "\\" + ch.charCodeAt(ch.length - 1).toString(16) + " " : "\\" + ch; + "\0" === ch ? "\ufffd" : ch.slice(0, -1) + "\\" + ch.charCodeAt(ch.length - 1).toString(16) + " " : "\\" + ch; }, // Used for iframes // See setDocument() // Removing the function wrapper causes a "Permission Denied" diff --git a/crates/swc_ecma_minifier/tests/eval.rs b/crates/swc_ecma_minifier/tests/eval.rs index 5bcd12952723..e961545665aa 100644 --- a/crates/swc_ecma_minifier/tests/eval.rs +++ b/crates/swc_ecma_minifier/tests/eval.rs @@ -193,6 +193,7 @@ impl VisitMut for PartialInliner { // TODO possible bug for quotes raw: Atom::new(&*s.value), cooked: Some(Atom::new(&*s.value)), + lone_surrogates: s.lone_surrogates, }; tt.tpl = Box::new(Tpl { span: el.span, diff --git a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js index 212775847424..ef0a891f8694 100644 --- a/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/issues/2257/full/output.js @@ -6650,7 +6650,7 @@ var prev = string.charAt(offset - 1), next = string.charAt(offset + 1); return low.test(match) && !hi.test(next) || hi.test(match) && !low.test(prev) ? "\\u" + match.charCodeAt(0).toString(16) : match; }, FORCED = fails(function() { - return '"\\udf06\\ud834"' !== $stringify("\uDF06\uD834") || '"\\udead"' !== $stringify("\uDEAD"); + return '"\\udf06\\ud834"' !== $stringify("\udf06\ud834") || '"\\udead"' !== $stringify("\udead"); }); $stringify && // `JSON.stringify` method // https://tc39.es/ecma262/#sec-json.stringify @@ -8319,7 +8319,7 @@ target: "String", proto: !0, forced: __webpack_require__(60232)(function() { - return "\uD842" !== "𠮷".at(0); + return "\ud842" !== "𠮷".at(0); }) }, { at: function(index) { @@ -10961,8 +10961,8 @@ return function(input) { for(// Keep track of all the replacements and prefill the map with the `BOM` var replaceMap = { - "%FE%FF": "\uFFFD\uFFFD", - "%FF%FE": "\uFFFD\uFFFD" + "%FE%FF": "\ufffd\ufffd", + "%FF%FE": "\ufffd\ufffd" }, match = multiMatcher.exec(input); match;){ try { // Decode as big chunks as possible @@ -10993,7 +10993,7 @@ match = multiMatcher.exec(input); } // Add `%C2` at the end of the map to make sure it does not replace the combinator before everything else - replaceMap["%C2"] = "\uFFFD"; + replaceMap["%C2"] = "\ufffd"; for(var entries = Object.keys(replaceMap), i = 0; i < entries.length; i++){ // Replace all decoded components var key = entries[i]; diff --git a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js index 1dd5a8d4c669..c0b124cc11af 100644 --- a/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js +++ b/crates/swc_ecma_minifier/tests/fixture/next/wrap-contracts/output.js @@ -22607,10 +22607,10 @@ // It is also done this way as a slight performance increase instead of using a // loop. function utf8CheckExtraBytes(self1, buf, p) { - if ((0xC0 & buf[0]) != 0x80) return self1.lastNeed = 0, '\ufffd'; + if ((0xC0 & buf[0]) != 0x80) return self1.lastNeed = 0, "\ufffd"; if (self1.lastNeed > 1 && buf.length > 1) { - if ((0xC0 & buf[1]) != 0x80) return self1.lastNeed = 1, '\ufffd'; - if (self1.lastNeed > 2 && buf.length > 2 && (0xC0 & buf[2]) != 0x80) return self1.lastNeed = 2, '\ufffd'; + if ((0xC0 & buf[1]) != 0x80) return self1.lastNeed = 1, "\ufffd"; + if (self1.lastNeed > 2 && buf.length > 2 && (0xC0 & buf[2]) != 0x80) return self1.lastNeed = 2, "\ufffd"; } } // Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer. @@ -22632,7 +22632,7 @@ // character. function utf8End(buf) { var r = buf && buf.length ? this.write(buf) : ''; - return this.lastNeed ? r + '\ufffd' : r; + return this.lastNeed ? r + "\ufffd" : r; } // UTF-16LE typically needs two bytes per character, but even if we have an even // number of bytes available, we need to check if we end on a leading/high diff --git a/crates/swc_ecma_minifier/tests/libs-size.snapshot.md b/crates/swc_ecma_minifier/tests/libs-size.snapshot.md index bdd40c6c550c..e51c1ca025af 100644 --- a/crates/swc_ecma_minifier/tests/libs-size.snapshot.md +++ b/crates/swc_ecma_minifier/tests/libs-size.snapshot.md @@ -4,7 +4,7 @@ | d3.js | 542.74 KiB | 261.44 KiB | 85.33 KiB | | echarts.js | 3.41 MiB | 977.32 KiB | 314.19 KiB | | jquery.js | 280.89 KiB | 87.80 KiB | 30.21 KiB | -| lodash.js | 531.35 KiB | 68.91 KiB | 24.60 KiB | +| lodash.js | 531.35 KiB | 68.92 KiB | 24.60 KiB | | moment.js | 169.83 KiB | 57.39 KiB | 18.26 KiB | | react.js | 70.45 KiB | 22.44 KiB | 8.04 KiB | | terser.js | 1.08 MiB | 446.67 KiB | 120.47 KiB | diff --git a/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.js b/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.js index 828892c733c8..ac74819e2798 100644 --- a/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.js +++ b/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.js @@ -1,4 +1,6 @@ function f() { - var o = { "\ud835\udc9c": true }; + var o = { + 𝒜: true + }; return o["\ud835\udc9c"]; } diff --git a/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.mangleOnly.js b/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.mangleOnly.js index 4bc0c565104b..abe2f3820324 100644 --- a/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.mangleOnly.js +++ b/crates/swc_ecma_minifier/tests/terser/compress/ascii/ascii_only_true_identifier_es5/output.mangleOnly.js @@ -1,6 +1,6 @@ -function u() { - var u = { +function r() { + var r = { "\ud835\udc9c": true }; - return u["\ud835\udc9c"]; + return r["\ud835\udc9c"]; } diff --git a/crates/swc_ecma_parser/src/lexer/mod.rs b/crates/swc_ecma_parser/src/lexer/mod.rs index bb0cd16e1c55..10dbb39e1260 100644 --- a/crates/swc_ecma_parser/src/lexer/mod.rs +++ b/crates/swc_ecma_parser/src/lexer/mod.rs @@ -336,6 +336,7 @@ impl Lexer<'_> { self.bump(); // `}` or `\`` let mut cooked_slice_start = self.cur_pos(); let raw_slice_start = cooked_slice_start; + let mut contains_lone_surrogates = false; let raw_atom = |this: &mut Self| { let last_pos = this.cur_pos(); let s = unsafe { this.input.slice(raw_slice_start, last_pos) }; @@ -361,10 +362,18 @@ impl Lexer<'_> { let raw = raw_atom(self); self.bump(); return Ok(if started_with_backtick { - self.set_token_value(Some(TokenValue::Template { raw, cooked })); + self.set_token_value(Some(TokenValue::Template { + raw, + cooked, + lone_surrogates: contains_lone_surrogates, + })); Token::NoSubstitutionTemplateLiteral } else { - self.set_token_value(Some(TokenValue::Template { raw, cooked })); + self.set_token_value(Some(TokenValue::Template { + raw, + cooked, + lone_surrogates: contains_lone_surrogates, + })); Token::TemplateTail }); } else if c == '$' && self.input.peek() == Some('{') { @@ -373,20 +382,34 @@ impl Lexer<'_> { let raw = raw_atom(self); self.input.bump_bytes(2); return Ok(if started_with_backtick { - self.set_token_value(Some(TokenValue::Template { raw, cooked })); + self.set_token_value(Some(TokenValue::Template { + raw, + cooked, + lone_surrogates: contains_lone_surrogates, + })); Token::TemplateHead } else { - self.set_token_value(Some(TokenValue::Template { raw, cooked })); + self.set_token_value(Some(TokenValue::Template { + raw, + cooked, + lone_surrogates: contains_lone_surrogates, + })); Token::TemplateMiddle }); } else if c == '\\' { consume_cooked!(); match self.read_escaped_char(true) { - Ok(Some(chars)) => { + Ok(Some(escaped)) => { if let Ok(ref mut cooked) = cooked { - for c in chars { - cooked.extend(c); + match escaped { + swc_ecma_lexer::common::lexer::EscapedChar::Char(ch) => { + cooked.extend(ch) + } + swc_ecma_lexer::common::lexer::EscapedChar::LoneSurrogate(ch) => { + contains_lone_surrogates |= true; + cooked.push_str(format!("\u{FFFD}{ch:04x}").as_str()); + } } } } diff --git a/crates/swc_ecma_parser/src/lexer/state.rs b/crates/swc_ecma_parser/src/lexer/state.rs index a79e2e2e0e02..ab8d6af614a2 100644 --- a/crates/swc_ecma_parser/src/lexer/state.rs +++ b/crates/swc_ecma_parser/src/lexer/state.rs @@ -8,7 +8,7 @@ use swc_ecma_lexer::{ char::CharExt, comments_buffer::{BufferedCommentKind, CommentsBufferTrait}, state::State as StateTrait, - LexResult, + LexResult, UnicodeEscape, }, syntax::SyntaxFlags, }, @@ -520,7 +520,11 @@ impl Lexer<'_> { let raw: swc_atoms::Atom = self.atom(raw); - self.state.set_token_value(TokenValue::Str { raw, value }); + self.state.set_token_value(TokenValue::Str { + raw, + value, + lone_surrogates: false, + }); self.state.start = start; @@ -552,12 +556,15 @@ impl Lexer<'_> { continue; } self.bump(); // bump 'u' - let Ok(chars) = self.read_unicode_escape() else { + let Ok(value) = self.read_unicode_escape() else { self.emit_error(self.cur_pos(), SyntaxError::InvalidUnicodeEscape); break; }; - for c in chars { - v.extend(c); + match value { + UnicodeEscape::CodePoint(ch) => v.push(ch), + UnicodeEscape::SurrogatePair(_) | UnicodeEscape::LoneSurrogate(_) => { + self.emit_error(self.cur_pos(), SyntaxError::InvalidUnicodeEscape); + } } self.token_flags |= swc_ecma_lexer::lexer::TokenFlags::UNICODE; } else { diff --git a/crates/swc_ecma_parser/src/lexer/token.rs b/crates/swc_ecma_parser/src/lexer/token.rs index 44fe2a77e2a9..8cffc6eaaecb 100644 --- a/crates/swc_ecma_parser/src/lexer/token.rs +++ b/crates/swc_ecma_parser/src/lexer/token.rs @@ -14,11 +14,13 @@ pub enum TokenValue { Template { raw: Atom, cooked: LexResult, + lone_surrogates: bool, }, // string, jsx text Str { value: Atom, raw: Atom, + lone_surrogates: bool, }, // regexp Regex { @@ -659,14 +661,27 @@ impl<'a, I: Tokens> swc_ecma_lexer::common::lexer::token::TokenFactory<'a, Token } #[inline(always)] - fn str(value: Atom, raw: Atom, lexer: &mut crate::Lexer<'a>) -> Self { - lexer.set_token_value(Some(TokenValue::Str { value, raw })); + fn str(value: Atom, raw: Atom, lone_surrogates: bool, lexer: &mut crate::Lexer<'a>) -> Self { + lexer.set_token_value(Some(TokenValue::Str { + value, + raw, + lone_surrogates, + })); Token::Str } #[inline(always)] - fn template(cooked: LexResult, raw: Atom, lexer: &mut crate::Lexer<'a>) -> Self { - lexer.set_token_value(Some(TokenValue::Template { cooked, raw })); + fn template( + cooked: LexResult, + raw: Atom, + lone_surrogates: bool, + lexer: &mut crate::Lexer<'a>, + ) -> Self { + lexer.set_token_value(Some(TokenValue::Template { + cooked, + raw, + lone_surrogates, + })); Token::Template } @@ -734,7 +749,7 @@ impl<'a, I: Tokens> swc_ecma_lexer::common::lexer::token::TokenFactory<'a, Token } #[inline(always)] - fn take_str(self, buffer: &mut Self::Buffer) -> (Atom, Atom) { + fn take_str(self, buffer: &mut Self::Buffer) -> (Atom, Atom, bool) { buffer.expect_string_token_value() } @@ -809,13 +824,17 @@ impl<'a, I: Tokens> swc_ecma_lexer::common::lexer::token::TokenFactory<'a, Token } #[inline(always)] - fn take_template(self, buffer: &mut Self::Buffer) -> (LexResult, Atom) { + fn take_template(self, buffer: &mut Self::Buffer) -> (LexResult, Atom, bool) { buffer.expect_template_token_value() } #[inline(always)] fn jsx_text(value: Atom, raw: Atom, lexer: &mut Self::Lexer) -> Self { - lexer.set_token_value(Some(TokenValue::Str { value, raw })); + lexer.set_token_value(Some(TokenValue::Str { + value, + raw, + lone_surrogates: false, + })); Token::JSXText } @@ -826,7 +845,8 @@ impl<'a, I: Tokens> swc_ecma_lexer::common::lexer::token::TokenFactory<'a, Token #[inline(always)] fn take_jsx_text(self, buffer: &mut Self::Buffer) -> (Atom, Atom) { - buffer.expect_string_token_value() + let (value, raw, _) = buffer.expect_string_token_value(); + (value, raw) } #[inline(always)] diff --git a/crates/swc_ecma_parser/src/parser/expr/tests.rs b/crates/swc_ecma_parser/src/parser/expr/tests.rs index c192d5743c0a..9b2b59536d7a 100644 --- a/crates/swc_ecma_parser/src/parser/expr/tests.rs +++ b/crates/swc_ecma_parser/src/parser/expr/tests.rs @@ -386,6 +386,7 @@ fn issue_328() { span, value: atom!("test"), raw: Some(atom!("'test'")), + lone_surrogates: false, }))), }], ..Default::default() @@ -415,6 +416,7 @@ hehe.";"#, span, value: atom!("okokhehe."), raw: Some(atom!("\"ok\\\nok\\\nhehe.\"")), + lone_surrogates: false, }))) ); } diff --git a/crates/swc_ecma_parser/src/parser/input.rs b/crates/swc_ecma_parser/src/parser/input.rs index b6ed2357760a..76ea182ff77b 100644 --- a/crates/swc_ecma_parser/src/parser/input.rs +++ b/crates/swc_ecma_parser/src/parser/input.rs @@ -59,12 +59,16 @@ impl Buffer { (value, raw) } - pub fn expect_string_token_value(&mut self) -> (Atom, Atom) { - let Some(crate::lexer::TokenValue::Str { value, raw }) = self.iter.take_token_value() + pub fn expect_string_token_value(&mut self) -> (Atom, Atom, bool) { + let Some(crate::lexer::TokenValue::Str { + value, + raw, + lone_surrogates, + }) = self.iter.take_token_value() else { unreachable!() }; - (value, raw) + (value, raw, lone_surrogates) } pub fn expect_bigint_token_value(&mut self) -> (Box, Atom) { @@ -83,12 +87,16 @@ impl Buffer { (value, flags) } - pub fn expect_template_token_value(&mut self) -> (LexResult, Atom) { - let Some(crate::lexer::TokenValue::Template { cooked, raw }) = self.iter.take_token_value() + pub fn expect_template_token_value(&mut self) -> (LexResult, Atom, bool) { + let Some(crate::lexer::TokenValue::Template { + cooked, + raw, + lone_surrogates, + }) = self.iter.take_token_value() else { unreachable!() }; - (cooked, raw) + (cooked, raw, lone_surrogates) } pub fn expect_error_token_value(&mut self) -> swc_ecma_lexer::error::Error { @@ -287,7 +295,7 @@ impl<'a, I: Tokens> swc_ecma_lexer::common::parser::buffer::Buffer<'a> for Buffe ret } - fn expect_string_token_and_bump(&mut self) -> (Atom, Atom) { + fn expect_string_token_and_bump(&mut self) -> (Atom, Atom, bool) { let cur = *self.cur(); let ret = cur.take_str(self); self.bump(); @@ -308,7 +316,7 @@ impl<'a, I: Tokens> swc_ecma_lexer::common::parser::buffer::Buffer<'a> for Buffe ret } - fn expect_template_token_and_bump(&mut self) -> (LexResult, Atom) { + fn expect_template_token_and_bump(&mut self) -> (LexResult, Atom, bool) { let cur = *self.cur(); let ret = cur.take_template(self); self.bump(); diff --git a/crates/swc_ecma_parser/src/parser/jsx/mod.rs b/crates/swc_ecma_parser/src/parser/jsx/mod.rs index a8faa76a8fe5..86a661ca2b5e 100644 --- a/crates/swc_ecma_parser/src/parser/jsx/mod.rs +++ b/crates/swc_ecma_parser/src/parser/jsx/mod.rs @@ -505,6 +505,7 @@ mod tests { span, value: atom!("w < w"), raw: Some(atom!("\"w < w\"")), + lone_surrogates: false, }))), })], name: JSXElementName::Ident(Ident::new_no_ctxt(atom!("div"), span)), diff --git a/crates/swc_ecma_parser/src/parser/pat.rs b/crates/swc_ecma_parser/src/parser/pat.rs index 4894c367aa82..beed7eef02eb 100644 --- a/crates/swc_ecma_parser/src/parser/pat.rs +++ b/crates/swc_ecma_parser/src/parser/pat.rs @@ -306,12 +306,14 @@ mod tests { span, value: atom!(""), raw: Some(atom!("''")), + lone_surrogates: false, }), "sym", Expr::Lit(Lit::Str(Str { span, value: atom!(""), raw: Some(atom!("''")), + lone_surrogates: false, })) ), prop( @@ -319,12 +321,14 @@ mod tests { span, value: atom!(" "), raw: Some(atom!("\" \"")), + lone_surrogates: false, }), "quote", Expr::Lit(Lit::Str(Str { span, value: atom!(" "), raw: Some(atom!("\" \"")), + lone_surrogates: false, })) ), prop( diff --git a/crates/swc_ecma_parser/src/parser/tpl.rs b/crates/swc_ecma_parser/src/parser/tpl.rs index a51c5a96a5c5..0d882709b8c5 100644 --- a/crates/swc_ecma_parser/src/parser/tpl.rs +++ b/crates/swc_ecma_parser/src/parser/tpl.rs @@ -20,7 +20,7 @@ impl Parser { let cur = self.input.cur(); debug_assert!(matches!(cur, &Token::NoSubstitutionTemplateLiteral)); - let (cooked, raw) = (*cur).take_template(self.input_mut()); + let (cooked, raw, lone_surrogates) = (*cur).take_template(self.input_mut()); let (raw, cooked) = match cooked { Ok(cooked) => (raw, Some(cooked)), Err(err) => { @@ -52,6 +52,7 @@ impl Parser { tail: true, raw, cooked, + lone_surrogates, }], }) } @@ -61,7 +62,7 @@ impl Parser { let cur = self.input().cur(); debug_assert!(matches!(cur, &Token::TemplateHead)); - let (cooked, raw) = (*cur).take_template(self.input_mut()); + let (cooked, raw, lone_surrogates) = (*cur).take_template(self.input_mut()); let (raw, cooked) = match cooked { Ok(cooked) => (raw, Some(cooked)), Err(err) => { @@ -87,6 +88,7 @@ impl Parser { raw, tail: false, cooked, + lone_surrogates, }) } @@ -131,9 +133,9 @@ impl Parser { } let start = self.cur_pos(); let cur = self.input_mut().cur(); - let (raw, cooked, tail, span) = match *cur { + let (raw, cooked, tail, lone_surrogates, span) = match *cur { Token::TemplateMiddle => { - let (cooked, raw) = (*cur).take_template(self.input_mut()); + let (cooked, raw, lone_surrogates) = (*cur).take_template(self.input_mut()); self.bump(); let pos = self.input.prev_span().hi; debug_assert!(start.0 <= pos.0 - 2); @@ -141,10 +143,10 @@ impl Parser { // `pos.0 - 2` means skip '${' let span = Span::new_with_checked(start, BytePos::from_u32(pos.0 - 2)); match cooked { - Ok(cooked) => (raw, Some(cooked), false, span), + Ok(cooked) => (raw, Some(cooked), false, lone_surrogates, span), Err(err) => { if is_tagged_tpl { - (raw, None, false, span) + (raw, None, false, lone_surrogates, span) } else { return Err(err); } @@ -152,7 +154,7 @@ impl Parser { } } Token::TemplateTail => { - let (cooked, raw) = (*cur).take_template(self.input_mut()); + let (cooked, raw, lone_surrogates) = (*cur).take_template(self.input_mut()); self.bump(); let pos = self.input.prev_span().hi; debug_assert!(start.0 < pos.0); @@ -160,10 +162,10 @@ impl Parser { // `pos.0 - 1` means skip '`' let span = Span::new_with_checked(start, BytePos::from_u32(pos.0 - 1)); match cooked { - Ok(cooked) => (raw, Some(cooked), true, span), + Ok(cooked) => (raw, Some(cooked), true, lone_surrogates, span), Err(err) => { if is_tagged_tpl { - (raw, None, true, span) + (raw, None, true, lone_surrogates, span) } else { return Err(err); } @@ -185,6 +187,7 @@ impl Parser { raw, tail, cooked, + lone_surrogates, }) } @@ -242,7 +245,7 @@ impl Parser { let cur = self.input.cur(); debug_assert!(matches!(cur, &Token::NoSubstitutionTemplateLiteral)); - let (cooked, raw) = (*cur).take_template(self.input_mut()); + let (cooked, raw, lone_surrogates) = (*cur).take_template(self.input_mut()); let (raw, cooked) = match cooked { Ok(cooked) => (raw, Some(cooked)), Err(_) => (raw, None), @@ -268,6 +271,7 @@ impl Parser { tail: true, raw, cooked, + lone_surrogates, }], }) } diff --git a/crates/swc_ecma_parser/tests/common/mod.rs b/crates/swc_ecma_parser/tests/common/mod.rs index 530a28614701..ac6da2d9521c 100644 --- a/crates/swc_ecma_parser/tests/common/mod.rs +++ b/crates/swc_ecma_parser/tests/common/mod.rs @@ -70,6 +70,7 @@ impl Fold for Normalizer { Number { value, raw: None, + ..n } } else { @@ -107,11 +108,13 @@ impl Fold for Normalizer { span, value: sym, raw: None, + lone_surrogates: false, }), PropName::Num(num) => PropName::Str(Str { span: num.span, value: num.to_string().into(), raw: None, + lone_surrogates: false, }), _ => n, } @@ -133,6 +136,7 @@ impl Fold for Normalizer { span, value: s.value, raw: None, + lone_surrogates: false, } } else { Str { span, ..s } diff --git a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json index 65afc9fb0211..7f70d9e8b337 100644 --- a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json +++ b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-declaration/input.js.json @@ -37,7 +37,8 @@ "end": 30 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "val", - "raw": "\"val\"" + "raw": "\"val\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-expression/input.js.json b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-expression/input.js.json index 6d7146c28f45..af9fb775c3d5 100644 --- a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-expression/input.js.json +++ b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/attributes-expression/input.js.json @@ -36,7 +36,8 @@ "end": 17 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 40 }, "value": "val", - "raw": "\"val\"" + "raw": "\"val\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/defer-as-default/input.js.json b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/defer-as-default/input.js.json index ad9b095574a3..92b2cac7f377 100644 --- a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/defer-as-default/input.js.json +++ b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/defer-as-default/input.js.json @@ -37,7 +37,8 @@ "end": 22 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import-no-createImportExpressions/input.js.json b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import-no-createImportExpressions/input.js.json index 75cd69666077..0bc0f832b2f4 100644 --- a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import-no-createImportExpressions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import-no-createImportExpressions/input.js.json @@ -36,7 +36,8 @@ "end": 19 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import/input.js.json b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import/input.js.json index 75cd69666077..0bc0f832b2f4 100644 --- a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import/input.js.json +++ b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/dynamic-import/input.js.json @@ -36,7 +36,8 @@ "end": 19 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/import-defer/input.js.json b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/import-defer/input.js.json index cc607639e97f..79589026fa39 100644 --- a/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/import-defer/input.js.json +++ b/crates/swc_ecma_parser/tests/js/deferred-import-evaluation/import-defer/input.js.json @@ -37,7 +37,8 @@ "end": 30 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json index 98cef32d451d..544c168a2ef8 100644 --- a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json +++ b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-in/input.js.json @@ -188,7 +188,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json index 25be528ffe0b..bff063538be1 100644 --- a/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json +++ b/crates/swc_ecma_parser/tests/js/explicit-resource-management/valid-using-as-identifier-for-of/input.js.json @@ -198,7 +198,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json index 76618b5c2f62..5d5abefbbf11 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/dynamic-import-with-valid-syntax/input.js.json @@ -36,7 +36,8 @@ "end": 18 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 42 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json index 699a698fb5fc..335db734d996 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/string-literal/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 45 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] @@ -105,7 +107,8 @@ "end": 78 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -132,7 +135,8 @@ "end": 96 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json index 63c9fbdbd3a7..4c6766b37ef7 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma-dynamic/input.js.json @@ -36,7 +36,8 @@ "end": 16 }, "value": "foo.js", - "raw": "\"foo.js\"" + "raw": "\"foo.js\"", + "loneSurrogates": false } } ], @@ -74,7 +75,8 @@ "end": 37 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -120,7 +122,8 @@ "end": 61 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json index 877776ea0c3c..b6959ed63001 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/trailing-comma/input.js.json @@ -37,7 +37,8 @@ "end": 22 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 42 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -114,7 +116,8 @@ "end": 82 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -141,7 +144,8 @@ "end": 102 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-empty-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-empty-assertion/input.js.json index 2e02a5094220..342b82f4d9f1 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-empty-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-empty-assertion/input.js.json @@ -56,7 +56,8 @@ "end": 31 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -101,7 +102,8 @@ "end": 66 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -148,7 +150,8 @@ "end": 102 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -192,7 +195,8 @@ "end": 138 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-variable/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-variable/input.js.json index 3231620f93ae..a3e3c0a0aaae 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-variable/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-variable/input.js.json @@ -45,7 +45,8 @@ "end": 22 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-without-from/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-without-from/input.js.json index 16e1c19a384e..979b79d6f4fe 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-without-from/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-export-without-from/input.js.json @@ -39,7 +39,8 @@ "end": 15 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-string-assertion-key/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-string-assertion-key/input.js.json index 7a7c001ef1ff..3e696ae35e2d 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-string-assertion-key/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-string-assertion-key/input.js.json @@ -19,7 +19,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -38,7 +39,8 @@ "end": 27 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -47,7 +49,8 @@ "end": 35 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json index 7e1abf581ab9..cf5f638b2b60 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-as-with-assertions/input.js.json @@ -37,7 +37,8 @@ "end": 32 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 52 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json index b2c9673661e3..3590b0d975ec 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-star-with-assertions/input.js.json @@ -18,7 +18,8 @@ "end": 25 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -45,7 +46,8 @@ "end": 45 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json index ca675fc2c71f..80f8e7561772 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-and-assertions-multiple-lines/input.js.json @@ -48,7 +48,8 @@ "end": 35 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 55 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json index 8f2a980bd82a..4b6bcdd67d95 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions-and-value/input.js.json @@ -25,7 +25,8 @@ "end": 19 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false }, "exported": { "type": "Identifier", @@ -47,7 +48,8 @@ "end": 37 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -74,7 +76,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json index f1180fa514e4..529967c47af1 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-assertions/input.js.json @@ -48,7 +48,8 @@ "end": 42 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 62 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json index 7c56f265818c..1181c201c08d 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-invalid-value/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 55 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json index 98c3ea980ec3..a0600c70c5bd 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-no-type-assertion/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 55 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json index 97f955a35ce6..9b56111a7121 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-with-object-method-assertion/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 55 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -86,7 +88,8 @@ "end": 79 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-without-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-without-assertions/input.js.json index ffb3b54cc8cf..d1e003029ccb 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-without-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-export-without-assertions/input.js.json @@ -39,7 +39,8 @@ "end": 31 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json index 132387fb0a6e..c63910c5ad0b 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-and-value/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 31 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json index 14f33663844e..509ee1ba35d4 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions-multiple-lines/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 31 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json index c00ad7da95d1..b89613d093b4 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-assertions/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json index a78a3a94d1f3..059f61e43d3b 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-invalid-value/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json index fd09c30f38b7..fd9a2efe245d 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-no-type-assertion/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json index 2368ee8be68c..6cda9d9a9508 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-with-object-method-assertion/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 71 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-without-assertions/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-without-assertions/input.js.json index 1a9d9f7c8499..100a4890db7b 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-without-assertions/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/valid-syntax-without-assertions/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json index c00ad7da95d1..b89613d093b4 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions-with-keyword/without-plugin/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json index 17ce1ffb1e7d..5e0749f10ed8 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/dynamic-import-with-valid-syntax/input.js.json @@ -36,7 +36,8 @@ "end": 18 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 44 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/import-assert-call-expression/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/import-assert-call-expression/input.js.json index b751c4ac7a4b..b28a18884213 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/import-assert-call-expression/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/import-assert-call-expression/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json index 64f047363b84..2b30cfbe4a1d 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/string-literal/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] @@ -105,7 +107,8 @@ "end": 80 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -132,7 +135,8 @@ "end": 100 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json index db1596ac9b36..ec6ff7061499 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma-dynamic/input.js.json @@ -36,7 +36,8 @@ "end": 16 }, "value": "foo.js", - "raw": "\"foo.js\"" + "raw": "\"foo.js\"", + "loneSurrogates": false } } ], @@ -74,7 +75,8 @@ "end": 37 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -120,7 +122,8 @@ "end": 63 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json index 5c37a557c3bc..05a9fce2530b 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/trailing-comma/input.js.json @@ -37,7 +37,8 @@ "end": 22 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 44 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -114,7 +116,8 @@ "end": 84 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -141,7 +144,8 @@ "end": 106 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-empty-assertion/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-empty-assertion/input.js.json index 2233b89beafa..e29e810333b7 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-empty-assertion/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-empty-assertion/input.js.json @@ -56,7 +56,8 @@ "end": 31 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -101,7 +102,8 @@ "end": 68 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -148,7 +150,8 @@ "end": 106 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -192,7 +195,8 @@ "end": 144 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-variable/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-variable/input.js.json index 3231620f93ae..a3e3c0a0aaae 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-variable/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-variable/input.js.json @@ -45,7 +45,8 @@ "end": 22 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-without-from/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-without-from/input.js.json index 16e1c19a384e..979b79d6f4fe 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-without-from/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-export-without-from/input.js.json @@ -39,7 +39,8 @@ "end": 15 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-string-assertion-key/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-string-assertion-key/input.js.json index 93bbe779e2f9..e9fd72ad9d47 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-string-assertion-key/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-string-assertion-key/input.js.json @@ -19,7 +19,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -38,7 +39,8 @@ "end": 29 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -47,7 +49,8 @@ "end": 37 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json index da07ec3915b4..71c4b364b038 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-as-with-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 32 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 54 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json index 60bbb5ab5ae3..e645b22e76f1 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-star-with-attributes/input.js.json @@ -18,7 +18,8 @@ "end": 25 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -45,7 +46,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json index 9a0cded887e5..41c6de8e3e15 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json @@ -48,7 +48,8 @@ "end": 35 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json index 7e330b8308af..be9708eefab9 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes-and-value/input.js.json @@ -25,7 +25,8 @@ "end": 19 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false }, "exported": { "type": "Identifier", @@ -47,7 +48,8 @@ "end": 37 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -74,7 +76,8 @@ "end": 59 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json index 4cca6b786b2f..695f04a8987d 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-attributes/input.js.json @@ -48,7 +48,8 @@ "end": 42 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 64 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json index 57d5bac276e8..48b8993cbb23 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-invalid-value/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json index 22de30777e2f..6415bbb2398f 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-no-type-attribute/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 57 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json index e7b9515ff184..0469b217f856 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-with-object-method-attribute/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -86,7 +88,8 @@ "end": 81 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-without-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-without-attributes/input.js.json index ffb3b54cc8cf..d1e003029ccb 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-without-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-export-without-attributes/input.js.json @@ -39,7 +39,8 @@ "end": 31 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json index 164c550e8c48..785ec8da7680 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-and-value/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 33 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json index 533d59458118..13ade241d2d2 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes-multiple-lines/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 33 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json index 220cc8596f51..a984277321ac 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json index 95ff1de60f37..59a495f50ac6 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-invalid-value/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json index b950c290c167..fd5c418de4f8 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-no-type-attribute/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json index 083867b540d7..e3cecca8aeea 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-with-object-method-attribute/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 73 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-without-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-without-attributes/input.js.json index 1a9d9f7c8499..100a4890db7b 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-without-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/valid-syntax-without-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json index 220cc8596f51..a984277321ac 100644 --- a/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-assertions/without-plugin/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json index a534c98a131e..774c53abd92b 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/_deprecated-syntax-not-enabled/input.js.json @@ -19,7 +19,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 35 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json index 17ce1ffb1e7d..5e0749f10ed8 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/dynamic-import-with-valid-syntax/input.js.json @@ -36,7 +36,8 @@ "end": 18 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 44 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/import-assert-call-expression/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/import-assert-call-expression/input.js.json index b751c4ac7a4b..b28a18884213 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/import-assert-call-expression/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/import-assert-call-expression/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json index 2d82c05c91d9..12c409dfd1db 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/incorrect-arity/input.js.json @@ -61,7 +61,8 @@ "end": 30 }, "value": "./foo.json", - "raw": "\"./foo.json\"" + "raw": "\"./foo.json\"", + "loneSurrogates": false } }, { @@ -107,7 +108,8 @@ "end": 56 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -125,7 +127,8 @@ "end": 74 }, "value": "unsupported", - "raw": "\"unsupported\"" + "raw": "\"unsupported\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json index 64f047363b84..2b30cfbe4a1d 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/string-literal/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] @@ -105,7 +107,8 @@ "end": 80 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -132,7 +135,8 @@ "end": 100 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json index db1596ac9b36..ec6ff7061499 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma-dynamic/input.js.json @@ -36,7 +36,8 @@ "end": 16 }, "value": "foo.js", - "raw": "\"foo.js\"" + "raw": "\"foo.js\"", + "loneSurrogates": false } } ], @@ -74,7 +75,8 @@ "end": 37 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -120,7 +122,8 @@ "end": 63 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json index 5c37a557c3bc..05a9fce2530b 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/trailing-comma/input.js.json @@ -37,7 +37,8 @@ "end": 22 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 44 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -114,7 +116,8 @@ "end": 84 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -141,7 +144,8 @@ "end": 106 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-empty-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-empty-attribute/input.js.json index 2233b89beafa..e29e810333b7 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-empty-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-empty-attribute/input.js.json @@ -56,7 +56,8 @@ "end": 31 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -101,7 +102,8 @@ "end": 68 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -148,7 +150,8 @@ "end": 106 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -192,7 +195,8 @@ "end": 144 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-variable/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-variable/input.js.json index 3231620f93ae..a3e3c0a0aaae 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-variable/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-variable/input.js.json @@ -45,7 +45,8 @@ "end": 22 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-without-from/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-without-from/input.js.json index 16e1c19a384e..979b79d6f4fe 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-without-from/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-export-without-from/input.js.json @@ -39,7 +39,8 @@ "end": 15 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-string-attribute-key/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-string-attribute-key/input.js.json index 93bbe779e2f9..e9fd72ad9d47 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-string-attribute-key/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-string-attribute-key/input.js.json @@ -19,7 +19,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -38,7 +39,8 @@ "end": 29 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -47,7 +49,8 @@ "end": 37 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json index da07ec3915b4..71c4b364b038 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-as-with-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 32 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 54 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json index 60bbb5ab5ae3..e645b22e76f1 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-star-with-attributes/input.js.json @@ -18,7 +18,8 @@ "end": 25 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -45,7 +46,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json index 9a0cded887e5..41c6de8e3e15 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json @@ -48,7 +48,8 @@ "end": 35 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json index 7e330b8308af..be9708eefab9 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes-and-value/input.js.json @@ -25,7 +25,8 @@ "end": 19 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false }, "exported": { "type": "Identifier", @@ -47,7 +48,8 @@ "end": 37 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -74,7 +76,8 @@ "end": 59 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json index 4cca6b786b2f..695f04a8987d 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-attributes/input.js.json @@ -48,7 +48,8 @@ "end": 42 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 64 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json index 57d5bac276e8..48b8993cbb23 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-invalid-value/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json index 22de30777e2f..6415bbb2398f 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-no-type-attribute/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 57 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json index e7b9515ff184..0469b217f856 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-with-object-method-attribute/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -86,7 +88,8 @@ "end": 81 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-without-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-without-attributes/input.js.json index ffb3b54cc8cf..d1e003029ccb 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-without-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-export-without-attributes/input.js.json @@ -39,7 +39,8 @@ "end": 31 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json index 164c550e8c48..785ec8da7680 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-and-value/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 33 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json index 533d59458118..13ade241d2d2 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes-multiple-lines/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 33 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json index 220cc8596f51..a984277321ac 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json index 95ff1de60f37..59a495f50ac6 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-invalid-value/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json index b950c290c167..fd5c418de4f8 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-no-type-attribute/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json index 083867b540d7..e3cecca8aeea 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-with-object-method-attribute/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 73 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-without-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-without-attributes/input.js.json index 1a9d9f7c8499..100a4890db7b 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-without-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/valid-syntax-without-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json index 220cc8596f51..a984277321ac 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes-deprecatedAssertKeyword/without-plugin/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 49 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json index 76618b5c2f62..5d5abefbbf11 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/dynamic-import-with-valid-syntax/input.js.json @@ -36,7 +36,8 @@ "end": 18 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 42 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json index 699a698fb5fc..335db734d996 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/string-literal/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 45 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] @@ -105,7 +107,8 @@ "end": 78 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -132,7 +135,8 @@ "end": 96 }, "value": "for", - "raw": "\"for\"" + "raw": "\"for\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json index 63c9fbdbd3a7..4c6766b37ef7 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma-dynamic/input.js.json @@ -36,7 +36,8 @@ "end": 16 }, "value": "foo.js", - "raw": "\"foo.js\"" + "raw": "\"foo.js\"", + "loneSurrogates": false } } ], @@ -74,7 +75,8 @@ "end": 37 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false } }, { @@ -120,7 +122,8 @@ "end": 61 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json index 877776ea0c3c..b6959ed63001 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/trailing-comma/input.js.json @@ -37,7 +37,8 @@ "end": 22 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 42 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -114,7 +116,8 @@ "end": 82 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -141,7 +144,8 @@ "end": 102 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-empty-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-empty-attribute/input.js.json index 2e02a5094220..342b82f4d9f1 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-empty-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-empty-attribute/input.js.json @@ -56,7 +56,8 @@ "end": 31 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -101,7 +102,8 @@ "end": 66 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -148,7 +150,8 @@ "end": 102 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -192,7 +195,8 @@ "end": 138 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-variable/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-variable/input.js.json index 3231620f93ae..a3e3c0a0aaae 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-variable/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-variable/input.js.json @@ -45,7 +45,8 @@ "end": 22 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-without-from/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-without-from/input.js.json index 16e1c19a384e..979b79d6f4fe 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-without-from/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-export-without-from/input.js.json @@ -39,7 +39,8 @@ "end": 15 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-string-attribute-key/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-string-attribute-key/input.js.json index 7a7c001ef1ff..3e696ae35e2d 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-string-attribute-key/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-string-attribute-key/input.js.json @@ -19,7 +19,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -38,7 +39,8 @@ "end": 27 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -47,7 +49,8 @@ "end": 35 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json index 7e1abf581ab9..cf5f638b2b60 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-as-with-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 32 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 52 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json index b2c9673661e3..3590b0d975ec 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-star-with-attributes/input.js.json @@ -18,7 +18,8 @@ "end": 25 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -45,7 +46,8 @@ "end": 45 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json index ca675fc2c71f..80f8e7561772 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-and-attributes-multiple-lines/input.js.json @@ -48,7 +48,8 @@ "end": 35 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 55 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json index 8f2a980bd82a..4b6bcdd67d95 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes-and-value/input.js.json @@ -25,7 +25,8 @@ "end": 19 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false }, "exported": { "type": "Identifier", @@ -47,7 +48,8 @@ "end": 37 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -74,7 +76,8 @@ "end": 57 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json index f1180fa514e4..529967c47af1 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-attributes/input.js.json @@ -48,7 +48,8 @@ "end": 42 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -75,7 +76,8 @@ "end": 62 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json index 7c56f265818c..1181c201c08d 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-invalid-value/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 55 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json index 98c3ea980ec3..a0600c70c5bd 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-no-type-attribute/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 55 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json index 97f955a35ce6..9b56111a7121 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-with-object-method-attribute/input.js.json @@ -39,7 +39,8 @@ "end": 35 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 55 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -86,7 +88,8 @@ "end": 79 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-without-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-without-attributes/input.js.json index ffb3b54cc8cf..d1e003029ccb 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-without-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-export-without-attributes/input.js.json @@ -39,7 +39,8 @@ "end": 31 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json index 132387fb0a6e..c63910c5ad0b 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-and-value/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 31 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json index 14f33663844e..509ee1ba35d4 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes-multiple-lines/input.js.json @@ -19,7 +19,8 @@ "end": 11 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 31 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json index c00ad7da95d1..b89613d093b4 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json index a78a3a94d1f3..059f61e43d3b 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-invalid-value/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json index fd09c30f38b7..fd9a2efe245d 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-no-type-attribute/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json index 2368ee8be68c..6cda9d9a9508 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-with-object-method-attribute/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 71 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-without-attributes/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-without-attributes/input.js.json index 1a9d9f7c8499..100a4890db7b 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-without-attributes/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/valid-syntax-without-attributes/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json b/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json index c00ad7da95d1..b89613d093b4 100644 --- a/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json +++ b/crates/swc_ecma_parser/tests/js/import-attributes/without-plugin/input.js.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo.json", - "raw": "\"foo.json\"" + "raw": "\"foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 47 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/issue-4176/1/input.js.json b/crates/swc_ecma_parser/tests/js/issue-4176/1/input.js.json index 8311d59b3867..dff22a9153be 100644 --- a/crates/swc_ecma_parser/tests/js/issue-4176/1/input.js.json +++ b/crates/swc_ecma_parser/tests/js/issue-4176/1/input.js.json @@ -39,7 +39,8 @@ "end": 26 }, "value": "left-pad", - "raw": "'left-pad'" + "raw": "'left-pad'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/issue-8482/input.js.json b/crates/swc_ecma_parser/tests/js/issue-8482/input.js.json index 2e7e1936bbf6..c129b76b22b6 100644 --- a/crates/swc_ecma_parser/tests/js/issue-8482/input.js.json +++ b/crates/swc_ecma_parser/tests/js/issue-8482/input.js.json @@ -45,7 +45,8 @@ "end": 19 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json index ae15a1a63257..8e98082ca995 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-declaration/input.js.json @@ -37,7 +37,8 @@ "end": 25 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 44 }, "value": "val", - "raw": "\"val\"" + "raw": "\"val\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json index 98639579abf9..31fed5f12b37 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/attributes-expression/input.js.json @@ -36,7 +36,8 @@ "end": 18 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 41 }, "value": "val", - "raw": "\"val\"" + "raw": "\"val\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-comments/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-comments/input.js.json index 545958867cd7..13ae34e3eaf9 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-comments/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-comments/input.js.json @@ -36,7 +36,8 @@ "end": 55 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-false/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-false/input.js.json index e5d00562f9a3..db553bae4dfb 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-false/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-false/input.js.json @@ -36,7 +36,8 @@ "end": 20 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-true/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-true/input.js.json index e5d00562f9a3..db553bae4dfb 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-true/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-createImportExpressions-true/input.js.json @@ -36,7 +36,8 @@ "end": 20 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-no-createImportExpressions-babel7/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-no-createImportExpressions-babel7/input.js.json index e5d00562f9a3..db553bae4dfb 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-no-createImportExpressions-babel7/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-no-createImportExpressions-babel7/input.js.json @@ -36,7 +36,8 @@ "end": 20 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options-comments/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options-comments/input.js.json index aee5edaf362b..d228b7853767 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options-comments/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options-comments/input.js.json @@ -36,7 +36,8 @@ "end": 55 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options/input.js.json index c497ddb1ed03..017715e726b9 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import-options/input.js.json @@ -36,7 +36,8 @@ "end": 20 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -65,7 +66,8 @@ "end": 35 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import/input.js.json index e5d00562f9a3..db553bae4dfb 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/dynamic-import/input.js.json @@ -36,7 +36,8 @@ "end": 20 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-default-binding-source/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-default-binding-source/input.js.json index 45056e356673..897b2147157f 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-default-binding-source/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-default-binding-source/input.js.json @@ -37,7 +37,8 @@ "end": 23 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-from/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-from/input.js.json index f0ac12516315..45ad6b8689eb 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-from/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-from/input.js.json @@ -37,7 +37,8 @@ "end": 28 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-source/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-source/input.js.json index 61f2cd64df0e..746cf81a6d9d 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-source/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-binding-source/input.js.json @@ -37,7 +37,8 @@ "end": 30 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-comments/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-comments/input.js.json index 54939986e2be..449d86cfa9ed 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-comments/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source-comments/input.js.json @@ -37,7 +37,8 @@ "end": 64 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source/input.js.json b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source/input.js.json index f00e97ab0d67..8868fe45d664 100644 --- a/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source/input.js.json +++ b/crates/swc_ecma_parser/tests/js/source-phase-imports/import-source/input.js.json @@ -37,7 +37,8 @@ "end": 25 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json index 03dbb841c0c9..4ad6797cc8ac 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/18/input.js.json @@ -72,7 +72,8 @@ "end": 33 }, "value": "attribute", - "raw": "\"attribute\"" + "raw": "\"attribute\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json index 805f51354da8..9fecab0597a9 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/19/input.js.json @@ -55,7 +55,8 @@ "end": 19 }, "value": "leading", - "raw": "\"leading\"" + "raw": "\"leading\"", + "loneSurrogates": false } }, { @@ -79,7 +80,8 @@ "end": 36 }, "value": "attribute", - "raw": "\"attribute\"" + "raw": "\"attribute\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json index 3a53923360cd..f4549f5f05e3 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/3/input.js.json @@ -70,7 +70,8 @@ "end": 15 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json index 955f83a12228..f0ac9b5f5e03 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/4/input.js.json @@ -61,7 +61,8 @@ "end": 10 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -86,7 +87,8 @@ "end": 17 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } }, { @@ -110,7 +112,8 @@ "end": 27 }, "value": "&", - "raw": "\"&\"" + "raw": "\"&\"", + "loneSurrogates": false } }, { @@ -134,7 +137,8 @@ "end": 38 }, "value": "&r;", - "raw": "\"&r;\"" + "raw": "\"&r;\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json index 06325336b42c..9bcdd9c79283 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/7/input.js.json @@ -55,7 +55,8 @@ "end": 32 }, "value": "&&", - "raw": "\"&&\"" + "raw": "\"&&\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json index 52efdb831d18..78edfe60dbb5 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-614/input.js.json @@ -76,7 +76,8 @@ "end": 28 }, "value": "5", - "raw": "\"5\"" + "raw": "\"5\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json index 1cecf5d33029..2b70dbd03cf9 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/issue-615/input.js.json @@ -76,7 +76,8 @@ "end": 25 }, "value": "5", - "raw": "\"5\"" + "raw": "\"5\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl-space/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl-space/input.js.json index 454c36eb00ef..b1d5347db582 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl-space/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl-space/input.js.json @@ -38,7 +38,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -48,7 +49,8 @@ }, "tail": true, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl/input.js.json index 72d07cf1f35b..a99618650666 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/tpl/input.js.json @@ -38,7 +38,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -48,7 +49,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/unary-paren/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/unary-paren/input.js.json index 9affb7f58266..79fe6e646a4a 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/unary-paren/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/unary-paren/input.js.json @@ -37,7 +37,8 @@ "end": 26 }, "value": "react", - "raw": "'react'" + "raw": "'react'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/jsx/basic/custom/unary/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/custom/unary/input.js.json index 04610ef9f95d..1db5d028d3fa 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/custom/unary/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/custom/unary/input.js.json @@ -37,7 +37,8 @@ "end": 26 }, "value": "react", - "raw": "'react'" + "raw": "'react'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/jsx/basic/fragment-6/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/fragment-6/input.js.json index 8c3ecda558be..a5dbf620b070 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/fragment-6/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/fragment-6/input.js.json @@ -102,7 +102,8 @@ "end": 56 }, "value": "JSXExpressionContainer", - "raw": "'JSXExpressionContainer'" + "raw": "'JSXExpressionContainer'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/issue-10729/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/issue-10729/input.js.json index 7d0a274f0024..12cbc7ef294e 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/issue-10729/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/issue-10729/input.js.json @@ -85,7 +85,8 @@ "end": 32 }, "value": "aaa", - "raw": "\"aaa\"" + "raw": "\"aaa\"", + "loneSurrogates": false } } ], @@ -206,7 +207,8 @@ "end": 80 }, "value": "loop", - "raw": "\"loop\"" + "raw": "\"loop\"", + "loneSurrogates": false } }, { @@ -230,7 +232,8 @@ "end": 96 }, "value": "waiting", - "raw": "\"waiting\"" + "raw": "\"waiting\"", + "loneSurrogates": false } }, { @@ -409,7 +412,8 @@ "end": 168 }, "value": "loop", - "raw": "\"loop\"" + "raw": "\"loop\"", + "loneSurrogates": false } }, { @@ -433,7 +437,8 @@ "end": 184 }, "value": "waiting", - "raw": "\"waiting\"" + "raw": "\"waiting\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json index cce9901130a2..16164b30423b 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/issue-6522/input.js.json @@ -565,7 +565,8 @@ "end": 162 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json index 4bc945beb1c8..7b55e8b4ba42 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/string/input.js.json @@ -98,8 +98,9 @@ "start": 30, "end": 38 }, - "value": "\\uD800", - "raw": "\"\\uD800\"" + "value": "�d800", + "raw": "\"\\uD800\"", + "loneSurrogates": true } } ] @@ -226,8 +227,9 @@ "start": 79, "end": 89 }, - "value": "\\u{D800}", - "raw": "\"\\u{D800}\"" + "value": "�d800", + "raw": "\"\\u{D800}\"", + "loneSurrogates": true } } ] diff --git a/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json b/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json index 5c7d67be35aa..e5cc2b230965 100644 --- a/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json +++ b/crates/swc_ecma_parser/tests/jsx/basic/template/input.js.json @@ -107,8 +107,9 @@ "end": 37 }, "tail": true, - "cooked": "\\uD800", - "raw": "\\uD800" + "cooked": "�d800", + "raw": "\\uD800", + "loneSurrogates": true } ] } @@ -246,8 +247,9 @@ "end": 88 }, "tail": true, - "cooked": "\\u{D800}", - "raw": "\\u{D800}" + "cooked": "�d800", + "raw": "\\u{D800}", + "loneSurrogates": true } ] } diff --git a/crates/swc_ecma_parser/tests/test262-error-references/fail/abc46381e4e6bcca.js.swc-stderr b/crates/swc_ecma_parser/tests/test262-error-references/fail/abc46381e4e6bcca.js.swc-stderr index d4361e6704d3..006950e56d81 100644 --- a/crates/swc_ecma_parser/tests/test262-error-references/fail/abc46381e4e6bcca.js.swc-stderr +++ b/crates/swc_ecma_parser/tests/test262-error-references/fail/abc46381e4e6bcca.js.swc-stderr @@ -1,10 +1,5 @@ x Invalid character in identifier ,-[$DIR/tests/test262-parser/fail/abc46381e4e6bcca.js:1:1] 1 | var \uD83B\uDE00 - : ^^^^^^ - `---- - x Invalid character in identifier - ,-[$DIR/tests/test262-parser/fail/abc46381e4e6bcca.js:1:1] - 1 | var \uD83B\uDE00 - : ^^^^^^ + : ^^^^^^^^^^^^ `---- diff --git a/crates/swc_ecma_parser/tests/test262-error-references/fail/c3afed3cb0fb92ab.js.swc-stderr b/crates/swc_ecma_parser/tests/test262-error-references/fail/c3afed3cb0fb92ab.js.swc-stderr index 8318446b25bd..61fbd2052130 100644 --- a/crates/swc_ecma_parser/tests/test262-error-references/fail/c3afed3cb0fb92ab.js.swc-stderr +++ b/crates/swc_ecma_parser/tests/test262-error-references/fail/c3afed3cb0fb92ab.js.swc-stderr @@ -1,9 +1,5 @@ x Bad character escape sequence, expected 4 hex characters ,-[$DIR/tests/test262-parser/fail/c3afed3cb0fb92ab.js:1:1] 1 | \uD800\u - `---- - x Invalid character in identifier - ,-[$DIR/tests/test262-parser/fail/c3afed3cb0fb92ab.js:1:1] - 1 | \uD800\u - : ^^^^^^ + : ^^^^^^ `---- diff --git a/crates/swc_ecma_parser/tests/test262-error-references/fail/d4cf8ae9018f6a28.js.swc-stderr b/crates/swc_ecma_parser/tests/test262-error-references/fail/d4cf8ae9018f6a28.js.swc-stderr index f6fa9b0e5385..6adcb8b78dc2 100644 --- a/crates/swc_ecma_parser/tests/test262-error-references/fail/d4cf8ae9018f6a28.js.swc-stderr +++ b/crates/swc_ecma_parser/tests/test262-error-references/fail/d4cf8ae9018f6a28.js.swc-stderr @@ -1,10 +1,5 @@ x Invalid character in identifier ,-[$DIR/tests/test262-parser/fail/d4cf8ae9018f6a28.js:1:1] 1 | \uD800\uDC00 - : ^^^^^^ - `---- - x Invalid character in identifier - ,-[$DIR/tests/test262-parser/fail/d4cf8ae9018f6a28.js:1:1] - 1 | \uD800\uDC00 - : ^^^^^^ + : ^^^^^^^^^^^^ `---- diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json index a2a8c0b87cb6..ec32661cb1d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithModulesExportedStaticFunctionUsingClassPrivateStatics.json @@ -441,7 +441,8 @@ "end": 243 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json index d0c8ae9d4542..6dd6cc38cabd 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndExportedFunctionThatShareAName.json @@ -706,7 +706,8 @@ "end": 536 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json index 1a16730ded01..fab59c865dc6 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticFunctionAndNonExportedFunctionThatShareAName.json @@ -324,7 +324,8 @@ "end": 177 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -695,7 +696,8 @@ "end": 445 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json index 42077ff8cdf1..c874878a2358 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndExportedVarThatShareAName.json @@ -297,7 +297,8 @@ "end": 159 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -638,7 +639,8 @@ "end": 410 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json index d5dfb62bf631..9a0ee52df719 100644 --- a/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json +++ b/crates/swc_ecma_parser/tests/tsc/ClassAndModuleThatMergeWithStaticVariableAndNonExportedVarThatShareAName.json @@ -291,7 +291,8 @@ "end": 152 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -625,7 +626,8 @@ "end": 394 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/ES3For-ofTypeCheck1.json b/crates/swc_ecma_parser/tests/tsc/ES3For-ofTypeCheck1.json index e3162f13747d..72a9676700fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES3For-ofTypeCheck1.json +++ b/crates/swc_ecma_parser/tests/tsc/ES3For-ofTypeCheck1.json @@ -51,7 +51,8 @@ "end": 32 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "body": { "type": "BlockStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json index 4a8e745b9947..be236dcc0448 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of1.json @@ -60,7 +60,8 @@ "end": 38 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -72,7 +73,8 @@ "end": 43 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 48 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of12.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of12.json index 233b60e94d0d..184fc9fa54bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of12.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of12.json @@ -26,7 +26,8 @@ "end": 9 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } ], "optional": false, @@ -57,7 +58,8 @@ "end": 18 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of13.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of13.json index 6dc7f561f8e9..3b03f85e86af 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of13.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of13.json @@ -60,7 +60,8 @@ "end": 38 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -72,7 +73,8 @@ "end": 43 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 48 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of3.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of3.json index 3ce2e118dccf..9cba0d08ea33 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of3.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of3.json @@ -60,7 +60,8 @@ "end": 38 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -72,7 +73,8 @@ "end": 43 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 48 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of30.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of30.json index 898e8b1728c8..db06407ab40c 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of30.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of30.json @@ -187,7 +187,8 @@ "end": 64 }, "value": "3", - "raw": "\"3\"" + "raw": "\"3\"", + "loneSurrogates": false } } ] @@ -261,7 +262,8 @@ "end": 86 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json index 521668db244c..e2cfe9936589 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of31.json @@ -171,7 +171,8 @@ "end": 54 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json index a063d33e02a4..958e4a82244d 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of33.json @@ -60,7 +60,8 @@ "end": 66 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -72,7 +73,8 @@ "end": 71 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -84,7 +86,8 @@ "end": 76 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json index ab71a68dc3f1..9d074a61742c 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of34.json @@ -134,7 +134,8 @@ "end": 108 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -146,7 +147,8 @@ "end": 113 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -158,7 +160,8 @@ "end": 118 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json index 2b6d751dc12e..1c3e997ce85d 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of37.json @@ -301,7 +301,8 @@ "end": 312 }, "value": "ERR", - "raw": "'ERR'" + "raw": "'ERR'", + "loneSurrogates": false } } ], @@ -446,7 +447,8 @@ "end": 412 }, "value": "E %s %s", - "raw": "'E %s %s'" + "raw": "'E %s %s'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json b/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json index 7c57768c7350..f1aea4dcb329 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-of8.json @@ -134,7 +134,8 @@ "end": 80 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -146,7 +147,8 @@ "end": 85 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -158,7 +160,8 @@ "end": 90 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck1.json b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck1.json index e3162f13747d..72a9676700fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck1.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck1.json @@ -51,7 +51,8 @@ "end": 32 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "body": { "type": "BlockStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json index dd524c07acf5..a016995ebf32 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck10.json @@ -104,7 +104,8 @@ "end": 176 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json index 821dd07b0361..a8e7c92189ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck13.json @@ -144,7 +144,8 @@ "end": 84 }, "value": "Hello", - "raw": "'Hello'" + "raw": "'Hello'", + "loneSurrogates": false } } ], @@ -199,7 +200,8 @@ "end": 104 }, "value": "World", - "raw": "'World'" + "raw": "'World'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck3.json b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck3.json index 1a531a94f794..bd7d6c1e8642 100644 --- a/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck3.json +++ b/crates/swc_ecma_parser/tests/tsc/ES5For-ofTypeCheck3.json @@ -95,7 +95,8 @@ "end": 49 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json index f1d04cb43923..64900ee5e47b 100644 --- a/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/ModuleWithExportedAndNonExportedVariables.json @@ -71,7 +71,8 @@ "end": 44 }, "value": "hello world", - "raw": "'hello world'" + "raw": "'hello world'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json index 949228d8018e..abd6e11236ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/TwoInternalModulesThatMergeEachWithExportedAndNonExportedLocalVarsOfTheSameName.json @@ -582,7 +582,8 @@ "end": 404 }, "value": "0,0", - "raw": "\"0,0\"" + "raw": "\"0,0\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json index a9f1d166b1fb..c93ca48733e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/TypeGuardWithEnumUnion.json @@ -207,7 +207,8 @@ "end": 87 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -564,7 +565,8 @@ "end": 273 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -711,7 +713,8 @@ "end": 356 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -981,7 +984,8 @@ "end": 506 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/abstractProperty.json b/crates/swc_ecma_parser/tests/tsc/abstractProperty.json index a2ab366757af..897ba189b893 100644 --- a/crates/swc_ecma_parser/tests/tsc/abstractProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/abstractProperty.json @@ -225,7 +225,8 @@ "end": 214 }, "value": "B.x", - "raw": "'B.x'" + "raw": "'B.x'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -317,7 +318,8 @@ "end": 275 }, "value": "C.x", - "raw": "'C.x'" + "raw": "'C.x'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json b/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json index ac11e3c34b4c..02da9aed7607 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsAreNotContextuallyTyped.json @@ -221,7 +221,8 @@ "end": 143 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -375,7 +376,8 @@ "end": 178 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json index fb4debebae67..53c1881b5d05 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty.json @@ -46,7 +46,8 @@ "end": 77 }, "value": "yep", - "raw": "'yep'" + "raw": "'yep'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -129,7 +130,8 @@ "end": 128 }, "value": "oh no", - "raw": "'oh no'" + "raw": "'oh no'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json index 7e20d86d9028..e793a81eb6a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty2.json @@ -264,7 +264,8 @@ }, "tail": false, "cooked": "x was set to ", - "raw": "x was set to " + "raw": "x was set to ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -274,7 +275,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json index d598379c1405..cc60a80f23fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty3.json @@ -113,7 +113,8 @@ "end": 144 }, "value": "grrr", - "raw": "'grrr'" + "raw": "'grrr'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json index 38698c34bc09..3f998911e1fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty4.json @@ -113,7 +113,8 @@ "end": 145 }, "value": "roar", - "raw": "'roar'" + "raw": "'roar'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json index b1b02e74d6c2..bd1a06ff5b98 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty6.json @@ -46,7 +46,8 @@ "end": 78 }, "value": "yep", - "raw": "'yep'" + "raw": "'yep'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -129,7 +130,8 @@ "end": 129 }, "value": "oh no", - "raw": "'oh no'" + "raw": "'oh no'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json index d2bd56160a40..e30bef9d641f 100644 --- a/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json +++ b/crates/swc_ecma_parser/tests/tsc/accessorsOverrideProperty8.json @@ -43,7 +43,8 @@ "end": 42 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 54 }, "value": "unknown", - "raw": "'unknown'" + "raw": "'unknown'", + "loneSurrogates": false } }, { @@ -75,7 +77,8 @@ "end": 65 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] @@ -317,7 +320,8 @@ "end": 179 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } }, "trueType": { @@ -391,7 +395,8 @@ "end": 215 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "trueType": { @@ -1113,7 +1118,8 @@ "end": 555 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } } @@ -1137,7 +1143,8 @@ "end": 583 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] @@ -1300,7 +1307,8 @@ "end": 710 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json index 78a185e88787..f6d6bb101a6f 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithAnyAndEveryType.json @@ -1562,7 +1562,8 @@ "end": 636 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1695,7 +1696,8 @@ "end": 678 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json index 1261c1894834..4065cd0d03b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndInvalidOperator.json @@ -786,7 +786,8 @@ "end": 429 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json index f00a72b99eb3..e4db30fd5743 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNullValueAndValidOperator.json @@ -722,7 +722,8 @@ "end": 364 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1032,7 +1033,8 @@ "end": 461 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -1152,7 +1154,8 @@ "end": 528 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1256,7 +1259,8 @@ "end": 562 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json index ae71bdca2a3b..604eeaf9041a 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithNumberAndEnum.json @@ -823,7 +823,8 @@ "end": 207 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -856,7 +857,8 @@ "end": 216 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -928,7 +930,8 @@ "end": 233 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -961,7 +964,8 @@ "end": 242 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json index effb9a98834f..2eab0727c8b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithStringAndEveryType.json @@ -1478,7 +1478,8 @@ "end": 550 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1611,7 +1612,8 @@ "end": 590 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json index cb51d755bd61..45753f34fbe0 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndInvalidOperands.json @@ -813,7 +813,8 @@ "end": 479 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json index 7b70a11c38b3..95adb223b67f 100644 --- a/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/additionOperatorWithUndefinedValueAndValidOperator.json @@ -743,7 +743,8 @@ "end": 409 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1065,7 +1066,8 @@ "end": 526 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -1194,7 +1196,8 @@ "end": 613 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1301,7 +1304,8 @@ "end": 652 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/allowImportingTsExtensions.json b/crates/swc_ecma_parser/tests/tsc/allowImportingTsExtensions.json index 8a96c81d7ffe..e0250b0eed8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/allowImportingTsExtensions.json +++ b/crates/swc_ecma_parser/tests/tsc/allowImportingTsExtensions.json @@ -52,7 +52,8 @@ "end": 311 }, "value": "./ts.js", - "raw": "\"./ts.js\"" + "raw": "\"./ts.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -72,7 +73,8 @@ "end": 337 }, "value": "./ts.ts", - "raw": "\"./ts.ts\"" + "raw": "\"./ts.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -92,7 +94,8 @@ "end": 370 }, "value": "./ts.d.ts", - "raw": "\"./ts.d.ts\"" + "raw": "\"./ts.d.ts\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -112,7 +115,8 @@ "end": 398 }, "value": "./tsx.js", - "raw": "\"./tsx.js\"" + "raw": "\"./tsx.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -132,7 +136,8 @@ "end": 426 }, "value": "./tsx.jsx", - "raw": "\"./tsx.jsx\"" + "raw": "\"./tsx.jsx\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -152,7 +157,8 @@ "end": 453 }, "value": "./tsx.ts", - "raw": "\"./tsx.ts\"" + "raw": "\"./tsx.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -172,7 +178,8 @@ "end": 481 }, "value": "./tsx.tsx", - "raw": "\"./tsx.tsx\"" + "raw": "\"./tsx.tsx\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -192,7 +199,8 @@ "end": 515 }, "value": "./tsx.d.ts", - "raw": "\"./tsx.d.ts\"" + "raw": "\"./tsx.d.ts\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -212,7 +220,8 @@ "end": 543 }, "value": "./dts.js", - "raw": "\"./dts.js\"" + "raw": "\"./dts.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -232,7 +241,8 @@ "end": 570 }, "value": "./dts.ts", - "raw": "\"./dts.ts\"" + "raw": "\"./dts.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -252,7 +262,8 @@ "end": 604 }, "value": "./dts.d.ts", - "raw": "\"./dts.d.ts\"" + "raw": "\"./dts.d.ts\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -272,7 +283,8 @@ "end": 669 }, "value": "./thisfiledoesnotexist.ts", - "raw": "\"./thisfiledoesnotexist.ts\"" + "raw": "\"./thisfiledoesnotexist.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json b/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json index 60fb86d6e314..119d03fcbb16 100644 --- a/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json +++ b/crates/swc_ecma_parser/tests/tsc/allowImportingTypesDtsExtension.json @@ -109,7 +109,8 @@ "end": 279 }, "value": "./types.d.ts", - "raw": "\"./types.d.ts\"" + "raw": "\"./types.d.ts\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -149,7 +150,8 @@ "end": 321 }, "value": "./types.d.ts", - "raw": "\"./types.d.ts\"" + "raw": "\"./types.d.ts\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -235,7 +237,8 @@ "end": 364 }, "value": "John", - "raw": "\"John\"" + "raw": "\"John\"", + "loneSurrogates": false } } ] @@ -320,7 +323,8 @@ "end": 417 }, "value": "./types.d.ts", - "raw": "\"./types.d.ts\"" + "raw": "\"./types.d.ts\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.json b/crates/swc_ecma_parser/tests/tsc/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.json index 14fa9f922aef..9e9224b45299 100644 --- a/crates/swc_ecma_parser/tests/tsc/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.json @@ -39,7 +39,8 @@ "end": 195 }, "value": "
STRING_CONTENT
", - "raw": "\"
STRING_CONTENT
\"" + "raw": "\"
STRING_CONTENT
\"", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 270 }, "value": "
STRING_CONTENT
", - "raw": "\"
STRING_CONTENT
\"" + "raw": "\"
STRING_CONTENT
\"", + "loneSurrogates": false }, "definite": false } @@ -119,7 +121,8 @@ "end": 342 }, "value": "
STRING_CONTENT
", - "raw": "'
STRING_CONTENT
'" + "raw": "'
STRING_CONTENT
'", + "loneSurrogates": false }, "definite": false } @@ -159,7 +162,8 @@ "end": 417 }, "value": "
STRING_CONTENT
", - "raw": "'
STRING_CONTENT
'" + "raw": "'
STRING_CONTENT
'", + "loneSurrogates": false }, "definite": false } @@ -208,7 +212,8 @@ }, "tail": true, "cooked": "
STRING_CONTENT
", - "raw": "
STRING_CONTENT
" + "raw": "
STRING_CONTENT
", + "loneSurrogates": false } ] }, @@ -259,7 +264,8 @@ }, "tail": true, "cooked": "
STRING_CONTENT
", - "raw": "
STRING_CONTENT
" + "raw": "
STRING_CONTENT
", + "loneSurrogates": false } ] }, @@ -310,7 +316,8 @@ "end": 662 }, "value": "

STRING_CONTENT

", - "raw": "\"

STRING_CONTENT

\"" + "raw": "\"

STRING_CONTENT

\"", + "loneSurrogates": false } }, { @@ -322,7 +329,8 @@ "end": 702 }, "value": "


STRING_CONTENT


", - "raw": "\"


STRING_CONTENT


\"" + "raw": "\"


STRING_CONTENT


\"", + "loneSurrogates": false } }, { @@ -334,7 +342,8 @@ "end": 727 }, "value": "STRING_CONTENT
", - "raw": "\"STRING_CONTENT
\"" + "raw": "\"STRING_CONTENT
\"", + "loneSurrogates": false } }, { @@ -346,7 +355,8 @@ "end": 752 }, "value": "
STRING_CONTENT", - "raw": "\"
STRING_CONTENT\"" + "raw": "\"
STRING_CONTENT\"", + "loneSurrogates": false } }, { @@ -367,7 +377,8 @@ }, "tail": true, "cooked": "", - "raw": "\\
" + "raw": "\\
", + "loneSurrogates": false } ] } @@ -381,7 +392,8 @@ "end": 775 }, "value": "
", - "raw": "'
'" + "raw": "'
'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/allowsImportingTsExtension.json b/crates/swc_ecma_parser/tests/tsc/allowsImportingTsExtension.json index b1519f8bc53f..975d868b4e84 100644 --- a/crates/swc_ecma_parser/tests/tsc/allowsImportingTsExtension.json +++ b/crates/swc_ecma_parser/tests/tsc/allowsImportingTsExtension.json @@ -105,7 +105,8 @@ "end": 206 }, "value": "./a.ts", - "raw": "\"./a.ts\"" + "raw": "\"./a.ts\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -125,7 +126,8 @@ "end": 237 }, "value": "./a.ts", - "raw": "\"./a.ts\"" + "raw": "\"./a.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -174,7 +176,8 @@ "end": 285 }, "value": "./a.ts", - "raw": "\"./a.ts\"" + "raw": "\"./a.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -211,7 +214,8 @@ "end": 322 }, "value": "./a.ts", - "raw": "\"./a.ts\"" + "raw": "\"./a.ts\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -279,7 +283,8 @@ "end": 365 }, "value": "./a.ts", - "raw": "\"./a.ts\"" + "raw": "\"./a.ts\"", + "loneSurrogates": false } } ], @@ -323,7 +328,8 @@ "end": 430 }, "value": "./a.d.ts", - "raw": "\"./a.d.ts\"" + "raw": "\"./a.d.ts\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -343,7 +349,8 @@ "end": 463 }, "value": "./a.d.ts", - "raw": "\"./a.d.ts\"" + "raw": "\"./a.d.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -392,7 +399,8 @@ "end": 513 }, "value": "./a.d.ts", - "raw": "\"./a.d.ts\"" + "raw": "\"./a.d.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -429,7 +437,8 @@ "end": 552 }, "value": "./a.d.ts", - "raw": "\"./a.d.ts\"" + "raw": "\"./a.d.ts\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -497,7 +506,8 @@ "end": 597 }, "value": "./a.d.ts", - "raw": "\"./a.d.ts\"" + "raw": "\"./a.d.ts\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/ambient.json b/crates/swc_ecma_parser/tests/tsc/ambient.json index c7e3378fd15d..483252c68abb 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambient.json +++ b/crates/swc_ecma_parser/tests/tsc/ambient.json @@ -113,7 +113,8 @@ "end": 100 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json index d1bbf685e6cb..25602d708f9f 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarations.json @@ -1735,7 +1735,8 @@ "end": 1505 }, "value": "external1", - "raw": "'external1'" + "raw": "'external1'", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json index a8f85c4898c0..c1c290f10e74 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsExternal.json @@ -21,7 +21,8 @@ "end": 94 }, "value": "equ", - "raw": "'equ'" + "raw": "'equ'", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -98,7 +99,8 @@ "end": 148 }, "value": "equ2", - "raw": "'equ2'" + "raw": "'equ2'", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -187,7 +189,8 @@ "end": 362 }, "value": "equ", - "raw": "'equ'" + "raw": "'equ'", + "loneSurrogates": false } } }, @@ -222,7 +225,8 @@ "end": 517 }, "value": "equ2", - "raw": "'equ2'" + "raw": "'equ2'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json index 2df82f15f93b..7a7a76c598fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns.json @@ -21,7 +21,8 @@ "end": 57 }, "value": "foo*baz", - "raw": "\"foo*baz\"" + "raw": "\"foo*baz\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -130,7 +131,8 @@ "end": 156 }, "value": "foo*baz", - "raw": "\"foo*baz\"" + "raw": "\"foo*baz\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -211,7 +213,8 @@ "end": 237 }, "value": "foos*", - "raw": "\"foos*\"" + "raw": "\"foos*\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -292,7 +295,8 @@ "end": 297 }, "value": "*!text", - "raw": "\"*!text\"" + "raw": "\"*!text\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -420,7 +424,8 @@ "end": 444 }, "value": "foobarbaz", - "raw": "\"foobarbaz\"" + "raw": "\"foobarbaz\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -501,7 +506,8 @@ "end": 486 }, "value": "foosball", - "raw": "\"foosball\"" + "raw": "\"foosball\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -580,7 +586,8 @@ "end": 567 }, "value": "./file!text", - "raw": "\"./file!text\"" + "raw": "\"./file!text\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging1.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging1.json index 75b97efdfde5..50474a13fc48 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging1.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging1.json @@ -21,7 +21,8 @@ "end": 46 }, "value": "*.foo", - "raw": "\"*.foo\"" + "raw": "\"*.foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -132,7 +133,8 @@ "end": 145 }, "value": "a.foo", - "raw": "\"a.foo\"" + "raw": "\"a.foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -154,7 +156,8 @@ "end": 169 }, "value": "a.foo", - "raw": "\"a.foo\"" + "raw": "\"a.foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -265,7 +268,8 @@ "end": 264 }, "value": "b.foo", - "raw": "\"b.foo\"" + "raw": "\"b.foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging2.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging2.json index 2b6029e6ae0a..4a8d4ed56079 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging2.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging2.json @@ -21,7 +21,8 @@ "end": 46 }, "value": "*.foo", - "raw": "\"*.foo\"" + "raw": "\"*.foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -151,7 +152,8 @@ "end": 158 }, "value": "a.foo", - "raw": "\"a.foo\"" + "raw": "\"a.foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -173,7 +175,8 @@ "end": 182 }, "value": "a.foo", - "raw": "\"a.foo\"" + "raw": "\"a.foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -303,7 +306,8 @@ "end": 290 }, "value": "b.foo", - "raw": "\"b.foo\"" + "raw": "\"b.foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -325,7 +329,8 @@ "end": 323 }, "value": "a.foo", - "raw": "\"a.foo\"" + "raw": "\"a.foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json index f3875c47195e..b33aba982469 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_merging3.json @@ -21,7 +21,8 @@ "end": 46 }, "value": "*.foo", - "raw": "\"*.foo\"" + "raw": "\"*.foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -120,7 +121,8 @@ "end": 137 }, "value": "a.foo", - "raw": "\"a.foo\"" + "raw": "\"a.foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -237,7 +239,8 @@ "end": 208 }, "value": "b.foo", - "raw": "\"b.foo\"" + "raw": "\"b.foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_tooManyAsterisks.json b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_tooManyAsterisks.json index ddbe13238edd..c19d94559e5d 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_tooManyAsterisks.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientDeclarationsPatterns_tooManyAsterisks.json @@ -21,7 +21,8 @@ "end": 36 }, "value": "too*many*asterisks", - "raw": "\"too*many*asterisks\"" + "raw": "\"too*many*asterisks\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbient.json b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbient.json index 6a299b9b4667..c2005e0b56c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbient.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbient.json @@ -53,7 +53,8 @@ "end": 41 }, "value": "M", - "raw": "\"M\"" + "raw": "\"M\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbientExternalModule.json b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbientExternalModule.json index 6f365373849a..4c7893d9727a 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbientExternalModule.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleInsideNonAmbientExternalModule.json @@ -27,7 +27,8 @@ "end": 41 }, "value": "M", - "raw": "\"M\"" + "raw": "\"M\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json index caeff2edf7ae..cc9e52406507 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientExternalModuleMerging.json @@ -36,7 +36,8 @@ "end": 87 }, "value": "M", - "raw": "\"M\"" + "raw": "\"M\"", + "loneSurrogates": false } } }, @@ -168,7 +169,8 @@ "end": 209 }, "value": "M", - "raw": "\"M\"" + "raw": "\"M\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -249,7 +251,8 @@ "end": 268 }, "value": "M", - "raw": "\"M\"" + "raw": "\"M\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/ambientShorthand.json b/crates/swc_ecma_parser/tests/tsc/ambientShorthand.json index 934ee51ebe0e..0e060c74e779 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientShorthand.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientShorthand.json @@ -21,7 +21,8 @@ "end": 56 }, "value": "jquery", - "raw": "\"jquery\"" + "raw": "\"jquery\"", + "loneSurrogates": false }, "body": null }, @@ -41,7 +42,8 @@ "end": 101 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "body": null }, @@ -96,7 +98,8 @@ "end": 198 }, "value": "jquery", - "raw": "\"jquery\"" + "raw": "\"jquery\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -134,7 +137,8 @@ "end": 225 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -171,7 +175,8 @@ "end": 257 }, "value": "jquery", - "raw": "\"jquery\"" + "raw": "\"jquery\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_declarationEmit.json b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_declarationEmit.json index c3a313cbae27..5db07891be5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_declarationEmit.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_declarationEmit.json @@ -21,7 +21,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": null } diff --git a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_duplicate.json b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_duplicate.json index 49bfb00c4eea..2959dce9a7ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_duplicate.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_duplicate.json @@ -21,7 +21,8 @@ "end": 54 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": null }, @@ -41,7 +42,8 @@ "end": 110 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": null }, @@ -77,7 +79,8 @@ "end": 242 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_merging.json b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_merging.json index 357409014c25..29142b52dad1 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_merging.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_merging.json @@ -21,7 +21,8 @@ "end": 54 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": null }, @@ -41,7 +42,8 @@ "end": 110 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -157,7 +159,8 @@ "end": 282 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_reExport.json b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_reExport.json index 698752df5f17..6de8c78e1771 100644 --- a/crates/swc_ecma_parser/tests/tsc/ambientShorthand_reExport.json +++ b/crates/swc_ecma_parser/tests/tsc/ambientShorthand_reExport.json @@ -21,7 +21,8 @@ "end": 56 }, "value": "jquery", - "raw": "\"jquery\"" + "raw": "\"jquery\"", + "loneSurrogates": false }, "body": null }, @@ -59,7 +60,8 @@ "end": 110 }, "value": "jquery", - "raw": "\"jquery\"" + "raw": "\"jquery\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -77,7 +79,8 @@ "end": 164 }, "value": "jquery", - "raw": "\"jquery\"" + "raw": "\"jquery\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -116,7 +119,8 @@ "end": 226 }, "value": "./reExportX", - "raw": "\"./reExportX\"" + "raw": "\"./reExportX\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -154,7 +158,8 @@ "end": 262 }, "value": "./reExportAll", - "raw": "\"./reExportAll\"" + "raw": "\"./reExportAll\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json index df21e6bc3ba7..8a9e3372de64 100644 --- a/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/amdImportAsPrimaryExpression.json @@ -118,7 +118,8 @@ "end": 120 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json index dd93fca77c09..6707b6ff41f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/amdImportNotAsPrimaryExpression.json @@ -432,7 +432,8 @@ "end": 287 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/anyAsConstructor.json b/crates/swc_ecma_parser/tests/tsc/anyAsConstructor.json index d1cc1b271484..7db1c8dd7124 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAsConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAsConstructor.json @@ -156,7 +156,8 @@ "end": 160 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/anyAsFunctionCall.json b/crates/swc_ecma_parser/tests/tsc/anyAsFunctionCall.json index 3d100be9169c..e02bdbdb6a27 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAsFunctionCall.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAsFunctionCall.json @@ -156,7 +156,8 @@ "end": 152 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json b/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json index 218534218cfb..5cfd3505d626 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json +++ b/crates/swc_ecma_parser/tests/tsc/anyAsGenericFunctionCall.json @@ -172,7 +172,8 @@ "end": 168 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json index 32c7e5d70e82..26f40100125f 100644 --- a/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.json @@ -163,7 +163,8 @@ "end": 43 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -234,7 +235,8 @@ "end": 60 }, "value": "fn", - "raw": "'fn'" + "raw": "'fn'", + "loneSurrogates": false } } }, @@ -457,7 +459,8 @@ "end": 115 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json index 3828d52915a3..08aff5b1de39 100644 --- a/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/argumentExpressionContextualTyping.json @@ -580,7 +580,8 @@ "end": 287 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -651,7 +652,8 @@ "end": 317 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } }, { @@ -967,7 +969,8 @@ "end": 418 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -1038,7 +1041,8 @@ "end": 448 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } }, { @@ -1170,7 +1174,8 @@ "end": 561 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -1241,7 +1246,8 @@ "end": 591 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } }, { @@ -1317,7 +1323,8 @@ "end": 639 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -1455,7 +1462,8 @@ "end": 699 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -1570,7 +1578,8 @@ "end": 736 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -1686,7 +1695,8 @@ "end": 809 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiteralExpressionContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/arrayLiteralExpressionContextualTyping.json index 437e4c4a3c58..b295a90f1227 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiteralExpressionContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiteralExpressionContextualTyping.json @@ -500,7 +500,8 @@ "end": 552 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -651,7 +652,8 @@ "end": 610 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json b/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json index c3f847e74967..69f387497fb9 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiteralInference.json @@ -53,7 +53,8 @@ "end": 115 }, "value": "HeaderDetail", - "raw": "'HeaderDetail'" + "raw": "'HeaderDetail'", + "loneSurrogates": false } }, { @@ -79,7 +80,8 @@ "end": 160 }, "value": "HeaderMultiDetail", - "raw": "'HeaderMultiDetail'" + "raw": "'HeaderMultiDetail'", + "loneSurrogates": false } }, { @@ -105,7 +107,8 @@ "end": 195 }, "value": "AdvancedList", - "raw": "'AdvancedList'" + "raw": "'AdvancedList'", + "loneSurrogates": false } }, { @@ -131,7 +134,8 @@ "end": 222 }, "value": "Standard", - "raw": "'Standard'" + "raw": "'Standard'", + "loneSurrogates": false } }, { @@ -157,7 +161,8 @@ "end": 257 }, "value": "Relationship", - "raw": "'Relationship'" + "raw": "'Relationship'", + "loneSurrogates": false } }, { @@ -183,7 +188,8 @@ "end": 280 }, "value": "Report", - "raw": "'Report'" + "raw": "'Report'", + "loneSurrogates": false } }, { @@ -209,7 +215,8 @@ "end": 309 }, "value": "Composite", - "raw": "'Composite'" + "raw": "'Composite'", + "loneSurrogates": false } }, { @@ -235,7 +242,8 @@ "end": 336 }, "value": "ListOnly", - "raw": "'ListOnly'" + "raw": "'ListOnly'", + "loneSurrogates": false } }, { @@ -261,7 +269,8 @@ "end": 375 }, "value": "ModuleSettings", - "raw": "'ModuleSettings'" + "raw": "'ModuleSettings'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpread.json b/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpread.json index b1bf9b0a77a6..afebf0f773d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpread.json @@ -903,7 +903,8 @@ "end": 324 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpreadES5iterable.json b/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpreadES5iterable.json index e0429068233c..e120aded58c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpreadES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiteralSpreadES5iterable.json @@ -903,7 +903,8 @@ "end": 353 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json b/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json index 47a2cd265855..e6d2f329e429 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiterals.json @@ -92,7 +92,8 @@ "end": 93 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -202,7 +203,8 @@ "end": 126 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -266,7 +268,8 @@ "end": 219 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -290,7 +293,8 @@ "end": 225 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -345,7 +349,8 @@ "end": 249 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -357,7 +362,8 @@ "end": 253 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1035,7 +1041,8 @@ "end": 674 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1075,7 +1082,8 @@ "end": 687 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1107,7 +1115,8 @@ "end": 698 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1219,7 +1228,8 @@ "end": 738 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1259,7 +1269,8 @@ "end": 751 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1291,7 +1302,8 @@ "end": 762 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES5.json b/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES5.json index 98bf70a65d07..751349784ff0 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES5.json @@ -126,7 +126,8 @@ "end": 305 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -138,7 +139,8 @@ "end": 314 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -209,7 +211,8 @@ "end": 346 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -698,7 +701,8 @@ "end": 1222 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -710,7 +714,8 @@ "end": 1232 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -948,7 +953,8 @@ "end": 1997 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } }, { @@ -960,7 +966,8 @@ "end": 2002 }, "value": "t", - "raw": "\"t\"" + "raw": "\"t\"", + "loneSurrogates": false } }, { @@ -972,7 +979,8 @@ "end": 2007 }, "value": "r", - "raw": "\"r\"" + "raw": "\"r\"", + "loneSurrogates": false } } ] @@ -1218,7 +1226,8 @@ "end": 2087 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1230,7 +1239,8 @@ "end": 2097 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -2280,7 +2290,8 @@ "end": 2613 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES6.json b/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES6.json index 233eb62d5e37..ede4989dac53 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiterals2ES6.json @@ -126,7 +126,8 @@ "end": 321 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -138,7 +139,8 @@ "end": 330 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -209,7 +211,8 @@ "end": 362 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -698,7 +701,8 @@ "end": 1239 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -710,7 +714,8 @@ "end": 1249 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -948,7 +953,8 @@ "end": 2014 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } }, { @@ -960,7 +966,8 @@ "end": 2019 }, "value": "t", - "raw": "\"t\"" + "raw": "\"t\"", + "loneSurrogates": false } }, { @@ -972,7 +979,8 @@ "end": 2024 }, "value": "r", - "raw": "\"r\"" + "raw": "\"r\"", + "loneSurrogates": false } } ] @@ -1218,7 +1226,8 @@ "end": 2104 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1230,7 +1239,8 @@ "end": 2114 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -2150,7 +2160,8 @@ "end": 2559 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/arrayLiterals3.json b/crates/swc_ecma_parser/tests/tsc/arrayLiterals3.json index 739d082f8b17..c5739029e15e 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayLiterals3.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayLiterals3.json @@ -213,7 +213,8 @@ "end": 815 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -381,7 +382,8 @@ "end": 1203 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -444,7 +446,8 @@ "end": 1524 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } }, { @@ -456,7 +459,8 @@ "end": 1529 }, "value": "t", - "raw": "\"t\"" + "raw": "\"t\"", + "loneSurrogates": false } }, { @@ -468,7 +472,8 @@ "end": 1534 }, "value": "r", - "raw": "\"r\"" + "raw": "\"r\"", + "loneSurrogates": false } } ] @@ -714,7 +719,8 @@ "end": 1614 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -726,7 +732,8 @@ "end": 1624 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json b/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json index 77a35e7b539b..8a2236b1268d 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/arrayOfFunctionTypes3.json @@ -1014,7 +1014,8 @@ "end": 363 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1846,7 +1847,8 @@ "end": 611 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json b/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json index 1b8da336d1e4..8c4e546a2ede 100644 --- a/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json +++ b/crates/swc_ecma_parser/tests/tsc/arraySpreadImportHelpers.json @@ -177,7 +177,8 @@ "end": 320 }, "value": "tslib", - "raw": "\"tslib\"" + "raw": "\"tslib\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json b/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json index 56f76c3d8b34..fcaf305ba3f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json +++ b/crates/swc_ecma_parser/tests/tsc/arraySpreadInCall.json @@ -1286,7 +1286,8 @@ "end": 415 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -1388,7 +1389,8 @@ "end": 451 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -1485,7 +1487,8 @@ "end": 482 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -1594,7 +1597,8 @@ "end": 520 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -1844,7 +1848,8 @@ "end": 618 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -1946,7 +1951,8 @@ "end": 654 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -2043,7 +2049,8 @@ "end": 685 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -2152,7 +2159,8 @@ "end": 723 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -2402,7 +2410,8 @@ "end": 827 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -2504,7 +2513,8 @@ "end": 863 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -2601,7 +2611,8 @@ "end": 894 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -2710,7 +2721,8 @@ "end": 932 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -2943,7 +2955,8 @@ "end": 1096 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json b/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json index 7acdc7bdb4f9..b86349e403ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/arrowFunctionExpressions.json @@ -2714,7 +2714,8 @@ "end": 1479 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -3339,7 +3340,8 @@ "end": 1880 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3705,7 +3707,8 @@ "end": 2183 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -4019,7 +4022,8 @@ "end": 2425 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/asOperator1.json b/crates/swc_ecma_parser/tests/tsc/asOperator1.json index abc4f33ecc6d..e5ad5615ae77 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperator1.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperator1.json @@ -350,7 +350,8 @@ "end": 226 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/asOperator3.json b/crates/swc_ecma_parser/tests/tsc/asOperator3.json index 8bcd6acc2037..d8c836f72d05 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperator3.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperator3.json @@ -183,7 +183,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -193,7 +194,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -286,7 +288,8 @@ }, "tail": false, "cooked": "leading ", - "raw": "leading " + "raw": "leading ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -296,7 +299,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -389,7 +393,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -399,7 +404,8 @@ }, "tail": true, "cooked": " trailing", - "raw": " trailing" + "raw": " trailing", + "loneSurrogates": false } ] }, @@ -466,7 +472,8 @@ }, "tail": false, "cooked": "Hello ", - "raw": "Hello " + "raw": "Hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -476,7 +483,8 @@ }, "tail": true, "cooked": " World", - "raw": " World" + "raw": " World", + "loneSurrogates": false } ] }, @@ -542,7 +550,8 @@ }, "tail": true, "cooked": "Hello", - "raw": "Hello" + "raw": "Hello", + "loneSurrogates": false } ] }, @@ -634,7 +643,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -644,7 +654,8 @@ }, "tail": true, "cooked": " end of string", - "raw": " end of string" + "raw": " end of string", + "loneSurrogates": false } ] } @@ -739,7 +750,8 @@ }, "tail": false, "cooked": "Hello ", - "raw": "Hello " + "raw": "Hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -749,7 +761,8 @@ }, "tail": true, "cooked": " World", - "raw": " World" + "raw": " World", + "loneSurrogates": false } ] } @@ -834,7 +847,8 @@ }, "tail": true, "cooked": "Hello", - "raw": "Hello" + "raw": "Hello", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/asOperator4.json b/crates/swc_ecma_parser/tests/tsc/asOperator4.json index 27650c063dc6..d0919df0e457 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperator4.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperator4.json @@ -80,7 +80,8 @@ "end": 116 }, "value": "./foo", - "raw": "'./foo'" + "raw": "'./foo'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/asOperatorASI.json b/crates/swc_ecma_parser/tests/tsc/asOperatorASI.json index be1ba054efaa..f4a2a4890d71 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperatorASI.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperatorASI.json @@ -190,7 +190,8 @@ }, "tail": true, "cooked": "Hello world", - "raw": "Hello world" + "raw": "Hello world", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/asOperatorNames.json b/crates/swc_ecma_parser/tests/tsc/asOperatorNames.json index 5da008293dd1..4fe37e2e11e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/asOperatorNames.json +++ b/crates/swc_ecma_parser/tests/tsc/asOperatorNames.json @@ -135,7 +135,8 @@ "end": 50 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule01.json b/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule01.json index 2da26dc73ee6..7259d3318c95 100644 --- a/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule01.json +++ b/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule01.json @@ -144,7 +144,8 @@ "end": 181 }, "value": "my external module", - "raw": "\"my external module\"" + "raw": "\"my external module\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule02.json b/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule02.json index d209ed45712a..5a942ef7243b 100644 --- a/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule02.json +++ b/crates/swc_ecma_parser/tests/tsc/asiPreventsParsingAsAmbientExternalModule02.json @@ -170,7 +170,8 @@ "end": 212 }, "value": "my external module", - "raw": "\"my external module\"" + "raw": "\"my external module\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json b/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json index 8c299d545e92..26910084ff74 100644 --- a/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/assertionsAndNonReturningFunctions.json @@ -223,7 +223,8 @@ "end": 405 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -578,7 +579,8 @@ "end": 723 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -718,7 +720,8 @@ "end": 805 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json b/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json index e69efd39495d..1b624580d340 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json +++ b/crates/swc_ecma_parser/tests/tsc/assignEveryTypeToAny.json @@ -302,7 +302,8 @@ "end": 105 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -340,7 +341,8 @@ "end": 117 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface.json b/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface.json index d7bde3ed0cb4..17e81ae338c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface.json @@ -39,7 +39,8 @@ "end": 11 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json b/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json index 0c244b77906f..f3f6439d4792 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignFromStringInterface2.json @@ -2235,7 +2235,8 @@ "end": 1383 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json b/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json index 19c60ddd0395..ab2adf366b10 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json +++ b/crates/swc_ecma_parser/tests/tsc/assignObjectToNonPrimitive.json @@ -95,7 +95,8 @@ "end": 32 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json index d3650e2e6d7e..e075558bdf42 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json +++ b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationES2022.json @@ -902,7 +902,8 @@ "end": 595 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json index d3650e2e6d7e..e075558bdf42 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json +++ b/crates/swc_ecma_parser/tests/tsc/assignParameterPropertyToPropertyDeclarationESNext.json @@ -902,7 +902,8 @@ "end": 595 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json index 37b9482ed466..0587a82b85d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures.json @@ -936,7 +936,8 @@ "end": 390 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1199,7 +1200,8 @@ "end": 463 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1678,7 +1680,8 @@ "end": 645 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1925,7 +1928,8 @@ "end": 723 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json index fbb234d0c3ab..bd15a0f747bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithCallSignatures2.json @@ -1134,7 +1134,8 @@ "end": 439 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1456,7 +1457,8 @@ "end": 532 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1608,7 +1610,8 @@ "end": 598 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1757,7 +1760,8 @@ "end": 651 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2260,7 +2264,8 @@ "end": 835 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2507,7 +2512,8 @@ "end": 913 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json index e722861d28c9..f569b0ba455b 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures.json @@ -1152,7 +1152,8 @@ "end": 514 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1399,7 +1400,8 @@ "end": 592 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json index 7d81becdd722..a872bea5ec6b 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithConstructSignatures2.json @@ -934,7 +934,8 @@ "end": 416 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1083,7 +1084,8 @@ "end": 469 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1586,7 +1588,8 @@ "end": 653 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1833,7 +1836,8 @@ "end": 731 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json index 0cbb51dd96ee..3271796e2f0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithDiscriminatedUnion.json @@ -4370,7 +4370,8 @@ "end": 2513 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -4457,7 +4458,8 @@ "end": 2564 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -4572,7 +4574,8 @@ "end": 2633 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -4588,7 +4591,8 @@ "end": 2639 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -4708,7 +4712,8 @@ "end": 2703 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -4728,7 +4733,8 @@ "end": 2720 }, "value": "whatevs", - "raw": "\"whatevs\"" + "raw": "\"whatevs\"", + "loneSurrogates": false } } ] @@ -4986,7 +4992,8 @@ "end": 2949 }, "value": "blue", - "raw": "'blue'" + "raw": "'blue'", + "loneSurrogates": false } } } @@ -5058,7 +5065,8 @@ "end": 3003 }, "value": "yellow", - "raw": "'yellow'" + "raw": "'yellow'", + "loneSurrogates": false } } } @@ -5227,7 +5235,8 @@ "end": 3101 }, "value": "blue", - "raw": "'blue'" + "raw": "'blue'", + "loneSurrogates": false } }, { @@ -5243,7 +5252,8 @@ "end": 3112 }, "value": "yellow", - "raw": "'yellow'" + "raw": "'yellow'", + "loneSurrogates": false } }, { @@ -5435,7 +5445,8 @@ "end": 3301 }, "value": "linear", - "raw": "\"linear\"" + "raw": "\"linear\"", + "loneSurrogates": false } } } @@ -5507,7 +5518,8 @@ "end": 3358 }, "value": "categorical", - "raw": "\"categorical\"" + "raw": "\"categorical\"", + "loneSurrogates": false } } } @@ -5617,7 +5629,8 @@ "end": 3441 }, "value": "linear", - "raw": "\"linear\"" + "raw": "\"linear\"", + "loneSurrogates": false } }, { @@ -5633,7 +5646,8 @@ "end": 3457 }, "value": "categorical", - "raw": "\"categorical\"" + "raw": "\"categorical\"", + "loneSurrogates": false } } ] @@ -5720,7 +5734,8 @@ "end": 3554 }, "value": "categorical", - "raw": "\"categorical\"" + "raw": "\"categorical\"", + "loneSurrogates": false } } ] @@ -5746,7 +5761,8 @@ "end": 3600 }, "value": "linear", - "raw": "\"linear\"" + "raw": "\"linear\"", + "loneSurrogates": false } } ] @@ -6116,7 +6132,8 @@ "end": 3870 }, "value": "one", - "raw": "'one'" + "raw": "'one'", + "loneSurrogates": false } } } @@ -6188,7 +6205,8 @@ "end": 3927 }, "value": "two", - "raw": "'two'" + "raw": "'two'", + "loneSurrogates": false } } } @@ -6234,7 +6252,8 @@ "end": 3962 }, "value": "one", - "raw": "'one'" + "raw": "'one'", + "loneSurrogates": false } }, { @@ -6250,7 +6269,8 @@ "end": 3970 }, "value": "two", - "raw": "'two'" + "raw": "'two'", + "loneSurrogates": false } } ] @@ -6559,7 +6579,8 @@ "end": 4254 }, "value": "activate", - "raw": "'activate'" + "raw": "'activate'", + "loneSurrogates": false } } } @@ -6611,7 +6632,8 @@ "end": 4280 }, "value": "disactivate", - "raw": "'disactivate'" + "raw": "'disactivate'", + "loneSurrogates": false } } } @@ -6824,7 +6846,8 @@ "end": 4421 }, "value": "disactivate", - "raw": "'disactivate'" + "raw": "'disactivate'", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -6833,7 +6856,8 @@ "end": 4434 }, "value": "activate", - "raw": "'activate'" + "raw": "'activate'", + "loneSurrogates": false } } } @@ -6938,7 +6962,8 @@ "end": 4556 }, "value": "A1", - "raw": "\"A1\"" + "raw": "\"A1\"", + "loneSurrogates": false } } } @@ -7010,7 +7035,8 @@ "end": 4601 }, "value": "A2", - "raw": "\"A2\"" + "raw": "\"A2\"", + "loneSurrogates": false } } } @@ -7342,7 +7368,8 @@ "end": 4830 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -7391,7 +7418,8 @@ "end": 4846 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -7440,7 +7468,8 @@ "end": 4862 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } }, @@ -7503,7 +7532,8 @@ "end": 4889 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -7519,7 +7549,8 @@ "end": 4895 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -7535,7 +7566,8 @@ "end": 4901 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -7685,7 +7717,8 @@ "end": 4953 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "right": { @@ -7712,7 +7745,8 @@ "end": 4966 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -7766,7 +7800,8 @@ "end": 4982 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -7778,7 +7813,8 @@ "end": 4986 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json index 2e558f23dfc5..a0b2da0519f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers.json @@ -732,7 +732,8 @@ "end": 428 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -792,7 +793,8 @@ "end": 454 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json index c261a951fe83..eda99e4afbec 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers2.json @@ -846,7 +846,8 @@ "end": 447 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -906,7 +907,8 @@ "end": 469 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json index c4472286e63e..4de2f8290172 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembers3.json @@ -908,7 +908,8 @@ "end": 479 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -992,7 +993,8 @@ "end": 505 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersNumericNames.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersNumericNames.json index c28d47a60215..afa5e0909f35 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersNumericNames.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersNumericNames.json @@ -845,7 +845,8 @@ "end": 450 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -906,7 +907,8 @@ "end": 470 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersStringNumericNames.json b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersStringNumericNames.json index d4bc4cf025b7..32c0a7f71165 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersStringNumericNames.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentCompatWithObjectMembersStringNumericNames.json @@ -64,7 +64,8 @@ "end": 243 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -132,7 +133,8 @@ "end": 273 }, "value": "1.", - "raw": "'1.'" + "raw": "'1.'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -319,7 +321,8 @@ "end": 336 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -417,7 +420,8 @@ "end": 385 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -639,7 +643,8 @@ "end": 460 }, "value": "1.", - "raw": "'1.'" + "raw": "'1.'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -755,7 +760,8 @@ "end": 503 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -862,7 +868,8 @@ "end": 549 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -871,7 +878,8 @@ "end": 553 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -923,7 +931,8 @@ "end": 575 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -932,7 +941,8 @@ "end": 579 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1687,7 +1697,8 @@ "end": 881 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1942,7 +1953,8 @@ "end": 971 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2262,7 +2274,8 @@ "end": 1093 }, "value": "1.", - "raw": "'1.'" + "raw": "'1.'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2485,7 +2498,8 @@ "end": 1180 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2494,7 +2508,8 @@ "end": 1184 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2555,7 +2570,8 @@ "end": 1209 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json b/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json index 0075ba6786a3..a21d76d4141c 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentGenericLookupTypeNarrowing.json @@ -75,7 +75,8 @@ "end": 53 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "default": null @@ -187,7 +188,8 @@ "end": 95 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -641,7 +643,8 @@ "end": 169 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "default": null diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json index 1d1b4f8bfbf7..4b69b7a3ef61 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentLHSIsReference.json @@ -412,7 +412,8 @@ "end": 197 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -686,7 +687,8 @@ "end": 349 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json b/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json index 75aeb32251a9..e25ed9131250 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentToParenthesizedIdentifiers.json @@ -158,7 +158,8 @@ "end": 50 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -199,7 +200,8 @@ "end": 69 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -491,7 +493,8 @@ "end": 177 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -547,7 +550,8 @@ "end": 198 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -603,7 +607,8 @@ "end": 219 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -1179,7 +1184,8 @@ "end": 474 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1255,7 +1261,8 @@ "end": 504 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1331,7 +1338,8 @@ "end": 534 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1712,7 +1720,8 @@ "end": 756 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -1753,7 +1762,8 @@ "end": 779 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -1921,7 +1931,8 @@ "end": 847 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -1977,7 +1988,8 @@ "end": 872 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -2023,7 +2035,8 @@ "end": 893 }, "value": "t", - "raw": "'t'" + "raw": "'t'", + "loneSurrogates": false } } }, @@ -2087,7 +2100,8 @@ "end": 917 }, "value": "t", - "raw": "'t'" + "raw": "'t'", + "loneSurrogates": false } } }, @@ -2150,7 +2164,8 @@ "end": 940 }, "value": "t", - "raw": "'t'" + "raw": "'t'", + "loneSurrogates": false } } } @@ -2208,7 +2223,8 @@ "end": 963 }, "value": "t", - "raw": "'t'" + "raw": "'t'", + "loneSurrogates": false } } }, @@ -2219,7 +2235,8 @@ "end": 969 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -2272,7 +2289,8 @@ "end": 991 }, "value": "t", - "raw": "'t'" + "raw": "'t'", + "loneSurrogates": false } } }, @@ -2283,7 +2301,8 @@ "end": 997 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -2335,7 +2354,8 @@ "end": 1018 }, "value": "t", - "raw": "'t'" + "raw": "'t'", + "loneSurrogates": false } } } @@ -2347,7 +2367,8 @@ "end": 1025 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json b/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json index a87b3b3def37..16aeedfc297a 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentToVoidZero2.json @@ -625,7 +625,8 @@ "end": 389 }, "value": "./assignmentToVoidZero2", - "raw": "'./assignmentToVoidZero2'" + "raw": "'./assignmentToVoidZero2'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json b/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json index 234b6df71121..dd488de7b823 100644 --- a/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/assignmentTypeNarrowing.json @@ -125,7 +125,8 @@ "end": 51 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -264,7 +265,8 @@ "end": 103 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -559,7 +561,8 @@ "end": 210 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -1040,7 +1043,8 @@ "end": 428 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } } @@ -1085,7 +1089,8 @@ "end": 443 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] @@ -1162,7 +1167,8 @@ "end": 479 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json index 1d3b0584325d..fb366230c07e 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncArrowFunction11_es5.json @@ -198,7 +198,8 @@ "end": 228 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json index 595204707f1c..4aaa6129a621 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es2017.json @@ -39,7 +39,8 @@ "end": 81 }, "value": "missing", - "raw": "\"missing\"" + "raw": "\"missing\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json index 8f58f93b5d7d..5161cf620f3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es5.json @@ -39,7 +39,8 @@ "end": 106 }, "value": "missing", - "raw": "\"missing\"" + "raw": "\"missing\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json index 82439f713f48..bb41d2609633 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncAwaitIsolatedModules_es6.json @@ -39,7 +39,8 @@ "end": 78 }, "value": "missing", - "raw": "\"missing\"" + "raw": "\"missing\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json index 1854dd6e31f6..525513c05c8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es5.json @@ -137,7 +137,8 @@ "end": 184 }, "value": "./task", - "raw": "\"./task\"" + "raw": "\"./task\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json index cc335251f0bd..c8e071d6029d 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncImportedPromise_es6.json @@ -137,7 +137,8 @@ "end": 156 }, "value": "./task", - "raw": "\"./task\"" + "raw": "\"./task\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json index 7ae002b86c32..f2259c12a537 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuperConflict_es6.json @@ -361,7 +361,8 @@ "end": 409 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -475,7 +476,8 @@ "end": 537 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -734,7 +736,8 @@ "end": 852 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -848,7 +851,8 @@ "end": 980 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -942,7 +946,8 @@ "end": 1094 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1105,7 +1110,8 @@ "end": 1265 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json index 83ef1a1fc8a2..2fbd058bca35 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es2017.json @@ -285,7 +285,8 @@ "end": 373 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -399,7 +400,8 @@ "end": 501 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -582,7 +584,8 @@ "end": 753 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -696,7 +699,8 @@ "end": 881 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -790,7 +794,8 @@ "end": 995 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -953,7 +958,8 @@ "end": 1166 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json index 152b5e6dc81f..32f27021ad3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es5.json @@ -285,7 +285,8 @@ "end": 398 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -399,7 +400,8 @@ "end": 526 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -582,7 +584,8 @@ "end": 778 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -696,7 +699,8 @@ "end": 906 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -790,7 +794,8 @@ "end": 1020 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -953,7 +958,8 @@ "end": 1191 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json index 8f9fe567b574..ad0802034f25 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncMethodWithSuper_es6.json @@ -285,7 +285,8 @@ "end": 386 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -399,7 +400,8 @@ "end": 514 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -582,7 +584,8 @@ "end": 766 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -696,7 +699,8 @@ "end": 894 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -790,7 +794,8 @@ "end": 1008 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -953,7 +958,8 @@ "end": 1179 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1096,7 +1102,8 @@ "end": 1317 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1222,7 +1229,8 @@ "end": 1471 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1936,7 +1944,8 @@ "end": 2280 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1997,7 +2006,8 @@ "end": 2346 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -2058,7 +2068,8 @@ "end": 2409 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -2125,7 +2136,8 @@ "end": 2487 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -2275,7 +2287,8 @@ "end": 2626 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -2353,7 +2366,8 @@ "end": 2709 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -2437,7 +2451,8 @@ "end": 2792 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -2512,7 +2527,8 @@ "end": 2881 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -3234,7 +3250,8 @@ "end": 3737 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -3295,7 +3312,8 @@ "end": 3803 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -3356,7 +3374,8 @@ "end": 3866 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -3423,7 +3442,8 @@ "end": 3944 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -3573,7 +3593,8 @@ "end": 4098 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -3651,7 +3672,8 @@ "end": 4181 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -3735,7 +3757,8 @@ "end": 4264 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -3810,7 +3833,8 @@ "end": 4353 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -4460,7 +4484,8 @@ "end": 4717 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -4652,7 +4677,8 @@ "end": 4811 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "async": true, @@ -4752,7 +4778,8 @@ "end": 4857 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -4766,7 +4793,8 @@ "end": 4861 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -4862,7 +4890,8 @@ "end": 4908 }, "value": "getter", - "raw": "\"getter\"" + "raw": "\"getter\"", + "loneSurrogates": false } } }, @@ -4963,7 +4992,8 @@ "end": 4955 }, "value": "setter", - "raw": "\"setter\"" + "raw": "\"setter\"", + "loneSurrogates": false } } }, @@ -4974,7 +5004,8 @@ "end": 4961 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "async": true, @@ -5080,7 +5111,8 @@ "end": 5015 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -5272,7 +5304,8 @@ "end": 5123 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "async": true, @@ -5372,7 +5405,8 @@ "end": 5176 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -5386,7 +5420,8 @@ "end": 5180 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -5482,7 +5517,8 @@ "end": 5234 }, "value": "getter", - "raw": "\"getter\"" + "raw": "\"getter\"", + "loneSurrogates": false } } }, @@ -5583,7 +5619,8 @@ "end": 5288 }, "value": "setter", - "raw": "\"setter\"" + "raw": "\"setter\"", + "loneSurrogates": false } } }, @@ -5594,7 +5631,8 @@ "end": 5294 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "async": true, diff --git a/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es2017.json b/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es2017.json index edb9a314d5cb..a1204d5744b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es2017.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es2017.json @@ -164,7 +164,8 @@ "end": 156 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es5.json b/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es5.json index d926d52f61f1..e98952c9e82e 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es5.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es5.json @@ -164,7 +164,8 @@ "end": 181 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es6.json b/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es6.json index b97822981af8..98e70b823f23 100644 --- a/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/asyncUseStrict_es6.json @@ -164,7 +164,8 @@ "end": 153 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessor3.json b/crates/swc_ecma_parser/tests/tsc/autoAccessor3.json index ba04afe358dd..c7f1bc838253 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessor3.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessor3.json @@ -38,7 +38,8 @@ "end": 93 }, "value": "w", - "raw": "\"w\"" + "raw": "\"w\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -76,7 +77,8 @@ "end": 116 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -108,7 +110,8 @@ "end": 145 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -146,7 +149,8 @@ "end": 175 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json b/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json index 6546ca5ffb58..ee744a2de9a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/autoAccessorAllowedModifiers.json @@ -408,7 +408,8 @@ "end": 383 }, "value": "k", - "raw": "\"k\"" + "raw": "\"k\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -490,7 +491,8 @@ "end": 430 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false } }, "value": null, diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json index 2d2406306d0b..cbd25c94567d 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfConditionalExpressions2.json @@ -449,7 +449,8 @@ "end": 367 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json index 0d69ca3be0cf..94dd2c29bb38 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple.json @@ -80,7 +80,8 @@ "end": 46 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json index 98b580b21809..34278cbb84f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json +++ b/crates/swc_ecma_parser/tests/tsc/bestCommonTypeOfTuple2.json @@ -402,7 +402,8 @@ "end": 194 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -508,7 +509,8 @@ "end": 231 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json index f308a9d51b29..7a935a815523 100644 --- a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteral.json @@ -217,7 +217,8 @@ "end": 4224 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -349,7 +350,8 @@ "end": 8335 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } }, { @@ -544,7 +546,8 @@ "end": 8542 }, "value": "26", - "raw": "\"26\"" + "raw": "\"26\"", + "loneSurrogates": false } } } @@ -584,7 +587,8 @@ "end": 8575 }, "value": "0b11010", - "raw": "\"0b11010\"" + "raw": "\"0b11010\"", + "loneSurrogates": false } } } @@ -624,7 +628,8 @@ "end": 8594 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -664,7 +669,8 @@ "end": 8622 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -704,7 +710,8 @@ "end": 8653 }, "value": "bin1", - "raw": "\"bin1\"" + "raw": "\"bin1\"", + "loneSurrogates": false } } } @@ -744,7 +751,8 @@ "end": 8685 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } @@ -864,7 +872,8 @@ "end": 8767 }, "value": "26", - "raw": "\"26\"" + "raw": "\"26\"", + "loneSurrogates": false } } } @@ -904,7 +913,8 @@ "end": 8800 }, "value": "0B11010", - "raw": "\"0B11010\"" + "raw": "\"0B11010\"", + "loneSurrogates": false } } } @@ -944,7 +954,8 @@ "end": 8819 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -984,7 +995,8 @@ "end": 8847 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1024,7 +1036,8 @@ "end": 8878 }, "value": "bin2", - "raw": "\"bin2\"" + "raw": "\"bin2\"", + "loneSurrogates": false } } } @@ -1104,7 +1117,8 @@ "end": 8964 }, "value": "9.671406556917009e+24", - "raw": "\"9.671406556917009e+24\"" + "raw": "\"9.671406556917009e+24\"", + "loneSurrogates": false } } } @@ -1144,7 +1158,8 @@ "end": 8994 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json index ad8ac00a4e74..3e4f436759e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json +++ b/crates/swc_ecma_parser/tests/tsc/binaryIntegerLiteralES6.json @@ -217,7 +217,8 @@ "end": 4224 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -349,7 +350,8 @@ "end": 8335 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } }, { @@ -544,7 +546,8 @@ "end": 8542 }, "value": "26", - "raw": "\"26\"" + "raw": "\"26\"", + "loneSurrogates": false } } } @@ -584,7 +587,8 @@ "end": 8575 }, "value": "0b11010", - "raw": "\"0b11010\"" + "raw": "\"0b11010\"", + "loneSurrogates": false } } } @@ -624,7 +628,8 @@ "end": 8594 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -664,7 +669,8 @@ "end": 8622 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -704,7 +710,8 @@ "end": 8653 }, "value": "bin1", - "raw": "\"bin1\"" + "raw": "\"bin1\"", + "loneSurrogates": false } } } @@ -744,7 +751,8 @@ "end": 8685 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } @@ -864,7 +872,8 @@ "end": 8765 }, "value": "26", - "raw": "\"26\"" + "raw": "\"26\"", + "loneSurrogates": false } } } @@ -904,7 +913,8 @@ "end": 8798 }, "value": "0B11010", - "raw": "\"0B11010\"" + "raw": "\"0B11010\"", + "loneSurrogates": false } } } @@ -944,7 +954,8 @@ "end": 8817 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -984,7 +995,8 @@ "end": 8845 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1024,7 +1036,8 @@ "end": 8876 }, "value": "bin2", - "raw": "\"bin2\"" + "raw": "\"bin2\"", + "loneSurrogates": false } } } @@ -1104,7 +1117,8 @@ "end": 8964 }, "value": "9.671406556917009e+24", - "raw": "\"9.671406556917009e+24\"" + "raw": "\"9.671406556917009e+24\"", + "loneSurrogates": false } } } @@ -1144,7 +1158,8 @@ "end": 8994 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json index 7e5c02cadf2f..97492b9184d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithEnumType.json @@ -73,7 +73,8 @@ "end": 82 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -198,7 +199,8 @@ "end": 192 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -308,7 +310,8 @@ "end": 238 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -409,7 +412,8 @@ "end": 302 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } }, @@ -514,7 +518,8 @@ "end": 364 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -602,7 +607,8 @@ "end": 387 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json index bfaa01329439..f30b1e59d5ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/bitwiseNotOperatorWithStringType.json @@ -115,7 +115,8 @@ "end": 109 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 116 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 157 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 222 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -600,7 +604,8 @@ "end": 420 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -665,7 +670,8 @@ "end": 452 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -685,7 +691,8 @@ "end": 459 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -753,7 +760,8 @@ "end": 493 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json index b57be5d56658..7e21d1409cf7 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes1.json @@ -1999,7 +1999,8 @@ "end": 766 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -2165,7 +2166,8 @@ "end": 853 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -2198,7 +2200,8 @@ "end": 889 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -2350,7 +2353,8 @@ "end": 981 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -2383,7 +2387,8 @@ "end": 1017 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json index 5ff435553b47..f63fb4b4d589 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanLiteralTypes2.json @@ -1999,7 +1999,8 @@ "end": 794 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -2165,7 +2166,8 @@ "end": 881 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -2198,7 +2200,8 @@ "end": 917 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -2350,7 +2353,8 @@ "end": 1009 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -2383,7 +2387,8 @@ "end": 1045 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json index 9898bbaaac22..2682f845954b 100644 --- a/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/booleanPropertyAccess.json @@ -173,7 +173,8 @@ "end": 58 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json b/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json index 93bb83c45dc1..8d1735a2ea0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json +++ b/crates/swc_ecma_parser/tests/tsc/bundlerSyntaxRestrictions.json @@ -128,7 +128,8 @@ "end": 258 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -270,7 +271,8 @@ "end": 359 }, "value": "path", - "raw": "\"path\"" + "raw": "\"path\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -310,7 +312,8 @@ "end": 390 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false } } }, @@ -430,7 +433,8 @@ "end": 533 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -467,7 +471,8 @@ "end": 547 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false } } ], @@ -528,7 +533,8 @@ "end": 573 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false } } ], @@ -584,7 +590,8 @@ "end": 632 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -621,7 +628,8 @@ "end": 658 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false } } }, @@ -691,7 +699,8 @@ "end": 754 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/callChain.json b/crates/swc_ecma_parser/tests/tsc/callChain.json index 62c7bef83c34..75d79c82367c 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChain.json +++ b/crates/swc_ecma_parser/tests/tsc/callChain.json @@ -958,7 +958,8 @@ "end": 271 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1024,7 +1025,8 @@ "end": 284 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1103,7 +1105,8 @@ "end": 298 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1209,7 +1212,8 @@ "end": 320 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1970,7 +1974,8 @@ "end": 500 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -2064,7 +2069,8 @@ "end": 516 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -2185,7 +2191,8 @@ "end": 540 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -2330,7 +2337,8 @@ "end": 570 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -2398,7 +2406,8 @@ "end": 579 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -2479,7 +2488,8 @@ "end": 594 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -2573,7 +2583,8 @@ "end": 610 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -2694,7 +2705,8 @@ "end": 634 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/callChainInference.json b/crates/swc_ecma_parser/tests/tsc/callChainInference.json index 94468f610e3e..f3e8616c5545 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChainInference.json +++ b/crates/swc_ecma_parser/tests/tsc/callChainInference.json @@ -409,7 +409,8 @@ "end": 197 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -484,7 +485,8 @@ "end": 217 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json b/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json index 1eaab763ffdb..88c931d83c81 100644 --- a/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json +++ b/crates/swc_ecma_parser/tests/tsc/callChainWithSuper.json @@ -262,7 +262,8 @@ "end": 215 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json index 2b6a4fdccff1..a31d5b650fd2 100644 --- a/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/callGenericFunctionWithIncorrectNumberOfTypeArguments.json @@ -283,7 +283,8 @@ "end": 177 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -375,7 +376,8 @@ "end": 221 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -698,7 +700,8 @@ "end": 301 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -790,7 +793,8 @@ "end": 346 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1102,7 +1106,8 @@ "end": 410 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1194,7 +1199,8 @@ "end": 455 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1582,7 +1588,8 @@ "end": 561 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1706,7 +1713,8 @@ "end": 615 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2083,7 +2091,8 @@ "end": 699 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2190,7 +2199,8 @@ "end": 745 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2578,7 +2588,8 @@ "end": 853 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2702,7 +2713,8 @@ "end": 908 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3103,7 +3115,8 @@ "end": 1012 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3210,7 +3223,8 @@ "end": 1059 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/callOverload.json b/crates/swc_ecma_parser/tests/tsc/callOverload.json index 73769042a206..84395a189e7a 100644 --- a/crates/swc_ecma_parser/tests/tsc/callOverload.json +++ b/crates/swc_ecma_parser/tests/tsc/callOverload.json @@ -609,7 +609,8 @@ "end": 229 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json index a1eeefa1f5ae..11c4db1169f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json +++ b/crates/swc_ecma_parser/tests/tsc/callSignaturesThatDifferOnlyByReturnType2.json @@ -437,7 +437,8 @@ "end": 336 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json index fe801f3e5de3..97701bf7e83a 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithMissingVoid.json @@ -1712,7 +1712,8 @@ "end": 1247 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1764,7 +1765,8 @@ "end": 1268 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2057,7 +2059,8 @@ "end": 1387 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2141,7 +2144,8 @@ "end": 1419 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2193,7 +2197,8 @@ "end": 1444 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread.json index badad095f38a..b404316673b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread.json @@ -610,7 +610,8 @@ "end": 199 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -758,7 +759,8 @@ "end": 240 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -837,7 +839,8 @@ "end": 263 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1015,7 +1018,8 @@ "end": 312 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1160,7 +1164,8 @@ "end": 351 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1470,7 +1475,8 @@ "end": 432 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1556,7 +1562,8 @@ "end": 457 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1748,7 +1755,8 @@ "end": 510 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1907,7 +1915,8 @@ "end": 553 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -2245,7 +2254,8 @@ "end": 642 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -2347,7 +2357,8 @@ "end": 667 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -2571,7 +2582,8 @@ "end": 720 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -2717,7 +2729,8 @@ "end": 761 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json index 28a33f6558e3..f7fa75ffb0fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread2.json @@ -1290,7 +1290,8 @@ "end": 608 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1346,7 +1347,8 @@ "end": 625 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } }, { @@ -1402,7 +1404,8 @@ "end": 665 }, "value": "g", - "raw": "\"g\"" + "raw": "\"g\"", + "loneSurrogates": false } }, { @@ -1590,7 +1593,8 @@ "end": 733 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -1646,7 +1650,8 @@ "end": 755 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -1702,7 +1707,8 @@ "end": 775 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } }, { @@ -1758,7 +1764,8 @@ "end": 795 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } }, { @@ -1946,7 +1953,8 @@ "end": 902 }, "value": "g", - "raw": "\"g\"" + "raw": "\"g\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json b/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json index 30d7e462011f..552c7ab72852 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpread3.json @@ -1167,7 +1167,8 @@ "end": 524 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1223,7 +1224,8 @@ "end": 559 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1235,7 +1237,8 @@ "end": 564 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -1247,7 +1250,8 @@ "end": 569 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -1303,7 +1307,8 @@ "end": 612 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1315,7 +1320,8 @@ "end": 617 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -1343,7 +1349,8 @@ "end": 629 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ], @@ -1383,7 +1390,8 @@ "end": 665 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1395,7 +1403,8 @@ "end": 670 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -1407,7 +1416,8 @@ "end": 675 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -1435,7 +1445,8 @@ "end": 687 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } ], @@ -1491,7 +1502,8 @@ "end": 735 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -2171,7 +2183,8 @@ "end": 1214 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json b/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json index ab4647562d19..369a63ec7829 100644 --- a/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json +++ b/crates/swc_ecma_parser/tests/tsc/callWithSpreadES6.json @@ -586,7 +586,8 @@ "end": 213 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -734,7 +735,8 @@ "end": 254 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -813,7 +815,8 @@ "end": 277 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -991,7 +994,8 @@ "end": 326 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1077,7 +1081,8 @@ "end": 351 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1269,7 +1274,8 @@ "end": 404 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1371,7 +1377,8 @@ "end": 429 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1595,7 +1602,8 @@ "end": 482 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1741,7 +1749,8 @@ "end": 523 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json b/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json index 21e6fa6c0dc8..691d86317b7c 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackOnConstructor.json @@ -52,7 +52,8 @@ "end": 146 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTag1.json b/crates/swc_ecma_parser/tests/tsc/callbackTag1.json index 7b26f8c76075..4cd07bf344bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTag1.json @@ -116,7 +116,8 @@ "end": 223 }, "value": "!", - "raw": "\"!\"" + "raw": "\"!\"", + "loneSurrogates": false } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTag2.json b/crates/swc_ecma_parser/tests/tsc/callbackTag2.json index 2ff54315f1cd..e914e8c8021f 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTag2.json @@ -99,7 +99,8 @@ "end": 283 }, "value": "120", - "raw": "\"120\"" + "raw": "\"120\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -354,7 +355,8 @@ "end": 614 }, "value": "cecil", - "raw": "\"cecil\"" + "raw": "\"cecil\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTag3.json b/crates/swc_ecma_parser/tests/tsc/callbackTag3.json index fad62cb72d7f..6c339c0b01ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTag3.json @@ -47,7 +47,8 @@ "end": 195 }, "value": "!", - "raw": "\"!\"" + "raw": "\"!\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTagNamespace.json b/crates/swc_ecma_parser/tests/tsc/callbackTagNamespace.json index 306bc13982bc..4d798619cea9 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTagNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTagNamespace.json @@ -125,7 +125,8 @@ "end": 313 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json b/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json index c0c6c7365d09..b5577309fcad 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTagNestedParameter.json @@ -103,7 +103,8 @@ "end": 443 }, "value": "Empty", - "raw": "\"Empty\"" + "raw": "\"Empty\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/callbackTagVariadicType.json b/crates/swc_ecma_parser/tests/tsc/callbackTagVariadicType.json index 400ab81d68c2..d90ec288d337 100644 --- a/crates/swc_ecma_parser/tests/tsc/callbackTagVariadicType.json +++ b/crates/swc_ecma_parser/tests/tsc/callbackTagVariadicType.json @@ -119,7 +119,8 @@ "end": 233 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -131,7 +132,8 @@ "end": 238 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/castingTuple.json b/crates/swc_ecma_parser/tests/tsc/castingTuple.json index a741e5946fc5..d79a5b488211 100644 --- a/crates/swc_ecma_parser/tests/tsc/castingTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/castingTuple.json @@ -570,7 +570,8 @@ "end": 233 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -1947,7 +1948,8 @@ "end": 831 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -2122,7 +2124,8 @@ "end": 892 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -2273,7 +2276,8 @@ "end": 958 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/chained.json b/crates/swc_ecma_parser/tests/tsc/chained.json index ba7a14a98752..d2c4d2641288 100644 --- a/crates/swc_ecma_parser/tests/tsc/chained.json +++ b/crates/swc_ecma_parser/tests/tsc/chained.json @@ -199,7 +199,8 @@ "end": 136 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -248,7 +249,8 @@ "end": 166 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -287,7 +289,8 @@ "end": 217 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -367,7 +370,8 @@ "end": 282 }, "value": "./c", - "raw": "'./c'" + "raw": "'./c'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/chained2.json b/crates/swc_ecma_parser/tests/tsc/chained2.json index 1b3042ba9b6d..78f3e6307ca2 100644 --- a/crates/swc_ecma_parser/tests/tsc/chained2.json +++ b/crates/swc_ecma_parser/tests/tsc/chained2.json @@ -144,7 +144,8 @@ "end": 114 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -193,7 +194,8 @@ "end": 155 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -281,7 +283,8 @@ "end": 223 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -359,7 +362,8 @@ "end": 298 }, "value": "./c", - "raw": "'./c'" + "raw": "'./c'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json b/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json index 56e172d847c9..a5de778a3d0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/chainedPrototypeAssignment.json @@ -669,7 +669,8 @@ "end": 523 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false } } ], @@ -859,7 +860,8 @@ "end": 576 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false } } ], @@ -914,7 +916,8 @@ "end": 594 }, "value": "not really", - "raw": "'not really'" + "raw": "'not really'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json index 353ff103133b..54b6a7c2d564 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignProperty.json @@ -66,7 +66,8 @@ "end": 131 }, "value": "thing", - "raw": "\"thing\"" + "raw": "\"thing\"", + "loneSurrogates": false } }, { @@ -185,7 +186,8 @@ "end": 210 }, "value": "readonlyProp", - "raw": "\"readonlyProp\"" + "raw": "\"readonlyProp\"", + "loneSurrogates": false } }, { @@ -214,7 +216,8 @@ "end": 228 }, "value": "Smith", - "raw": "\"Smith\"" + "raw": "\"Smith\"", + "loneSurrogates": false } }, { @@ -304,7 +307,8 @@ "end": 294 }, "value": "rwAccessors", - "raw": "\"rwAccessors\"" + "raw": "\"rwAccessors\"", + "loneSurrogates": false } }, { @@ -483,7 +487,8 @@ "end": 397 }, "value": "readonlyAccessor", - "raw": "\"readonlyAccessor\"" + "raw": "\"readonlyAccessor\"", + "loneSurrogates": false } }, { @@ -611,7 +616,8 @@ "end": 476 }, "value": "setonlyAccessor", - "raw": "\"setonlyAccessor\"" + "raw": "\"setonlyAccessor\"", + "loneSurrogates": false } }, { @@ -829,7 +835,8 @@ "end": 644 }, "value": "thing", - "raw": "\"thing\"" + "raw": "\"thing\"", + "loneSurrogates": false } }, { @@ -858,7 +865,8 @@ "end": 660 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } }, { @@ -963,7 +971,8 @@ "end": 733 }, "value": "readonlyProp", - "raw": "\"readonlyProp\"" + "raw": "\"readonlyProp\"", + "loneSurrogates": false } }, { @@ -992,7 +1001,8 @@ "end": 751 }, "value": "Smith", - "raw": "\"Smith\"" + "raw": "\"Smith\"", + "loneSurrogates": false } }, { @@ -1097,7 +1107,8 @@ "end": 824 }, "value": "rwAccessors", - "raw": "\"rwAccessors\"" + "raw": "\"rwAccessors\"", + "loneSurrogates": false } }, { @@ -1291,7 +1302,8 @@ "end": 934 }, "value": "readonlyAccessor", - "raw": "\"readonlyAccessor\"" + "raw": "\"readonlyAccessor\"", + "loneSurrogates": false } }, { @@ -1434,7 +1446,8 @@ "end": 1020 }, "value": "setonlyAccessor", - "raw": "\"setonlyAccessor\"" + "raw": "\"setonlyAccessor\"", + "loneSurrogates": false } }, { @@ -1636,7 +1649,8 @@ "end": 1197 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], @@ -1715,7 +1729,8 @@ "end": 1259 }, "value": "./mod2", - "raw": "\"./mod2\"" + "raw": "\"./mod2\"", + "loneSurrogates": false } } ], @@ -1748,7 +1763,8 @@ "end": 1307 }, "value": "./", - "raw": "\"./\"" + "raw": "\"./\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1785,7 +1801,8 @@ "end": 1338 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } }, @@ -2092,7 +2109,8 @@ "end": 1512 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } } }, @@ -2141,7 +2159,8 @@ "end": 1565 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } }, @@ -2239,7 +2258,8 @@ "end": 1608 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } }, @@ -2288,7 +2308,8 @@ "end": 1631 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } }, @@ -2372,7 +2393,8 @@ "end": 1686 }, "value": "./mod2", - "raw": "\"./mod2\"" + "raw": "\"./mod2\"", + "loneSurrogates": false } } }, @@ -2581,7 +2603,8 @@ "end": 1813 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -2679,7 +2702,8 @@ "end": 1862 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } } }, @@ -2728,7 +2752,8 @@ "end": 1915 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } }, @@ -2875,7 +2900,8 @@ "end": 1978 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json index 39dff8476f2f..2c09dc29f172 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkExportsObjectAssignPrototypeProperty.json @@ -198,7 +198,8 @@ "end": 258 }, "value": "Person called ", - "raw": "\"Person called \"" + "raw": "\"Person called \"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -309,7 +310,8 @@ "end": 322 }, "value": "thing", - "raw": "\"thing\"" + "raw": "\"thing\"", + "loneSurrogates": false } }, { @@ -443,7 +445,8 @@ "end": 410 }, "value": "readonlyProp", - "raw": "\"readonlyProp\"" + "raw": "\"readonlyProp\"", + "loneSurrogates": false } }, { @@ -472,7 +475,8 @@ "end": 428 }, "value": "Smith", - "raw": "\"Smith\"" + "raw": "\"Smith\"", + "loneSurrogates": false } }, { @@ -577,7 +581,8 @@ "end": 503 }, "value": "rwAccessors", - "raw": "\"rwAccessors\"" + "raw": "\"rwAccessors\"", + "loneSurrogates": false } }, { @@ -771,7 +776,8 @@ "end": 615 }, "value": "readonlyAccessor", - "raw": "\"readonlyAccessor\"" + "raw": "\"readonlyAccessor\"", + "loneSurrogates": false } }, { @@ -914,7 +920,8 @@ "end": 703 }, "value": "setonlyAccessor", - "raw": "\"setonlyAccessor\"" + "raw": "\"setonlyAccessor\"", + "loneSurrogates": false } }, { @@ -1120,7 +1127,8 @@ "end": 866 }, "value": "./", - "raw": "\"./\"" + "raw": "\"./\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1157,7 +1165,8 @@ "end": 901 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } }, @@ -1215,7 +1224,8 @@ "end": 933 }, "value": "Name", - "raw": "\"Name\"" + "raw": "\"Name\"", + "loneSurrogates": false } } ], @@ -1528,7 +1538,8 @@ "end": 1106 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } } }, @@ -1577,7 +1588,8 @@ "end": 1159 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } }, @@ -1675,7 +1687,8 @@ "end": 1202 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } }, @@ -1724,7 +1737,8 @@ "end": 1225 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocParamTag1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocParamTag1.json index b899cd56c263..0eed36b94e2d 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocParamTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocParamTag1.json @@ -190,7 +190,8 @@ "end": 188 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocReturnTag1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocReturnTag1.json index 9c14d448e9fb..64d56d0fa09d 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocReturnTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocReturnTag1.json @@ -46,7 +46,8 @@ "end": 180 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -97,7 +98,8 @@ "end": 293 }, "value": "hello world", - "raw": "\"hello world\"" + "raw": "\"hello world\"", + "loneSurrogates": false } } ] @@ -164,7 +166,8 @@ "end": 411 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json index ab12ccc56a0f..4958c8488854 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag1.json @@ -262,7 +262,8 @@ "end": 498 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -511,7 +512,8 @@ "end": 703 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } ] @@ -578,7 +580,8 @@ "end": 754 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } }, { @@ -598,7 +601,8 @@ "end": 765 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json index 0cc913ce75cc..bf05dee59aac 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag10.json @@ -82,7 +82,8 @@ "end": 209 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json index faeb1e5bedb5..7ca28d8ffa4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag12.json @@ -299,7 +299,8 @@ "end": 512 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } ] @@ -359,7 +360,8 @@ "end": 566 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } }, { @@ -379,7 +381,8 @@ "end": 577 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } ] @@ -439,7 +442,8 @@ "end": 628 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json index e13a3677bbaf..fb376092cb69 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag13.json @@ -167,7 +167,8 @@ "end": 252 }, "value": "oops", - "raw": "\"oops\"" + "raw": "\"oops\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json index 8b076ef566c3..30ac48c258dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag7.json @@ -82,7 +82,8 @@ "end": 200 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json index bf3b32d44856..8cd78c76f273 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocSatisfiesTag8.json @@ -81,7 +81,8 @@ "end": 235 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag1.json index ece9bd4acf6d..f75f1938a756 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag1.json @@ -39,7 +39,8 @@ "end": 129 }, "value": "hello world", - "raw": "\"hello world\"" + "raw": "\"hello world\"", + "loneSurrogates": false }, "definite": false } @@ -156,7 +157,8 @@ "end": 212 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -231,7 +233,8 @@ "end": 259 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json index cf89e25562b3..5dba1bbb8fd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag2.json @@ -78,7 +78,8 @@ "end": 160 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -200,7 +201,8 @@ "end": 232 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -470,7 +472,8 @@ "end": 416 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag5.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag5.json index 0bb6e1b164f3..ac220a2aac02 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag5.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTag5.json @@ -592,7 +592,8 @@ "end": 711 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], @@ -694,7 +695,8 @@ "end": 866 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json index 59c3e04ebc00..d01f29a7f078 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty1.json @@ -39,7 +39,8 @@ "end": 134 }, "value": "hello Lol", - "raw": "\"hello Lol\"" + "raw": "\"hello Lol\"", + "loneSurrogates": false }, "definite": false } @@ -117,7 +118,8 @@ "end": 246 }, "value": "42", - "raw": "\"42\"" + "raw": "\"42\"", + "loneSurrogates": false } }, { @@ -238,7 +240,8 @@ "end": 394 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -247,7 +250,8 @@ "end": 402 }, "value": "ar1", - "raw": "'ar1'" + "raw": "'ar1'", + "loneSurrogates": false } } }, @@ -375,7 +379,8 @@ "end": 502 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -585,7 +590,8 @@ "end": 571 }, "value": "42", - "raw": "\"42\"" + "raw": "\"42\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json index ecfaa0f06fbb..2e0005805201 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypeTagOnObjectProperty2.json @@ -149,7 +149,8 @@ "end": 256 }, "value": "42", - "raw": "\"42\"" + "raw": "\"42\"", + "loneSurrogates": false } } ] @@ -196,7 +197,8 @@ "end": 329 }, "value": "lol", - "raw": "\"lol\"" + "raw": "\"lol\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -246,7 +248,8 @@ "end": 394 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } ], @@ -330,7 +333,8 @@ "end": 455 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -482,7 +486,8 @@ "end": 549 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json index c1da40d60eac..c5e4e9741305 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefInParamTag1.json @@ -142,7 +142,8 @@ "end": 300 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ] @@ -289,7 +290,8 @@ "end": 509 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -436,7 +438,8 @@ "end": 731 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json index 70b58a98bcee..013dd846a43d 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json +++ b/crates/swc_ecma_parser/tests/tsc/checkJsdocTypedefOnlySourceFile.json @@ -110,7 +110,8 @@ "end": 208 }, "value": "str", - "raw": "'str'" + "raw": "'str'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json b/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json index 417695c91613..7d434c396c17 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkObjectDefineProperty.json @@ -105,7 +105,8 @@ "end": 139 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -134,7 +135,8 @@ "end": 159 }, "value": "Charles", - "raw": "\"Charles\"" + "raw": "\"Charles\"", + "loneSurrogates": false } }, { @@ -224,7 +226,8 @@ "end": 217 }, "value": "middleInit", - "raw": "\"middleInit\"" + "raw": "\"middleInit\"", + "loneSurrogates": false } }, { @@ -253,7 +256,8 @@ "end": 231 }, "value": "H", - "raw": "\"H\"" + "raw": "\"H\"", + "loneSurrogates": false } } ] @@ -324,7 +328,8 @@ "end": 271 }, "value": "lastName", - "raw": "\"lastName\"" + "raw": "\"lastName\"", + "loneSurrogates": false } }, { @@ -353,7 +358,8 @@ "end": 289 }, "value": "Smith", - "raw": "\"Smith\"" + "raw": "\"Smith\"", + "loneSurrogates": false } }, { @@ -443,7 +449,8 @@ "end": 341 }, "value": "zip", - "raw": "\"zip\"" + "raw": "\"zip\"", + "loneSurrogates": false } }, { @@ -622,7 +629,8 @@ "end": 433 }, "value": "houseNumber", - "raw": "\"houseNumber\"" + "raw": "\"houseNumber\"", + "loneSurrogates": false } }, { @@ -750,7 +758,8 @@ "end": 497 }, "value": "zipStr", - "raw": "\"zipStr\"" + "raw": "\"zipStr\"", + "loneSurrogates": false } }, { @@ -1598,7 +1607,8 @@ "end": 1374 }, "value": "./", - "raw": "\"./\"" + "raw": "\"./\"", + "loneSurrogates": false } } }, @@ -1839,7 +1849,8 @@ "end": 1462 }, "value": "Another", - "raw": "\"Another\"" + "raw": "\"Another\"", + "loneSurrogates": false } } }, @@ -1937,7 +1948,8 @@ "end": 1494 }, "value": "OK", - "raw": "\"OK\"" + "raw": "\"OK\"", + "loneSurrogates": false } } }, @@ -1986,7 +1998,8 @@ "end": 1523 }, "value": "should fail", - "raw": "\"should fail\"" + "raw": "\"should fail\"", + "loneSurrogates": false } } }, @@ -2133,7 +2146,8 @@ "end": 1613 }, "value": "R", - "raw": "\"R\"" + "raw": "\"R\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json b/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json index 152326ded311..4847782a89a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/checkOtherObjectAssignProperty.json @@ -145,7 +145,8 @@ "end": 175 }, "value": "thing", - "raw": "\"thing\"" + "raw": "\"thing\"", + "loneSurrogates": false } }, { @@ -205,7 +206,8 @@ "end": 249 }, "value": "other", - "raw": "\"other\"" + "raw": "\"other\"", + "loneSurrogates": false } }, "definite": false @@ -366,7 +368,8 @@ "end": 344 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false }, "definite": false } @@ -553,7 +556,8 @@ "end": 457 }, "value": "bad1", - "raw": "\"bad1\"" + "raw": "\"bad1\"", + "loneSurrogates": false } }, { @@ -632,7 +636,8 @@ "end": 502 }, "value": "bad2", - "raw": "\"bad2\"" + "raw": "\"bad2\"", + "loneSurrogates": false } }, { @@ -709,7 +714,8 @@ "end": 538 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } ] @@ -780,7 +786,8 @@ "end": 580 }, "value": "bad3", - "raw": "\"bad3\"" + "raw": "\"bad3\"", + "loneSurrogates": false } }, { @@ -872,7 +879,8 @@ "end": 658 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/circular1.json b/crates/swc_ecma_parser/tests/tsc/circular1.json index 6ccae4d7f323..a4b0e2514f02 100644 --- a/crates/swc_ecma_parser/tests/tsc/circular1.json +++ b/crates/swc_ecma_parser/tests/tsc/circular1.json @@ -39,7 +39,8 @@ "end": 67 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -78,7 +79,8 @@ "end": 118 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/circular2.json b/crates/swc_ecma_parser/tests/tsc/circular2.json index 94ef3d0b5bf7..04540bd8e3ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/circular2.json +++ b/crates/swc_ecma_parser/tests/tsc/circular2.json @@ -39,7 +39,8 @@ "end": 67 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -123,7 +124,8 @@ "end": 137 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/circular3.json b/crates/swc_ecma_parser/tests/tsc/circular3.json index a3579e26781d..b3ac2500268a 100644 --- a/crates/swc_ecma_parser/tests/tsc/circular3.json +++ b/crates/swc_ecma_parser/tests/tsc/circular3.json @@ -39,7 +39,8 @@ "end": 67 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -119,7 +120,8 @@ "end": 142 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/circular4.json b/crates/swc_ecma_parser/tests/tsc/circular4.json index 9e431f782d76..3d240b32486e 100644 --- a/crates/swc_ecma_parser/tests/tsc/circular4.json +++ b/crates/swc_ecma_parser/tests/tsc/circular4.json @@ -39,7 +39,8 @@ "end": 69 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -225,7 +226,8 @@ "end": 213 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json b/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json index e8252dc92231..549d2bf2d84b 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/circularIndexedAccessErrors.json @@ -93,7 +93,8 @@ "end": 49 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -165,7 +166,8 @@ "end": 87 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -181,7 +183,8 @@ "end": 93 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -399,7 +402,8 @@ "end": 166 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -630,7 +634,8 @@ "end": 230 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -827,7 +832,8 @@ "end": 284 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -915,7 +921,8 @@ "end": 324 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1005,7 +1012,8 @@ "end": 366 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } @@ -1068,7 +1076,8 @@ "end": 384 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false } } } @@ -1131,7 +1140,8 @@ "end": 402 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1337,7 +1347,8 @@ "end": 507 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/circularReference.json b/crates/swc_ecma_parser/tests/tsc/circularReference.json index 79062d41c521..6a562ea2ccc5 100644 --- a/crates/swc_ecma_parser/tests/tsc/circularReference.json +++ b/crates/swc_ecma_parser/tests/tsc/circularReference.json @@ -36,7 +36,8 @@ "end": 53 }, "value": "./foo2", - "raw": "'./foo2'" + "raw": "'./foo2'", + "loneSurrogates": false } } }, @@ -499,7 +500,8 @@ "end": 288 }, "value": "./foo1", - "raw": "'./foo1'" + "raw": "'./foo1'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json b/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json index 2b55d750beb0..31350b239f53 100644 --- a/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json +++ b/crates/swc_ecma_parser/tests/tsc/cjsImportInES2015.json @@ -88,7 +88,8 @@ "end": 247 }, "value": "cjs-dep", - "raw": "\"cjs-dep\"" + "raw": "\"cjs-dep\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classAbstractAssignabilityConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/classAbstractAssignabilityConstructorFunction.json index 838050eaa103..d179f53c907f 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAbstractAssignabilityConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/classAbstractAssignabilityConstructorFunction.json @@ -171,7 +171,8 @@ "end": 117 }, "value": "asdf", - "raw": "\"asdf\"" + "raw": "\"asdf\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json b/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json index 9ad8cd07a3ca..9c73ffc38787 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json +++ b/crates/swc_ecma_parser/tests/tsc/classAndVariableWithSameName.json @@ -106,7 +106,8 @@ "end": 45 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json b/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json index 0051f5ec8cda..af971d66229c 100644 --- a/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json +++ b/crates/swc_ecma_parser/tests/tsc/classAppearsToHaveMembersOfObject.json @@ -263,7 +263,8 @@ "end": 87 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json b/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json index 60587508761e..f3453493cdf5 100644 --- a/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/classCanExtendConstructorFunction.json @@ -855,7 +855,8 @@ "end": 978 }, "value": "xmlolololol", - "raw": "\"xmlolololol\"" + "raw": "\"xmlolololol\"", + "loneSurrogates": false } }, "consequent": { @@ -899,7 +900,8 @@ "end": 1049 }, "value": "please do not use XML. It was a joke.", - "raw": "\"please do not use XML. It was a joke.\"" + "raw": "\"please do not use XML. It was a joke.\"", + "loneSurrogates": false } } ], @@ -1528,7 +1530,8 @@ "end": 1703 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false } } ], @@ -2195,7 +2198,8 @@ "end": 2242 }, "value": "ignorant", - "raw": "\"ignorant\"" + "raw": "\"ignorant\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnBaseTypes.json b/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnBaseTypes.json index 85dfff6d7bf0..7ac7778ef2ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnBaseTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/classDoesNotDependOnBaseTypes.json @@ -276,7 +276,8 @@ "end": 224 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -340,7 +341,8 @@ "end": 241 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classExpression5.json b/crates/swc_ecma_parser/tests/tsc/classExpression5.json index be080bfd8cfa..6ec0bf74942e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExpression5.json +++ b/crates/swc_ecma_parser/tests/tsc/classExpression5.json @@ -84,7 +84,8 @@ "end": 44 }, "value": "Hi!", - "raw": "\"Hi!\"" + "raw": "\"Hi!\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json b/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json index b5dc47d9f85a..84c53268b9f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingClass.json @@ -1230,7 +1230,8 @@ "end": 393 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json b/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json index d515be3ccc3c..c8d552313290 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingClassLikeType.json @@ -1021,7 +1021,8 @@ "end": 436 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } }, { @@ -1033,7 +1034,8 @@ "end": 443 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } } ], @@ -1082,7 +1084,8 @@ "end": 466 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1128,7 +1131,8 @@ "end": 488 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } @@ -1506,7 +1510,8 @@ "end": 733 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } }, { @@ -1567,7 +1572,8 @@ "end": 760 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json b/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json index 861b887f81b1..d7f2ce1cde3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/classExtendingNonConstructor.json @@ -294,7 +294,8 @@ "end": 181 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "isAbstract": false, "typeParams": null, diff --git a/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json b/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json index b6e227449f42..e338d0b29daf 100644 --- a/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json +++ b/crates/swc_ecma_parser/tests/tsc/classStaticBlockUseBeforeDef3.json @@ -162,7 +162,8 @@ "end": 166 }, "value": "gotcha!", - "raw": "\"gotcha!\"" + "raw": "\"gotcha!\"", + "loneSurrogates": false } } ], @@ -324,7 +325,8 @@ "end": 274 }, "value": "FOO", - "raw": "\"FOO\"" + "raw": "\"FOO\"", + "loneSurrogates": false }, "definite": false } @@ -470,7 +472,8 @@ "end": 369 }, "value": "FOO", - "raw": "\"FOO\"" + "raw": "\"FOO\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsUnionType", @@ -492,7 +495,8 @@ "end": 378 }, "value": "FOO", - "raw": "\"FOO\"" + "raw": "\"FOO\"", + "loneSurrogates": false } }, { @@ -508,7 +512,8 @@ "end": 386 }, "value": "BAR", - "raw": "\"BAR\"" + "raw": "\"BAR\"", + "loneSurrogates": false } } ] @@ -583,7 +588,8 @@ "end": 431 }, "value": "BAR", - "raw": "\"BAR\"" + "raw": "\"BAR\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json b/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json index a3d633868314..81971ad2d1da 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithConstructors.json @@ -225,7 +225,8 @@ "end": 128 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -537,7 +538,8 @@ "end": 310 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -815,7 +817,8 @@ "end": 458 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1088,7 +1091,8 @@ "end": 593 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1515,7 +1519,8 @@ "end": 776 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1901,7 +1906,8 @@ "end": 939 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json b/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json index 6d311b2d6fe9..18408f4e3680 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithEmptyBody.json @@ -225,7 +225,8 @@ "end": 59 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -546,7 +547,8 @@ "end": 179 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json b/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json index 282a7311d787..a762968a3f0e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithPrivateProperty.json @@ -72,7 +72,8 @@ "end": 100 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -106,7 +107,8 @@ "end": 128 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -176,7 +178,8 @@ "end": 157 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -222,7 +225,8 @@ "end": 184 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -309,7 +313,8 @@ "end": 242 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -355,7 +360,8 @@ "end": 276 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json b/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json index b80cd1e2db61..7d3d80313964 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithProtectedProperty.json @@ -72,7 +72,8 @@ "end": 106 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -106,7 +107,8 @@ "end": 136 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -176,7 +178,8 @@ "end": 167 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -222,7 +225,8 @@ "end": 196 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -309,7 +313,8 @@ "end": 258 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -355,7 +360,8 @@ "end": 294 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json b/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json index a1911a361365..06ec6aaef4f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithPublicProperty.json @@ -72,7 +72,8 @@ "end": 42 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -106,7 +107,8 @@ "end": 69 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -176,7 +178,8 @@ "end": 97 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -222,7 +225,8 @@ "end": 123 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -309,7 +313,8 @@ "end": 179 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -355,7 +360,8 @@ "end": 212 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json index 6c64b2570a49..de2696c56f2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.2.json @@ -173,7 +173,8 @@ "end": 227 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -268,7 +269,8 @@ "end": 262 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -416,7 +418,8 @@ "end": 312 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json index 07e80c047fda..d7eac0601d82 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.3.json @@ -173,7 +173,8 @@ "end": 215 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -268,7 +269,8 @@ "end": 250 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -416,7 +418,8 @@ "end": 300 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json index 1884e3a5b382..8776022e8c15 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterBindingPattern.json @@ -138,7 +138,8 @@ "end": 154 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json index 2ea64f73b38d..68ea61394649 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.2.json @@ -223,7 +223,8 @@ "end": 250 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json index b14f2bb6c324..9b5b396c071b 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithStaticFieldInParameterInitializer.3.json @@ -223,7 +223,8 @@ "end": 238 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json b/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json index 23d0d4c4f23a..b14a8df447e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/classWithoutExplicitConstructor.json @@ -80,7 +80,8 @@ "end": 36 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json index 3bf0c2be5d63..736b55e37bea 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherInvalidOperation.json @@ -223,7 +223,8 @@ "end": 213 }, "value": "123", - "raw": "\"123\"" + "raw": "\"123\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json index a33012ab089f..a9750636b92e 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorOtherValidOperation.json @@ -368,7 +368,8 @@ "end": 247 }, "value": "123", - "raw": "\"123\"" + "raw": "\"123\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json index a5b01153cd91..38b29cd18987 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandAnyType.json @@ -906,7 +906,8 @@ "end": 486 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, { "type": "ArrayExpression", @@ -975,7 +976,8 @@ "end": 507 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -1084,7 +1086,8 @@ "end": 543 }, "value": "any", - "raw": "\"any\"" + "raw": "\"any\"", + "loneSurrogates": false } } ], @@ -1351,7 +1354,8 @@ "end": 667 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, { "type": "NullLiteral", @@ -1427,7 +1431,8 @@ "end": 704 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -1546,7 +1551,8 @@ "end": 762 }, "value": "any", - "raw": "\"any\"" + "raw": "\"any\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json index a74bcca246ea..cde3964bdf6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandNumberType.json @@ -953,7 +953,8 @@ "end": 563 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, { "type": "AssignmentExpression", @@ -1409,7 +1410,8 @@ "end": 795 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, { "type": "AssignmentExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json index b2c463728be6..53b8eb68b02f 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandObjectType.json @@ -1006,7 +1006,8 @@ "end": 589 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, { "type": "NewExpression", @@ -1414,7 +1415,8 @@ "end": 800 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } ] @@ -1473,7 +1475,8 @@ "end": 837 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, { "type": "NewExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json index d321b17b4323..37b1bed92a7d 100644 --- a/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/commaOperatorWithSecondOperandStringType.json @@ -932,7 +932,8 @@ "end": 565 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } ] } @@ -985,7 +986,8 @@ "end": 591 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } ] } @@ -1019,7 +1021,8 @@ "end": 597 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1031,7 +1034,8 @@ "end": 602 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -1150,7 +1154,8 @@ "end": 662 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1371,7 +1376,8 @@ "end": 784 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } ] } @@ -1455,7 +1461,8 @@ "end": 834 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } ] } @@ -1520,7 +1527,8 @@ "end": 865 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1532,7 +1540,8 @@ "end": 870 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -1663,7 +1672,8 @@ "end": 946 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json b/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json index 6b9e82485c95..ede3e5a3119a 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSAliasedExport.json @@ -329,7 +329,8 @@ "end": 311 }, "value": "./commonJSAliasedExport", - "raw": "'./commonJSAliasedExport'" + "raw": "'./commonJSAliasedExport'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json index fd4abfb1dc18..fb218503e225 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportAsPrimaryExpression.json @@ -137,7 +137,8 @@ "end": 148 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json index 314db488aa0b..28fa386d13ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportClassTypeReference.json @@ -78,7 +78,8 @@ "end": 145 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json index 135d21d983c7..2c4e941cf337 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportExportedClassExpression.json @@ -78,7 +78,8 @@ "end": 145 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json index 08942bc54fca..1fa335f4a2ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportNestedClassTypeReference.json @@ -78,7 +78,8 @@ "end": 145 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json b/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json index f2987a53e9f6..48d141ebf2a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSImportNotAsPrimaryExpression.json @@ -432,7 +432,8 @@ "end": 292 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json b/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json index 22b41ebad13a..261a776d26d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json +++ b/crates/swc_ecma_parser/tests/tsc/commonJSReexport.json @@ -56,7 +56,8 @@ "end": 130 }, "value": "hard", - "raw": "\"hard\"" + "raw": "\"hard\"", + "loneSurrogates": false } } ] @@ -206,7 +207,8 @@ "end": 237 }, "value": "./first", - "raw": "'./first'" + "raw": "'./first'", + "loneSurrogates": false } } ], @@ -296,7 +298,8 @@ "end": 304 }, "value": "./second", - "raw": "'./second'" + "raw": "'./second'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/commonTypeIntersection.json b/crates/swc_ecma_parser/tests/tsc/commonTypeIntersection.json index 458aa1b71578..0b310ff3b1a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/commonTypeIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/commonTypeIntersection.json @@ -88,7 +88,8 @@ "end": 41 }, "value": "TypeTwo", - "raw": "'TypeTwo'" + "raw": "'TypeTwo'", + "loneSurrogates": false } } } @@ -231,7 +232,8 @@ "end": 94 }, "value": "TypeOne", - "raw": "'TypeOne'" + "raw": "'TypeOne'", + "loneSurrogates": false } } } @@ -383,7 +385,8 @@ "end": 181 }, "value": "TypeTwo", - "raw": "'TypeTwo'" + "raw": "'TypeTwo'", + "loneSurrogates": false } } } @@ -490,7 +493,8 @@ "end": 226 }, "value": "TypeOne", - "raw": "'TypeOne'" + "raw": "'TypeOne'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json index 8184c4a73fdd..8dcf679b9c65 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCanBeAssigned.json @@ -372,7 +372,8 @@ "end": 104 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -748,7 +749,8 @@ "end": 220 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -1585,7 +1587,8 @@ "end": 474 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCannotBeAssigned.json b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCannotBeAssigned.json index ab5661cd3624..4fd90115664d 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCannotBeAssigned.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundAdditionAssignmentLHSCannotBeAssigned.json @@ -157,7 +157,8 @@ "end": 128 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -238,7 +239,8 @@ "end": 155 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -329,7 +331,8 @@ "end": 177 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -446,7 +449,8 @@ "end": 209 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -527,7 +531,8 @@ "end": 234 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json index 69183c820812..042a3b09e2f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundAssignmentLHSIsReference.json @@ -520,7 +520,8 @@ "end": 240 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -578,7 +579,8 @@ "end": 258 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -993,7 +995,8 @@ "end": 466 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1058,7 +1061,8 @@ "end": 486 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json b/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json index 974bd85fb604..046786e7eafc 100644 --- a/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json +++ b/crates/swc_ecma_parser/tests/tsc/compoundExponentiationAssignmentLHSIsReference.json @@ -412,7 +412,8 @@ "end": 203 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -686,7 +687,8 @@ "end": 364 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES5.json index ace93f8ff101..dcb3096a2265 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES5.json @@ -436,7 +436,8 @@ "end": 160 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "params": [], @@ -616,7 +617,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -677,7 +679,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -687,7 +690,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES6.json index ace93f8ff101..dcb3096a2265 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames10_ES6.json @@ -436,7 +436,8 @@ "end": 160 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "params": [], @@ -616,7 +617,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -677,7 +679,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -687,7 +690,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES5.json index dcba255bc39f..1dab544705f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES5.json @@ -483,7 +483,8 @@ "end": 216 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "thisParam": null, @@ -695,7 +696,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -761,7 +763,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -771,7 +774,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES6.json index dcba255bc39f..1dab544705f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames11_ES6.json @@ -483,7 +483,8 @@ "end": 216 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "thisParam": null, @@ -695,7 +696,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -761,7 +763,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -771,7 +774,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES5.json index 80f6046f2bbd..66977416ed30 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES5.json @@ -486,7 +486,8 @@ "end": 168 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { @@ -714,7 +715,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -787,7 +789,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -797,7 +800,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES6.json index 80f6046f2bbd..66977416ed30 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames13_ES6.json @@ -486,7 +486,8 @@ "end": 168 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { @@ -714,7 +715,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -787,7 +789,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -797,7 +800,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES5.json index 0a08bb7500ac..987a2cd40f51 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES5.json @@ -577,7 +577,8 @@ "end": 224 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { @@ -879,7 +880,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -972,7 +974,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -982,7 +985,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES6.json index 0a08bb7500ac..987a2cd40f51 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames16_ES6.json @@ -577,7 +577,8 @@ "end": 224 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { @@ -879,7 +880,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -972,7 +974,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -982,7 +985,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES5.json index ace37b81a22a..d65a687024dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES5.json @@ -100,7 +100,8 @@ "end": 76 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES6.json index ace37b81a22a..d65a687024dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames27_ES6.json @@ -100,7 +100,8 @@ "end": 76 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json index 79210972e2e9..ca7f05b92f65 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES5.json @@ -178,7 +178,8 @@ "end": 141 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json index 79210972e2e9..ca7f05b92f65 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames28_ES6.json @@ -178,7 +178,8 @@ "end": 141 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES5.json index b24b8b2a5df2..07c7d4c69f0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES5.json @@ -39,7 +39,8 @@ "end": 42 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 73 }, "value": "accessor", - "raw": "\"accessor\"" + "raw": "\"accessor\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES6.json index b24b8b2a5df2..07c7d4c69f0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames2_ES6.json @@ -39,7 +39,8 @@ "end": 42 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 73 }, "value": "accessor", - "raw": "\"accessor\"" + "raw": "\"accessor\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json index dd2376909357..4ac80dd671f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES5.json @@ -200,7 +200,8 @@ "end": 364 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json index dd2376909357..4ac80dd671f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames30_ES6.json @@ -200,7 +200,8 @@ "end": 364 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json index aa070ba764e7..881cabc9c070 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES5.json @@ -46,7 +46,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json index aa070ba764e7..881cabc9c070 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames32_ES6.json @@ -46,7 +46,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json index 61ad6d2db0bf..8b2c3d2688fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES5.json @@ -46,7 +46,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json index 61ad6d2db0bf..8b2c3d2688fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames33_ES6.json @@ -46,7 +46,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json index 99ceb5853bc4..f578a49a084a 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES5.json @@ -46,7 +46,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json index 99ceb5853bc4..f578a49a084a 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames34_ES6.json @@ -46,7 +46,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json index 5c7608533951..b598e2c2dd4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES5.json @@ -237,7 +237,8 @@ "end": 130 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -316,7 +317,8 @@ "end": 168 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json index 5c7608533951..b598e2c2dd4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames36_ES6.json @@ -237,7 +237,8 @@ "end": 130 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -316,7 +317,8 @@ "end": 168 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json index 664c6d177f04..34cb7c67f91d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES5.json @@ -237,7 +237,8 @@ "end": 130 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -316,7 +317,8 @@ "end": 168 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json index 664c6d177f04..34cb7c67f91d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames37_ES6.json @@ -237,7 +237,8 @@ "end": 130 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -316,7 +317,8 @@ "end": 168 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json index 732e6e510aee..71cee4545613 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES5.json @@ -253,7 +253,8 @@ "end": 128 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { @@ -332,7 +333,8 @@ "end": 158 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json index 732e6e510aee..71cee4545613 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames40_ES6.json @@ -253,7 +253,8 @@ "end": 128 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { @@ -332,7 +333,8 @@ "end": 158 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json index a6d9d3d3e233..7e7f82d36459 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES5.json @@ -253,7 +253,8 @@ "end": 135 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json index a6d9d3d3e233..7e7f82d36459 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames41_ES6.json @@ -253,7 +253,8 @@ "end": 135 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json index f872093b369e..d84b1979d8c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES5.json @@ -237,7 +237,8 @@ "end": 122 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "value": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json index f872093b369e..d84b1979d8c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames42_ES6.json @@ -237,7 +237,8 @@ "end": 122 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "value": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json index a5e39740ccd5..5d85eff8be09 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES5.json @@ -264,7 +264,8 @@ "end": 152 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -343,7 +344,8 @@ "end": 190 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json index a5e39740ccd5..5d85eff8be09 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames43_ES6.json @@ -264,7 +264,8 @@ "end": 152 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -343,7 +344,8 @@ "end": 190 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json index 132d4a7e6c05..2d5f9deae097 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES5.json @@ -237,7 +237,8 @@ "end": 102 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -343,7 +344,8 @@ "end": 163 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json index 132d4a7e6c05..2d5f9deae097 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames44_ES6.json @@ -237,7 +237,8 @@ "end": 102 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -343,7 +344,8 @@ "end": 163 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json index 9f800ddcb7c3..cc3cd7b0cc60 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES5.json @@ -176,7 +176,8 @@ "end": 79 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -343,7 +344,8 @@ "end": 250 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json index 9f800ddcb7c3..cc3cd7b0cc60 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames45_ES6.json @@ -176,7 +176,8 @@ "end": 79 }, "value": "get1", - "raw": "\"get1\"" + "raw": "\"get1\"", + "loneSurrogates": false } }, "function": { @@ -343,7 +344,8 @@ "end": 250 }, "value": "set1", - "raw": "\"set1\"" + "raw": "\"set1\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES5.json index 5a206697110b..32d50447c7f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES5.json @@ -61,7 +61,8 @@ "end": 34 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES6.json index 5a206697110b..32d50447c7f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames46_ES6.json @@ -61,7 +61,8 @@ "end": 34 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json index 4837011b9c90..0fce862c0faf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES5.json @@ -325,7 +325,8 @@ "end": 135 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -409,7 +410,8 @@ "end": 195 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -474,7 +476,8 @@ "end": 249 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -494,7 +497,8 @@ "end": 259 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json index 4837011b9c90..0fce862c0faf 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames48_ES6.json @@ -325,7 +325,8 @@ "end": 135 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -409,7 +410,8 @@ "end": 195 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -474,7 +476,8 @@ "end": 249 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -494,7 +497,8 @@ "end": 259 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES5.json index 647c2351586e..d94ee617e330 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES5.json @@ -383,7 +383,8 @@ "end": 145 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "value": { @@ -519,7 +520,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -569,7 +571,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -579,7 +582,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES6.json index 647c2351586e..d94ee617e330 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames4_ES6.json @@ -383,7 +383,8 @@ "end": 145 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "value": { @@ -519,7 +520,8 @@ }, "tail": true, "cooked": "hello bye", - "raw": "hello bye" + "raw": "hello bye", + "loneSurrogates": false } ] } @@ -569,7 +571,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -579,7 +582,8 @@ }, "tail": true, "cooked": " bye", - "raw": " bye" + "raw": " bye", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json index 1abd942914ac..44e07c103913 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES5.json @@ -414,7 +414,8 @@ "end": 146 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json index 1abd942914ac..44e07c103913 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNames9_ES6.json @@ -414,7 +414,8 @@ "end": 146 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES5.json index 324a0d6163d8..66092ef6c54d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES5.json @@ -165,7 +165,8 @@ "end": 84 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -176,7 +177,8 @@ "end": 89 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -201,7 +203,8 @@ "end": 102 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES6.json index 324a0d6163d8..66092ef6c54d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType10_ES6.json @@ -165,7 +165,8 @@ "end": 84 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -176,7 +177,8 @@ "end": 89 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -201,7 +203,8 @@ "end": 102 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json index 63b3aabf12a1..aa5b9d643ae0 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES5.json @@ -300,7 +300,8 @@ "end": 150 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -409,7 +410,8 @@ "end": 188 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json index 63b3aabf12a1..aa5b9d643ae0 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType1_ES6.json @@ -300,7 +300,8 @@ "end": 150 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -409,7 +410,8 @@ "end": 188 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json index 6af87e311174..2e6b0d541c1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES5.json @@ -300,7 +300,8 @@ "end": 154 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -400,7 +401,8 @@ "end": 192 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json index 6af87e311174..2e6b0d541c1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType2_ES6.json @@ -300,7 +300,8 @@ "end": 154 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -400,7 +401,8 @@ "end": 192 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json index 9ef58d234b8f..0ccd2b0c0e4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES5.json @@ -207,7 +207,8 @@ "end": 98 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -307,7 +308,8 @@ "end": 136 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json index 9ef58d234b8f..0ccd2b0c0e4e 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType3_ES6.json @@ -207,7 +207,8 @@ "end": 98 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -307,7 +308,8 @@ "end": 136 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES5.json index d42a5d1ec95d..83d65fd511e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES5.json @@ -216,7 +216,8 @@ "end": 98 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -225,7 +226,8 @@ "end": 104 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -236,7 +238,8 @@ "end": 109 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -261,7 +264,8 @@ "end": 118 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -270,7 +274,8 @@ "end": 124 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES6.json index d42a5d1ec95d..83d65fd511e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType4_ES6.json @@ -216,7 +216,8 @@ "end": 98 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -225,7 +226,8 @@ "end": 104 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -236,7 +238,8 @@ "end": 109 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -261,7 +264,8 @@ "end": 118 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -270,7 +274,8 @@ "end": 124 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES5.json index 6d0697b63e85..92572894c4fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES5.json @@ -216,7 +216,8 @@ "end": 102 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -227,7 +228,8 @@ "end": 107 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -252,7 +254,8 @@ "end": 120 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES6.json index 6d0697b63e85..92572894c4fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType5_ES6.json @@ -216,7 +216,8 @@ "end": 102 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -227,7 +228,8 @@ "end": 107 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -252,7 +254,8 @@ "end": 120 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json index 3d324155dfee..46a350b0b291 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES5.json @@ -325,7 +325,8 @@ "end": 111 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -384,7 +385,8 @@ "end": 140 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -393,7 +395,8 @@ "end": 148 }, "value": "bye", - "raw": "\"bye\"" + "raw": "\"bye\"", + "loneSurrogates": false } } }, @@ -473,7 +476,8 @@ "end": 183 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json index 3d324155dfee..46a350b0b291 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType6_ES6.json @@ -325,7 +325,8 @@ "end": 111 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -384,7 +385,8 @@ "end": 140 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -393,7 +395,8 @@ "end": 148 }, "value": "bye", - "raw": "\"bye\"" + "raw": "\"bye\"", + "loneSurrogates": false } } }, @@ -473,7 +476,8 @@ "end": 183 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json index 8814c3e43da5..35bc8b5805f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES5.json @@ -634,7 +634,8 @@ "end": 206 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -643,7 +644,8 @@ "end": 214 }, "value": "bye", - "raw": "\"bye\"" + "raw": "\"bye\"", + "loneSurrogates": false } } }, @@ -723,7 +725,8 @@ "end": 249 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } }, @@ -806,7 +809,8 @@ "end": 270 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json index 8814c3e43da5..35bc8b5805f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType7_ES6.json @@ -634,7 +634,8 @@ "end": 206 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -643,7 +644,8 @@ "end": 214 }, "value": "bye", - "raw": "\"bye\"" + "raw": "\"bye\"", + "loneSurrogates": false } } }, @@ -723,7 +725,8 @@ "end": 249 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } }, @@ -806,7 +809,8 @@ "end": 270 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES5.json index 1e4269ae1c6c..4cf5f0666fa1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES5.json @@ -216,7 +216,8 @@ "end": 106 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -225,7 +226,8 @@ "end": 112 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -236,7 +238,8 @@ "end": 117 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -261,7 +264,8 @@ "end": 126 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -270,7 +274,8 @@ "end": 132 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES6.json index 1e4269ae1c6c..4cf5f0666fa1 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType8_ES6.json @@ -216,7 +216,8 @@ "end": 106 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -225,7 +226,8 @@ "end": 112 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -236,7 +238,8 @@ "end": 117 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -261,7 +264,8 @@ "end": 126 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -270,7 +274,8 @@ "end": 132 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES5.json index 9613f0f7b021..ad9ed087b849 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES5.json @@ -216,7 +216,8 @@ "end": 110 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -227,7 +228,8 @@ "end": 115 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -252,7 +254,8 @@ "end": 128 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES6.json index 9613f0f7b021..ad9ed087b849 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesContextualType9_ES6.json @@ -216,7 +216,8 @@ "end": 110 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -227,7 +228,8 @@ "end": 115 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -252,7 +254,8 @@ "end": 128 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES5.json index 6f43846d08a8..9f097b20860d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES5.json @@ -51,7 +51,8 @@ "end": 56 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -60,7 +61,8 @@ "end": 61 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -119,7 +121,8 @@ "end": 80 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -128,7 +131,8 @@ "end": 85 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -204,7 +208,8 @@ "end": 114 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -213,7 +218,8 @@ "end": 119 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES6.json index 6f43846d08a8..9f097b20860d 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit1_ES6.json @@ -51,7 +51,8 @@ "end": 56 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -60,7 +61,8 @@ "end": 61 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -119,7 +121,8 @@ "end": 80 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -128,7 +131,8 @@ "end": 85 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -204,7 +208,8 @@ "end": 114 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -213,7 +218,8 @@ "end": 119 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES5.json index 82cb4993b995..73e690e4e647 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES5.json @@ -51,7 +51,8 @@ "end": 63 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -60,7 +61,8 @@ "end": 68 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -119,7 +121,8 @@ "end": 94 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -128,7 +131,8 @@ "end": 99 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -204,7 +208,8 @@ "end": 135 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -213,7 +218,8 @@ "end": 140 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES6.json index 82cb4993b995..73e690e4e647 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit2_ES6.json @@ -51,7 +51,8 @@ "end": 63 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -60,7 +61,8 @@ "end": 68 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -119,7 +121,8 @@ "end": 94 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -128,7 +131,8 @@ "end": 99 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -204,7 +208,8 @@ "end": 135 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -213,7 +218,8 @@ "end": 140 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES5.json index f71953fdf975..40c898bebcd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES5.json @@ -61,7 +61,8 @@ "end": 56 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -70,7 +71,8 @@ "end": 61 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -106,7 +108,8 @@ "end": 74 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -115,7 +118,8 @@ "end": 79 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -166,7 +170,8 @@ "end": 99 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -175,7 +180,8 @@ "end": 104 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -233,7 +239,8 @@ "end": 134 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -242,7 +249,8 @@ "end": 139 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES6.json index f71953fdf975..40c898bebcd8 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesDeclarationEmit5_ES6.json @@ -61,7 +61,8 @@ "end": 56 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -70,7 +71,8 @@ "end": 61 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -106,7 +108,8 @@ "end": 74 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -115,7 +118,8 @@ "end": 79 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -166,7 +170,8 @@ "end": 99 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -175,7 +180,8 @@ "end": 104 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -233,7 +239,8 @@ "end": 134 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -242,7 +249,8 @@ "end": 139 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES5.json index 11a10534b444..b41d543b8d02 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES5.json @@ -44,7 +44,8 @@ "end": 59 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "function": { @@ -103,7 +104,8 @@ "end": 107 }, "value": "goodbye", - "raw": "\"goodbye\"" + "raw": "\"goodbye\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES6.json index b14f90990f50..ef9ff6dd2801 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap1_ES6.json @@ -44,7 +44,8 @@ "end": 59 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "function": { @@ -103,7 +104,8 @@ "end": 101 }, "value": "goodbye", - "raw": "\"goodbye\"" + "raw": "\"goodbye\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES5.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES5.json index 8ba50c9613e3..5e0348e35b22 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES5.json @@ -54,7 +54,8 @@ "end": 59 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "params": [], @@ -105,7 +106,8 @@ "end": 105 }, "value": "goodbye", - "raw": "\"goodbye\"" + "raw": "\"goodbye\"", + "loneSurrogates": false } }, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES6.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES6.json index f4c542e5b2be..a3b3ee67a20a 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesSourceMap2_ES6.json @@ -54,7 +54,8 @@ "end": 59 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "params": [], @@ -105,7 +106,8 @@ "end": 102 }, "value": "goodbye", - "raw": "\"goodbye\"" + "raw": "\"goodbye\"", + "loneSurrogates": false } }, "typeAnnotation": null, diff --git a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json index f5da6cfc3d8e..d9ceeff8df49 100644 --- a/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/computedPropertyNamesWithStaticProperty.json @@ -126,7 +126,8 @@ "end": 106 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -492,7 +493,8 @@ "end": 295 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsBooleanType.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsBooleanType.json index c0ea5cef342d..ede51e70c01f 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsBooleanType.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsBooleanType.json @@ -1130,7 +1130,8 @@ "end": 979 }, "value": "123", - "raw": "\"123\"" + "raw": "\"123\"", + "loneSurrogates": false } }, "right": { @@ -1140,7 +1141,8 @@ "end": 991 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2399,7 +2401,8 @@ "end": 2166 }, "value": "123", - "raw": "\"123\"" + "raw": "\"123\"", + "loneSurrogates": false } }, "right": { @@ -2409,7 +2412,8 @@ "end": 2178 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2740,7 +2744,8 @@ "end": 2449 }, "value": "123", - "raw": "\"123\"" + "raw": "\"123\"", + "loneSurrogates": false } }, "right": { @@ -2750,7 +2755,8 @@ "end": 2462 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json index 640c2eb94f07..bbf2386a0168 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditionIsNumberType.json @@ -1340,7 +1340,8 @@ "end": 1074 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -2608,7 +2609,8 @@ "end": 2190 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "property": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json index d76ee48be0b7..d8d7f4a4f56b 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsAnyType.json @@ -1251,7 +1251,8 @@ "end": 983 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ], @@ -1386,7 +1387,8 @@ "end": 1055 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ], @@ -2714,7 +2716,8 @@ "end": 2245 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ], @@ -2897,7 +2900,8 @@ "end": 2361 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json index 2cd67646ab13..ddafc7cb6872 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorConditoinIsStringType.json @@ -814,7 +814,8 @@ "end": 676 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -857,7 +858,8 @@ "end": 708 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -900,7 +902,8 @@ "end": 743 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -943,7 +946,8 @@ "end": 781 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -986,7 +990,8 @@ "end": 815 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -1029,7 +1034,8 @@ "end": 857 }, "value": "hello ", - "raw": "\"hello \"" + "raw": "\"hello \"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -1094,7 +1100,8 @@ "end": 965 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1154,7 +1161,8 @@ "end": 985 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -1166,7 +1174,8 @@ "end": 990 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } }, { @@ -1178,7 +1187,8 @@ "end": 995 }, "value": "3", - "raw": "\"3\"" + "raw": "\"3\"", + "loneSurrogates": false } } ] @@ -1334,7 +1344,8 @@ "end": 1115 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1982,7 +1993,8 @@ "end": 1722 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -2049,7 +2061,8 @@ "end": 1777 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -2116,7 +2129,8 @@ "end": 1834 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -2183,7 +2197,8 @@ "end": 1894 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -2250,7 +2265,8 @@ "end": 1950 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -2317,7 +2333,8 @@ "end": 2022 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "consequent": { "type": "Identifier", @@ -2560,7 +2577,8 @@ "end": 2243 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json index e4e3a0f20d1f..c08eb6697980 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalOperatorWithIdenticalBCT.json @@ -733,7 +733,8 @@ "end": 454 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] @@ -917,7 +918,8 @@ "end": 538 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] @@ -1440,7 +1442,8 @@ "end": 863 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] @@ -1624,7 +1627,8 @@ "end": 947 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] @@ -2338,7 +2342,8 @@ "end": 1356 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json index 7ddef6fa344f..19817842a594 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypes1.json @@ -66,7 +66,8 @@ "end": 63 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 69 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -98,7 +100,8 @@ "end": 75 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -114,7 +117,8 @@ "end": 81 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } ] @@ -139,7 +143,8 @@ "end": 86 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -155,7 +160,8 @@ "end": 92 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -171,7 +177,8 @@ "end": 98 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } ] @@ -241,7 +248,8 @@ "end": 137 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -257,7 +265,8 @@ "end": 143 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -273,7 +282,8 @@ "end": 149 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -289,7 +299,8 @@ "end": 155 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } ] @@ -314,7 +325,8 @@ "end": 160 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -330,7 +342,8 @@ "end": 166 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -346,7 +359,8 @@ "end": 172 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } ] @@ -1865,7 +1879,8 @@ "end": 933 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1955,7 +1970,8 @@ "end": 956 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -2329,7 +2345,8 @@ "end": 1078 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2416,7 +2433,8 @@ "end": 1102 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -2503,7 +2521,8 @@ "end": 1126 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -2659,7 +2678,8 @@ "end": 1179 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2675,7 +2695,8 @@ "end": 1185 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2799,7 +2820,8 @@ "end": 1253 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2815,7 +2837,8 @@ "end": 1259 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2939,7 +2962,8 @@ "end": 1351 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2991,7 +3015,8 @@ "end": 1364 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -3115,7 +3140,8 @@ "end": 1432 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -3167,7 +3193,8 @@ "end": 1445 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -3284,7 +3311,8 @@ "end": 1537 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -3399,7 +3427,8 @@ "end": 1590 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -3714,7 +3743,8 @@ "end": 1707 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -3805,7 +3835,8 @@ "end": 1777 }, "value": "k", - "raw": "\"k\"" + "raw": "\"k\"", + "loneSurrogates": false } } }, @@ -3973,7 +4004,8 @@ "end": 1839 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -3989,7 +4021,8 @@ "end": 1845 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -4342,7 +4375,8 @@ "end": 2011 }, "value": "k", - "raw": "\"k\"" + "raw": "\"k\"", + "loneSurrogates": false } }, { @@ -4365,7 +4399,8 @@ "end": 2016 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -4381,7 +4416,8 @@ "end": 2022 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -4483,7 +4519,8 @@ "end": 2129 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "falseType": { @@ -4531,7 +4568,8 @@ "end": 2163 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "falseType": { @@ -4579,7 +4617,8 @@ "end": 2199 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "falseType": { @@ -4627,7 +4666,8 @@ "end": 2239 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "falseType": { @@ -4685,7 +4725,8 @@ "end": 2277 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "falseType": { @@ -4701,7 +4742,8 @@ "end": 2292 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } } } @@ -8966,7 +9008,8 @@ "end": 4420 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -9153,7 +9196,8 @@ "end": 4531 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "falseType": { @@ -9302,7 +9346,8 @@ "end": 4655 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -9352,7 +9397,8 @@ "end": 4687 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -9362,7 +9408,8 @@ "end": 4692 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "alternate": { "type": "BooleanLiteral", @@ -9751,7 +9798,8 @@ "end": 4828 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -10285,7 +10333,8 @@ "end": 5086 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -12382,7 +12431,8 @@ "end": 5859 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -21991,7 +22041,8 @@ "end": 9922 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -22082,7 +22133,8 @@ "end": 9961 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -22267,7 +22319,8 @@ "end": 10037 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -22425,7 +22478,8 @@ "end": 10094 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -22486,7 +22540,8 @@ "end": 10126 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -22608,7 +22663,8 @@ "end": 10224 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -22732,7 +22788,8 @@ "end": 10286 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -24491,7 +24548,8 @@ "end": 11029 }, "value": "213", - "raw": "'213'" + "raw": "'213'", + "loneSurrogates": false } } ] @@ -24644,7 +24702,8 @@ "end": 11075 }, "value": "213123", - "raw": "'213123'" + "raw": "'213123'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json index d6c75bccbdff..51781fc71fde 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypes2.json @@ -1521,7 +1521,8 @@ "end": 737 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } } @@ -9245,7 +9246,8 @@ "end": 3525 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -9262,7 +9264,8 @@ "end": 3534 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } }, "falseType": { @@ -9278,7 +9281,8 @@ "end": 3541 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } } @@ -9691,7 +9695,8 @@ "end": 3769 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -9707,7 +9712,8 @@ "end": 3775 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -9961,7 +9967,8 @@ "end": 3860 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -10019,7 +10026,8 @@ "end": 3878 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -10230,7 +10238,8 @@ "end": 3997 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -10291,7 +10300,8 @@ "end": 4030 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -10526,7 +10536,8 @@ "end": 4183 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -10587,7 +10598,8 @@ "end": 4227 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -10814,7 +10826,8 @@ "end": 4386 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -10875,7 +10888,8 @@ "end": 4421 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -11146,7 +11160,8 @@ "end": 4624 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -11207,7 +11222,8 @@ "end": 4670 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -14023,7 +14039,8 @@ "end": 6118 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json b/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json index 4db9d97e5823..1fbd2b597bc8 100644 --- a/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/conditionalTypesExcessProperties.json @@ -434,7 +434,8 @@ "end": 193 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -510,7 +511,8 @@ "end": 278 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json b/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json index a378977a3de5..5e3a44a362eb 100644 --- a/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json +++ b/crates/swc_ecma_parser/tests/tsc/conflictingCommonJSES2015Exports.json @@ -214,7 +214,8 @@ "end": 202 }, "value": "./bug24934", - "raw": "'./bug24934'" + "raw": "'./bug24934'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/constEnum3.json b/crates/swc_ecma_parser/tests/tsc/constEnum3.json index 3e9307961685..9639194b1959 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnum3.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnum3.json @@ -408,7 +408,8 @@ "end": 181 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], @@ -448,7 +449,8 @@ "end": 191 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json index 1923a688e2ff..b6a78fa0498e 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess1.json @@ -405,7 +405,8 @@ "end": 427 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json index e2aa211ef221..e8de75dae56b 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess2.json @@ -375,7 +375,8 @@ "end": 450 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json index 3e831f092631..baed7df8b1ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json +++ b/crates/swc_ecma_parser/tests/tsc/constEnumPropertyAccess3.json @@ -529,7 +529,8 @@ "end": 165 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } }, @@ -594,7 +595,8 @@ "end": 184 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } }, @@ -659,7 +661,8 @@ "end": 203 }, "value": "C", - "raw": "\"C\"" + "raw": "\"C\"", + "loneSurrogates": false } } }, @@ -724,7 +727,8 @@ "end": 222 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false } } }, @@ -789,7 +793,8 @@ "end": 241 }, "value": "E", - "raw": "\"E\"" + "raw": "\"E\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json b/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json index fc5eef57fc71..3c4199695e73 100644 --- a/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/constLocalsInFunctionExpressions.json @@ -179,7 +179,8 @@ "end": 137 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -387,7 +388,8 @@ "end": 264 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -603,7 +605,8 @@ "end": 403 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -830,7 +833,8 @@ "end": 547 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1065,7 +1069,8 @@ "end": 703 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/constructBigint.json b/crates/swc_ecma_parser/tests/tsc/constructBigint.json index b800523c1455..30f4124fb8ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructBigint.json +++ b/crates/swc_ecma_parser/tests/tsc/constructBigint.json @@ -123,7 +123,8 @@ "end": 86 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json index 86b5487ed644..e7f8c610fde2 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithIdenticalOverloads.json @@ -334,7 +334,8 @@ "end": 223 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -733,7 +734,8 @@ "end": 368 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1064,7 +1066,8 @@ "end": 498 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1815,7 +1818,8 @@ "end": 724 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2108,7 +2112,8 @@ "end": 839 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2533,7 +2538,8 @@ "end": 958 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json index 63ebf7070def..45cf321884bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads.json @@ -334,7 +334,8 @@ "end": 211 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -733,7 +734,8 @@ "end": 348 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1064,7 +1066,8 @@ "end": 468 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1815,7 +1818,8 @@ "end": 679 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2108,7 +2112,8 @@ "end": 784 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2533,7 +2538,8 @@ "end": 893 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json index d51db81192e1..2ea9b8d6f8c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructSignaturesWithOverloads2.json @@ -410,7 +410,8 @@ "end": 283 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -885,7 +886,8 @@ "end": 456 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1533,7 +1535,8 @@ "end": 698 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json index d5b98a1a9ca7..d19d4900270b 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctionMethodTypeParameters.json @@ -433,7 +433,8 @@ "end": 541 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -512,7 +513,8 @@ "end": 575 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -524,7 +526,8 @@ "end": 580 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -603,7 +606,8 @@ "end": 612 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -615,7 +619,8 @@ "end": 617 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json index 1df2f4b976d9..e0d744d03634 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctions2.json @@ -213,7 +213,8 @@ "end": 232 }, "value": "./other", - "raw": "\"./other\"" + "raw": "\"./other\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json b/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json index 776bd4e0563a..1f14be23a59c 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorFunctions3.json @@ -75,7 +75,8 @@ "end": 140 }, "value": "simple", - "raw": "'simple'" + "raw": "'simple'", + "loneSurrogates": false } } } @@ -241,7 +242,8 @@ "end": 231 }, "value": "more complex", - "raw": "'more complex'" + "raw": "'more complex'", + "loneSurrogates": false } } } @@ -297,7 +299,8 @@ "end": 260 }, "value": "yep", - "raw": "'yep'" + "raw": "'yep'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json index 4b099fb76f94..2d92a79bd760 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes.json @@ -392,7 +392,8 @@ "end": 721 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json index bc64f7c222b3..af152207a5c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorParameterShadowsOuterScopes2.json @@ -356,7 +356,8 @@ "end": 774 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json b/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json index 5378cb1bdac1..6ae9fe88776f 100644 --- a/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/constructorTagOnObjectLiteralMethod.json @@ -106,7 +106,8 @@ "end": 165 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json b/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json index 2a60d50013b0..ce61b5cdf469 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualSignatureInstantiation.json @@ -1671,7 +1671,8 @@ "end": 1009 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } }, { @@ -1748,7 +1749,8 @@ "end": 1080 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } }, { @@ -2082,7 +2084,8 @@ "end": 1302 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } }, { @@ -2159,7 +2162,8 @@ "end": 1359 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json index 8c116ec9478c..86b7fe53ef80 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeFromJSDoc.json @@ -57,7 +57,8 @@ "end": 174 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -113,7 +114,8 @@ "end": 195 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -216,7 +218,8 @@ "end": 308 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -272,7 +275,8 @@ "end": 333 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -464,7 +468,8 @@ "end": 499 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -520,7 +525,8 @@ "end": 528 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json index f244524d4848..0269d6ffeffa 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeTupleEnd.json @@ -1816,7 +1816,8 @@ "end": 683 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json index f3a09403900c..8e6b069b986a 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithTuple.json @@ -107,7 +107,8 @@ "end": 60 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -218,7 +219,8 @@ "end": 109 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -356,7 +358,8 @@ "end": 176 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -519,7 +522,8 @@ "end": 241 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -666,7 +670,8 @@ "end": 299 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -943,7 +948,8 @@ "end": 401 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -1092,7 +1098,8 @@ "end": 459 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -1267,7 +1274,8 @@ "end": 520 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1418,7 +1426,8 @@ "end": 586 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -1683,7 +1692,8 @@ "end": 757 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1695,7 +1705,8 @@ "end": 764 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json index 1a402bf358de..efcd4a73738d 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeIndexSignatures.json @@ -1026,7 +1026,8 @@ "end": 1962 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1713,7 +1714,8 @@ "end": 2742 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json index d2d3cb4f1a54..1fa414d22f88 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypeWithUnionTypeMembers.json @@ -1201,7 +1201,8 @@ "end": 976 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1359,7 +1360,8 @@ "end": 1108 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -1502,7 +1504,8 @@ "end": 1195 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1660,7 +1663,8 @@ "end": 1327 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -1803,7 +1807,8 @@ "end": 1426 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1961,7 +1966,8 @@ "end": 1557 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2027,7 +2033,8 @@ "end": 1616 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -2231,7 +2238,8 @@ "end": 1729 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2389,7 +2397,8 @@ "end": 1877 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -2421,7 +2430,8 @@ "end": 1938 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2579,7 +2589,8 @@ "end": 2086 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -2611,7 +2622,8 @@ "end": 2155 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2769,7 +2781,8 @@ "end": 2302 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2835,7 +2848,8 @@ "end": 2369 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -3701,7 +3715,8 @@ "end": 2911 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4323,7 +4338,8 @@ "end": 3357 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json b/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json index dac3b90e60d1..073889588a36 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/contextualTypedSpecialAssignment.json @@ -106,7 +106,8 @@ "end": 257 }, "value": "done", - "raw": "'done'" + "raw": "'done'", + "loneSurrogates": false } }, { @@ -226,7 +227,8 @@ "end": 302 }, "value": "done", - "raw": "'done'" + "raw": "'done'", + "loneSurrogates": false } }, { @@ -419,7 +421,8 @@ "end": 467 }, "value": "done", - "raw": "'done'" + "raw": "'done'", + "loneSurrogates": false } }, { @@ -571,7 +574,8 @@ "end": 565 }, "value": "done", - "raw": "'done'" + "raw": "'done'", + "loneSurrogates": false } }, { @@ -712,7 +716,8 @@ "end": 697 }, "value": "done", - "raw": "\"done\"" + "raw": "\"done\"", + "loneSurrogates": false } }, { @@ -879,7 +884,8 @@ "end": 790 }, "value": "done", - "raw": "\"done\"" + "raw": "\"done\"", + "loneSurrogates": false } }, { @@ -1061,7 +1067,8 @@ "end": 924 }, "value": "done", - "raw": "'done'" + "raw": "'done'", + "loneSurrogates": false } }, { @@ -1262,7 +1269,8 @@ "end": 1061 }, "value": "done", - "raw": "\"done\"" + "raw": "\"done\"", + "loneSurrogates": false } }, { @@ -1382,7 +1390,8 @@ "end": 1220 }, "value": "done", - "raw": "\"done\"" + "raw": "\"done\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json index b94e2bbaf329..643b1001f313 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionAwaitOperand.json @@ -69,7 +69,8 @@ "end": 90 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } } @@ -186,7 +187,8 @@ "end": 174 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] @@ -337,7 +339,8 @@ "end": 251 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] @@ -396,7 +399,8 @@ "end": 288 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json index 224e8d0934f0..5050845065e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypeAsyncFunctionReturnType.json @@ -69,7 +69,8 @@ "end": 90 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } } @@ -135,7 +136,8 @@ "end": 157 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] @@ -330,7 +332,8 @@ "end": 267 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] @@ -473,7 +476,8 @@ "end": 351 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] @@ -675,7 +679,8 @@ "end": 467 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] @@ -1891,7 +1896,8 @@ "end": 1128 }, "value": "windows-process-tree", - "raw": "\"windows-process-tree\"" + "raw": "\"windows-process-tree\"", + "loneSurrogates": false } }, { @@ -2157,7 +2163,8 @@ "end": 1323 }, "value": "windows-process-tree", - "raw": "\"windows-process-tree\"" + "raw": "\"windows-process-tree\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json index d54a0bd07e62..0326dd1b6586 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializer.json @@ -304,7 +304,8 @@ "end": 147 }, "value": "show", - "raw": "\"show\"" + "raw": "\"show\"", + "loneSurrogates": false }, "value": { "type": "AssignmentPattern", @@ -478,7 +479,8 @@ "end": 213 }, "value": "show", - "raw": "\"show\"" + "raw": "\"show\"", + "loneSurrogates": false } }, "value": { @@ -1018,7 +1020,8 @@ "end": 441 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1157,7 +1160,8 @@ "end": 503 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1173,7 +1177,8 @@ "end": 511 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1235,7 +1240,8 @@ "end": 540 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json index 5b1e469d1005..a1e2afec6350 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedBindingInitializerNegative.json @@ -290,7 +290,8 @@ "end": 148 }, "value": "show", - "raw": "\"show\"" + "raw": "\"show\"", + "loneSurrogates": false }, "value": { "type": "AssignmentPattern", @@ -439,7 +440,8 @@ "end": 203 }, "value": "show", - "raw": "\"show\"" + "raw": "\"show\"", + "loneSurrogates": false } }, "value": { @@ -1359,7 +1361,8 @@ "end": 642 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1375,7 +1378,8 @@ "end": 650 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1437,7 +1441,8 @@ "end": 679 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json index 175790dbff70..70fd7b8abbf2 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration01.json @@ -558,7 +558,8 @@ "end": 354 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -855,7 +856,8 @@ "end": 565 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -1176,7 +1178,8 @@ "end": 788 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json index 7038642b4ee8..bd87bc3ad249 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedClassExpressionMethodDeclaration02.json @@ -621,7 +621,8 @@ "end": 376 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -918,7 +919,8 @@ "end": 573 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -1239,7 +1241,8 @@ "end": 782 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json index b48e43c8a4f8..eb58b6ac665f 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIife.json @@ -69,7 +69,8 @@ "end": 31 }, "value": "build", - "raw": "\"build\"" + "raw": "\"build\"", + "loneSurrogates": false } } ], @@ -150,7 +151,8 @@ "end": 84 }, "value": "lol", - "raw": "\"lol\"" + "raw": "\"lol\"", + "loneSurrogates": false } } ], @@ -230,7 +232,8 @@ "end": 155 }, "value": "!", - "raw": "\"!\"" + "raw": "\"!\"", + "loneSurrogates": false } } ], @@ -333,7 +336,8 @@ "end": 187 }, "value": "-", - "raw": "\"-\"" + "raw": "\"-\"", + "loneSurrogates": false } } ], @@ -426,7 +430,8 @@ "end": 236 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1277,7 +1282,8 @@ "end": 544 }, "value": "oops", - "raw": "'oops'" + "raw": "'oops'", + "loneSurrogates": false } }, { @@ -1289,7 +1295,8 @@ "end": 552 }, "value": "oh no", - "raw": "'oh no'" + "raw": "'oh no'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json index ce156546db5d..a3c028ee885e 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedIifeStrict.json @@ -69,7 +69,8 @@ "end": 58 }, "value": "build", - "raw": "\"build\"" + "raw": "\"build\"", + "loneSurrogates": false } } ], @@ -150,7 +151,8 @@ "end": 111 }, "value": "lol", - "raw": "\"lol\"" + "raw": "\"lol\"", + "loneSurrogates": false } } ], @@ -230,7 +232,8 @@ "end": 182 }, "value": "!", - "raw": "\"!\"" + "raw": "\"!\"", + "loneSurrogates": false } } ], @@ -333,7 +336,8 @@ "end": 214 }, "value": "-", - "raw": "\"-\"" + "raw": "\"-\"", + "loneSurrogates": false } } ], @@ -426,7 +430,8 @@ "end": 263 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1277,7 +1282,8 @@ "end": 552 }, "value": "oops", - "raw": "'oops'" + "raw": "'oops'", + "loneSurrogates": false } }, { @@ -1289,7 +1295,8 @@ "end": 560 }, "value": "oh no", - "raw": "'oh no'" + "raw": "'oh no'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json index 1b785f6fb99b..3416d296b519 100644 --- a/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json +++ b/crates/swc_ecma_parser/tests/tsc/contextuallyTypedObjectLiteralMethodDeclaration01.json @@ -538,7 +538,8 @@ "end": 335 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -802,7 +803,8 @@ "end": 525 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -1087,7 +1089,8 @@ "end": 727 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json index badb1fa08885..b36702a43787 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasing.json @@ -143,7 +143,8 @@ "end": 167 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -425,7 +426,8 @@ "end": 338 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -668,7 +670,8 @@ "end": 483 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -734,7 +737,8 @@ "end": 527 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "definite": false @@ -1076,7 +1080,8 @@ "end": 738 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -1142,7 +1147,8 @@ "end": 782 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "definite": false @@ -1795,7 +1801,8 @@ "end": 1190 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -2096,7 +2103,8 @@ "end": 1351 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -2449,7 +2457,8 @@ "end": 1586 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -2755,7 +2764,8 @@ "end": 1744 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -3010,7 +3020,8 @@ "end": 1911 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -3097,7 +3108,8 @@ "end": 1942 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -3225,7 +3237,8 @@ "end": 1997 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -3428,7 +3441,8 @@ "end": 2107 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -3515,7 +3529,8 @@ "end": 2138 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -3657,7 +3672,8 @@ "end": 2202 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -3860,7 +3876,8 @@ "end": 2414 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -3947,7 +3964,8 @@ "end": 2445 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -4075,7 +4093,8 @@ "end": 2498 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -4278,7 +4297,8 @@ "end": 2692 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -4365,7 +4385,8 @@ "end": 2723 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -4493,7 +4514,8 @@ "end": 2778 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -4732,7 +4754,8 @@ "end": 3019 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -4819,7 +4842,8 @@ "end": 3050 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -4988,7 +5012,8 @@ "end": 3126 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -5191,7 +5216,8 @@ "end": 3236 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -5278,7 +5304,8 @@ "end": 3267 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -5447,7 +5474,8 @@ "end": 3341 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -5682,7 +5710,8 @@ "end": 3469 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -5769,7 +5798,8 @@ "end": 3500 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -5916,7 +5946,8 @@ "end": 3563 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -6181,7 +6212,8 @@ "end": 3694 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -6268,7 +6300,8 @@ "end": 3725 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -6415,7 +6448,8 @@ "end": 3788 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -6648,7 +6682,8 @@ "end": 3991 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -6735,7 +6770,8 @@ "end": 4022 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -6880,7 +6916,8 @@ "end": 4084 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -6971,7 +7008,8 @@ "end": 4129 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } }, @@ -7194,7 +7232,8 @@ "end": 4299 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -7281,7 +7320,8 @@ "end": 4330 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -7429,7 +7469,8 @@ "end": 4398 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "consequent": { @@ -7612,7 +7653,8 @@ "end": 4493 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -7699,7 +7741,8 @@ "end": 4524 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -7851,7 +7894,8 @@ "end": 4591 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "consequent": { @@ -8034,7 +8078,8 @@ "end": 4686 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -8121,7 +8166,8 @@ "end": 4717 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -8276,7 +8322,8 @@ "end": 4784 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "consequent": { @@ -8459,7 +8506,8 @@ "end": 4879 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -8546,7 +8594,8 @@ "end": 4910 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -8698,7 +8747,8 @@ "end": 4993 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "consequent": [ { @@ -8756,7 +8806,8 @@ "end": 5029 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false }, "consequent": [ { @@ -8979,7 +9030,8 @@ "end": 5173 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -9045,7 +9097,8 @@ "end": 5222 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -9409,7 +9462,8 @@ "end": 5472 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -9475,7 +9529,8 @@ "end": 5521 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -9848,7 +9903,8 @@ "end": 5885 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -9935,7 +9991,8 @@ "end": 5917 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } } @@ -10108,7 +10165,8 @@ "end": 5994 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false @@ -10323,7 +10381,8 @@ "end": 6170 }, "value": "str", - "raw": "'str'" + "raw": "'str'", + "loneSurrogates": false } } } @@ -10410,7 +10469,8 @@ "end": 6205 }, "value": "num", - "raw": "'num'" + "raw": "'num'", + "loneSurrogates": false } } } @@ -10572,7 +10632,8 @@ "end": 6279 }, "value": "str", - "raw": "'str'" + "raw": "'str'", + "loneSurrogates": false } }, "consequent": { @@ -10883,7 +10944,8 @@ "end": 6445 }, "value": "str", - "raw": "'str'" + "raw": "'str'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json index 93d10367e5ef..93f4e88399e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowAliasingCatchVariables.json @@ -104,7 +104,8 @@ "end": 106 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -219,7 +220,8 @@ "end": 201 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "consequent": { @@ -380,7 +382,8 @@ "end": 312 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "definite": false @@ -530,7 +533,8 @@ "end": 425 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json b/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json index 9465fa13dcab..0b67f95156fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowAssignmentExpression.json @@ -153,7 +153,8 @@ "end": 56 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -316,7 +317,8 @@ "end": 103 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryAndExpression.json b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryAndExpression.json index a27538ddeca8..10a006623931 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryAndExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryAndExpression.json @@ -166,7 +166,8 @@ "end": 62 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -255,7 +256,8 @@ "end": 105 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json index 55a3d80a2733..b0bd5188a7c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowBinaryOrExpression.json @@ -166,7 +166,8 @@ "end": 62 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -255,7 +256,8 @@ "end": 105 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json index f5e8337e395c..8774c7df6772 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowBindingElement.json @@ -64,7 +64,8 @@ "end": 96 }, "value": "value", - "raw": "'value'" + "raw": "'value'", + "loneSurrogates": false } } ] @@ -175,7 +176,8 @@ "end": 176 }, "value": "param is not defined", - "raw": "'param is not defined'" + "raw": "'param is not defined'", + "loneSurrogates": false } } ], @@ -329,7 +331,8 @@ "end": 322 }, "value": "value", - "raw": "'value'" + "raw": "'value'", + "loneSurrogates": false } } ] @@ -403,7 +406,8 @@ "end": 363 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -511,7 +515,8 @@ "end": 440 }, "value": "param is not defined", - "raw": "'param is not defined'" + "raw": "'param is not defined'", + "loneSurrogates": false } } ], @@ -626,7 +631,8 @@ "end": 538 }, "value": "value", - "raw": "'value'" + "raw": "'value'", + "loneSurrogates": false } } ] @@ -700,7 +706,8 @@ "end": 579 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -919,7 +926,8 @@ "end": 740 }, "value": "value", - "raw": "'value'" + "raw": "'value'", + "loneSurrogates": false } } ] @@ -993,7 +1001,8 @@ "end": 781 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -1088,7 +1097,8 @@ "end": 829 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -1500,7 +1510,8 @@ "end": 1071 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1523,7 +1534,8 @@ "end": 1088 }, "value": "window", - "raw": "'window'" + "raw": "'window'", + "loneSurrogates": false } } } @@ -1602,7 +1614,8 @@ "end": 1140 }, "value": "window", - "raw": "'window'" + "raw": "'window'", + "loneSurrogates": false } } } @@ -2010,7 +2023,8 @@ "end": 1396 }, "value": "window", - "raw": "'window'" + "raw": "'window'", + "loneSurrogates": false } } } @@ -2101,7 +2115,8 @@ "end": 1441 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -2124,7 +2139,8 @@ "end": 1458 }, "value": "window", - "raw": "'window'" + "raw": "'window'", + "loneSurrogates": false } } } @@ -2532,7 +2548,8 @@ "end": 1713 }, "value": "window", - "raw": "'window'" + "raw": "'window'", + "loneSurrogates": false } } } @@ -2611,7 +2628,8 @@ "end": 1765 }, "value": "window", - "raw": "'window'" + "raw": "'window'", + "loneSurrogates": false } } } @@ -2704,7 +2722,8 @@ "end": 1805 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json b/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json index 0c6b8a1b6f83..9af267b579c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowCommaOperator.json @@ -286,7 +286,8 @@ "end": 150 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -321,7 +322,8 @@ "end": 173 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -460,7 +462,8 @@ "end": 288 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json b/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json index 09ff75d6777b..e1549fb230ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowComputedPropertyNames.json @@ -196,7 +196,8 @@ "end": 129 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1347,7 +1348,8 @@ "end": 691 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1490,7 +1492,8 @@ "end": 781 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowConditionalExpression.json b/crates/swc_ecma_parser/tests/tsc/controlFlowConditionalExpression.json index d936d0414219..cd1be39beef0 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowConditionalExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowConditionalExpression.json @@ -169,7 +169,8 @@ "end": 68 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "alternate": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json b/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json index 06785f5474ec..13bda7648680 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowDestructuringDeclaration.json @@ -186,7 +186,8 @@ "end": 118 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -474,7 +475,8 @@ "end": 230 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -547,7 +549,8 @@ "end": 255 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -904,7 +907,8 @@ "end": 408 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -977,7 +981,8 @@ "end": 433 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -1407,7 +1412,8 @@ "end": 607 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1480,7 +1486,8 @@ "end": 634 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -1940,7 +1947,8 @@ "end": 819 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2013,7 +2021,8 @@ "end": 846 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -2504,7 +2513,8 @@ "end": 1046 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json index 4a0aebc96229..51f59c9bed57 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowDoWhileStatement.json @@ -173,7 +173,8 @@ "end": 73 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -350,7 +351,8 @@ "end": 179 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -570,7 +572,8 @@ "end": 316 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -689,7 +692,8 @@ "end": 404 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -952,7 +956,8 @@ "end": 553 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -1105,7 +1110,8 @@ "end": 654 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1361,7 +1367,8 @@ "end": 802 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1758,7 +1765,8 @@ "end": 1113 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json index 224bfe71ad34..b1a55bbf8bed 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess.json @@ -156,7 +156,8 @@ "end": 47 }, "value": "o", - "raw": "'o'" + "raw": "'o'", + "loneSurrogates": false } } }, @@ -219,7 +220,8 @@ "end": 71 }, "value": "o", - "raw": "'o'" + "raw": "'o'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json index 33e5ed18ff48..0d847a36cf35 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccess2.json @@ -205,7 +205,8 @@ "end": 118 }, "value": "works", - "raw": "'works'" + "raw": "'works'", + "loneSurrogates": false } } } @@ -217,7 +218,8 @@ "end": 133 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } }, "consequent": { @@ -288,7 +290,8 @@ "end": 167 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } }, @@ -340,7 +343,8 @@ "end": 193 }, "value": "works", - "raw": "'works'" + "raw": "'works'", + "loneSurrogates": false } } }, @@ -360,7 +364,8 @@ "end": 208 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } } @@ -421,7 +426,8 @@ "end": 305 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } }, "consequent": { @@ -480,7 +486,8 @@ "end": 327 }, "value": "works", - "raw": "'works'" + "raw": "'works'", + "loneSurrogates": false } } }, @@ -500,7 +507,8 @@ "end": 342 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } }, @@ -564,7 +572,8 @@ "end": 430 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json index 7665af2fcac2..6e591f3469ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowElementAccessNoCrash1.json @@ -417,7 +417,8 @@ "end": 357 }, "value": "commandLineArgs", - "raw": "\"commandLineArgs\"" + "raw": "\"commandLineArgs\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowForInStatement2.json b/crates/swc_ecma_parser/tests/tsc/controlFlowForInStatement2.json index 5705165c0a11..ad5167d919c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowForInStatement2.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowForInStatement2.json @@ -39,7 +39,8 @@ "end": 21 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 43 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "definite": false } @@ -314,7 +316,8 @@ "end": 145 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -467,7 +470,8 @@ "end": 263 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "definite": false } @@ -521,7 +525,8 @@ "end": 285 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -627,7 +632,8 @@ "end": 344 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -643,7 +649,8 @@ "end": 350 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json index 1b5c82766644..ce059cb9e6c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowForStatement.json @@ -181,7 +181,8 @@ "end": 88 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "test": { @@ -500,7 +501,8 @@ "end": 269 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -894,7 +896,8 @@ "end": 477 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "test": { @@ -929,7 +932,8 @@ "end": 500 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "update": { @@ -1150,7 +1154,8 @@ "end": 617 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -1195,7 +1200,8 @@ "end": 645 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "update": { @@ -1230,7 +1236,8 @@ "end": 653 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "BooleanLiteral", @@ -1415,7 +1422,8 @@ "end": 789 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "update": null, @@ -1482,7 +1490,8 @@ "end": 858 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json b/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json index 6cac701f0648..70e622833cfc 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowGenericTypes.json @@ -591,7 +591,8 @@ "end": 307 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -916,7 +917,8 @@ "end": 463 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -2561,7 +2563,8 @@ "end": 1129 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -2702,7 +2705,8 @@ "end": 1231 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -2851,7 +2855,8 @@ "end": 1185 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, { @@ -2867,7 +2872,8 @@ "end": 1191 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } ] @@ -3029,7 +3035,8 @@ "end": 1399 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -3135,7 +3142,8 @@ "end": 1435 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -3408,7 +3416,8 @@ "end": 1561 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -3510,7 +3519,8 @@ "end": 1624 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -3699,7 +3709,8 @@ "end": 1751 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -3801,7 +3812,8 @@ "end": 1814 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -8284,7 +8296,8 @@ "end": 4327 }, "value": "button", - "raw": "\"button\"" + "raw": "\"button\"", + "loneSurrogates": false } } } @@ -8391,7 +8404,8 @@ "end": 4391 }, "value": "checkbox", - "raw": "\"checkbox\"" + "raw": "\"checkbox\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json index 9b18e12893ff..e611193cf1f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIIFE.json @@ -179,7 +179,8 @@ "end": 182 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -416,7 +417,8 @@ "end": 344 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -706,7 +708,8 @@ "end": 527 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1267,7 +1270,8 @@ "end": 843 }, "value": "Test is not defined", - "raw": "'Test is not defined'" + "raw": "'Test is not defined'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json index d7c48eba8214..3bedec6635da 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIfStatement.json @@ -290,7 +290,8 @@ "end": 167 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -567,7 +568,8 @@ "end": 339 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -769,7 +771,8 @@ "end": 473 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -813,7 +816,8 @@ "end": 506 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -971,7 +975,8 @@ "end": 602 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "consequent": { @@ -1256,7 +1261,8 @@ "end": 773 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "consequent": { @@ -1300,7 +1306,8 @@ "end": 821 }, "value": "will always happen", - "raw": "'will always happen'" + "raw": "'will always happen'", + "loneSurrogates": false } } ], @@ -1578,7 +1585,8 @@ "end": 917 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -1594,7 +1602,8 @@ "end": 923 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -1665,7 +1674,8 @@ "end": 947 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, "consequent": { @@ -1720,7 +1730,8 @@ "end": 969 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json index 9f7860702059..54c0eb492038 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInOperator.json @@ -39,7 +39,8 @@ "end": 14 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 29 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "definite": false } @@ -119,7 +121,8 @@ "end": 44 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false }, "definite": false } @@ -354,7 +357,8 @@ "end": 134 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -427,7 +431,8 @@ "end": 169 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -456,7 +461,8 @@ "end": 193 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -902,7 +908,8 @@ "end": 513 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } } @@ -1168,7 +1175,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1178,7 +1186,8 @@ }, "tail": false, "cooked": "-", - "raw": "-" + "raw": "-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1188,7 +1197,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1310,7 +1320,8 @@ "end": 746 }, "value": "heat death of the universe", - "raw": "\"heat death of the universe\"" + "raw": "\"heat death of the universe\"", + "loneSurrogates": false } } ], @@ -1481,7 +1492,8 @@ "end": 828 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -1639,7 +1651,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1649,7 +1662,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1855,7 +1869,8 @@ "end": 1006 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json index ddd3d8c2f4ec..20b0cbd72361 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceOfGuardPrimitives.json @@ -199,7 +199,8 @@ "end": 133 }, "value": "Aha!! It's a Date in ", - "raw": "\"Aha!! It's a Date in \"" + "raw": "\"Aha!! It's a Date in \"", + "loneSurrogates": false }, "right": { "type": "CallExpression", @@ -282,7 +283,8 @@ "end": 198 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "consequent": { @@ -348,7 +350,8 @@ "end": 254 }, "value": "Aha!! It's a string of length ", - "raw": "\"Aha!! It's a string of length \"" + "raw": "\"Aha!! It's a string of length \"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -446,7 +449,8 @@ "end": 329 }, "value": "Aha!! It's the number ", - "raw": "\"Aha!! It's the number \"" + "raw": "\"Aha!! It's the number \"", + "loneSurrogates": false }, "right": { "type": "CallExpression", @@ -597,7 +601,8 @@ "end": 407 }, "value": "beef", - "raw": "\"beef\"" + "raw": "\"beef\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json index 9a9eceaf3617..e87551705d4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowInstanceofExtendsFunction.json @@ -183,7 +183,8 @@ "end": 130 }, "value": "now", - "raw": "\"now\"" + "raw": "\"now\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json index 2b94a0d5f335..3f3de6dc5259 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIteration.json @@ -219,7 +219,8 @@ "end": 153 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json index dfcf165c1401..56a6992f5cc4 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrors.json @@ -282,7 +282,8 @@ "end": 160 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -544,7 +545,8 @@ "end": 292 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -954,7 +956,8 @@ "end": 507 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1216,7 +1219,8 @@ "end": 639 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1603,7 +1607,8 @@ "end": 838 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -1849,7 +1854,8 @@ "end": 964 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -2111,7 +2117,8 @@ "end": 1099 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -2414,7 +2421,8 @@ "end": 1253 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json index 9c6beac2aca6..563be9a37997 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowIterationErrorsAsync.json @@ -282,7 +282,8 @@ "end": 198 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -551,7 +552,8 @@ "end": 342 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1020,7 +1022,8 @@ "end": 587 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1289,7 +1292,8 @@ "end": 731 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1709,7 +1713,8 @@ "end": 957 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -1955,7 +1960,8 @@ "end": 1089 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -2224,7 +2230,8 @@ "end": 1236 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -2534,7 +2541,8 @@ "end": 1402 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json index da7154f83d74..103108ac0239 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain.json @@ -6814,7 +6814,8 @@ "end": 2590 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -6873,7 +6874,8 @@ "end": 2620 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -7151,7 +7153,8 @@ "end": 2745 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -7210,7 +7213,8 @@ "end": 2774 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -7617,7 +7621,8 @@ "end": 2949 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -7676,7 +7681,8 @@ "end": 2979 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -7954,7 +7960,8 @@ "end": 3104 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -8013,7 +8020,8 @@ "end": 3133 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -8437,7 +8445,8 @@ "end": 3335 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -8496,7 +8505,8 @@ "end": 3365 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -8774,7 +8784,8 @@ "end": 3520 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -8833,7 +8844,8 @@ "end": 3549 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -9257,7 +9269,8 @@ "end": 3757 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -9316,7 +9329,8 @@ "end": 3787 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -9594,7 +9608,8 @@ "end": 3922 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -9653,7 +9668,8 @@ "end": 3951 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -10027,7 +10043,8 @@ "end": 4140 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -10086,7 +10103,8 @@ "end": 4174 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -10364,7 +10382,8 @@ "end": 4307 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -10423,7 +10442,8 @@ "end": 4340 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -10794,7 +10814,8 @@ "end": 4519 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -10850,7 +10871,8 @@ "end": 4548 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -11122,7 +11144,8 @@ "end": 4691 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -11178,7 +11201,8 @@ "end": 4719 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -11549,7 +11573,8 @@ "end": 4882 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -11608,7 +11633,8 @@ "end": 4916 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -13951,7 +13977,8 @@ "end": 6348 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -14054,7 +14081,8 @@ "end": 6397 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -14067,7 +14095,8 @@ "end": 6411 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -14113,7 +14142,8 @@ "end": 6430 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -14201,7 +14231,8 @@ "end": 6475 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -14506,7 +14537,8 @@ "end": 6625 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -14609,7 +14641,8 @@ "end": 6674 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -14622,7 +14655,8 @@ "end": 6688 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -14668,7 +14702,8 @@ "end": 6707 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -14756,7 +14791,8 @@ "end": 6752 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -15061,7 +15097,8 @@ "end": 6907 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -15210,7 +15247,8 @@ "end": 7008 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -15359,7 +15397,8 @@ "end": 7108 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -15508,7 +15547,8 @@ "end": 7208 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -15753,7 +15793,8 @@ "end": 7352 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -15902,7 +15943,8 @@ "end": 7456 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -16051,7 +16093,8 @@ "end": 7559 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -16200,7 +16243,8 @@ "end": 7662 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -17056,7 +17100,8 @@ "end": 8080 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -17387,7 +17432,8 @@ "end": 8254 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "consequent": [ { @@ -17758,7 +17804,8 @@ "end": 8582 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "consequent": [ { @@ -17816,7 +17863,8 @@ "end": 8643 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "consequent": [ { @@ -17874,7 +17922,8 @@ "end": 8707 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false }, "consequent": [ { @@ -18048,7 +18097,8 @@ "end": 8892 }, "value": "rectangle", - "raw": "'rectangle'" + "raw": "'rectangle'", + "loneSurrogates": false } } } @@ -18170,7 +18220,8 @@ "end": 8948 }, "value": "circle", - "raw": "'circle'" + "raw": "'circle'", + "loneSurrogates": false } } } @@ -18340,7 +18391,8 @@ "end": 9050 }, "value": "circle", - "raw": "'circle'" + "raw": "'circle'", + "loneSurrogates": false }, "consequent": [ { @@ -18440,7 +18492,8 @@ "end": 9123 }, "value": "rectangle", - "raw": "'rectangle'" + "raw": "'rectangle'", + "loneSurrogates": false }, "consequent": [ { @@ -18861,7 +18914,8 @@ "end": 9406 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } }, "consequent": { @@ -19759,7 +19813,8 @@ "end": 10082 }, "value": "left", - "raw": "\"left\"" + "raw": "\"left\"", + "loneSurrogates": false } }, { @@ -19775,7 +19830,8 @@ "end": 10092 }, "value": "right", - "raw": "\"right\"" + "raw": "\"right\"", + "loneSurrogates": false } } ] @@ -19870,7 +19926,8 @@ "end": 10129 }, "value": "left", - "raw": "\"left\"" + "raw": "\"left\"", + "loneSurrogates": false } }, "body": { @@ -19993,7 +20050,8 @@ "end": 10176 }, "value": "right", - "raw": "\"right\"" + "raw": "\"right\"", + "loneSurrogates": false } }, "consequent": { @@ -20052,7 +20110,8 @@ "end": 10228 }, "value": "I should ALSO be reachable", - "raw": "\"I should ALSO be reachable\"" + "raw": "\"I should ALSO be reachable\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json index af24a19af426..3fb7d6bce7d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowOptionalChain2.json @@ -68,7 +68,8 @@ "end": 51 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -174,7 +175,8 @@ "end": 94 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -342,7 +344,8 @@ "end": 165 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -606,7 +609,8 @@ "end": 288 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -808,7 +812,8 @@ "end": 382 }, "value": "u", - "raw": "'u'" + "raw": "'u'", + "loneSurrogates": false } } } @@ -914,7 +919,8 @@ "end": 414 }, "value": "n", - "raw": "'n'" + "raw": "'n'", + "loneSurrogates": false } } } @@ -985,7 +991,8 @@ "end": 437 }, "value": "X", - "raw": "'X'" + "raw": "'X'", + "loneSurrogates": false } } } @@ -1028,7 +1035,8 @@ "end": 445 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json b/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json index 61325635acc4..b9cc4191c5c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowParameter.json @@ -119,7 +119,8 @@ "end": 129 }, "value": "bad", - "raw": "\"bad\"" + "raw": "\"bad\"", + "loneSurrogates": false } } ], @@ -202,7 +203,8 @@ "end": 161 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ], @@ -628,7 +630,8 @@ "end": 459 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -831,7 +834,8 @@ "end": 572 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json b/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json index 76c8a49a4158..b77dc96085ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowTypeofObject.json @@ -223,7 +223,8 @@ "end": 172 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { @@ -437,7 +438,8 @@ "end": 300 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { @@ -651,7 +653,8 @@ "end": 427 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { @@ -868,7 +871,8 @@ "end": 559 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { @@ -1177,7 +1181,8 @@ "end": 788 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { @@ -1423,7 +1428,8 @@ "end": 937 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { @@ -1520,7 +1526,8 @@ "end": 1006 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json b/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json index d9a49d173cfb..346d786eedb1 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowWhileStatement.json @@ -173,7 +173,8 @@ "end": 73 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -350,7 +351,8 @@ "end": 176 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -570,7 +572,8 @@ "end": 310 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -689,7 +692,8 @@ "end": 408 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -842,7 +846,8 @@ "end": 496 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -952,7 +957,8 @@ "end": 560 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -1088,7 +1094,8 @@ "end": 623 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1378,7 +1385,8 @@ "end": 828 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1775,7 +1783,8 @@ "end": 1145 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -2134,7 +2143,8 @@ "end": 1415 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -2496,7 +2506,8 @@ "end": 1651 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -2758,7 +2769,8 @@ "end": 1811 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json b/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json index 6c467996df93..c2e54b74efff 100644 --- a/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/controlFlowWithTemplateLiterals.json @@ -115,7 +115,8 @@ }, "tail": true, "cooked": "string", - "raw": "string" + "raw": "string", + "loneSurrogates": false } ] } @@ -315,7 +316,8 @@ }, "tail": true, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json index 5774be8f0ce1..3f28f41b9768 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicates01.json @@ -111,7 +111,8 @@ "end": 118 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json index de9734859a0d..678097de27b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationEmitIdentifierPredicatesWithPrivateName01.json @@ -190,7 +190,8 @@ "end": 147 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/declarationFileForJsonImport.json b/crates/swc_ecma_parser/tests/tsc/declarationFileForJsonImport.json index 303980c437ef..6b1969517e05 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationFileForJsonImport.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationFileForJsonImport.json @@ -37,7 +37,8 @@ "end": 122 }, "value": "./data.json", - "raw": "\"./data.json\"" + "raw": "\"./data.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json b/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json index 3e360036279d..71c0a56b70ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/declarationsAndAssignments.json @@ -87,7 +87,8 @@ "end": 41 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -162,7 +163,8 @@ "end": 69 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -248,7 +250,8 @@ "end": 100 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -345,7 +348,8 @@ "end": 134 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -625,7 +629,8 @@ "end": 245 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1117,7 +1122,8 @@ "end": 443 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1216,7 +1222,8 @@ "end": 530 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1315,7 +1322,8 @@ "end": 597 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1433,7 +1441,8 @@ "end": 667 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1627,7 +1636,8 @@ "end": 746 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1729,7 +1739,8 @@ "end": 813 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1853,7 +1864,8 @@ "end": 886 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -2108,7 +2120,8 @@ "end": 983 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2514,7 +2527,8 @@ "end": 1138 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2812,7 +2826,8 @@ "end": 1259 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -2847,7 +2862,8 @@ "end": 1274 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -3092,7 +3108,8 @@ "end": 1370 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4010,7 +4027,8 @@ "end": 1900 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4138,7 +4156,8 @@ "end": 1948 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4179,7 +4198,8 @@ "end": 1965 }, "value": "<", - "raw": "\"<\"" + "raw": "\"<\"", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -4202,7 +4222,8 @@ "end": 1973 }, "value": ">", - "raw": "\">\"" + "raw": "\">\"", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -4236,7 +4257,8 @@ "end": 1986 }, "value": "<", - "raw": "\"<\"" + "raw": "\"<\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -4257,7 +4279,8 @@ "end": 1995 }, "value": ">", - "raw": "\">\"" + "raw": "\">\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4266,7 +4289,8 @@ "end": 2004 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4376,7 +4400,8 @@ "end": 2045 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4642,7 +4667,8 @@ "end": 2143 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } }, { @@ -4740,7 +4766,8 @@ "end": 2181 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -5099,7 +5126,8 @@ "end": 2329 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -5355,7 +5383,8 @@ "end": 2411 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -5657,7 +5686,8 @@ "end": 2512 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } }, { @@ -5784,7 +5814,8 @@ "end": 2550 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } }, { @@ -5892,7 +5923,8 @@ "end": 2579 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } }, { @@ -6120,7 +6152,8 @@ "end": 2697 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -6453,7 +6486,8 @@ "end": 2829 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -6624,7 +6658,8 @@ "end": 2881 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -7376,7 +7411,8 @@ "end": 3125 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -7411,7 +7447,8 @@ "end": 3138 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json index fd25227d22cd..b76772301fcc 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadata.json @@ -69,7 +69,8 @@ "end": 219 }, "value": "./service", - "raw": "\"./service\"" + "raw": "\"./service\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json index 16b3ed586cf5..2dae493dae64 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport.json @@ -72,7 +72,8 @@ "end": 220 }, "value": "./service", - "raw": "\"./service\"" + "raw": "\"./service\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json index 7f91696f7b05..a53fed28eccb 100644 --- a/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json +++ b/crates/swc_ecma_parser/tests/tsc/decoratorMetadataWithTypeOnlyImport2.json @@ -108,7 +108,8 @@ "end": 216 }, "value": "./services", - "raw": "'./services'" + "raw": "'./services'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json index 72e9d3453940..01d4399f0fa2 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithAnyOtherType.json @@ -161,7 +161,8 @@ "end": 79 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -173,7 +174,8 @@ "end": 83 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json index 1d2f42efdf3a..4fb95c03f85a 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumType.json @@ -73,7 +73,8 @@ "end": 51 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -150,7 +151,8 @@ "end": 103 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -267,7 +269,8 @@ "end": 179 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json index 4ce95a31aed4..45dc2346c23d 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithEnumTypeInvalidOperations.json @@ -100,7 +100,8 @@ "end": 66 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -390,7 +391,8 @@ "end": 270 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } }, @@ -528,7 +530,8 @@ "end": 323 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json index c298f9f6a33e..896a30e72a5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/decrementOperatorWithUnsupportedStringType.json @@ -115,7 +115,8 @@ "end": 78 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 82 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 120 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 185 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -703,7 +707,8 @@ "end": 452 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -769,7 +774,8 @@ "end": 485 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -789,7 +795,8 @@ "end": 492 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -858,7 +865,8 @@ "end": 527 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -987,7 +995,8 @@ "end": 589 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -1053,7 +1062,8 @@ "end": 622 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1073,7 +1083,8 @@ "end": 629 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1142,7 +1153,8 @@ "end": 665 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -2076,7 +2088,8 @@ "end": 1187 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -2395,7 +2408,8 @@ "end": 1268 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression01.json b/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression01.json index 3339e272ac3d..263568e8f241 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression01.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression01.json @@ -194,7 +194,8 @@ "end": 177 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression02.json b/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression02.json index dd7e972db724..53edd803c297 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression02.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportInAwaitExpression02.json @@ -194,7 +194,8 @@ "end": 182 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json index d6796b799776..8d51e820df36 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge01.json @@ -358,7 +358,8 @@ "end": 309 }, "value": "m1", - "raw": "\"m1\"" + "raw": "\"m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json index 750f02b9961c..08aee5bc5acc 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge02.json @@ -239,7 +239,8 @@ "end": 243 }, "value": "m1", - "raw": "\"m1\"" + "raw": "\"m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json index a2cacf306347..121d58ef5e59 100644 --- a/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json +++ b/crates/swc_ecma_parser/tests/tsc/defaultExportsCannotMerge03.json @@ -225,7 +225,8 @@ "end": 229 }, "value": "m1", - "raw": "\"m1\"" + "raw": "\"m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/defineProperty.json b/crates/swc_ecma_parser/tests/tsc/defineProperty.json index 6880fd0a349b..da297dccb201 100644 --- a/crates/swc_ecma_parser/tests/tsc/defineProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/defineProperty.json @@ -49,7 +49,8 @@ "end": 69 }, "value": "p", - "raw": "\"p\"" + "raw": "\"p\"", + "loneSurrogates": false } } } @@ -61,7 +62,8 @@ "end": 75 }, "value": "p", - "raw": "\"p\"" + "raw": "\"p\"", + "loneSurrogates": false }, "definite": false } @@ -205,7 +207,8 @@ "end": 136 }, "value": "computed", - "raw": "\"computed\"" + "raw": "\"computed\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/deleteChain.json b/crates/swc_ecma_parser/tests/tsc/deleteChain.json index 988b855d60fc..ac0c577d0a25 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteChain.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteChain.json @@ -2022,7 +2022,8 @@ "end": 575 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -2050,7 +2051,8 @@ "end": 584 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } } @@ -2153,7 +2155,8 @@ "end": 605 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -2181,7 +2184,8 @@ "end": 614 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json index 3c1bf4da76c0..c917d9eeb009 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithAnyOtherType.json @@ -147,7 +147,8 @@ "end": 79 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -159,7 +160,8 @@ "end": 83 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -281,7 +283,8 @@ "end": 123 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json index 97b350130d0e..9bbf8055f277 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithEnumType.json @@ -100,7 +100,8 @@ "end": 71 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -274,7 +275,8 @@ "end": 231 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -392,7 +394,8 @@ "end": 284 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -583,7 +586,8 @@ "end": 426 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json index 764f739c2f63..65f6600ed781 100644 --- a/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/deleteOperatorWithStringType.json @@ -115,7 +115,8 @@ "end": 83 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 90 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 131 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 196 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -600,7 +604,8 @@ "end": 415 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -665,7 +670,8 @@ "end": 454 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -685,7 +691,8 @@ "end": 461 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -753,7 +760,8 @@ "end": 502 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1501,7 +1509,8 @@ "end": 1037 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json index 32c48220e39c..9bee29bea483 100644 --- a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json +++ b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariables.json @@ -75,7 +75,8 @@ "end": 112 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -162,7 +163,8 @@ "end": 149 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -347,7 +349,8 @@ "end": 233 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -434,7 +437,8 @@ "end": 290 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -679,7 +683,8 @@ "end": 423 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -766,7 +771,8 @@ "end": 480 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -970,7 +976,8 @@ "end": 602 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false }, "consequent": [ { @@ -1038,7 +1045,8 @@ "end": 670 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false }, "consequent": [ { @@ -1269,7 +1277,8 @@ "end": 874 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -1356,7 +1365,8 @@ "end": 931 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -1648,7 +1658,8 @@ "end": 1067 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -1735,7 +1746,8 @@ "end": 1124 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -1916,7 +1928,8 @@ "end": 1200 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -2020,7 +2033,8 @@ "end": 1249 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -2246,7 +2260,8 @@ "end": 1369 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -2333,7 +2348,8 @@ "end": 1438 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -2606,7 +2622,8 @@ "end": 1609 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -2693,7 +2710,8 @@ "end": 1678 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -2981,7 +2999,8 @@ "end": 1860 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -3068,7 +3087,8 @@ "end": 1929 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -3300,7 +3320,8 @@ "end": 2093 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false }, "consequent": [ { @@ -3368,7 +3389,8 @@ "end": 2173 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false }, "consequent": [ { @@ -3533,7 +3555,8 @@ "end": 2340 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -3627,7 +3650,8 @@ "end": 2371 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -3721,7 +3745,8 @@ "end": 2403 }, "value": "C", - "raw": "'C'" + "raw": "'C'", + "loneSurrogates": false } } } @@ -3913,7 +3938,8 @@ "end": 2475 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -3975,7 +4001,8 @@ "end": 2528 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -4037,7 +4064,8 @@ "end": 2582 }, "value": "C", - "raw": "'C'" + "raw": "'C'", + "loneSurrogates": false } }, "consequent": { @@ -4199,7 +4227,8 @@ "end": 2723 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } }, @@ -4248,7 +4277,8 @@ "end": 2739 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } }, @@ -4409,7 +4439,8 @@ "end": 2808 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -4496,7 +4527,8 @@ "end": 2862 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -4654,7 +4686,8 @@ "end": 2954 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -4801,7 +4834,8 @@ "end": 2997 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -5487,7 +5521,8 @@ "end": 3246 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, "consequent": { @@ -5766,7 +5801,8 @@ "end": 3395 }, "value": "add", - "raw": "'add'" + "raw": "'add'", + "loneSurrogates": false } } } @@ -5889,7 +5925,8 @@ "end": 3447 }, "value": "remove", - "raw": "'remove'" + "raw": "'remove'", + "loneSurrogates": false } } } @@ -6142,7 +6179,8 @@ "end": 3592 }, "value": "add", - "raw": "'add'" + "raw": "'add'", + "loneSurrogates": false }, "consequent": [ { @@ -6210,7 +6248,8 @@ "end": 3657 }, "value": "remove", - "raw": "'remove'" + "raw": "'remove'", + "loneSurrogates": false }, "consequent": [ { @@ -6740,7 +6779,8 @@ "end": 3963 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -6827,7 +6867,8 @@ "end": 4017 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -6995,7 +7036,8 @@ "end": 4085 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } }, @@ -7044,7 +7086,8 @@ "end": 4101 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } }, @@ -7159,7 +7202,8 @@ "end": 4163 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -7246,7 +7290,8 @@ "end": 4220 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } }, "consequent": { @@ -7413,7 +7458,8 @@ "end": 4290 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } }, @@ -7462,7 +7508,8 @@ "end": 4306 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -7561,7 +7608,8 @@ "end": 4361 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, "consequent": { @@ -7989,7 +8037,8 @@ "end": 4605 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -8213,7 +8262,8 @@ "end": 4743 }, "value": "add", - "raw": "\"add\"" + "raw": "\"add\"", + "loneSurrogates": false } } }, @@ -8333,7 +8383,8 @@ "end": 4782 }, "value": "concat", - "raw": "\"concat\"" + "raw": "\"concat\"", + "loneSurrogates": false } } }, @@ -8617,7 +8668,8 @@ "end": 4925 }, "value": "add", - "raw": "\"add\"" + "raw": "\"add\"", + "loneSurrogates": false }, "consequent": [ { @@ -8747,7 +8799,8 @@ "end": 5009 }, "value": "concat", - "raw": "\"concat\"" + "raw": "\"concat\"", + "loneSurrogates": false }, "consequent": [ { @@ -8931,7 +8984,8 @@ "end": 5115 }, "value": "add", - "raw": "\"add\"" + "raw": "\"add\"", + "loneSurrogates": false } }, { @@ -9023,7 +9077,8 @@ "end": 5150 }, "value": "concat", - "raw": "\"concat\"" + "raw": "\"concat\"", + "loneSurrogates": false } }, { @@ -9245,7 +9300,8 @@ "end": 5338 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -9356,7 +9412,8 @@ "end": 5383 }, "value": "num", - "raw": "\"num\"" + "raw": "\"num\"", + "loneSurrogates": false } } }, @@ -9607,7 +9664,8 @@ "end": 5490 }, "value": "num", - "raw": "'num'" + "raw": "'num'", + "loneSurrogates": false } }, "consequent": { @@ -9701,7 +9759,8 @@ "end": 5535 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -9839,7 +9898,8 @@ "end": 5609 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -9950,7 +10010,8 @@ "end": 5654 }, "value": "num", - "raw": "\"num\"" + "raw": "\"num\"", + "loneSurrogates": false } } }, @@ -10227,7 +10288,8 @@ "end": 5785 }, "value": "num", - "raw": "'num'" + "raw": "'num'", + "loneSurrogates": false } }, "consequent": { @@ -10321,7 +10383,8 @@ "end": 5830 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -10459,7 +10522,8 @@ "end": 5902 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -10570,7 +10634,8 @@ "end": 5947 }, "value": "num", - "raw": "\"num\"" + "raw": "\"num\"", + "loneSurrogates": false } } }, @@ -10863,7 +10928,8 @@ "end": 6081 }, "value": "num", - "raw": "'num'" + "raw": "'num'", + "loneSurrogates": false } }, "consequent": { @@ -10957,7 +11023,8 @@ "end": 6126 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -11095,7 +11162,8 @@ "end": 6203 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -11206,7 +11274,8 @@ "end": 6248 }, "value": "num", - "raw": "\"num\"" + "raw": "\"num\"", + "loneSurrogates": false } } }, @@ -11499,7 +11568,8 @@ "end": 6403 }, "value": "num", - "raw": "'num'" + "raw": "'num'", + "loneSurrogates": false } }, "consequent": { @@ -11593,7 +11663,8 @@ "end": 6448 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -11749,7 +11820,8 @@ "end": 6513 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -11798,7 +11870,8 @@ "end": 6529 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -11963,7 +12036,8 @@ "end": 6621 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "consequent": { @@ -12050,7 +12124,8 @@ "end": 6688 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, "consequent": { @@ -14352,7 +14427,8 @@ "end": 8166 }, "value": "shardDisconnect", - "raw": "\"shardDisconnect\"" + "raw": "\"shardDisconnect\"", + "loneSurrogates": false } }, { @@ -14525,7 +14601,8 @@ }, "tail": false, "cooked": "Shard ", - "raw": "Shard " + "raw": "Shard ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14535,7 +14612,8 @@ }, "tail": false, "cooked": " disconnected (", - "raw": " disconnected (" + "raw": " disconnected (", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14545,7 +14623,8 @@ }, "tail": false, "cooked": ",", - "raw": "," + "raw": ",", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14555,7 +14634,8 @@ }, "tail": false, "cooked": "): ", - "raw": "): " + "raw": "): ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14565,7 +14645,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -14631,7 +14712,8 @@ "end": 8306 }, "value": "shardDisconnect", - "raw": "\"shardDisconnect\"" + "raw": "\"shardDisconnect\"", + "loneSurrogates": false } }, { @@ -14783,7 +14865,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14793,7 +14876,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14803,7 +14887,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14813,7 +14898,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json index cd61f5c7a7f5..7394c4e6eaac 100644 --- a/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/dependentDestructuredVariablesFromNestedPatterns.json @@ -873,7 +873,8 @@ "end": 525 }, "value": "fulfilled", - "raw": "\"fulfilled\"" + "raw": "\"fulfilled\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json b/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json index 8721d2e1097e..fb16e6a6abdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassIncludesInheritedMembers.json @@ -151,7 +151,8 @@ "end": 64 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -357,7 +358,8 @@ "end": 157 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -838,7 +840,8 @@ "end": 329 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -1065,7 +1068,8 @@ "end": 407 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -1365,7 +1369,8 @@ "end": 541 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json index c5f3c2d7f8f7..b6c4f07f9093 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesProtectedMembers2.json @@ -3062,7 +3062,8 @@ "end": 1316 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json index 87b75867decf..1768397eb322 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassOverridesPublicMembers.json @@ -3062,7 +3062,8 @@ "end": 1143 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json index 41f2b7e8d8de..8ba959d2bf96 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity.json @@ -653,7 +653,8 @@ "end": 353 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json index 20773d12e77e..e58090cf2307 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity2.json @@ -777,7 +777,8 @@ "end": 390 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json index 475551551097..a4a593d4bb27 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity3.json @@ -904,7 +904,8 @@ "end": 384 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -916,7 +917,8 @@ "end": 388 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -995,7 +997,8 @@ "end": 408 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json index 2958550272f9..691d7ec2ae47 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassTransitivity4.json @@ -653,7 +653,8 @@ "end": 401 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json index 9950ce0076f2..a5ef6d4d0002 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithAny.json @@ -917,7 +917,8 @@ "end": 628 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -991,7 +992,8 @@ "end": 669 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1105,7 +1107,8 @@ "end": 746 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1179,7 +1182,8 @@ "end": 798 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json index 59cf8155de07..d8291bc9c9f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingProtectedInstance.json @@ -108,7 +108,8 @@ "end": 102 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -372,7 +373,8 @@ "end": 298 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json index ada5254ddffb..95e1a7d0b096 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateInstanceShadowingPublicInstance.json @@ -108,7 +108,8 @@ "end": 79 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -372,7 +373,8 @@ "end": 269 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json index 1e3e12311600..253851220670 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingProtectedStatic.json @@ -108,7 +108,8 @@ "end": 116 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -372,7 +373,8 @@ "end": 335 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json index 8a435e119bbb..80e02b1fa21d 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithPrivateStaticShadowingPublicStatic.json @@ -108,7 +108,8 @@ "end": 93 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -372,7 +373,8 @@ "end": 320 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json index 2a448e3c8198..c59539385135 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor.json @@ -251,7 +251,8 @@ "end": 125 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json index 8a587b360e9e..0a8fdd6237e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor2.json @@ -458,7 +458,8 @@ "end": 217 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json index 0472d665a809..4d9a0307a893 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedClassWithoutExplicitConstructor3.json @@ -217,7 +217,8 @@ "end": 174 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -501,7 +502,8 @@ "end": 321 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -699,7 +701,8 @@ "end": 416 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -711,7 +714,8 @@ "end": 420 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json b/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json index 6331ab0c5734..c88a21204e2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedGenericClassWithAny.json @@ -818,7 +818,8 @@ "end": 527 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -902,7 +903,8 @@ "end": 572 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/derivedInterfaceIncompatibleWithBaseIndexer.json b/crates/swc_ecma_parser/tests/tsc/derivedInterfaceIncompatibleWithBaseIndexer.json index cc52c78b419f..6ae583568dd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/derivedInterfaceIncompatibleWithBaseIndexer.json +++ b/crates/swc_ecma_parser/tests/tsc/derivedInterfaceIncompatibleWithBaseIndexer.json @@ -420,7 +420,8 @@ "end": 204 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -895,7 +896,8 @@ "end": 533 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5.json index 8b918076c77d..472ac76ddd31 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5.json @@ -462,7 +462,8 @@ "end": 1510 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1705,7 +1706,8 @@ "end": 2000 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1826,7 +1828,8 @@ "end": 2043 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1935,7 +1938,8 @@ "end": 2083 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5iterable.json index 7eb27eb83fa7..ac9b7c2968cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES5iterable.json @@ -462,7 +462,8 @@ "end": 1539 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1705,7 +1706,8 @@ "end": 2029 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1826,7 +1828,8 @@ "end": 2072 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1935,7 +1938,8 @@ "end": 2112 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES6.json index df71d8a008ea..439942df80b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment1ES6.json @@ -462,7 +462,8 @@ "end": 1527 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1705,7 +1706,8 @@ "end": 2017 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1826,7 +1828,8 @@ "end": 2060 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1935,7 +1938,8 @@ "end": 2100 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json index fbb9b137341e..4ed7243f0ca1 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment2.json @@ -358,7 +358,8 @@ "end": 652 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -697,7 +698,8 @@ "end": 807 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment5SiblingInitializer.json b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment5SiblingInitializer.json index f62a45c55057..8f64fb693dea 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment5SiblingInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringArrayBindingPatternAndAssignment5SiblingInitializer.json @@ -349,7 +349,8 @@ "end": 218 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] @@ -433,7 +434,8 @@ "end": 249 }, "value": "!", - "raw": "'!'" + "raw": "'!'", + "loneSurrogates": false } } } @@ -457,7 +459,8 @@ "end": 258 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] @@ -583,7 +586,8 @@ "end": 350 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -679,7 +683,8 @@ "end": 384 }, "value": "!", - "raw": "'!'" + "raw": "'!'", + "loneSurrogates": false } } } @@ -703,7 +708,8 @@ "end": 393 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json b/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json index 8bafc5bee1c7..b70aa7dadda9 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringControlFlow.json @@ -232,7 +232,8 @@ "end": 113 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -1589,7 +1590,8 @@ "end": 757 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, "value": { @@ -1668,7 +1670,8 @@ "end": 791 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -1677,7 +1680,8 @@ "end": 796 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1872,7 +1876,8 @@ "end": 914 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json b/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json index faf5ea9305b7..5ce78a3f69d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringInFunctionType.json @@ -1214,7 +1214,8 @@ "end": 398 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json index edb13fc44431..554e1ca19572 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES5.json @@ -323,7 +323,8 @@ "end": 697 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -375,7 +376,8 @@ "end": 725 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -462,7 +464,8 @@ "end": 758 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1231,7 +1234,8 @@ "end": 1541 }, "value": "prop1", - "raw": "\"prop1\"" + "raw": "\"prop1\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -1309,7 +1313,8 @@ "end": 1566 }, "value": "prop1", - "raw": "\"prop1\"" + "raw": "\"prop1\"", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -1383,7 +1388,8 @@ "end": 1594 }, "value": "prop2", - "raw": "\"prop2\"" + "raw": "\"prop2\"", + "loneSurrogates": false }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json index eca423cff50b..e0891f360508 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment1ES6.json @@ -323,7 +323,8 @@ "end": 713 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -375,7 +376,8 @@ "end": 741 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -462,7 +464,8 @@ "end": 774 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1231,7 +1234,8 @@ "end": 1557 }, "value": "prop1", - "raw": "\"prop1\"" + "raw": "\"prop1\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -1309,7 +1313,8 @@ "end": 1582 }, "value": "prop1", - "raw": "\"prop1\"" + "raw": "\"prop1\"", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -1383,7 +1388,8 @@ "end": 1610 }, "value": "prop2", - "raw": "\"prop2\"" + "raw": "\"prop2\"", + "loneSurrogates": false }, "value": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json index 894301f23ce5..771df0239d50 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment6.json @@ -39,7 +39,8 @@ "end": 38 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 53 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json index 085ca90ae18d..adae733b8191 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment7.json @@ -47,7 +47,8 @@ "end": 45 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -73,7 +74,8 @@ "end": 58 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json index 14326d01e9d9..e44b9db30347 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment8.json @@ -56,7 +56,8 @@ "end": 47 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -76,7 +77,8 @@ "end": 59 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json index 027f23137338..fe4347410e05 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringObjectBindingPatternAndAssignment9SiblingInitializer.json @@ -397,7 +397,8 @@ "end": 241 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] @@ -489,7 +490,8 @@ "end": 274 }, "value": "!", - "raw": "'!'" + "raw": "'!'", + "loneSurrogates": false } } } @@ -521,7 +523,8 @@ "end": 289 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] @@ -663,7 +666,8 @@ "end": 389 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -775,7 +779,8 @@ "end": 429 }, "value": "!", - "raw": "'!'" + "raw": "'!'", + "loneSurrogates": false } } } @@ -807,7 +812,8 @@ "end": 444 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json index b08297e57b36..e2a066e35221 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5.json @@ -1062,7 +1062,8 @@ "end": 610 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1162,7 +1163,8 @@ "end": 635 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1595,7 +1597,8 @@ "end": 1039 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -2347,7 +2350,8 @@ "end": 1329 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -2396,7 +2400,8 @@ "end": 1352 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -2439,7 +2444,8 @@ "end": 1368 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -2539,7 +2545,8 @@ "end": 1404 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -2624,7 +2631,8 @@ "end": 1471 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -3208,7 +3216,8 @@ "end": 1815 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -3574,7 +3583,8 @@ "end": 1919 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -3657,7 +3667,8 @@ "end": 2001 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -4039,7 +4050,8 @@ "end": 2350 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -4139,7 +4151,8 @@ "end": 2432 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json index ec18898084f3..61a0d26ff059 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES5iterable.json @@ -1062,7 +1062,8 @@ "end": 639 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1162,7 +1163,8 @@ "end": 664 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1595,7 +1597,8 @@ "end": 1068 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -2347,7 +2350,8 @@ "end": 1358 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -2396,7 +2400,8 @@ "end": 1381 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -2439,7 +2444,8 @@ "end": 1397 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -2539,7 +2545,8 @@ "end": 1433 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -2624,7 +2631,8 @@ "end": 1500 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -3208,7 +3216,8 @@ "end": 1844 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -3574,7 +3583,8 @@ "end": 1948 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -3657,7 +3667,8 @@ "end": 2030 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -4039,7 +4050,8 @@ "end": 2378 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -4139,7 +4151,8 @@ "end": 2460 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json index 1fcc9bde9066..c5ca35a05a9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration1ES6.json @@ -1062,7 +1062,8 @@ "end": 659 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1162,7 +1163,8 @@ "end": 684 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1595,7 +1597,8 @@ "end": 1089 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -2347,7 +2350,8 @@ "end": 1379 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -2396,7 +2400,8 @@ "end": 1402 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -2439,7 +2444,8 @@ "end": 1418 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -3010,7 +3016,8 @@ "end": 1733 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -3376,7 +3383,8 @@ "end": 1837 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -3459,7 +3467,8 @@ "end": 1919 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -3841,7 +3850,8 @@ "end": 2268 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -3941,7 +3951,8 @@ "end": 2350 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json index cff591854f2a..ebd752c8dd4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5.json @@ -1231,7 +1231,8 @@ "end": 692 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1424,7 +1425,8 @@ "end": 746 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1546,7 +1548,8 @@ "end": 830 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1970,7 +1973,8 @@ "end": 1177 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2067,7 +2071,8 @@ "end": 1197 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2079,7 +2084,8 @@ "end": 1206 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json index c8450d06751e..7243117eef5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES5iterable.json @@ -1231,7 +1231,8 @@ "end": 721 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1424,7 +1425,8 @@ "end": 775 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1546,7 +1548,8 @@ "end": 859 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1970,7 +1973,8 @@ "end": 1206 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2067,7 +2071,8 @@ "end": 1226 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2079,7 +2084,8 @@ "end": 1235 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json index cff591854f2a..ebd752c8dd4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration3ES6.json @@ -1231,7 +1231,8 @@ "end": 692 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1424,7 +1425,8 @@ "end": 746 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1546,7 +1548,8 @@ "end": 830 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1970,7 +1973,8 @@ "end": 1177 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2067,7 +2071,8 @@ "end": 1197 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2079,7 +2084,8 @@ "end": 1206 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json index a593f2281a91..fbd438e5257d 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration5.json @@ -1573,7 +1573,8 @@ "end": 661 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1763,7 +1764,8 @@ "end": 722 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -2265,7 +2267,8 @@ "end": 891 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json index 6dc8884648ce..3add6f5ecc58 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringParameterDeclaration8.json @@ -57,7 +57,8 @@ "end": 141 }, "value": "z", - "raw": "'z'" + "raw": "'z'", + "loneSurrogates": false } }, { @@ -101,7 +102,8 @@ "end": 164 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ], @@ -169,7 +171,8 @@ "end": 188 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -185,7 +188,8 @@ "end": 194 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ] @@ -269,7 +273,8 @@ "end": 217 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -285,7 +290,8 @@ "end": 223 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -446,7 +452,8 @@ "end": 279 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -483,7 +490,8 @@ "end": 297 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -546,7 +554,8 @@ "end": 321 }, "value": "z", - "raw": "'z'" + "raw": "'z'", + "loneSurrogates": false } }, { @@ -583,7 +592,8 @@ "end": 339 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -646,7 +656,8 @@ "end": 365 }, "value": "one", - "raw": "'one'" + "raw": "'one'", + "loneSurrogates": false } }, { @@ -683,7 +694,8 @@ "end": 383 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json index 26f777c048ba..603382b414ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5.json @@ -199,7 +199,8 @@ "end": 229 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -433,7 +434,8 @@ "end": 299 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -552,7 +554,8 @@ "end": 559 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -604,7 +607,8 @@ "end": 587 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -686,7 +690,8 @@ "end": 627 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -878,7 +883,8 @@ "end": 703 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1251,7 +1257,8 @@ "end": 1071 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1337,7 +1344,8 @@ "end": 1429 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1496,7 +1504,8 @@ "end": 1738 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json index 75a899616a74..38d3504d6b47 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES5iterable.json @@ -199,7 +199,8 @@ "end": 258 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -433,7 +434,8 @@ "end": 328 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -552,7 +554,8 @@ "end": 588 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -604,7 +607,8 @@ "end": 616 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -686,7 +690,8 @@ "end": 656 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -878,7 +883,8 @@ "end": 732 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1251,7 +1257,8 @@ "end": 1099 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1337,7 +1344,8 @@ "end": 1456 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1496,7 +1504,8 @@ "end": 1764 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json index 6d5081293483..49e41762ff2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration1ES6.json @@ -199,7 +199,8 @@ "end": 245 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -433,7 +434,8 @@ "end": 315 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -552,7 +554,8 @@ "end": 575 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -604,7 +607,8 @@ "end": 603 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -686,7 +690,8 @@ "end": 643 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -878,7 +883,8 @@ "end": 719 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1251,7 +1257,8 @@ "end": 1087 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1337,7 +1344,8 @@ "end": 1445 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -1496,7 +1504,8 @@ "end": 1754 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json index 63b89b72f6cd..857da74092e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringVariableDeclaration2.json @@ -527,7 +527,8 @@ "end": 585 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -1018,7 +1019,8 @@ "end": 1326 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers2.json b/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers2.json index 9299aefd0242..1e16fda44f8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers2.json +++ b/crates/swc_ecma_parser/tests/tsc/destructuringWithLiteralInitializers2.json @@ -364,7 +364,8 @@ "end": 133 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -815,7 +816,8 @@ "end": 270 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -922,7 +924,8 @@ "end": 307 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -1036,7 +1039,8 @@ "end": 343 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -1159,7 +1163,8 @@ "end": 384 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -1295,7 +1300,8 @@ "end": 426 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -1330,7 +1336,8 @@ "end": 439 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ] @@ -1563,7 +1570,8 @@ "end": 553 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -1677,7 +1685,8 @@ "end": 589 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -1800,7 +1809,8 @@ "end": 630 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -1937,7 +1947,8 @@ "end": 673 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -2081,7 +2092,8 @@ "end": 721 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -2195,7 +2207,8 @@ "end": 757 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -2318,7 +2331,8 @@ "end": 798 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -2455,7 +2469,8 @@ "end": 841 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json index e62be6ade133..4eafb6464717 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionInference.json @@ -98,7 +98,8 @@ "end": 68 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -240,7 +241,8 @@ "end": 108 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -762,7 +764,8 @@ "end": 305 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -859,7 +862,8 @@ "end": 330 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -1142,7 +1146,8 @@ "end": 414 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1246,7 +1251,8 @@ "end": 464 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json index e4cb8e9a4cad..8c68e7c95652 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes1.json @@ -69,7 +69,8 @@ "end": 38 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false } } } @@ -176,7 +177,8 @@ "end": 104 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false } } } @@ -318,7 +320,8 @@ "end": 185 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false } } } @@ -560,7 +563,8 @@ "end": 307 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false } }, "consequent": { @@ -683,7 +687,8 @@ "end": 381 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false } }, "consequent": { @@ -839,7 +844,8 @@ "end": 472 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false } }, "consequent": { @@ -1070,7 +1076,8 @@ "end": 625 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -1153,7 +1160,8 @@ "end": 675 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false }, "consequent": [ { @@ -1236,7 +1244,8 @@ "end": 725 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -1450,7 +1459,8 @@ "end": 855 }, "value": "Unexpected object: ", - "raw": "\"Unexpected object: \"" + "raw": "\"Unexpected object: \"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1606,7 +1616,8 @@ "end": 935 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -1689,7 +1700,8 @@ "end": 985 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false }, "consequent": [ { @@ -1772,7 +1784,8 @@ "end": 1035 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -2052,7 +2065,8 @@ "end": 1194 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -2135,7 +2149,8 @@ "end": 1244 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false }, "consequent": [ { @@ -2218,7 +2233,8 @@ "end": 1294 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -2441,7 +2457,8 @@ "end": 1400 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -2535,7 +2552,8 @@ "end": 1431 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } }, { @@ -2551,7 +2569,8 @@ "end": 1437 }, "value": "C", - "raw": "\"C\"" + "raw": "\"C\"", + "loneSurrogates": false } } ] @@ -2640,7 +2659,8 @@ "end": 1468 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false } } } @@ -2767,7 +2787,8 @@ "end": 1521 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, "consequent": { @@ -2842,7 +2863,8 @@ "end": 1598 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false } }, "consequent": { @@ -3025,7 +3047,8 @@ "end": 1751 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, "consequent": { @@ -3189,7 +3212,8 @@ "end": 1886 }, "value": "X", - "raw": "\"X\"" + "raw": "\"X\"", + "loneSurrogates": false } }, "consequent": { @@ -3327,7 +3351,8 @@ "end": 1950 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -3343,7 +3368,8 @@ "end": 1956 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false } } ] @@ -3568,7 +3594,8 @@ "end": 2112 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "consequent": [ { @@ -3611,7 +3638,8 @@ "end": 2193 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false }, "consequent": [ { @@ -3794,7 +3822,8 @@ "end": 2387 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "consequent": [ { @@ -3829,7 +3858,8 @@ "end": 2449 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false }, "consequent": [ { @@ -4012,7 +4042,8 @@ "end": 2670 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "consequent": [] }, @@ -4029,7 +4060,8 @@ "end": 2688 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false }, "consequent": [ { @@ -4185,7 +4217,8 @@ "end": 2841 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "consequent": [ { @@ -4211,7 +4244,8 @@ "end": 2879 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false }, "consequent": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json index eea44be424d9..411882797a9c 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes2.json @@ -1346,7 +1346,8 @@ "end": 632 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -2313,7 +2314,8 @@ "end": 1012 }, "value": "boom", - "raw": "\"boom\"" + "raw": "\"boom\"", + "loneSurrogates": false } } ], @@ -3866,7 +3868,8 @@ "end": 1851 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -3972,7 +3975,8 @@ "end": 1896 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -4078,7 +4082,8 @@ "end": 1941 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -4381,7 +4386,8 @@ "end": 2052 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, "consequent": { @@ -4546,7 +4552,8 @@ "end": 2169 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } } } @@ -4633,7 +4640,8 @@ "end": 2209 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } } @@ -4720,7 +4728,8 @@ "end": 2250 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } } @@ -4871,7 +4880,8 @@ "end": 2319 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } } } @@ -4943,7 +4953,8 @@ "end": 2352 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } }, "consequent": { @@ -5157,7 +5168,8 @@ "end": 2487 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } } } @@ -5209,7 +5221,8 @@ "end": 2508 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } } @@ -5284,7 +5297,8 @@ "end": 2542 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json index e5d03e45a64f..47257edcdb44 100644 --- a/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/discriminatedUnionTypes3.json @@ -226,7 +226,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -236,7 +237,8 @@ }, "tail": true, "cooked": " is wrong!", - "raw": " is wrong!" + "raw": " is wrong!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json b/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json index ca49b28d86b8..cb03e24cf73f 100644 --- a/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/duplicateExportAssignments.json @@ -613,7 +613,8 @@ "end": 397 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json index b7cb206c01a8..719971b3eb58 100644 --- a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json +++ b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.2.json @@ -146,7 +146,8 @@ "end": 73 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -342,7 +343,8 @@ "end": 137 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -423,7 +425,8 @@ "end": 151 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -612,7 +615,8 @@ "end": 213 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -684,7 +688,8 @@ "end": 229 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json index 931c7ffba335..e419037949e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json +++ b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.3.json @@ -101,7 +101,8 @@ "end": 53 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -181,7 +182,8 @@ "end": 68 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -238,7 +240,8 @@ "end": 82 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -318,7 +321,8 @@ "end": 97 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -375,7 +379,8 @@ "end": 114 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -455,7 +460,8 @@ "end": 129 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -512,7 +518,8 @@ "end": 143 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -592,7 +599,8 @@ "end": 158 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -648,7 +656,8 @@ "end": 171 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -736,7 +745,8 @@ "end": 188 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -801,7 +811,8 @@ "end": 204 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -889,7 +900,8 @@ "end": 222 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -947,7 +959,8 @@ "end": 245 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -1033,7 +1046,8 @@ "end": 270 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1097,7 +1111,8 @@ "end": 294 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -1184,7 +1199,8 @@ "end": 319 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json index 8abb7cfbf919..4ff6d4a10a9d 100644 --- a/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json +++ b/crates/swc_ecma_parser/tests/tsc/elementAccessChain.json @@ -146,7 +146,8 @@ "end": 72 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -342,7 +343,8 @@ "end": 136 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -423,7 +425,8 @@ "end": 150 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -612,7 +615,8 @@ "end": 212 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -684,7 +688,8 @@ "end": 228 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -963,7 +968,8 @@ "end": 298 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -1072,7 +1078,8 @@ "end": 316 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -1100,7 +1107,8 @@ "end": 325 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } } } @@ -1398,7 +1406,8 @@ "end": 399 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -1525,7 +1534,8 @@ "end": 419 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -1553,7 +1563,8 @@ "end": 428 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } } } @@ -1647,7 +1658,8 @@ "end": 437 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -1668,7 +1680,8 @@ "end": 446 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -1782,7 +1795,8 @@ "end": 460 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -1803,7 +1817,8 @@ "end": 469 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -1831,7 +1846,8 @@ "end": 478 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } } } @@ -2057,7 +2073,8 @@ "end": 568 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -2124,7 +2141,8 @@ "end": 592 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -2202,7 +2220,8 @@ "end": 606 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -2221,7 +2240,8 @@ "end": 612 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } @@ -2294,7 +2314,8 @@ "end": 623 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -2379,7 +2400,8 @@ "end": 638 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -2398,7 +2420,8 @@ "end": 644 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json index 134841f1a931..b12c55234386 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15.json @@ -67,7 +67,8 @@ "end": 60 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json index 134841f1a931..b12c55234386 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments15_ES6.json @@ -67,7 +67,8 @@ "end": 60 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json index 33a239a9b109..c68dfa5e689b 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16.json @@ -67,7 +67,8 @@ "end": 60 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -213,7 +214,8 @@ "end": 155 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json index 33a239a9b109..c68dfa5e689b 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments16_ES6.json @@ -67,7 +67,8 @@ "end": 60 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -213,7 +214,8 @@ "end": 155 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json index 8d94251fc451..783bba542178 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17.json @@ -103,7 +103,8 @@ "end": 77 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -252,7 +253,8 @@ "end": 174 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json index 8d94251fc451..783bba542178 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitArrowFunctionWhenUsingArguments17_ES6.json @@ -103,7 +103,8 @@ "end": 77 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -252,7 +253,8 @@ "end": 174 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json index e95ddc3f0cf1..9460294448dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationOverloadInES6.json @@ -302,7 +302,8 @@ "end": 159 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json index b611a59793d4..f34a13c759f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithConstructorInES6.json @@ -327,7 +327,8 @@ "end": 159 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -474,7 +475,8 @@ "end": 218 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json index fc0bb10af30d..a5498161963a 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithExtensionInES6.json @@ -631,7 +631,8 @@ "end": 299 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json index 598557072577..35b005ba89da 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithGetterSetterInES6.json @@ -195,7 +195,8 @@ "end": 156 }, "value": "BYE", - "raw": "\"BYE\"" + "raw": "\"BYE\"", + "loneSurrogates": false } } ] @@ -245,7 +246,8 @@ "end": 194 }, "value": "computedname", - "raw": "\"computedname\"" + "raw": "\"computedname\"", + "loneSurrogates": false } }, "function": { @@ -277,7 +279,8 @@ "end": 217 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -313,7 +316,8 @@ "end": 249 }, "value": "computedname1", - "raw": "\"computedname1\"" + "raw": "\"computedname1\"", + "loneSurrogates": false } }, "function": { @@ -345,7 +349,8 @@ "end": 272 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -381,7 +386,8 @@ "end": 304 }, "value": "computedname2", - "raw": "\"computedname2\"" + "raw": "\"computedname2\"", + "loneSurrogates": false } }, "function": { @@ -413,7 +419,8 @@ "end": 327 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -449,7 +456,8 @@ "end": 360 }, "value": "computedname3", - "raw": "\"computedname3\"" + "raw": "\"computedname3\"", + "loneSurrogates": false } }, "function": { @@ -534,7 +542,8 @@ "end": 402 }, "value": "computedname4", - "raw": "\"computedname4\"" + "raw": "\"computedname4\"", + "loneSurrogates": false } }, "function": { @@ -773,7 +782,8 @@ "end": 515 }, "value": "computedname", - "raw": "\"computedname\"" + "raw": "\"computedname\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json index e0136b1e2b69..a1cedfd332fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithLiteralPropertyNameInES6.json @@ -38,7 +38,8 @@ "end": 38 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -82,7 +83,8 @@ "end": 64 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -117,7 +119,8 @@ "end": 87 }, "value": "WORLD", - "raw": "\"WORLD\"" + "raw": "\"WORLD\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -152,7 +155,8 @@ "end": 106 }, "value": "twenty", - "raw": "\"twenty\"" + "raw": "\"twenty\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -178,7 +182,8 @@ "end": 117 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "function": { "params": [], @@ -353,7 +358,8 @@ "end": 188 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -397,7 +403,8 @@ "end": 226 }, "value": "twenty-two", - "raw": "\"twenty-two\"" + "raw": "\"twenty-two\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -432,7 +439,8 @@ "end": 255 }, "value": "binary", - "raw": "\"binary\"" + "raw": "\"binary\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -467,7 +475,8 @@ "end": 284 }, "value": "octal", - "raw": "\"octal\"" + "raw": "\"octal\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json index 1a3f707c6251..69384349b0ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithMethodInES6.json @@ -127,7 +127,8 @@ "end": 78 }, "value": "computedName1", - "raw": "\"computedName1\"" + "raw": "\"computedName1\"", + "loneSurrogates": false } }, "function": { @@ -178,7 +179,8 @@ "end": 106 }, "value": "computedName2", - "raw": "\"computedName2\"" + "raw": "\"computedName2\"", + "loneSurrogates": false } }, "function": { @@ -263,7 +265,8 @@ "end": 143 }, "value": "computedName3", - "raw": "\"computedName3\"" + "raw": "\"computedName3\"", + "loneSurrogates": false } }, "function": { @@ -557,7 +560,8 @@ "end": 290 }, "value": "HELLO", - "raw": "\"HELLO\"" + "raw": "\"HELLO\"", + "loneSurrogates": false } } ] @@ -607,7 +611,8 @@ "end": 325 }, "value": "computedname4", - "raw": "\"computedname4\"" + "raw": "\"computedname4\"", + "loneSurrogates": false } }, "function": { @@ -658,7 +663,8 @@ "end": 360 }, "value": "computedname5", - "raw": "\"computedname5\"" + "raw": "\"computedname5\"", + "loneSurrogates": false } }, "function": { @@ -743,7 +749,8 @@ "end": 404 }, "value": "computedname6", - "raw": "\"computedname6\"" + "raw": "\"computedname6\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json index 523ae025b1ee..d981f28863d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithPropertyAssignmentInES6.json @@ -46,7 +46,8 @@ "end": 55 }, "value": "Hello world", - "raw": "\"Hello world\"" + "raw": "\"Hello world\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -121,7 +122,8 @@ "end": 99 }, "value": "Hello world", - "raw": "\"Hello world\"" + "raw": "\"Hello world\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -550,7 +552,8 @@ "end": 326 }, "value": "HI", - "raw": "\"HI\"" + "raw": "\"HI\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json index 69a5b670c018..39e5ae84187c 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitClassDeclarationWithStaticPropertyAssignmentInES6.json @@ -46,7 +46,8 @@ "end": 54 }, "value": "Foo", - "raw": "\"Foo\"" + "raw": "\"Foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json index 43ef917a8fc9..4b02cd68d972 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpression.json @@ -64,7 +64,8 @@ "end": 43 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -170,7 +171,8 @@ "end": 89 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -276,7 +278,8 @@ "end": 135 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -380,7 +383,8 @@ "end": 179 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -487,7 +491,8 @@ "end": 229 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json index 47e90d634bd1..c5f9be9c88c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionExpressionES6.json @@ -64,7 +64,8 @@ "end": 42 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -170,7 +171,8 @@ "end": 88 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -276,7 +278,8 @@ "end": 134 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -380,7 +383,8 @@ "end": 178 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -487,7 +491,8 @@ "end": 228 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json index 307100c4320e..4f631e023f84 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionProperty.json @@ -179,7 +179,8 @@ "end": 83 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -312,7 +313,8 @@ "end": 133 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -445,7 +447,8 @@ "end": 183 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json index fe0c71525d19..85fefa48b2d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersFunctionPropertyES6.json @@ -179,7 +179,8 @@ "end": 82 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -312,7 +313,8 @@ "end": 132 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -445,7 +447,8 @@ "end": 182 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json index 5c0f3c3fa709..567d18cecb52 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethod.json @@ -171,7 +171,8 @@ "end": 88 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -702,7 +703,8 @@ "end": 296 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -793,7 +795,8 @@ "end": 342 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json index ed3e22383cfe..6de562584fd6 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitDefaultParametersMethodES6.json @@ -171,7 +171,8 @@ "end": 87 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -702,7 +703,8 @@ "end": 295 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -793,7 +795,8 @@ "end": 341 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4.json index 0bce7c3bb8ff..6659a352909e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4.json @@ -176,7 +176,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -186,7 +187,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -275,7 +277,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -285,7 +288,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -383,7 +387,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -393,7 +398,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -491,7 +497,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -501,7 +508,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -599,7 +607,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -609,7 +618,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -698,7 +708,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -708,7 +719,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -808,7 +820,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -818,7 +831,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -828,7 +842,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -978,7 +993,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -988,7 +1004,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -998,7 +1015,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1174,7 +1192,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1184,7 +1203,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1194,7 +1214,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1370,7 +1391,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1380,7 +1402,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1390,7 +1413,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1558,7 +1582,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1568,7 +1593,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1578,7 +1604,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1728,7 +1755,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1738,7 +1766,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1748,7 +1777,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1837,7 +1867,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1847,7 +1878,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1945,7 +1977,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1955,7 +1988,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2053,7 +2087,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2063,7 +2098,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2161,7 +2197,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2171,7 +2208,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2260,7 +2298,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2270,7 +2309,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4ES6.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4ES6.json index 0bce7c3bb8ff..6659a352909e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTempalteString4ES6.json @@ -176,7 +176,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -186,7 +187,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -275,7 +277,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -285,7 +288,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -383,7 +387,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -393,7 +398,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -491,7 +497,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -501,7 +508,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -599,7 +607,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -609,7 +618,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -698,7 +708,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -708,7 +719,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -808,7 +820,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -818,7 +831,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -828,7 +842,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -978,7 +993,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -988,7 +1004,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -998,7 +1015,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1174,7 +1192,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1184,7 +1203,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1194,7 +1214,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1370,7 +1391,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1380,7 +1402,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1390,7 +1413,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1558,7 +1582,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1568,7 +1593,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1578,7 +1604,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1728,7 +1755,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1738,7 +1766,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1748,7 +1777,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1837,7 +1867,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1847,7 +1878,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1945,7 +1977,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1955,7 +1988,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2053,7 +2087,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2063,7 +2098,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2161,7 +2197,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2171,7 +2208,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2260,7 +2298,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2270,7 +2309,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1.json index 3331ea549ff7..24a62be3142d 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1.json @@ -168,7 +168,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -178,7 +179,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -252,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -262,7 +265,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -336,7 +340,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -346,7 +351,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -420,7 +426,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -430,7 +437,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -522,7 +530,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -532,7 +541,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -621,7 +631,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -631,7 +642,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -737,7 +749,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -747,7 +760,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -831,7 +845,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -841,7 +856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -851,7 +867,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -971,7 +988,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -981,7 +999,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -991,7 +1010,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1111,7 +1131,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1121,7 +1142,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1153,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1251,7 +1274,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1285,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1271,7 +1296,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1427,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1437,7 +1464,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1475,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1597,7 +1626,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1607,7 +1637,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1617,7 +1648,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1701,7 +1733,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1711,7 +1744,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1721,7 +1755,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1841,7 +1876,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1851,7 +1887,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1861,7 +1898,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1981,7 +2019,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1991,7 +2030,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2001,7 +2041,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2121,7 +2162,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2131,7 +2173,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2141,7 +2184,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2297,7 +2341,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2307,7 +2352,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2317,7 +2363,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2467,7 +2514,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2477,7 +2525,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2487,7 +2536,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1ES6.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1ES6.json index 3331ea549ff7..24a62be3142d 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString1ES6.json @@ -168,7 +168,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -178,7 +179,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -252,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -262,7 +265,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -336,7 +340,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -346,7 +351,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -420,7 +426,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -430,7 +437,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -522,7 +530,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -532,7 +541,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -621,7 +631,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -631,7 +642,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -737,7 +749,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -747,7 +760,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -831,7 +845,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -841,7 +856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -851,7 +867,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -971,7 +988,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -981,7 +999,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -991,7 +1010,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1111,7 +1131,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1121,7 +1142,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1153,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1251,7 +1274,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1285,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1271,7 +1296,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1427,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1437,7 +1464,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1475,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1597,7 +1626,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1607,7 +1637,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1617,7 +1648,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1701,7 +1733,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1711,7 +1744,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1721,7 +1755,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1841,7 +1876,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1851,7 +1887,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1861,7 +1898,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1981,7 +2019,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1991,7 +2030,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2001,7 +2041,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2121,7 +2162,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2131,7 +2173,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2141,7 +2184,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2297,7 +2341,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2307,7 +2352,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2317,7 +2363,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2467,7 +2514,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2477,7 +2525,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2487,7 +2536,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2.json index d57979ddf6df..d6fae8b43d2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2.json @@ -168,7 +168,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -178,7 +179,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -252,7 +254,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -262,7 +265,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -336,7 +340,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -346,7 +351,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -420,7 +426,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -430,7 +437,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -522,7 +530,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -532,7 +541,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -621,7 +631,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -631,7 +642,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -737,7 +749,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -747,7 +760,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -831,7 +845,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -841,7 +856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -851,7 +867,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -971,7 +988,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -981,7 +999,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -991,7 +1010,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1111,7 +1131,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1121,7 +1142,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1153,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1251,7 +1274,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1285,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1271,7 +1296,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1427,7 +1453,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1437,7 +1464,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1475,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1597,7 +1626,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1607,7 +1637,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1617,7 +1648,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1701,7 +1733,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1711,7 +1744,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1721,7 +1755,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1841,7 +1876,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1851,7 +1887,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1861,7 +1898,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1981,7 +2019,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1991,7 +2030,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2001,7 +2041,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2121,7 +2162,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2131,7 +2173,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2141,7 +2184,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2297,7 +2341,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2307,7 +2352,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2317,7 +2363,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2467,7 +2514,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2477,7 +2525,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2487,7 +2536,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2ES6.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2ES6.json index d57979ddf6df..d6fae8b43d2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString2ES6.json @@ -168,7 +168,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -178,7 +179,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -252,7 +254,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -262,7 +265,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -336,7 +340,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -346,7 +351,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -420,7 +426,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -430,7 +437,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -522,7 +530,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -532,7 +541,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -621,7 +631,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -631,7 +642,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -737,7 +749,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -747,7 +760,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -831,7 +845,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -841,7 +856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -851,7 +867,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -971,7 +988,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -981,7 +999,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -991,7 +1010,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1111,7 +1131,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1121,7 +1142,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1153,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1251,7 +1274,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1285,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1271,7 +1296,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1427,7 +1453,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1437,7 +1464,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1475,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1597,7 +1626,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1607,7 +1637,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1617,7 +1648,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1701,7 +1733,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1711,7 +1744,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1721,7 +1755,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1841,7 +1876,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1851,7 +1887,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1861,7 +1898,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1981,7 +2019,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1991,7 +2030,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2001,7 +2041,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2121,7 +2162,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2131,7 +2173,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2141,7 +2184,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2297,7 +2341,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2307,7 +2352,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2317,7 +2363,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2467,7 +2514,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2477,7 +2525,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2487,7 +2536,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3.json index 3e8fcaec6ce0..a51d1216c5fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3.json @@ -168,7 +168,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -178,7 +179,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -252,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -262,7 +265,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -336,7 +340,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -346,7 +351,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -420,7 +426,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -430,7 +437,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -522,7 +530,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -532,7 +541,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -621,7 +631,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -631,7 +642,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -737,7 +749,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -747,7 +760,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -831,7 +845,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -841,7 +856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -851,7 +867,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -971,7 +988,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -981,7 +999,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -991,7 +1010,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1111,7 +1131,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1121,7 +1142,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1153,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1251,7 +1274,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1285,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1271,7 +1296,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1427,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1437,7 +1464,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1475,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1597,7 +1626,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1607,7 +1637,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1617,7 +1648,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1701,7 +1733,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1711,7 +1744,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1721,7 +1755,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -1841,7 +1876,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1851,7 +1887,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1861,7 +1898,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -1981,7 +2019,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1991,7 +2030,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2001,7 +2041,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -2121,7 +2162,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2131,7 +2173,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2141,7 +2184,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -2297,7 +2341,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2307,7 +2352,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2317,7 +2363,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -2467,7 +2514,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2477,7 +2525,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2487,7 +2536,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3ES6.json b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3ES6.json index 3e8fcaec6ce0..a51d1216c5fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/emitExponentiationOperatorInTemplateString3ES6.json @@ -168,7 +168,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -178,7 +179,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -252,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -262,7 +265,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -336,7 +340,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -346,7 +351,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -420,7 +426,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -430,7 +437,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -522,7 +530,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -532,7 +541,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -621,7 +631,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -631,7 +642,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -737,7 +749,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -747,7 +760,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -831,7 +845,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -841,7 +856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -851,7 +867,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -971,7 +988,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -981,7 +999,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -991,7 +1010,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1111,7 +1131,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1121,7 +1142,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1153,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1251,7 +1274,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1285,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1271,7 +1296,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1427,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1437,7 +1464,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1475,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1597,7 +1626,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1607,7 +1637,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1617,7 +1648,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -1701,7 +1733,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1711,7 +1744,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1721,7 +1755,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -1841,7 +1876,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1851,7 +1887,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1861,7 +1898,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -1981,7 +2019,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1991,7 +2030,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2001,7 +2041,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -2121,7 +2162,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2131,7 +2173,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2141,7 +2184,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -2297,7 +2341,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2307,7 +2352,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2317,7 +2363,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } @@ -2467,7 +2514,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2477,7 +2525,8 @@ }, "tail": false, "cooked": " hello world ", - "raw": " hello world " + "raw": " hello world ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2487,7 +2536,8 @@ }, "tail": true, "cooked": " !!", - "raw": " !!" + "raw": " !!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json index ed100f10ba4c..f34f136521f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json +++ b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCall.json @@ -160,7 +160,8 @@ "end": 174 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json index c5dc676d55fb..ff5ff9e2cd01 100644 --- a/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json +++ b/crates/swc_ecma_parser/tests/tsc/emitStatementsBeforeSuperCallWithDefineFields.json @@ -160,7 +160,8 @@ "end": 173 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json b/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json index e8d14a4c36d6..a0576d3c3297 100644 --- a/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json +++ b/crates/swc_ecma_parser/tests/tsc/emptyObjectBindingPatternParameter04.json @@ -86,7 +86,8 @@ "end": 53 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/enumBasics.json b/crates/swc_ecma_parser/tests/tsc/enumBasics.json index d2f53254053b..0fa50eda1b7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumBasics.json +++ b/crates/swc_ecma_parser/tests/tsc/enumBasics.json @@ -798,7 +798,8 @@ "end": 628 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -883,7 +884,8 @@ "end": 658 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -981,7 +983,8 @@ "end": 754 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -1209,7 +1212,8 @@ "end": 1039 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Computed", @@ -1224,7 +1228,8 @@ "end": 1045 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } @@ -1279,7 +1284,8 @@ "end": 1129 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Computed", @@ -1294,7 +1300,8 @@ "end": 1135 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumClassification.json b/crates/swc_ecma_parser/tests/tsc/enumClassification.json index 9906841b00c6..93bef89d29c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumClassification.json +++ b/crates/swc_ecma_parser/tests/tsc/enumClassification.json @@ -133,7 +133,8 @@ "end": 452 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -338,7 +339,8 @@ "end": 553 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } }, { @@ -364,7 +366,8 @@ "end": 568 }, "value": "two", - "raw": "\"two\"" + "raw": "\"two\"", + "loneSurrogates": false } }, { @@ -390,7 +393,8 @@ "end": 585 }, "value": "three", - "raw": "\"three\"" + "raw": "\"three\"", + "loneSurrogates": false } } ] @@ -473,7 +477,8 @@ "end": 626 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -543,7 +548,8 @@ "end": 660 }, "value": "bye", - "raw": "\"bye\"" + "raw": "\"bye\"", + "loneSurrogates": false } } ] @@ -616,7 +622,8 @@ "end": 702 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1011,7 +1018,8 @@ "end": 1009 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -1097,7 +1105,8 @@ "end": 1047 }, "value": "123", - "raw": "\"123\"" + "raw": "\"123\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithString.json b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithString.json index 2dd82596c8ff..5dfbaa24761b 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithString.json +++ b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithString.json @@ -47,7 +47,8 @@ "end": 22 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -80,7 +81,8 @@ "end": 35 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -89,7 +91,8 @@ "end": 41 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } }, @@ -130,7 +133,8 @@ "end": 54 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -139,7 +143,8 @@ "end": 60 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } }, "right": { @@ -149,7 +154,8 @@ "end": 66 }, "value": "3", - "raw": "\"3\"" + "raw": "\"3\"", + "loneSurrogates": false } } }, @@ -183,7 +189,8 @@ "end": 79 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -192,7 +199,8 @@ "end": 85 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -226,7 +234,8 @@ "end": 98 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -283,7 +292,8 @@ "end": 127 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -316,7 +326,8 @@ "end": 140 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -325,7 +336,8 @@ "end": 146 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } } @@ -373,7 +385,8 @@ "end": 171 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -406,7 +419,8 @@ "end": 184 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -415,7 +429,8 @@ "end": 190 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } }, @@ -532,7 +547,8 @@ "end": 241 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ] @@ -586,7 +602,8 @@ "end": 266 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -595,7 +612,8 @@ "end": 272 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } } @@ -643,7 +661,8 @@ "end": 305 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -676,7 +695,8 @@ "end": 318 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -685,7 +705,8 @@ "end": 324 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithStringEmitDeclaration.json b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithStringEmitDeclaration.json index 099ba2a2e37c..1e465ec2e447 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithStringEmitDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithStringEmitDeclaration.json @@ -47,7 +47,8 @@ "end": 44 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -80,7 +81,8 @@ "end": 57 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -89,7 +91,8 @@ "end": 63 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } }, @@ -130,7 +133,8 @@ "end": 76 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -139,7 +143,8 @@ "end": 82 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } }, "right": { @@ -149,7 +154,8 @@ "end": 88 }, "value": "3", - "raw": "\"3\"" + "raw": "\"3\"", + "loneSurrogates": false } } } @@ -197,7 +203,8 @@ "end": 113 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -230,7 +237,8 @@ "end": 126 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -239,7 +247,8 @@ "end": 132 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } } @@ -287,7 +296,8 @@ "end": 157 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -320,7 +330,8 @@ "end": 170 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -329,7 +340,8 @@ "end": 176 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } } @@ -377,7 +389,8 @@ "end": 201 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ] @@ -431,7 +444,8 @@ "end": 226 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -440,7 +454,8 @@ "end": 232 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } } @@ -488,7 +503,8 @@ "end": 265 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -521,7 +537,8 @@ "end": 278 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -530,7 +547,8 @@ "end": 284 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json index 9a4d4d6b0123..f0ebb8098a79 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiterals.json @@ -56,7 +56,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -114,7 +115,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -142,7 +144,8 @@ "end": 60 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } }, { @@ -231,7 +234,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -251,7 +255,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -310,7 +315,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -354,7 +360,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -374,7 +381,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -419,7 +427,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -430,7 +439,8 @@ "end": 165 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } }, @@ -464,7 +474,8 @@ "end": 178 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -482,7 +493,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -525,7 +537,8 @@ "end": 197 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -543,7 +556,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -564,7 +578,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -623,7 +638,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -667,7 +683,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -687,7 +704,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] } @@ -739,7 +757,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -759,7 +778,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] } @@ -780,7 +800,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] } @@ -851,7 +872,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -871,7 +893,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -916,7 +939,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -961,7 +985,8 @@ "end": 342 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } ], "quasis": [ @@ -973,7 +998,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -983,7 +1009,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] } @@ -1026,7 +1053,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -1125,7 +1153,8 @@ }, "tail": true, "cooked": "12", - "raw": "12" + "raw": "12", + "loneSurrogates": false } ] }, @@ -1192,7 +1221,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -1236,7 +1266,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -1256,7 +1287,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -1292,7 +1324,8 @@ "end": 474 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -1310,7 +1343,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json index 7ed475ab1255..653975717419 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/enumConstantMemberWithTemplateLiteralsEmitDeclaration.json @@ -56,7 +56,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -114,7 +115,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -142,7 +144,8 @@ "end": 82 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } }, { @@ -231,7 +234,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -251,7 +255,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -310,7 +315,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -354,7 +360,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -374,7 +381,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -419,7 +427,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -430,7 +439,8 @@ "end": 187 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } }, @@ -464,7 +474,8 @@ "end": 200 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -482,7 +493,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -525,7 +537,8 @@ "end": 219 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -543,7 +556,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -564,7 +578,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -623,7 +638,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -667,7 +683,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -687,7 +704,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] } @@ -739,7 +757,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -759,7 +778,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] } @@ -780,7 +800,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] } @@ -897,7 +918,8 @@ }, "tail": true, "cooked": "12", - "raw": "12" + "raw": "12", + "loneSurrogates": false } ] }, @@ -964,7 +986,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -1008,7 +1031,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] }, @@ -1028,7 +1052,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -1064,7 +1089,8 @@ "end": 420 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -1082,7 +1108,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json index 4232093e1b9a..5af25ea030d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes1.json @@ -3362,7 +3362,8 @@ "end": 1224 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -3524,7 +3525,8 @@ "end": 1310 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -3574,7 +3576,8 @@ "end": 1350 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -3722,7 +3725,8 @@ "end": 1441 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -3772,7 +3776,8 @@ "end": 1481 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json index e59486879bdc..5e5580868ce3 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/enumLiteralTypes2.json @@ -3362,7 +3362,8 @@ "end": 1266 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -3524,7 +3525,8 @@ "end": 1352 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -3574,7 +3576,8 @@ "end": 1392 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -3722,7 +3725,8 @@ "end": 1483 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -3772,7 +3776,8 @@ "end": 1523 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/enumMerging.json b/crates/swc_ecma_parser/tests/tsc/enumMerging.json index 42af3b9e381c..87be17b63cbb 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumMerging.json +++ b/crates/swc_ecma_parser/tests/tsc/enumMerging.json @@ -692,7 +692,8 @@ "end": 618 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -733,7 +734,8 @@ "end": 636 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -774,7 +776,8 @@ "end": 654 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -843,7 +846,8 @@ "end": 711 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -884,7 +888,8 @@ "end": 729 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -925,7 +930,8 @@ "end": 747 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json b/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json index 771d69461451..53c7ae720284 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/enumMergingErrors.json @@ -268,7 +268,8 @@ "end": 242 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -337,7 +338,8 @@ "end": 282 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", @@ -581,7 +583,8 @@ "end": 414 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "property": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/enumTag.json b/crates/swc_ecma_parser/tests/tsc/enumTag.json index fa979dfe8a49..b3f0e3ad2b29 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumTag.json +++ b/crates/swc_ecma_parser/tests/tsc/enumTag.json @@ -56,7 +56,8 @@ "end": 130 }, "value": "start", - "raw": "\"start\"" + "raw": "\"start\"", + "loneSurrogates": false } }, { @@ -76,7 +77,8 @@ "end": 152 }, "value": "middle", - "raw": "\"middle\"" + "raw": "\"middle\"", + "loneSurrogates": false } }, { @@ -96,7 +98,8 @@ "end": 168 }, "value": "end", - "raw": "\"end\"" + "raw": "\"end\"", + "loneSurrogates": false } }, { @@ -196,7 +199,8 @@ "end": 287 }, "value": "end", - "raw": "\"end\"" + "raw": "\"end\"", + "loneSurrogates": false } }, { @@ -855,7 +859,8 @@ "end": 860 }, "value": "something else", - "raw": "'something else'" + "raw": "'something else'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/enumTagImported.json b/crates/swc_ecma_parser/tests/tsc/enumTagImported.json index 40591f457b90..45491870cbf2 100644 --- a/crates/swc_ecma_parser/tests/tsc/enumTagImported.json +++ b/crates/swc_ecma_parser/tests/tsc/enumTagImported.json @@ -39,7 +39,8 @@ "end": 159 }, "value": "add", - "raw": "'add'" + "raw": "'add'", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 222 }, "value": "remove", - "raw": "'remove'" + "raw": "'remove'", + "loneSurrogates": false }, "definite": false } @@ -119,7 +121,8 @@ "end": 280 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -238,7 +241,8 @@ "end": 418 }, "value": "add", - "raw": "'add'" + "raw": "'add'", + "loneSurrogates": false } }, { @@ -258,7 +262,8 @@ "end": 440 }, "value": "remove", - "raw": "'remove'" + "raw": "'remove'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/enums.json b/crates/swc_ecma_parser/tests/tsc/enums.json index a7b1095d4363..eaed52388b8d 100644 --- a/crates/swc_ecma_parser/tests/tsc/enums.json +++ b/crates/swc_ecma_parser/tests/tsc/enums.json @@ -104,7 +104,8 @@ "end": 118 }, "value": "Type", - "raw": "\"Type\"" + "raw": "\"Type\"", + "loneSurrogates": false } }, { @@ -130,7 +131,8 @@ "end": 137 }, "value": "Value", - "raw": "\"Value\"" + "raw": "\"Value\"", + "loneSurrogates": false } } ] @@ -250,7 +252,8 @@ "end": 264 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -564,7 +567,8 @@ "end": 484 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -604,7 +608,8 @@ "end": 521 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json b/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json index ee01c60471fe..3fcc2b17a799 100644 --- a/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/errorOnFunctionReturnType.json @@ -81,7 +81,8 @@ "end": 241 }, "value": "Nope", - "raw": "\"Nope\"" + "raw": "\"Nope\"", + "loneSurrogates": false } } ], @@ -136,7 +137,8 @@ "end": 335 }, "value": "asd", - "raw": "\"asd\"" + "raw": "\"asd\"", + "loneSurrogates": false } } ] @@ -239,7 +241,8 @@ "end": 434 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } ], @@ -350,7 +353,8 @@ "end": 533 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } ], @@ -443,7 +447,8 @@ "end": 753 }, "value": "asd", - "raw": "\"asd\"" + "raw": "\"asd\"", + "loneSurrogates": false } } ] @@ -546,7 +551,8 @@ "end": 848 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } ], @@ -657,7 +663,8 @@ "end": 943 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json index 96867e58c723..071170df51e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/errorSuperPropertyAccess.json @@ -168,7 +168,8 @@ "end": 345 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -332,7 +333,8 @@ "end": 438 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -456,7 +458,8 @@ "end": 504 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -548,7 +551,8 @@ "end": 758 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -644,7 +648,8 @@ "end": 833 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -664,7 +669,8 @@ "end": 853 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -776,7 +782,8 @@ "end": 928 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2657,7 +2664,8 @@ "end": 3220 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json index c66c3cd6f6dc..c8e5fb45b1d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2016IntlAPIs.json @@ -88,7 +88,8 @@ "end": 189 }, "value": "EN-US", - "raw": "'EN-US'" + "raw": "'EN-US'", + "loneSurrogates": false } } ], @@ -191,7 +192,8 @@ "end": 275 }, "value": "EN-US", - "raw": "'EN-US'" + "raw": "'EN-US'", + "loneSurrogates": false } }, { @@ -203,7 +205,8 @@ "end": 281 }, "value": "Fr", - "raw": "'Fr'" + "raw": "'Fr'", + "loneSurrogates": false } } ] @@ -279,7 +282,8 @@ "end": 369 }, "value": "EN_US", - "raw": "'EN_US'" + "raw": "'EN_US'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json index 37fb60739468..aa1537c73a08 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2018IntlAPIs.json @@ -48,7 +48,8 @@ "end": 178 }, "value": "ban", - "raw": "'ban'" + "raw": "'ban'", + "loneSurrogates": false } }, { @@ -60,7 +61,8 @@ "end": 196 }, "value": "id-u-co-pinyin", - "raw": "'id-u-co-pinyin'" + "raw": "'id-u-co-pinyin'", + "loneSurrogates": false } }, { @@ -72,7 +74,8 @@ "end": 205 }, "value": "de-ID", - "raw": "'de-ID'" + "raw": "'de-ID'", + "loneSurrogates": false } } ] @@ -138,7 +141,8 @@ "end": 249 }, "value": "lookup", - "raw": "'lookup'" + "raw": "'lookup'", + "loneSurrogates": false } } ] @@ -298,7 +302,8 @@ "end": 337 }, "value": ", ", - "raw": "', '" + "raw": "', '", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json index d5898bbcb048..4350fa8de73e 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2020IntlAPIs.json @@ -99,7 +99,8 @@ "end": 206 }, "value": "2012-05-24", - "raw": "\"2012-05-24\"" + "raw": "\"2012-05-24\"", + "loneSurrogates": false } } ], @@ -405,7 +406,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -415,7 +417,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -425,7 +428,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -474,7 +478,8 @@ "end": 376 }, "value": "en-US", - "raw": "\"en-US\"" + "raw": "\"en-US\"", + "loneSurrogates": false } } ], @@ -514,7 +519,8 @@ "end": 431 }, "value": "de-DE", - "raw": "\"de-DE\"" + "raw": "\"de-DE\"", + "loneSurrogates": false } } ], @@ -590,7 +596,8 @@ "end": 628 }, "value": "en", - "raw": "'en'" + "raw": "'en'", + "loneSurrogates": false } }, { @@ -619,7 +626,8 @@ "end": 647 }, "value": "narrow", - "raw": "'narrow'" + "raw": "'narrow'", + "loneSurrogates": false } } ] @@ -727,7 +735,8 @@ "end": 689 }, "value": "quarter", - "raw": "'quarter'" + "raw": "'quarter'", + "loneSurrogates": false } } ], @@ -841,7 +850,8 @@ "end": 759 }, "value": "day", - "raw": "'day'" + "raw": "'day'", + "loneSurrogates": false } } ], @@ -921,7 +931,8 @@ "end": 840 }, "value": "es", - "raw": "'es'" + "raw": "'es'", + "loneSurrogates": false } }, { @@ -950,7 +961,8 @@ "end": 859 }, "value": "auto", - "raw": "'auto'" + "raw": "'auto'", + "loneSurrogates": false } } ] @@ -1058,7 +1070,8 @@ "end": 897 }, "value": "day", - "raw": "'day'" + "raw": "'day'", + "loneSurrogates": false } } ], @@ -1147,7 +1160,8 @@ "end": 1096 }, "value": "en", - "raw": "'en'" + "raw": "'en'", + "loneSurrogates": false } } ] @@ -1179,7 +1193,8 @@ "end": 1115 }, "value": "region", - "raw": "'region'" + "raw": "'region'", + "loneSurrogates": false } } ] @@ -1270,7 +1285,8 @@ "end": 1192 }, "value": "zh-Hant", - "raw": "'zh-Hant'" + "raw": "'zh-Hant'", + "loneSurrogates": false } } ] @@ -1302,7 +1318,8 @@ "end": 1211 }, "value": "region", - "raw": "'region'" + "raw": "'region'", + "loneSurrogates": false } } ] @@ -1398,7 +1415,8 @@ "end": 1257 }, "value": "US", - "raw": "'US'" + "raw": "'US'", + "loneSurrogates": false } } ], @@ -1492,7 +1510,8 @@ "end": 1349 }, "value": "US", - "raw": "'US'" + "raw": "'US'", + "loneSurrogates": false } } ], @@ -1546,7 +1565,8 @@ "end": 1406 }, "value": "ban", - "raw": "'ban'" + "raw": "'ban'", + "loneSurrogates": false } }, { @@ -1558,7 +1578,8 @@ "end": 1424 }, "value": "id-u-co-pinyin", - "raw": "'id-u-co-pinyin'" + "raw": "'id-u-co-pinyin'", + "loneSurrogates": false } }, { @@ -1570,7 +1591,8 @@ "end": 1433 }, "value": "de-ID", - "raw": "'de-ID'" + "raw": "'de-ID'", + "loneSurrogates": false } } ] @@ -1636,7 +1658,8 @@ "end": 1478 }, "value": "lookup", - "raw": "'lookup'" + "raw": "'lookup'", + "loneSurrogates": false } } ] @@ -1796,7 +1819,8 @@ "end": 1569 }, "value": ", ", - "raw": "', '" + "raw": "', '", + "loneSurrogates": false } } ], @@ -1932,7 +1956,8 @@ "end": 1648 }, "value": "en-US", - "raw": "'en-US'" + "raw": "'en-US'", + "loneSurrogates": false } } ], @@ -2033,7 +2058,8 @@ "end": 1735 }, "value": "en", - "raw": "'en'" + "raw": "'en'", + "loneSurrogates": false } } ], @@ -2088,7 +2114,8 @@ "end": 1795 }, "value": "en", - "raw": "'en'" + "raw": "'en'", + "loneSurrogates": false } }, { @@ -2238,7 +2265,8 @@ "end": 1896 }, "value": "language", - "raw": "'language'" + "raw": "'language'", + "loneSurrogates": false } } ] @@ -2267,7 +2295,8 @@ "end": 1910 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -2321,7 +2350,8 @@ "end": 1963 }, "value": "es-ES", - "raw": "\"es-ES\"" + "raw": "\"es-ES\"", + "loneSurrogates": false } }, { @@ -2368,7 +2398,8 @@ "end": 1988 }, "value": "en-US", - "raw": "\"en-US\"" + "raw": "\"en-US\"", + "loneSurrogates": false } } ], @@ -2519,7 +2550,8 @@ "end": 2056 }, "value": "language", - "raw": "'language'" + "raw": "'language'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json b/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json index e959538bec93..c7724cce1184 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/es2021LocalesObjectArgument.json @@ -74,7 +74,8 @@ "end": 57 }, "value": "en-US", - "raw": "\"en-US\"" + "raw": "\"en-US\"", + "loneSurrogates": false } } ], @@ -153,7 +154,8 @@ "end": 96 }, "value": "de-DE", - "raw": "\"de-DE\"" + "raw": "\"de-DE\"", + "loneSurrogates": false } } ], @@ -232,7 +234,8 @@ "end": 135 }, "value": "ja-JP", - "raw": "\"ja-JP\"" + "raw": "\"ja-JP\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json b/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json index 99b8ee7f90a9..1336296833d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json +++ b/crates/swc_ecma_parser/tests/tsc/es2022IntlAPIs.json @@ -54,7 +54,8 @@ "end": 189 }, "value": "short", - "raw": "'short'" + "raw": "'short'", + "loneSurrogates": false } }, { @@ -66,7 +67,8 @@ "end": 197 }, "value": "long", - "raw": "'long'" + "raw": "'long'", + "loneSurrogates": false } }, { @@ -78,7 +80,8 @@ "end": 212 }, "value": "shortOffset", - "raw": "'shortOffset'" + "raw": "'shortOffset'", + "loneSurrogates": false } }, { @@ -90,7 +93,8 @@ "end": 226 }, "value": "longOffset", - "raw": "'longOffset'" + "raw": "'longOffset'", + "loneSurrogates": false } }, { @@ -102,7 +106,8 @@ "end": 242 }, "value": "shortGeneric", - "raw": "'shortGeneric'" + "raw": "'shortGeneric'", + "loneSurrogates": false } }, { @@ -114,7 +119,8 @@ "end": 257 }, "value": "longGeneric", - "raw": "'longGeneric'" + "raw": "'longGeneric'", + "loneSurrogates": false } } ] @@ -250,7 +256,8 @@ "end": 358 }, "value": "en-US", - "raw": "'en-US'" + "raw": "'en-US'", + "loneSurrogates": false } }, { @@ -279,7 +286,8 @@ "end": 397 }, "value": "America/Los_Angeles", - "raw": "'America/Los_Angeles'" + "raw": "'America/Los_Angeles'", + "loneSurrogates": false } }, { @@ -365,7 +373,8 @@ "end": 471 }, "value": "calendar", - "raw": "'calendar'" + "raw": "'calendar'", + "loneSurrogates": false } }, { @@ -377,7 +386,8 @@ "end": 484 }, "value": "collation", - "raw": "'collation'" + "raw": "'collation'", + "loneSurrogates": false } }, { @@ -389,7 +399,8 @@ "end": 496 }, "value": "currency", - "raw": "'currency'" + "raw": "'currency'", + "loneSurrogates": false } }, { @@ -401,7 +412,8 @@ "end": 515 }, "value": "numberingSystem", - "raw": "'numberingSystem'" + "raw": "'numberingSystem'", + "loneSurrogates": false } }, { @@ -413,7 +425,8 @@ "end": 527 }, "value": "timeZone", - "raw": "'timeZone'" + "raw": "'timeZone'", + "loneSurrogates": false } }, { @@ -425,7 +438,8 @@ "end": 535 }, "value": "unit", - "raw": "'unit'" + "raw": "'unit'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json b/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json index 20f52e30c321..8726d82d686f 100644 --- a/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/es2022LocalesObjectArgument.json @@ -74,7 +74,8 @@ "end": 57 }, "value": "en-US", - "raw": "\"en-US\"" + "raw": "\"en-US\"", + "loneSurrogates": false } } ], @@ -153,7 +154,8 @@ "end": 96 }, "value": "de-DE", - "raw": "\"de-DE\"" + "raw": "\"de-DE\"", + "loneSurrogates": false } } ], @@ -232,7 +234,8 @@ "end": 135 }, "value": "ja-JP", - "raw": "\"ja-JP\"" + "raw": "\"ja-JP\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target10.json b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target10.json index ff3730b7c264..13b4adc8fd8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target10.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target10.json @@ -36,7 +36,8 @@ "end": 61 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target9.json b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target9.json index b536d97b5164..285a63afd14f 100644 --- a/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target9.json +++ b/crates/swc_ecma_parser/tests/tsc/es6modulekindWithES5Target9.json @@ -37,7 +37,8 @@ "end": 56 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -77,7 +78,8 @@ "end": 80 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -115,7 +117,8 @@ "end": 107 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -227,7 +230,8 @@ "end": 168 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -266,7 +270,8 @@ "end": 192 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json index 676306923c01..62f12b5aa59e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-nonStatic.json @@ -85,7 +85,8 @@ "end": 142 }, "value": "method3", - "raw": "\"method3\"" + "raw": "\"method3\"", + "loneSurrogates": false }, "definite": false } @@ -335,7 +336,8 @@ "end": 258 }, "value": "method2", - "raw": "\"method2\"" + "raw": "\"method2\"", + "loneSurrogates": false } }, "function": { @@ -444,7 +446,8 @@ "end": 303 }, "value": "method2", - "raw": "\"method2\"" + "raw": "\"method2\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json index 72403fde61e6..32109ac87b2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-accessors-static.json @@ -85,7 +85,8 @@ "end": 142 }, "value": "method3", - "raw": "\"method3\"" + "raw": "\"method3\"", + "loneSurrogates": false }, "definite": false } @@ -335,7 +336,8 @@ "end": 279 }, "value": "method2", - "raw": "\"method2\"" + "raw": "\"method2\"", + "loneSurrogates": false } }, "function": { @@ -444,7 +446,8 @@ "end": 331 }, "value": "method2", - "raw": "\"method2\"" + "raw": "\"method2\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json index b8f9bcc3eb81..2a9980db9116 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.1.json @@ -214,7 +214,8 @@ "end": 184 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false }, "definite": false } @@ -350,7 +351,8 @@ "end": 274 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -458,7 +460,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -503,7 +506,8 @@ "end": 351 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -524,7 +528,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -591,7 +596,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json index f9a136b014bf..1ef723640c37 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.3.json @@ -152,7 +152,8 @@ "end": 155 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -679,7 +680,8 @@ "end": 415 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -723,7 +725,8 @@ "end": 435 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -777,7 +780,8 @@ "end": 459 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -832,7 +836,8 @@ "end": 484 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -878,7 +883,8 @@ "end": 506 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -924,7 +930,8 @@ "end": 530 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -970,7 +977,8 @@ "end": 552 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1038,7 +1046,8 @@ "end": 578 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1125,7 +1134,8 @@ "end": 613 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json index 7c4e806fbb02..7abca78c880f 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.4.json @@ -214,7 +214,8 @@ "end": 186 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false }, "definite": false } @@ -362,7 +363,8 @@ "end": 277 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -506,7 +508,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -569,7 +572,8 @@ "end": 374 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -590,7 +594,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -675,7 +680,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json index a485f55e379d..2a8fe380840d 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.5.json @@ -152,7 +152,8 @@ "end": 155 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -889,7 +890,8 @@ "end": 504 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -951,7 +953,8 @@ "end": 531 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1023,7 +1026,8 @@ "end": 562 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1096,7 +1100,8 @@ "end": 594 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1160,7 +1165,8 @@ "end": 623 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1224,7 +1230,8 @@ "end": 654 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1288,7 +1295,8 @@ "end": 683 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1374,7 +1382,8 @@ "end": 716 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1479,7 +1488,8 @@ "end": 758 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json index c2e10fc7d7be..21fcb7e42a5f 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-classSuper.7.json @@ -88,7 +88,8 @@ "end": 138 }, "value": "inject", - "raw": "'inject'" + "raw": "'inject'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json index 92caf5365c3f..ce2565cc06b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStatic.json @@ -85,7 +85,8 @@ "end": 171 }, "value": "field3", - "raw": "\"field3\"" + "raw": "\"field3\"", + "loneSurrogates": false }, "definite": false } @@ -205,7 +206,8 @@ "end": 229 }, "value": "field2", - "raw": "\"field2\"" + "raw": "\"field2\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json index 22dc63a6ac8c..ba5c45f30407 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-nonStaticAccessor.json @@ -85,7 +85,8 @@ "end": 135 }, "value": "field3", - "raw": "\"field3\"" + "raw": "\"field3\"", + "loneSurrogates": false }, "definite": false } @@ -202,7 +203,8 @@ "end": 211 }, "value": "field2", - "raw": "\"field2\"" + "raw": "\"field2\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json index 794d9b7a799e..ce231c2d2ad6 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-static.json @@ -85,7 +85,8 @@ "end": 171 }, "value": "field3", - "raw": "\"field3\"" + "raw": "\"field3\"", + "loneSurrogates": false }, "definite": false } @@ -205,7 +206,8 @@ "end": 243 }, "value": "field2", - "raw": "\"field2\"" + "raw": "\"field2\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json index 1e3089b75099..52b4a5ad4acb 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-fields-staticAccessor.json @@ -85,7 +85,8 @@ "end": 135 }, "value": "field3", - "raw": "\"field3\"" + "raw": "\"field3\"", + "loneSurrogates": false }, "definite": false } @@ -202,7 +203,8 @@ "end": 225 }, "value": "field2", - "raw": "\"field2\"" + "raw": "\"field2\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json index f6bd934aa040..373b86f27df7 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-nonStatic.json @@ -85,7 +85,8 @@ "end": 142 }, "value": "method3", - "raw": "\"method3\"" + "raw": "\"method3\"", + "loneSurrogates": false }, "definite": false } @@ -214,7 +215,8 @@ "end": 202 }, "value": "method2", - "raw": "\"method2\"" + "raw": "\"method2\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json index 6fee4f57c338..f1c09eb07c9f 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classDeclaration-methods-static.json @@ -85,7 +85,8 @@ "end": 142 }, "value": "method3", - "raw": "\"method3\"" + "raw": "\"method3\"", + "loneSurrogates": false }, "definite": false } @@ -214,7 +215,8 @@ "end": 216 }, "value": "method2", - "raw": "\"method2\"" + "raw": "\"method2\"", + "loneSurrogates": false } }, "function": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json index b4d76c64bd3e..62e47af87a74 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.1.json @@ -214,7 +214,8 @@ "end": 184 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false }, "definite": false } @@ -361,7 +362,8 @@ "end": 275 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -469,7 +471,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -514,7 +517,8 @@ "end": 352 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -535,7 +539,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -602,7 +607,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json index 635e6f9aa13b..08cfb1f41103 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.3.json @@ -152,7 +152,8 @@ "end": 155 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -690,7 +691,8 @@ "end": 416 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -734,7 +736,8 @@ "end": 436 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -788,7 +791,8 @@ "end": 460 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -843,7 +847,8 @@ "end": 485 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -889,7 +894,8 @@ "end": 507 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -935,7 +941,8 @@ "end": 531 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -981,7 +988,8 @@ "end": 553 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1049,7 +1057,8 @@ "end": 579 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1136,7 +1145,8 @@ "end": 614 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json index 71e5d4ec9fb0..4eb84040104a 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.4.json @@ -214,7 +214,8 @@ "end": 186 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false }, "definite": false } @@ -373,7 +374,8 @@ "end": 278 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -517,7 +519,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -580,7 +583,8 @@ "end": 375 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } }, @@ -601,7 +605,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -686,7 +691,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json index 65e7f3058f2c..d0ddc2b9b9c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-classSuper.5.json @@ -152,7 +152,8 @@ "end": 155 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -913,7 +914,8 @@ "end": 508 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -975,7 +977,8 @@ "end": 535 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1047,7 +1050,8 @@ "end": 566 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -1120,7 +1124,8 @@ "end": 598 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1184,7 +1189,8 @@ "end": 627 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1248,7 +1254,8 @@ "end": 658 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1312,7 +1319,8 @@ "end": 687 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1398,7 +1406,8 @@ "end": 720 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -1503,7 +1512,8 @@ "end": 762 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json index ffafc47b0ded..9d7fff0e5bf0 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.10.json @@ -222,7 +222,8 @@ "end": 242 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "value": { "type": "ClassExpression", @@ -422,7 +423,8 @@ "end": 329 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, "value": { @@ -835,7 +837,8 @@ "end": 582 }, "value": "__proto__", - "raw": "\"__proto__\"" + "raw": "\"__proto__\"", + "loneSurrogates": false }, "value": { "type": "ClassExpression", @@ -1069,7 +1072,8 @@ "end": 677 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "value": { "type": "ClassExpression", @@ -1351,7 +1355,8 @@ "end": 780 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, "value": { @@ -1887,7 +1892,8 @@ "end": 1057 }, "value": "__proto__", - "raw": "\"__proto__\"" + "raw": "\"__proto__\"", + "loneSurrogates": false }, "value": { "type": "ClassExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json index 6dd0f61968b0..f6ad16730fa9 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-classExpression-namedEvaluation.2.json @@ -336,7 +336,8 @@ "end": 290 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "value": { "type": "ClassExpression", @@ -405,7 +406,8 @@ "end": 317 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "value": { "type": "ClassExpression", @@ -700,7 +702,8 @@ "end": 413 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, "value": { @@ -776,7 +779,8 @@ "end": 442 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, "value": { @@ -1363,7 +1367,8 @@ "end": 702 }, "value": "__proto__", - "raw": "\"__proto__\"" + "raw": "\"__proto__\"", + "loneSurrogates": false }, "value": { "type": "ClassExpression", @@ -1438,7 +1443,8 @@ "end": 813 }, "value": "__proto__", - "raw": "\"__proto__\"" + "raw": "\"__proto__\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json index 1fa7f431caaa..32e179f7920b 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-contextualTypes.2.json @@ -75,7 +75,8 @@ "end": 80 }, "value": "Yadda", - "raw": "\"Yadda\"" + "raw": "\"Yadda\"", + "loneSurrogates": false } }, { @@ -238,7 +239,8 @@ "end": 224 }, "value": "Behold! The actual method implementation!", - "raw": "\"Behold! The actual method implementation!\"" + "raw": "\"Behold! The actual method implementation!\"", + "loneSurrogates": false } } ], @@ -1241,7 +1243,8 @@ }, "tail": false, "cooked": "<", - "raw": "<" + "raw": "<", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1251,7 +1254,8 @@ }, "tail": false, "cooked": ">: I'm logging stuff from ", - "raw": ">: I'm logging stuff from " + "raw": ">: I'm logging stuff from ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1265,8 @@ }, "tail": true, "cooked": "!", - "raw": "!" + "raw": "!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json b/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json index cb29093e7f83..d8f6da795ab0 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecorators-decoratorExpression.2.json @@ -1021,7 +1021,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1119,7 +1120,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1281,7 +1283,8 @@ "end": 499 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } @@ -1365,7 +1368,8 @@ "end": 527 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } @@ -2445,7 +2449,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2587,7 +2592,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2837,7 +2843,8 @@ "end": 929 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } @@ -2965,7 +2972,8 @@ "end": 965 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json index 80c5f01a758e..6c29695c18d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata1.json @@ -286,7 +286,8 @@ "end": 225 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -298,7 +299,8 @@ "end": 230 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ], @@ -357,7 +359,8 @@ "end": 255 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -369,7 +372,8 @@ "end": 260 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json index 693d7f3bfa8c..60761a3e09cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata2.json @@ -286,7 +286,8 @@ "end": 225 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -298,7 +299,8 @@ "end": 230 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ], @@ -357,7 +359,8 @@ "end": 255 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -369,7 +372,8 @@ "end": 260 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ], @@ -622,7 +626,8 @@ "end": 368 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -634,7 +639,8 @@ "end": 373 }, "value": "z", - "raw": "'z'" + "raw": "'z'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json index 1249eb148dbc..8282b2b76b53 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata3.json @@ -410,7 +410,8 @@ "end": 306 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -422,7 +423,8 @@ "end": 311 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ], @@ -489,7 +491,8 @@ "end": 341 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -501,7 +504,8 @@ "end": 346 }, "value": "z", - "raw": "'z'" + "raw": "'z'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json index 4fdc9e224c3c..c5e4ceefb93d 100644 --- a/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json +++ b/crates/swc_ecma_parser/tests/tsc/esDecoratorsMetadata4.json @@ -571,7 +571,8 @@ "end": 447 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -583,7 +584,8 @@ "end": 452 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ], @@ -642,7 +644,8 @@ "end": 477 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -654,7 +657,8 @@ "end": 482 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target10.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target10.json index ff3730b7c264..13b4adc8fd8e 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target10.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target10.json @@ -36,7 +36,8 @@ "end": 61 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target9.json b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target9.json index b536d97b5164..285a63afd14f 100644 --- a/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target9.json +++ b/crates/swc_ecma_parser/tests/tsc/esnextmodulekindWithES5Target9.json @@ -37,7 +37,8 @@ "end": 56 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -77,7 +78,8 @@ "end": 80 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -115,7 +117,8 @@ "end": 107 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -227,7 +230,8 @@ "end": 168 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -266,7 +270,8 @@ "end": 192 }, "value": "mod", - "raw": "\"mod\"" + "raw": "\"mod\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json index ec2b5e8d3879..ea801191ca02 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInitializer.json @@ -876,7 +876,8 @@ "end": 390 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "definite": false } @@ -2163,7 +2164,8 @@ "end": 979 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json index 5b936add5710..75c8fb709d87 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithAnnotationAndInvalidInitializer.json @@ -1174,7 +1174,8 @@ "end": 543 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "definite": false } @@ -1668,7 +1669,8 @@ "end": 756 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false } } ] @@ -2018,7 +2020,8 @@ "end": 933 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json b/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json index 149ba0039330..69733090bf34 100644 --- a/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/everyTypeWithInitializer.json @@ -848,7 +848,8 @@ "end": 374 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json b/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json index 360ac7653097..8a62d477fb2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json +++ b/crates/swc_ecma_parser/tests/tsc/exhaustiveSwitchStatements1.json @@ -184,7 +184,8 @@ "end": 174 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -218,7 +219,8 @@ "end": 206 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -819,7 +821,8 @@ "end": 655 }, "value": "Bad input", - "raw": "\"Bad input\"" + "raw": "\"Bad input\"", + "loneSurrogates": false } } ], @@ -1429,7 +1432,8 @@ "end": 1033 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false } } } @@ -1536,7 +1540,8 @@ "end": 1091 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false } } } @@ -1678,7 +1683,8 @@ "end": 1160 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false } } } @@ -1785,7 +1791,8 @@ "end": 1218 }, "value": "triangle", - "raw": "\"triangle\"" + "raw": "\"triangle\"", + "loneSurrogates": false } } } @@ -2077,7 +2084,8 @@ "end": 1382 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -2187,7 +2195,8 @@ "end": 1439 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false }, "consequent": [ { @@ -2297,7 +2306,8 @@ "end": 1496 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -2440,7 +2450,8 @@ "end": 1566 }, "value": "triangle", - "raw": "\"triangle\"" + "raw": "\"triangle\"", + "loneSurrogates": false }, "consequent": [ { @@ -2852,7 +2863,8 @@ "end": 1770 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -2935,7 +2947,8 @@ "end": 1824 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false }, "consequent": [ { @@ -3018,7 +3031,8 @@ "end": 1878 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -3134,7 +3148,8 @@ "end": 1945 }, "value": "triangle", - "raw": "\"triangle\"" + "raw": "\"triangle\"", + "loneSurrogates": false }, "consequent": [ { @@ -3585,7 +3600,8 @@ "end": 2182 }, "value": "it was A", - "raw": "\"it was A\"" + "raw": "\"it was A\"", + "loneSurrogates": false } } }, @@ -3662,7 +3678,8 @@ "end": 2222 }, "value": "it was B", - "raw": "\"it was B\"" + "raw": "\"it was B\"", + "loneSurrogates": false } } }, @@ -3914,7 +3931,8 @@ "end": 2345 }, "value": "it was A", - "raw": "\"it was A\"" + "raw": "\"it was A\"", + "loneSurrogates": false } } }, @@ -3991,7 +4009,8 @@ "end": 2385 }, "value": "it was B", - "raw": "\"it was B\"" + "raw": "\"it was B\"", + "loneSurrogates": false } } }, @@ -4044,7 +4063,8 @@ "end": 2432 }, "value": "it was something else", - "raw": "\"it was something else\"" + "raw": "\"it was something else\"", + "loneSurrogates": false } } }, @@ -4232,7 +4252,8 @@ "end": 2542 }, "value": "it was A", - "raw": "\"it was A\"" + "raw": "\"it was A\"", + "loneSurrogates": false } } ] @@ -4282,7 +4303,8 @@ "end": 2578 }, "value": "it was B", - "raw": "\"it was B\"" + "raw": "\"it was B\"", + "loneSurrogates": false } } ] @@ -4799,7 +4821,8 @@ "end": 2922 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false } } } @@ -4906,7 +4929,8 @@ "end": 2983 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false } } } @@ -5173,7 +5197,8 @@ "end": 3141 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -5189,7 +5214,8 @@ "end": 3165 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ] @@ -5207,7 +5233,8 @@ "end": 3188 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -5255,7 +5282,8 @@ "end": 3250 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -5271,7 +5299,8 @@ "end": 3282 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } ] @@ -5289,7 +5318,8 @@ "end": 3313 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -5305,7 +5335,8 @@ "end": 3345 }, "value": "3", - "raw": "\"3\"" + "raw": "\"3\"", + "loneSurrogates": false } } ] @@ -5331,7 +5362,8 @@ "end": 3406 }, "value": "never", - "raw": "\"never\"" + "raw": "\"never\"", + "loneSurrogates": false } } ] @@ -5523,7 +5555,8 @@ "end": 3533 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -5539,7 +5572,8 @@ "end": 3557 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ] @@ -5557,7 +5591,8 @@ "end": 3580 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -5605,7 +5640,8 @@ "end": 3642 }, "value": "square", - "raw": "\"square\"" + "raw": "\"square\"", + "loneSurrogates": false }, "consequent": [ { @@ -5621,7 +5657,8 @@ "end": 3674 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } ] @@ -5639,7 +5676,8 @@ "end": 3705 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false }, "consequent": [ { @@ -5655,7 +5693,8 @@ "end": 3737 }, "value": "3", - "raw": "\"3\"" + "raw": "\"3\"", + "loneSurrogates": false } } ] @@ -5892,7 +5931,8 @@ "end": 3880 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } } }, @@ -5953,7 +5993,8 @@ "end": 3914 }, "value": "two", - "raw": "\"two\"" + "raw": "\"two\"", + "loneSurrogates": false } } }, @@ -6830,7 +6871,8 @@ "end": 4523 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -6981,7 +7023,8 @@ "end": 4583 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false }, "consequent": [ { @@ -7015,7 +7058,8 @@ "end": 4604 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -7053,7 +7097,8 @@ "end": 4625 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } }, @@ -7175,7 +7220,8 @@ "end": 4700 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } } @@ -7227,7 +7273,8 @@ "end": 4718 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } } } @@ -7354,7 +7401,8 @@ "end": 4781 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "consequent": [] }, @@ -7371,7 +7419,8 @@ "end": 4797 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false }, "consequent": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json b/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json index 5aaec69b22ce..530744d81185 100644 --- a/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/expandoOnAlias.json @@ -158,7 +158,8 @@ "end": 221 }, "value": "./vue", - "raw": "\"./vue\"" + "raw": "\"./vue\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalid.json b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalid.json index e9bbace2a696..3dadaf3219f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalid.json +++ b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalid.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -162,7 +164,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -172,7 +175,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -250,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -260,7 +265,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -338,7 +344,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -348,7 +355,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -417,7 +425,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -427,7 +436,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -505,7 +515,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -515,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -593,7 +605,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -603,7 +616,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -681,7 +695,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -691,7 +706,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -799,7 +815,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -809,7 +826,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -865,7 +883,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -875,7 +894,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -931,7 +951,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -941,7 +962,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -997,7 +1019,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1007,7 +1030,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalidES6.json b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalidES6.json index f67c5bb5aacc..aeddfccedc3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalidES6.json +++ b/crates/swc_ecma_parser/tests/tsc/exponentiationOperatorWithTemplateStringInvalidES6.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -162,7 +164,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -172,7 +175,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -250,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -260,7 +265,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -338,7 +344,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -348,7 +355,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -417,7 +425,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -427,7 +436,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -505,7 +515,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -515,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -593,7 +605,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -603,7 +616,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -681,7 +695,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -691,7 +706,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -799,7 +815,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -809,7 +826,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -865,7 +883,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -875,7 +894,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -931,7 +951,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -941,7 +962,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -997,7 +1019,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1007,7 +1030,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5-amd.json b/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5-amd.json index 38d0cb852adf..28f514ea8a77 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5-amd.json @@ -77,7 +77,8 @@ "end": 127 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5.json b/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5.json index a1b076c91771..770fa0c18395 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAndImport-es5.json @@ -77,7 +77,8 @@ "end": 132 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json index 6e2a7cee4d34..1e1bf7162d27 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace1.json @@ -131,7 +131,8 @@ "end": 182 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -232,7 +233,8 @@ "end": 242 }, "value": "./1", - "raw": "'./1'" + "raw": "'./1'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json index db082452705d..c68c6997a871 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace2.json @@ -131,7 +131,8 @@ "end": 208 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -232,7 +233,8 @@ "end": 268 }, "value": "./1", - "raw": "'./1'" + "raw": "'./1'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json index 2ee879df1e6e..354d5f8a562f 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace3.json @@ -131,7 +131,8 @@ "end": 208 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -376,7 +377,8 @@ "end": 302 }, "value": "./1", - "raw": "'./1'" + "raw": "'./1'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json index ee2b11d94368..37181e64c62b 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace4.json @@ -131,7 +131,8 @@ "end": 213 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -168,7 +169,8 @@ "end": 261 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -223,7 +225,8 @@ "end": 323 }, "value": "./1", - "raw": "'./1'" + "raw": "'./1'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -261,7 +264,8 @@ "end": 347 }, "value": "./11", - "raw": "'./11'" + "raw": "'./11'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json index 5cfb70b56cb1..33d0fb9de7f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace5.json @@ -133,7 +133,8 @@ "end": 181 }, "value": "./three", - "raw": "\"./three\"" + "raw": "\"./three\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -170,7 +171,8 @@ "end": 227 }, "value": "./two", - "raw": "\"./two\"" + "raw": "\"./two\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_exportAssignment.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_exportAssignment.json index d273ba69a001..ed3b84de422c 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_exportAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_exportAssignment.json @@ -52,7 +52,8 @@ "end": 153 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_missingEmitHelpers.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_missingEmitHelpers.json index dd8f36c51746..d281fbdcf7be 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_missingEmitHelpers.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_missingEmitHelpers.json @@ -48,7 +48,8 @@ "end": 175 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_nonExistent.json b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_nonExistent.json index 2cce3aa39acd..82823c6aeb18 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_nonExistent.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAsNamespace_nonExistent.json @@ -37,7 +37,8 @@ "end": 84 }, "value": "./nonexistent", - "raw": "'./nonexistent'" + "raw": "'./nonexistent'", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json b/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json index 1ac37be29c26..2b47eb765651 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignDottedName.json @@ -93,7 +93,8 @@ "end": 113 }, "value": "./foo1", - "raw": "'./foo1'" + "raw": "'./foo1'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json b/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json index f1bc3867bf70..3bf973aa8c6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignImportedIdentifier.json @@ -93,7 +93,8 @@ "end": 113 }, "value": "./foo1", - "raw": "'./foo1'" + "raw": "'./foo1'", + "loneSurrogates": false } } }, @@ -201,7 +202,8 @@ "end": 197 }, "value": "./foo2", - "raw": "'./foo2'" + "raw": "'./foo2'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json b/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json index 1e52b848e556..f8e44cdc0504 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignTypes.json @@ -39,7 +39,8 @@ "end": 42 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "definite": false } @@ -576,7 +577,8 @@ "end": 476 }, "value": "./expString", - "raw": "'./expString'" + "raw": "'./expString'", + "loneSurrogates": false } } }, @@ -666,7 +668,8 @@ "end": 544 }, "value": "./expNumber", - "raw": "'./expNumber'" + "raw": "'./expNumber'", + "loneSurrogates": false } } }, @@ -756,7 +759,8 @@ "end": 614 }, "value": "./expBoolean", - "raw": "'./expBoolean'" + "raw": "'./expBoolean'", + "loneSurrogates": false } } }, @@ -846,7 +850,8 @@ "end": 682 }, "value": "./expArray", - "raw": "'./expArray'" + "raw": "'./expArray'", + "loneSurrogates": false } } }, @@ -962,7 +967,8 @@ "end": 756 }, "value": "./expObject", - "raw": "'./expObject'" + "raw": "'./expObject'", + "loneSurrogates": false } } }, @@ -1062,7 +1068,8 @@ "end": 818 }, "value": "./expAny", - "raw": "'./expAny'" + "raw": "'./expAny'", + "loneSurrogates": false } } }, @@ -1138,7 +1145,8 @@ "end": 877 }, "value": "./expGeneric", - "raw": "'./expGeneric'" + "raw": "'./expGeneric'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json index 3a26ccfa0e7b..6b9f1162e7a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentCircularModules.json @@ -36,7 +36,8 @@ "end": 71 }, "value": "./foo_1", - "raw": "'./foo_1'" + "raw": "'./foo_1'", + "loneSurrogates": false } } }, @@ -180,7 +181,8 @@ "end": 182 }, "value": "./foo_2", - "raw": "\"./foo_2\"" + "raw": "\"./foo_2\"", + "loneSurrogates": false } } }, @@ -324,7 +326,8 @@ "end": 293 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json index 125be03845b0..b8c43eff8ebb 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentConstrainedGenericType.json @@ -310,7 +310,8 @@ "end": 192 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, @@ -448,7 +449,8 @@ "end": 260 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json index e425bccbf686..a98473b7cccc 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentGenericType.json @@ -160,7 +160,8 @@ "end": 139 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json index 4489f569f498..23431cc6adbf 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedInterface.json @@ -387,7 +387,8 @@ "end": 239 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, @@ -480,7 +481,8 @@ "end": 262 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json index e2bb27390c66..bba1cc261a20 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentMergedModule.json @@ -391,7 +391,8 @@ "end": 299 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentOfExportNamespaceWithDefault.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentOfExportNamespaceWithDefault.json index 15e119aa8a5f..ec24867ff815 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentOfExportNamespaceWithDefault.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentOfExportNamespaceWithDefault.json @@ -37,7 +37,8 @@ "end": 162 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -86,7 +87,8 @@ "end": 216 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -310,7 +312,8 @@ "end": 384 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -353,7 +356,8 @@ "end": 412 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json index d2f5e5e0c540..e81d42a7190e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelClodule.json @@ -46,7 +46,8 @@ "end": 66 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -190,7 +191,8 @@ "end": 178 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json index a5c91431e25a..72b8bf643daa 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelEnumdule.json @@ -204,7 +204,8 @@ "end": 179 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json index 048aaf7d4423..9841b7fb4cba 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelFundule.json @@ -46,7 +46,8 @@ "end": 71 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } ] @@ -180,7 +181,8 @@ "end": 183 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json index 07c79237c2ec..66e30b04c208 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/exportAssignmentTopLevelIdentifier.json @@ -129,7 +129,8 @@ "end": 148 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportBinding.json b/crates/swc_ecma_parser/tests/tsc/exportBinding.json index c212a10d93ee..eee290e9698f 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportBinding.json +++ b/crates/swc_ecma_parser/tests/tsc/exportBinding.json @@ -127,7 +127,8 @@ "end": 112 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false }, "definite": false } @@ -321,7 +322,8 @@ "end": 250 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/exportDeclaration.json b/crates/swc_ecma_parser/tests/tsc/exportDeclaration.json index 2f766970d7da..b94ab4b8e1e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDeclaration.json @@ -96,7 +96,8 @@ "end": 150 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -219,7 +220,8 @@ "end": 230 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -276,7 +278,8 @@ "end": 288 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier-isolatedModules.json b/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier-isolatedModules.json index 4b7ae6bf4e0d..251ef7fa18b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier-isolatedModules.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier-isolatedModules.json @@ -73,7 +73,8 @@ "end": 117 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier.json b/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier.json index d3700a9bc985..f7bfcb77e0d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDeclaration_moduleSpecifier.json @@ -72,7 +72,8 @@ "end": 88 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -111,7 +112,8 @@ "end": 134 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportDeclaration_value.json b/crates/swc_ecma_parser/tests/tsc/exportDeclaration_value.json index 4fd8ced76b17..89c851a0f3c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDeclaration_value.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDeclaration_value.json @@ -155,7 +155,8 @@ "end": 126 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json b/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json index be803a54328a..28cafa47b54e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDeclaredModule.json @@ -182,7 +182,8 @@ "end": 166 }, "value": "./foo1", - "raw": "'./foo1'" + "raw": "'./foo1'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json b/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json index b9a4748213d0..2200442de1da 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDefaultClassWithStaticPropertyAssignmentsInES6.json @@ -42,7 +42,8 @@ "end": 67 }, "value": "Foo", - "raw": "\"Foo\"" + "raw": "\"Foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", diff --git a/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile01.json b/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile01.json index 8293011f0889..f6be6327f06e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile01.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile01.json @@ -18,7 +18,8 @@ "end": 105 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile02.json b/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile02.json index 88337351413d..c90add6d0bc9 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile02.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDefaultInJsFile02.json @@ -18,7 +18,8 @@ "end": 106 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json b/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json index 949fc66f69ef..07d79934ef92 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/exportDefaultNamespace.json @@ -51,7 +51,8 @@ "end": 80 }, "value": "hello!", - "raw": "'hello!'" + "raw": "'hello!'", + "loneSurrogates": false } } ] @@ -107,7 +108,8 @@ "end": 109 }, "value": "yo", - "raw": "'yo'" + "raw": "'yo'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json b/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json index b5a8d3665e3d..dcc46c990dd0 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/exportImportAlias.json @@ -71,7 +71,8 @@ "end": 71 }, "value": "hello world", - "raw": "'hello world'" + "raw": "'hello world'", + "loneSurrogates": false }, "definite": false } @@ -1983,7 +1984,8 @@ "end": 1096 }, "value": "Hello", - "raw": "'Hello'" + "raw": "'Hello'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace1.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace1.json index 15a5f5badcc1..498d6d943ca9 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace1.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace1.json @@ -72,7 +72,8 @@ "end": 86 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -90,7 +91,8 @@ "end": 127 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -129,7 +131,8 @@ "end": 172 }, "value": "./c", - "raw": "'./c'" + "raw": "'./c'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json index 42757b9266ca..268c80e410ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace10.json @@ -70,7 +70,8 @@ "end": 90 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -109,7 +110,8 @@ "end": 137 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json index bc32fc7375fc..afde7b06751c 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace11.json @@ -37,7 +37,8 @@ "end": 69 }, "value": "./intermediate", - "raw": "'./intermediate'" + "raw": "'./intermediate'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -161,7 +162,8 @@ "end": 188 }, "value": "./ghost", - "raw": "'./ghost'" + "raw": "'./ghost'", + "loneSurrogates": false }, "typeOnly": true, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json index 844472adf11e..941441cb45fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace12.json @@ -39,7 +39,8 @@ "end": 50 }, "value": "./types", - "raw": "'./types'" + "raw": "'./types'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -77,7 +78,8 @@ "end": 83 }, "value": "./types", - "raw": "'./types'" + "raw": "'./types'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -223,7 +225,8 @@ "end": 254 }, "value": "./values", - "raw": "'./values'" + "raw": "'./values'", + "loneSurrogates": false }, "typeOnly": true, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json index 1e7fb18f5209..a66cbc22e75b 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace3.json @@ -72,7 +72,8 @@ "end": 86 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -109,7 +110,8 @@ "end": 132 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -148,7 +150,8 @@ "end": 177 }, "value": "./c", - "raw": "'./c'" + "raw": "'./c'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json index e47650704b76..f14266a35132 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace4.json @@ -51,7 +51,8 @@ "end": 105 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -88,7 +89,8 @@ "end": 157 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -127,7 +129,8 @@ "end": 202 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -184,7 +187,8 @@ "end": 251 }, "value": "./c", - "raw": "'./c'" + "raw": "'./c'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace5.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace5.json index 778e1df7b123..46c4233a5993 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace5.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace5.json @@ -117,7 +117,8 @@ "end": 143 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -156,7 +157,8 @@ "end": 168 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -242,7 +244,8 @@ "end": 225 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -486,7 +489,8 @@ "end": 362 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -504,7 +508,8 @@ "end": 383 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -581,7 +586,8 @@ "end": 435 }, "value": "./d", - "raw": "\"./d\"" + "raw": "\"./d\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace6.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace6.json index e8995e71064b..80a358f14674 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace6.json @@ -84,7 +84,8 @@ "end": 102 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -102,7 +103,8 @@ "end": 144 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -160,7 +162,8 @@ "end": 193 }, "value": "./c", - "raw": "\"./c\"" + "raw": "\"./c\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace7.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace7.json index 8d6ba5712492..650cbe3f073f 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace7.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace7.json @@ -117,7 +117,8 @@ "end": 120 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -227,7 +228,8 @@ "end": 190 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -471,7 +473,8 @@ "end": 325 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -548,7 +551,8 @@ "end": 377 }, "value": "./d", - "raw": "\"./d\"" + "raw": "\"./d\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace8.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace8.json index 1750debda72c..9abca29b2d6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace8.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace8.json @@ -150,7 +150,8 @@ "end": 159 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -168,7 +169,8 @@ "end": 180 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -245,7 +247,8 @@ "end": 251 }, "value": "./c", - "raw": "\"./c\"" + "raw": "\"./c\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace9.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace9.json index 73de92fc75c7..fddb2b189daf 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace9.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace9.json @@ -52,7 +52,8 @@ "end": 90 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -91,7 +92,8 @@ "end": 136 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -202,7 +204,8 @@ "end": 209 }, "value": "./c", - "raw": "\"./c\"" + "raw": "\"./c\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -322,7 +325,8 @@ "end": 313 }, "value": "./e", - "raw": "\"./e\"" + "raw": "\"./e\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -340,7 +344,8 @@ "end": 339 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -379,7 +384,8 @@ "end": 404 }, "value": "./f", - "raw": "\"./f\"" + "raw": "\"./f\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNamespace_js.json b/crates/swc_ecma_parser/tests/tsc/exportNamespace_js.json index bba16fa34dc7..c3286e74e603 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNamespace_js.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNamespace_js.json @@ -51,7 +51,8 @@ "end": 157 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -90,7 +91,8 @@ "end": 202 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json index 53c3322969e9..fda7b56ef7f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces.json @@ -343,7 +343,8 @@ "end": 260 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json index 34c07e065f38..642fd833e2d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNestedNamespaces2.json @@ -104,7 +104,8 @@ "end": 182 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false } } ], @@ -280,7 +281,8 @@ "end": 286 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false } } ], @@ -437,7 +439,8 @@ "end": 393 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json b/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json index 5246af9ec181..484953f20014 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json +++ b/crates/swc_ecma_parser/tests/tsc/exportNonVisibleType.json @@ -179,7 +179,8 @@ "end": 87 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/exportSpecifiers.json b/crates/swc_ecma_parser/tests/tsc/exportSpecifiers.json index e2edb818fe15..43fee218c925 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportSpecifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/exportSpecifiers.json @@ -115,7 +115,8 @@ "end": 129 }, "value": "./exports.js", - "raw": "\"./exports.js\"" + "raw": "\"./exports.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json b/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json index e430cc83aa8d..02c0d3110aff 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json +++ b/crates/swc_ecma_parser/tests/tsc/exportSpellingSuggestion.json @@ -146,7 +146,8 @@ "end": 106 }, "value": "Unexpected ", - "raw": "\"Unexpected \"" + "raw": "\"Unexpected \"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -206,7 +207,8 @@ "end": 170 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportStar-amd.json b/crates/swc_ecma_parser/tests/tsc/exportStar-amd.json index 3a2587d4b31f..a24a2d4ee9d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportStar-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportStar-amd.json @@ -112,7 +112,8 @@ "end": 133 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -190,7 +191,8 @@ "end": 193 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -230,7 +232,8 @@ "end": 206 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "definite": false } @@ -270,7 +273,8 @@ "end": 219 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false }, "definite": false } @@ -358,7 +362,8 @@ "end": 282 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -376,7 +381,8 @@ "end": 304 }, "value": "./t2", - "raw": "\"./t2\"" + "raw": "\"./t2\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -394,7 +400,8 @@ "end": 326 }, "value": "./t3", - "raw": "\"./t3\"" + "raw": "\"./t3\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -507,7 +514,8 @@ "end": 393 }, "value": "./t4", - "raw": "\"./t4\"" + "raw": "\"./t4\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportStar.json b/crates/swc_ecma_parser/tests/tsc/exportStar.json index 72af61f2a4d9..a409aeabd542 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportStar.json +++ b/crates/swc_ecma_parser/tests/tsc/exportStar.json @@ -112,7 +112,8 @@ "end": 138 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -190,7 +191,8 @@ "end": 198 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -230,7 +232,8 @@ "end": 211 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "definite": false } @@ -270,7 +273,8 @@ "end": 224 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false }, "definite": false } @@ -358,7 +362,8 @@ "end": 287 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -376,7 +381,8 @@ "end": 309 }, "value": "./t2", - "raw": "\"./t2\"" + "raw": "\"./t2\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -394,7 +400,8 @@ "end": 331 }, "value": "./t3", - "raw": "\"./t3\"" + "raw": "\"./t3\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -507,7 +514,8 @@ "end": 398 }, "value": "./t4", - "raw": "\"./t4\"" + "raw": "\"./t4\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json b/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json index 52fa6372a5e8..f476168566d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/exportTypeMergedWithExportStarAsNamespace.json @@ -39,7 +39,8 @@ "end": 61 }, "value": "./prelude", - "raw": "\"./prelude\"" + "raw": "\"./prelude\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -160,7 +161,8 @@ "end": 122 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -655,7 +657,8 @@ "end": 389 }, "value": "./Something", - "raw": "\"./Something\"" + "raw": "\"./Something\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -693,7 +696,8 @@ "end": 430 }, "value": "./Something", - "raw": "\"./Something\"" + "raw": "\"./Something\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json b/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json index 609e603d8de4..3f0ec15ac53f 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json +++ b/crates/swc_ecma_parser/tests/tsc/exportedAliasedEnumTag.json @@ -139,7 +139,8 @@ "end": 170 }, "value": "before", - "raw": "'before'" + "raw": "'before'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json b/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json index 4276b9052234..7ec32c2e017a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json +++ b/crates/swc_ecma_parser/tests/tsc/exportedEnumTypeAndValue.json @@ -134,7 +134,8 @@ "end": 204 }, "value": "./def", - "raw": "\"./def\"" + "raw": "\"./def\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json index 3dbd00fd4604..c760c158fa4a 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-amd.json @@ -893,7 +893,8 @@ "end": 384 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -1103,7 +1104,8 @@ "end": 458 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json index 73ee63ce251a..fe569afaccb2 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1-es6.json @@ -893,7 +893,8 @@ "end": 389 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -1103,7 +1104,8 @@ "end": 463 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json index b0adc24bbbc6..166e0993cd7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports1.json @@ -893,7 +893,8 @@ "end": 373 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -1103,7 +1104,8 @@ "end": 447 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-amd.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-amd.json index ba73be68fc51..06c072c1eefb 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-amd.json @@ -45,7 +45,8 @@ "end": 72 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -92,7 +93,8 @@ "end": 92 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "definite": false } @@ -170,7 +172,8 @@ "end": 152 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -228,7 +231,8 @@ "end": 202 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-es6.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-es6.json index 192505252cc9..76c4404a74c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-es6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports2-es6.json @@ -45,7 +45,8 @@ "end": 77 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -92,7 +93,8 @@ "end": 97 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "definite": false } @@ -170,7 +172,8 @@ "end": 157 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -228,7 +231,8 @@ "end": 207 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports2.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports2.json index f3ed7a4c218d..3a99eb67de99 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports2.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports2.json @@ -45,7 +45,8 @@ "end": 61 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false }, "definite": false } @@ -92,7 +93,8 @@ "end": 81 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "definite": false } @@ -170,7 +172,8 @@ "end": 141 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -228,7 +231,8 @@ "end": 191 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json index 3a63c3015de0..e2a69f89db3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-amd.json @@ -1136,7 +1136,8 @@ "end": 574 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -1436,7 +1437,8 @@ "end": 708 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json index b10a9e332ae4..26fb5a1add09 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3-es6.json @@ -1136,7 +1136,8 @@ "end": 579 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -1436,7 +1437,8 @@ "end": 713 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json index 7f57edb010d1..bb5228a9cae0 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports3.json @@ -1136,7 +1136,8 @@ "end": 563 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -1436,7 +1437,8 @@ "end": 697 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json index a7a83b317b53..a5e39fa01533 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-amd.json @@ -18,7 +18,8 @@ "end": 76 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -52,7 +53,8 @@ "end": 124 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false } } }, @@ -120,7 +122,8 @@ "end": 158 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -175,7 +178,8 @@ "end": 188 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -256,7 +260,8 @@ "end": 236 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -328,7 +333,8 @@ "end": 271 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -443,7 +449,8 @@ "end": 329 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -497,7 +504,8 @@ "end": 352 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -534,7 +542,8 @@ "end": 400 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false } } }, @@ -602,7 +611,8 @@ "end": 434 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -657,7 +667,8 @@ "end": 464 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -738,7 +749,8 @@ "end": 512 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -810,7 +822,8 @@ "end": 547 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -925,7 +938,8 @@ "end": 605 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json index fc1378fda2b2..974869c6b60c 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4-es6.json @@ -18,7 +18,8 @@ "end": 81 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -52,7 +53,8 @@ "end": 129 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false } } }, @@ -120,7 +122,8 @@ "end": 163 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -175,7 +178,8 @@ "end": 193 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -256,7 +260,8 @@ "end": 241 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -328,7 +333,8 @@ "end": 276 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -443,7 +449,8 @@ "end": 334 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -497,7 +504,8 @@ "end": 357 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -534,7 +542,8 @@ "end": 405 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false } } }, @@ -602,7 +611,8 @@ "end": 439 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -657,7 +667,8 @@ "end": 469 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -738,7 +749,8 @@ "end": 517 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -810,7 +822,8 @@ "end": 552 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -925,7 +938,8 @@ "end": 610 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json index fc1378fda2b2..974869c6b60c 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImports4.json @@ -18,7 +18,8 @@ "end": 81 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -52,7 +53,8 @@ "end": 129 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false } } }, @@ -120,7 +122,8 @@ "end": 163 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -175,7 +178,8 @@ "end": 193 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -256,7 +260,8 @@ "end": 241 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -328,7 +333,8 @@ "end": 276 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -443,7 +449,8 @@ "end": 334 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -497,7 +504,8 @@ "end": 357 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -534,7 +542,8 @@ "end": 405 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false } } }, @@ -602,7 +611,8 @@ "end": 439 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -657,7 +667,8 @@ "end": 469 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -738,7 +749,8 @@ "end": 517 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -810,7 +822,8 @@ "end": 552 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -925,7 +938,8 @@ "end": 610 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json index 72bc81331ef2..1c90bc55419d 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithContextualKeywordNames02.json @@ -136,7 +136,8 @@ "end": 151 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -297,7 +298,8 @@ "end": 240 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -337,7 +339,8 @@ "end": 289 }, "value": "./t1", - "raw": "\"./t1\"" + "raw": "\"./t1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores2.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores2.json index 07eb5d54d574..27e2c6e88495 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores2.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores2.json @@ -91,7 +91,8 @@ "end": 105 }, "value": "__esmodule", - "raw": "\"__esmodule\"" + "raw": "\"__esmodule\"", + "loneSurrogates": false }, "value": { "type": "BooleanLiteral", @@ -111,7 +112,8 @@ "end": 128 }, "value": "__proto__", - "raw": "\"__proto__\"" + "raw": "\"__proto__\"", + "loneSurrogates": false }, "value": { "type": "ObjectExpression", @@ -158,7 +160,8 @@ "end": 176 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores3.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores3.json index 78e7d9511eaa..4b73faa1c27f 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores3.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores3.json @@ -91,7 +91,8 @@ "end": 98 }, "value": "___", - "raw": "\"___\"" + "raw": "\"___\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -112,7 +113,8 @@ "end": 118 }, "value": "___hello", - "raw": "\"___hello\"" + "raw": "\"___hello\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -133,7 +135,8 @@ "end": 133 }, "value": "_hi", - "raw": "\"_hi\"" + "raw": "\"_hi\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -181,7 +184,8 @@ "end": 182 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json index d54c94f50596..53f93930643b 100644 --- a/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json +++ b/crates/swc_ecma_parser/tests/tsc/exportsAndImportsWithUnderscores4.json @@ -133,7 +133,8 @@ "end": 124 }, "value": "_", - "raw": "\"_\"" + "raw": "\"_\"", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 172 }, "value": "__", - "raw": "\"__\"" + "raw": "\"__\"", + "loneSurrogates": false } } ], @@ -327,7 +329,8 @@ "end": 222 }, "value": "___", - "raw": "\"___\"" + "raw": "\"___\"", + "loneSurrogates": false } } ], @@ -424,7 +427,8 @@ "end": 272 }, "value": "_hi", - "raw": "\"_hi\"" + "raw": "\"_hi\"", + "loneSurrogates": false } } ], @@ -521,7 +525,8 @@ "end": 330 }, "value": "__proto", - "raw": "\"__proto\"" + "raw": "\"__proto\"", + "loneSurrogates": false } } ], @@ -618,7 +623,8 @@ "end": 394 }, "value": "__esmodule", - "raw": "\"__esmodule\"" + "raw": "\"__esmodule\"", + "loneSurrogates": false } } ], @@ -715,7 +721,8 @@ "end": 453 }, "value": "___hello", - "raw": "\"___hello\"" + "raw": "\"___hello\"", + "loneSurrogates": false } } ], @@ -859,7 +866,8 @@ "end": 542 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json b/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json index bb3d65f176f4..4e0c106f1a6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendBooleanInterface.json @@ -384,7 +384,8 @@ "end": 155 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], @@ -471,7 +472,8 @@ "end": 185 }, "value": "doStuff", - "raw": "'doStuff'" + "raw": "'doStuff'", + "loneSurrogates": false } } }, @@ -559,7 +561,8 @@ "end": 222 }, "value": "doOtherStuff", - "raw": "'doOtherStuff'" + "raw": "'doOtherStuff'", + "loneSurrogates": false } } }, @@ -573,7 +576,8 @@ "end": 228 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/extendClassExpressionFromModule.json b/crates/swc_ecma_parser/tests/tsc/extendClassExpressionFromModule.json index b4f7d39d21fa..b977e03f1517 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendClassExpressionFromModule.json +++ b/crates/swc_ecma_parser/tests/tsc/extendClassExpressionFromModule.json @@ -79,7 +79,8 @@ "end": 121 }, "value": "./foo1", - "raw": "'./foo1'" + "raw": "'./foo1'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json b/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json index a3a1a3705785..4c6672e396c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendNumberInterface.json @@ -385,7 +385,8 @@ "end": 150 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], @@ -472,7 +473,8 @@ "end": 180 }, "value": "doStuff", - "raw": "'doStuff'" + "raw": "'doStuff'", + "loneSurrogates": false } } }, @@ -560,7 +562,8 @@ "end": 217 }, "value": "doOtherStuff", - "raw": "'doOtherStuff'" + "raw": "'doOtherStuff'", + "loneSurrogates": false } } }, @@ -574,7 +577,8 @@ "end": 223 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json b/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json index c02ad252a13c..715344bb8465 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/extendStringInterface.json @@ -216,7 +216,8 @@ "end": 85 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -385,7 +386,8 @@ "end": 151 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], @@ -472,7 +474,8 @@ "end": 181 }, "value": "doStuff", - "raw": "'doStuff'" + "raw": "'doStuff'", + "loneSurrogates": false } } }, @@ -560,7 +563,8 @@ "end": 218 }, "value": "doOtherStuff", - "raw": "'doOtherStuff'" + "raw": "'doOtherStuff'", + "loneSurrogates": false } } }, @@ -574,7 +578,8 @@ "end": 224 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/extendsTagEmit.json b/crates/swc_ecma_parser/tests/tsc/extendsTagEmit.json index 4b79a429ce64..7f4c851d4f54 100644 --- a/crates/swc_ecma_parser/tests/tsc/extendsTagEmit.json +++ b/crates/swc_ecma_parser/tests/tsc/extendsTagEmit.json @@ -72,7 +72,8 @@ "end": 164 }, "value": "./super", - "raw": "'./super'" + "raw": "'./super'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/extensionLoadingPriority.json b/crates/swc_ecma_parser/tests/tsc/extensionLoadingPriority.json index 9b54a4e1438e..b609bf1c9423 100644 --- a/crates/swc_ecma_parser/tests/tsc/extensionLoadingPriority.json +++ b/crates/swc_ecma_parser/tests/tsc/extensionLoadingPriority.json @@ -18,7 +18,8 @@ "end": 163 }, "value": "a.js", - "raw": "\"a.js\"" + "raw": "\"a.js\"", + "loneSurrogates": false } }, { @@ -34,7 +35,8 @@ "end": 221 }, "value": "a.js.js", - "raw": "\"a.js.js\"" + "raw": "\"a.js.js\"", + "loneSurrogates": false } }, { @@ -50,7 +52,8 @@ "end": 289 }, "value": "dir/index.ts", - "raw": "\"dir/index.ts\"" + "raw": "\"dir/index.ts\"", + "loneSurrogates": false } }, { @@ -66,7 +69,8 @@ "end": 345 }, "value": "dir.js", - "raw": "\"dir.js\"" + "raw": "\"dir.js\"", + "loneSurrogates": false } }, { @@ -101,7 +105,8 @@ "end": 398 }, "value": "./a.js", - "raw": "\"./a.js\"" + "raw": "\"./a.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -139,7 +144,8 @@ "end": 423 }, "value": "./dir", - "raw": "\"./dir\"" + "raw": "\"./dir\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json b/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json index 4c5151422f56..1afaf115d580 100644 --- a/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json +++ b/crates/swc_ecma_parser/tests/tsc/filterNamespace_import.json @@ -138,7 +138,8 @@ "end": 115 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -307,7 +308,8 @@ "end": 273 }, "value": "./ns", - "raw": "'./ns'" + "raw": "'./ns'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -521,7 +523,8 @@ "end": 349 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -632,7 +635,8 @@ "end": 389 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json b/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json index 6da7a231b759..a1852e8f5730 100644 --- a/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json +++ b/crates/swc_ecma_parser/tests/tsc/fixSignatureCaching.json @@ -138,7 +138,8 @@ "end": 92 }, "value": "use strict", - "raw": "'use strict'" + "raw": "'use strict'", + "loneSurrogates": false } }, { @@ -234,7 +235,8 @@ "end": 158 }, "value": "phones", - "raw": "\"phones\"" + "raw": "\"phones\"", + "loneSurrogates": false }, "value": { "type": "ObjectExpression", @@ -252,7 +254,8 @@ "end": 178 }, "value": "iPhone", - "raw": "\"iPhone\"" + "raw": "\"iPhone\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -261,7 +264,8 @@ "end": 205 }, "value": "\\biPhone\\b|\\biPod\\b", - "raw": "\"\\\\biPhone\\\\b|\\\\biPod\\\\b\"" + "raw": "\"\\\\biPhone\\\\b|\\\\biPod\\\\b\"", + "loneSurrogates": false } }, { @@ -273,7 +277,8 @@ "end": 227 }, "value": "BlackBerry", - "raw": "\"BlackBerry\"" + "raw": "\"BlackBerry\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -282,7 +287,8 @@ "end": 262 }, "value": "BlackBerry|\\bBB10\\b|rim[0-9]+", - "raw": "\"BlackBerry|\\\\bBB10\\\\b|rim[0-9]+\"" + "raw": "\"BlackBerry|\\\\bBB10\\\\b|rim[0-9]+\"", + "loneSurrogates": false } }, { @@ -294,7 +300,8 @@ "end": 277 }, "value": "HTC", - "raw": "\"HTC\"" + "raw": "\"HTC\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -303,7 +310,8 @@ "end": 540 }, "value": "HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\bEVO\\b|T-Mobile G1|Z520m", - "raw": "\"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\\\bEVO\\\\b|T-Mobile G1|Z520m\"" + "raw": "\"HTC|HTC.*(Sensation|Evo|Vision|Explorer|6800|8100|8900|A7272|S510e|C110e|Legend|Desire|T8282)|APX515CKT|Qtek9090|APA9292KT|HD_mini|Sensation.*Z710e|PG86100|Z715e|Desire.*(A8181|HD)|ADR6200|ADR6400L|ADR6425|001HT|Inspire 4G|Android.*\\\\bEVO\\\\b|T-Mobile G1|Z520m\"", + "loneSurrogates": false } }, { @@ -315,7 +323,8 @@ "end": 557 }, "value": "Nexus", - "raw": "\"Nexus\"" + "raw": "\"Nexus\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -324,7 +333,8 @@ "end": 639 }, "value": "Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6", - "raw": "\"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6\"" + "raw": "\"Nexus One|Nexus S|Galaxy.*Nexus|Android.*Nexus.*Mobile|Nexus 4|Nexus 5|Nexus 6\"", + "loneSurrogates": false } }, { @@ -336,7 +346,8 @@ "end": 655 }, "value": "Dell", - "raw": "\"Dell\"" + "raw": "\"Dell\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -345,7 +356,8 @@ "end": 793 }, "value": "Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\b001DL\\b|\\b101DL\\b|\\bGS01\\b", - "raw": "\"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\\\b001DL\\\\b|\\\\b101DL\\\\b|\\\\bGS01\\\\b\"" + "raw": "\"Dell.*Streak|Dell.*Aero|Dell.*Venue|DELL.*Venue Pro|Dell Flash|Dell Smoke|Dell Mini 3iX|XCD28|XCD35|\\\\b001DL\\\\b|\\\\b101DL\\\\b|\\\\bGS01\\\\b\"", + "loneSurrogates": false } }, { @@ -357,7 +369,8 @@ "end": 813 }, "value": "Motorola", - "raw": "\"Motorola\"" + "raw": "\"Motorola\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -366,7 +379,8 @@ "end": 1481 }, "value": "Motorola|DROIDX|DROID BIONIC|\\bDroid\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\bMoto E\\b", - "raw": "\"Motorola|DROIDX|DROID BIONIC|\\\\bDroid\\\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\\\bMoto E\\\\b\"" + "raw": "\"Motorola|DROIDX|DROID BIONIC|\\\\bDroid\\\\b.*Build|Android.*Xoom|HRI39|MOT-|A1260|A1680|A555|A853|A855|A953|A955|A956|Motorola.*ELECTRIFY|Motorola.*i1|i867|i940|MB200|MB300|MB501|MB502|MB508|MB511|MB520|MB525|MB526|MB611|MB612|MB632|MB810|MB855|MB860|MB861|MB865|MB870|ME501|ME502|ME511|ME525|ME600|ME632|ME722|ME811|ME860|ME863|ME865|MT620|MT710|MT716|MT720|MT810|MT870|MT917|Motorola.*TITANIUM|WX435|WX445|XT300|XT301|XT311|XT316|XT317|XT319|XT320|XT390|XT502|XT530|XT531|XT532|XT535|XT603|XT610|XT611|XT615|XT681|XT701|XT702|XT711|XT720|XT800|XT806|XT860|XT862|XT875|XT882|XT883|XT894|XT901|XT907|XT909|XT910|XT912|XT928|XT926|XT915|XT919|XT925|XT1021|\\\\bMoto E\\\\b\"", + "loneSurrogates": false } }, { @@ -378,7 +392,8 @@ "end": 1500 }, "value": "Samsung", - "raw": "\"Samsung\"" + "raw": "\"Samsung\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -387,7 +402,8 @@ "end": 6818 }, "value": "Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F", - "raw": "\"Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F\"" + "raw": "\"Samsung|SM-G9250|GT-19300|SGH-I337|BGT-S5230|GT-B2100|GT-B2700|GT-B2710|GT-B3210|GT-B3310|GT-B3410|GT-B3730|GT-B3740|GT-B5510|GT-B5512|GT-B5722|GT-B6520|GT-B7300|GT-B7320|GT-B7330|GT-B7350|GT-B7510|GT-B7722|GT-B7800|GT-C3010|GT-C3011|GT-C3060|GT-C3200|GT-C3212|GT-C3212I|GT-C3262|GT-C3222|GT-C3300|GT-C3300K|GT-C3303|GT-C3303K|GT-C3310|GT-C3322|GT-C3330|GT-C3350|GT-C3500|GT-C3510|GT-C3530|GT-C3630|GT-C3780|GT-C5010|GT-C5212|GT-C6620|GT-C6625|GT-C6712|GT-E1050|GT-E1070|GT-E1075|GT-E1080|GT-E1081|GT-E1085|GT-E1087|GT-E1100|GT-E1107|GT-E1110|GT-E1120|GT-E1125|GT-E1130|GT-E1160|GT-E1170|GT-E1175|GT-E1180|GT-E1182|GT-E1200|GT-E1210|GT-E1225|GT-E1230|GT-E1390|GT-E2100|GT-E2120|GT-E2121|GT-E2152|GT-E2220|GT-E2222|GT-E2230|GT-E2232|GT-E2250|GT-E2370|GT-E2550|GT-E2652|GT-E3210|GT-E3213|GT-I5500|GT-I5503|GT-I5700|GT-I5800|GT-I5801|GT-I6410|GT-I6420|GT-I7110|GT-I7410|GT-I7500|GT-I8000|GT-I8150|GT-I8160|GT-I8190|GT-I8320|GT-I8330|GT-I8350|GT-I8530|GT-I8700|GT-I8703|GT-I8910|GT-I9000|GT-I9001|GT-I9003|GT-I9010|GT-I9020|GT-I9023|GT-I9070|GT-I9082|GT-I9100|GT-I9103|GT-I9220|GT-I9250|GT-I9300|GT-I9305|GT-I9500|GT-I9505|GT-M3510|GT-M5650|GT-M7500|GT-M7600|GT-M7603|GT-M8800|GT-M8910|GT-N7000|GT-S3110|GT-S3310|GT-S3350|GT-S3353|GT-S3370|GT-S3650|GT-S3653|GT-S3770|GT-S3850|GT-S5210|GT-S5220|GT-S5229|GT-S5230|GT-S5233|GT-S5250|GT-S5253|GT-S5260|GT-S5263|GT-S5270|GT-S5300|GT-S5330|GT-S5350|GT-S5360|GT-S5363|GT-S5369|GT-S5380|GT-S5380D|GT-S5560|GT-S5570|GT-S5600|GT-S5603|GT-S5610|GT-S5620|GT-S5660|GT-S5670|GT-S5690|GT-S5750|GT-S5780|GT-S5830|GT-S5839|GT-S6102|GT-S6500|GT-S7070|GT-S7200|GT-S7220|GT-S7230|GT-S7233|GT-S7250|GT-S7500|GT-S7530|GT-S7550|GT-S7562|GT-S7710|GT-S8000|GT-S8003|GT-S8500|GT-S8530|GT-S8600|SCH-A310|SCH-A530|SCH-A570|SCH-A610|SCH-A630|SCH-A650|SCH-A790|SCH-A795|SCH-A850|SCH-A870|SCH-A890|SCH-A930|SCH-A950|SCH-A970|SCH-A990|SCH-I100|SCH-I110|SCH-I400|SCH-I405|SCH-I500|SCH-I510|SCH-I515|SCH-I600|SCH-I730|SCH-I760|SCH-I770|SCH-I830|SCH-I910|SCH-I920|SCH-I959|SCH-LC11|SCH-N150|SCH-N300|SCH-R100|SCH-R300|SCH-R351|SCH-R400|SCH-R410|SCH-T300|SCH-U310|SCH-U320|SCH-U350|SCH-U360|SCH-U365|SCH-U370|SCH-U380|SCH-U410|SCH-U430|SCH-U450|SCH-U460|SCH-U470|SCH-U490|SCH-U540|SCH-U550|SCH-U620|SCH-U640|SCH-U650|SCH-U660|SCH-U700|SCH-U740|SCH-U750|SCH-U810|SCH-U820|SCH-U900|SCH-U940|SCH-U960|SCS-26UC|SGH-A107|SGH-A117|SGH-A127|SGH-A137|SGH-A157|SGH-A167|SGH-A177|SGH-A187|SGH-A197|SGH-A227|SGH-A237|SGH-A257|SGH-A437|SGH-A517|SGH-A597|SGH-A637|SGH-A657|SGH-A667|SGH-A687|SGH-A697|SGH-A707|SGH-A717|SGH-A727|SGH-A737|SGH-A747|SGH-A767|SGH-A777|SGH-A797|SGH-A817|SGH-A827|SGH-A837|SGH-A847|SGH-A867|SGH-A877|SGH-A887|SGH-A897|SGH-A927|SGH-B100|SGH-B130|SGH-B200|SGH-B220|SGH-C100|SGH-C110|SGH-C120|SGH-C130|SGH-C140|SGH-C160|SGH-C170|SGH-C180|SGH-C200|SGH-C207|SGH-C210|SGH-C225|SGH-C230|SGH-C417|SGH-C450|SGH-D307|SGH-D347|SGH-D357|SGH-D407|SGH-D415|SGH-D780|SGH-D807|SGH-D980|SGH-E105|SGH-E200|SGH-E315|SGH-E316|SGH-E317|SGH-E335|SGH-E590|SGH-E635|SGH-E715|SGH-E890|SGH-F300|SGH-F480|SGH-I200|SGH-I300|SGH-I320|SGH-I550|SGH-I577|SGH-I600|SGH-I607|SGH-I617|SGH-I627|SGH-I637|SGH-I677|SGH-I700|SGH-I717|SGH-I727|SGH-i747M|SGH-I777|SGH-I780|SGH-I827|SGH-I847|SGH-I857|SGH-I896|SGH-I897|SGH-I900|SGH-I907|SGH-I917|SGH-I927|SGH-I937|SGH-I997|SGH-J150|SGH-J200|SGH-L170|SGH-L700|SGH-M110|SGH-M150|SGH-M200|SGH-N105|SGH-N500|SGH-N600|SGH-N620|SGH-N625|SGH-N700|SGH-N710|SGH-P107|SGH-P207|SGH-P300|SGH-P310|SGH-P520|SGH-P735|SGH-P777|SGH-Q105|SGH-R210|SGH-R220|SGH-R225|SGH-S105|SGH-S307|SGH-T109|SGH-T119|SGH-T139|SGH-T209|SGH-T219|SGH-T229|SGH-T239|SGH-T249|SGH-T259|SGH-T309|SGH-T319|SGH-T329|SGH-T339|SGH-T349|SGH-T359|SGH-T369|SGH-T379|SGH-T409|SGH-T429|SGH-T439|SGH-T459|SGH-T469|SGH-T479|SGH-T499|SGH-T509|SGH-T519|SGH-T539|SGH-T559|SGH-T589|SGH-T609|SGH-T619|SGH-T629|SGH-T639|SGH-T659|SGH-T669|SGH-T679|SGH-T709|SGH-T719|SGH-T729|SGH-T739|SGH-T746|SGH-T749|SGH-T759|SGH-T769|SGH-T809|SGH-T819|SGH-T839|SGH-T919|SGH-T929|SGH-T939|SGH-T959|SGH-T989|SGH-U100|SGH-U200|SGH-U800|SGH-V205|SGH-V206|SGH-X100|SGH-X105|SGH-X120|SGH-X140|SGH-X426|SGH-X427|SGH-X475|SGH-X495|SGH-X497|SGH-X507|SGH-X600|SGH-X610|SGH-X620|SGH-X630|SGH-X700|SGH-X820|SGH-X890|SGH-Z130|SGH-Z150|SGH-Z170|SGH-ZX10|SGH-ZX20|SHW-M110|SPH-A120|SPH-A400|SPH-A420|SPH-A460|SPH-A500|SPH-A560|SPH-A600|SPH-A620|SPH-A660|SPH-A700|SPH-A740|SPH-A760|SPH-A790|SPH-A800|SPH-A820|SPH-A840|SPH-A880|SPH-A900|SPH-A940|SPH-A960|SPH-D600|SPH-D700|SPH-D710|SPH-D720|SPH-I300|SPH-I325|SPH-I330|SPH-I350|SPH-I500|SPH-I600|SPH-I700|SPH-L700|SPH-M100|SPH-M220|SPH-M240|SPH-M300|SPH-M305|SPH-M320|SPH-M330|SPH-M350|SPH-M360|SPH-M370|SPH-M380|SPH-M510|SPH-M540|SPH-M550|SPH-M560|SPH-M570|SPH-M580|SPH-M610|SPH-M620|SPH-M630|SPH-M800|SPH-M810|SPH-M850|SPH-M900|SPH-M910|SPH-M920|SPH-M930|SPH-N100|SPH-N200|SPH-N240|SPH-N300|SPH-N400|SPH-Z400|SWC-E100|SCH-i909|GT-N7100|GT-N7105|SCH-I535|SM-N900A|SGH-I317|SGH-T999L|GT-S5360B|GT-I8262|GT-S6802|GT-S6312|GT-S6310|GT-S5312|GT-S5310|GT-I9105|GT-I8510|GT-S6790N|SM-G7105|SM-N9005|GT-S5301|GT-I9295|GT-I9195|SM-C101|GT-S7392|GT-S7560|GT-B7610|GT-I5510|GT-S7582|GT-S7530E|GT-I8750|SM-G9006V|SM-G9008V|SM-G9009D|SM-G900A|SM-G900D|SM-G900F|SM-G900H|SM-G900I|SM-G900J|SM-G900K|SM-G900L|SM-G900M|SM-G900P|SM-G900R4|SM-G900S|SM-G900T|SM-G900V|SM-G900W8|SHV-E160K|SCH-P709|SCH-P729|SM-T2558|GT-I9205|SM-G9350|SM-J120F\"", + "loneSurrogates": false } }, { @@ -399,7 +415,8 @@ "end": 6832 }, "value": "LG", - "raw": "\"LG\"" + "raw": "\"LG\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -408,7 +425,8 @@ "end": 7360 }, "value": "\\bLG\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)", - "raw": "\"\\\\bLG\\\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)\"" + "raw": "\"\\\\bLG\\\\b;|LG[- ]?(C800|C900|E400|E610|E900|E-900|F160|F180K|F180L|F180S|730|855|L160|LS740|LS840|LS970|LU6200|MS690|MS695|MS770|MS840|MS870|MS910|P500|P700|P705|VM696|AS680|AS695|AX840|C729|E970|GS505|272|C395|E739BK|E960|L55C|L75C|LS696|LS860|P769BK|P350|P500|P509|P870|UN272|US730|VS840|VS950|LN272|LN510|LS670|LS855|LW690|MN270|MN510|P509|P769|P930|UN200|UN270|UN510|UN610|US670|US740|US760|UX265|UX840|VN271|VN530|VS660|VS700|VS740|VS750|VS910|VS920|VS930|VX9200|VX11000|AX840A|LW770|P506|P925|P999|E612|D955|D802|MS323)\"", + "loneSurrogates": false } }, { @@ -420,7 +438,8 @@ "end": 7376 }, "value": "Sony", - "raw": "\"Sony\"" + "raw": "\"Sony\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -429,7 +448,8 @@ "end": 7502 }, "value": "SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533", - "raw": "\"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533\"" + "raw": "\"SonyST|SonyLT|SonyEricsson|SonyEricssonLT15iv|LT18i|E10i|LT28h|LT26w|SonyEricssonMT27i|C5303|C6902|C6903|C6906|C6943|D2533\"", + "loneSurrogates": false } }, { @@ -441,7 +461,8 @@ "end": 7518 }, "value": "Asus", - "raw": "\"Asus\"" + "raw": "\"Asus\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -450,7 +471,8 @@ "end": 7550 }, "value": "Asus.*Galaxy|PadFone.*Mobile", - "raw": "\"Asus.*Galaxy|PadFone.*Mobile\"" + "raw": "\"Asus.*Galaxy|PadFone.*Mobile\"", + "loneSurrogates": false } }, { @@ -462,7 +484,8 @@ "end": 7572 }, "value": "NokiaLumia", - "raw": "\"NokiaLumia\"" + "raw": "\"NokiaLumia\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -471,7 +494,8 @@ "end": 7592 }, "value": "Lumia [0-9]{3,4}", - "raw": "\"Lumia [0-9]{3,4}\"" + "raw": "\"Lumia [0-9]{3,4}\"", + "loneSurrogates": false } }, { @@ -483,7 +507,8 @@ "end": 7612 }, "value": "Micromax", - "raw": "\"Micromax\"" + "raw": "\"Micromax\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -492,7 +517,8 @@ "end": 7725 }, "value": "Micromax.*\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\b", - "raw": "\"Micromax.*\\\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\\\b\"" + "raw": "\"Micromax.*\\\\b(A210|A92|A88|A72|A111|A110Q|A115|A116|A110|A90S|A26|A51|A35|A54|A25|A27|A89|A68|A65|A57|A90)\\\\b\"", + "loneSurrogates": false } }, { @@ -504,7 +530,8 @@ "end": 7741 }, "value": "Palm", - "raw": "\"Palm\"" + "raw": "\"Palm\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -513,7 +540,8 @@ "end": 7760 }, "value": "PalmSource|Palm", - "raw": "\"PalmSource|Palm\"" + "raw": "\"PalmSource|Palm\"", + "loneSurrogates": false } }, { @@ -525,7 +553,8 @@ "end": 7777 }, "value": "Vertu", - "raw": "\"Vertu\"" + "raw": "\"Vertu\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -534,7 +563,8 @@ "end": 7886 }, "value": "Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature", - "raw": "\"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature\"" + "raw": "\"Vertu|Vertu.*Ltd|Vertu.*Ascent|Vertu.*Ayxta|Vertu.*Constellation(F|Quest)?|Vertu.*Monika|Vertu.*Signature\"", + "loneSurrogates": false } }, { @@ -546,7 +576,8 @@ "end": 7905 }, "value": "Pantech", - "raw": "\"Pantech\"" + "raw": "\"Pantech\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -555,7 +586,8 @@ "end": 8331 }, "value": "PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790", - "raw": "\"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790\"" + "raw": "\"PANTECH|IM-A850S|IM-A840S|IM-A830L|IM-A830K|IM-A830S|IM-A820L|IM-A810K|IM-A810S|IM-A800S|IM-T100K|IM-A725L|IM-A780L|IM-A775C|IM-A770K|IM-A760S|IM-A750K|IM-A740S|IM-A730S|IM-A720L|IM-A710K|IM-A690L|IM-A690S|IM-A650S|IM-A630K|IM-A600S|VEGA PTL21|PT003|P8010|ADR910L|P6030|P6020|P9070|P4100|P9060|P5000|CDM8992|TXT8045|ADR8995|IS11PT|P2030|P6010|P8000|PT002|IS06|CDM8999|P9050|PT001|TXT8040|P2020|P9020|P2000|P7040|P7000|C790\"", + "loneSurrogates": false } }, { @@ -567,7 +599,8 @@ "end": 8346 }, "value": "Fly", - "raw": "\"Fly\"" + "raw": "\"Fly\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -576,7 +609,8 @@ "end": 8463 }, "value": "IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250", - "raw": "\"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250\"" + "raw": "\"IQ230|IQ444|IQ450|IQ440|IQ442|IQ441|IQ245|IQ256|IQ236|IQ255|IQ235|IQ245|IQ275|IQ240|IQ285|IQ280|IQ270|IQ260|IQ250\"", + "loneSurrogates": false } }, { @@ -588,7 +622,8 @@ "end": 8479 }, "value": "Wiko", - "raw": "\"Wiko\"" + "raw": "\"Wiko\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -597,7 +632,8 @@ "end": 8717 }, "value": "KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM", - "raw": "\"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM\"" + "raw": "\"KITE 4G|HIGHWAY|GETAWAY|STAIRWAY|DARKSIDE|DARKFULL|DARKNIGHT|DARKMOON|SLIDE|WAX 4G|RAINBOW|BLOOM|SUNSET|GOA(?!nna)|LENNY|BARRY|IGGY|OZZY|CINK FIVE|CINK PEAX|CINK PEAX 2|CINK SLIM|CINK SLIM 2|CINK +|CINK KING|CINK PEAX|CINK SLIM|SUBLIM\"", + "loneSurrogates": false } }, { @@ -609,7 +645,8 @@ "end": 8736 }, "value": "iMobile", - "raw": "\"iMobile\"" + "raw": "\"iMobile\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -618,7 +655,8 @@ "end": 8775 }, "value": "i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)", - "raw": "\"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)\"" + "raw": "\"i-mobile (IQ|i-STYLE|idea|ZAA|Hitz)\"", + "loneSurrogates": false } }, { @@ -630,7 +668,8 @@ "end": 8796 }, "value": "SimValley", - "raw": "\"SimValley\"" + "raw": "\"SimValley\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -639,7 +678,8 @@ "end": 8915 }, "value": "\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\b", - "raw": "\"\\\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\\\b\"" + "raw": "\"\\\\b(SP-80|XT-930|SX-340|XT-930|SX-310|SP-360|SP60|SPT-800|SP-120|SPT-800|SP-140|SPX-5|SPX-8|SP-100|SPX-8|SPX-12)\\\\b\"", + "loneSurrogates": false } }, { @@ -651,7 +691,8 @@ "end": 8935 }, "value": "Wolfgang", - "raw": "\"Wolfgang\"" + "raw": "\"Wolfgang\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -660,7 +701,8 @@ "end": 9002 }, "value": "AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q", - "raw": "\"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q\"" + "raw": "\"AT-B24D|AT-AS50HD|AT-AS40W|AT-AS55HD|AT-AS45q2|AT-B26D|AT-AS50Q\"", + "loneSurrogates": false } }, { @@ -672,7 +714,8 @@ "end": 9021 }, "value": "Alcatel", - "raw": "\"Alcatel\"" + "raw": "\"Alcatel\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -681,7 +724,8 @@ "end": 9032 }, "value": "Alcatel", - "raw": "\"Alcatel\"" + "raw": "\"Alcatel\"", + "loneSurrogates": false } }, { @@ -693,7 +737,8 @@ "end": 9052 }, "value": "Nintendo", - "raw": "\"Nintendo\"" + "raw": "\"Nintendo\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -702,7 +747,8 @@ "end": 9068 }, "value": "Nintendo 3DS", - "raw": "\"Nintendo 3DS\"" + "raw": "\"Nintendo 3DS\"", + "loneSurrogates": false } }, { @@ -714,7 +760,8 @@ "end": 9084 }, "value": "Amoi", - "raw": "\"Amoi\"" + "raw": "\"Amoi\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -723,7 +770,8 @@ "end": 9092 }, "value": "Amoi", - "raw": "\"Amoi\"" + "raw": "\"Amoi\"", + "loneSurrogates": false } }, { @@ -735,7 +783,8 @@ "end": 9107 }, "value": "INQ", - "raw": "\"INQ\"" + "raw": "\"INQ\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -744,7 +793,8 @@ "end": 9114 }, "value": "INQ", - "raw": "\"INQ\"" + "raw": "\"INQ\"", + "loneSurrogates": false } }, { @@ -756,7 +806,8 @@ "end": 9138 }, "value": "GenericPhone", - "raw": "\"GenericPhone\"" + "raw": "\"GenericPhone\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -765,7 +816,8 @@ "end": 9324 }, "value": "Tapatalk|PDA;|SAGEM|\\bmmp\\b|pocket|\\bpsp\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\bwap\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser", - "raw": "\"Tapatalk|PDA;|SAGEM|\\\\bmmp\\\\b|pocket|\\\\bpsp\\\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\\\bwap\\\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser\"" + "raw": "\"Tapatalk|PDA;|SAGEM|\\\\bmmp\\\\b|pocket|\\\\bpsp\\\\b|symbian|Smartphone|smartfon|treo|up.browser|up.link|vodafone|\\\\bwap\\\\b|nokia|Series40|Series60|S60|SonyEricsson|N900|MAUI.*WAP.*Browser\"", + "loneSurrogates": false } } ] @@ -780,7 +832,8 @@ "end": 9345 }, "value": "tablets", - "raw": "\"tablets\"" + "raw": "\"tablets\"", + "loneSurrogates": false }, "value": { "type": "ObjectExpression", @@ -798,7 +851,8 @@ "end": 9363 }, "value": "iPad", - "raw": "\"iPad\"" + "raw": "\"iPad\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -807,7 +861,8 @@ "end": 9384 }, "value": "iPad|iPad.*Mobile", - "raw": "\"iPad|iPad.*Mobile\"" + "raw": "\"iPad|iPad.*Mobile\"", + "loneSurrogates": false } }, { @@ -819,7 +874,8 @@ "end": 9407 }, "value": "NexusTablet", - "raw": "\"NexusTablet\"" + "raw": "\"NexusTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -828,7 +884,8 @@ "end": 9439 }, "value": "Android.*Nexus[\\s]+(7|9|10)", - "raw": "\"Android.*Nexus[\\\\s]+(7|9|10)\"" + "raw": "\"Android.*Nexus[\\\\s]+(7|9|10)\"", + "loneSurrogates": false } }, { @@ -840,7 +897,8 @@ "end": 9464 }, "value": "SamsungTablet", - "raw": "\"SamsungTablet\"" + "raw": "\"SamsungTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -849,7 +907,8 @@ "end": 11062 }, "value": "SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561", - "raw": "\"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561\"" + "raw": "\"SAMSUNG.*Tablet|Galaxy.*Tab|SC-01C|GT-P1000|GT-P1003|GT-P1010|GT-P3105|GT-P6210|GT-P6800|GT-P6810|GT-P7100|GT-P7300|GT-P7310|GT-P7500|GT-P7510|SCH-I800|SCH-I815|SCH-I905|SGH-I957|SGH-I987|SGH-T849|SGH-T859|SGH-T869|SPH-P100|GT-P3100|GT-P3108|GT-P3110|GT-P5100|GT-P5110|GT-P6200|GT-P7320|GT-P7511|GT-N8000|GT-P8510|SGH-I497|SPH-P500|SGH-T779|SCH-I705|SCH-I915|GT-N8013|GT-P3113|GT-P5113|GT-P8110|GT-N8010|GT-N8005|GT-N8020|GT-P1013|GT-P6201|GT-P7501|GT-N5100|GT-N5105|GT-N5110|SHV-E140K|SHV-E140L|SHV-E140S|SHV-E150S|SHV-E230K|SHV-E230L|SHV-E230S|SHW-M180K|SHW-M180L|SHW-M180S|SHW-M180W|SHW-M300W|SHW-M305W|SHW-M380K|SHW-M380S|SHW-M380W|SHW-M430W|SHW-M480K|SHW-M480S|SHW-M480W|SHW-M485W|SHW-M486W|SHW-M500W|GT-I9228|SCH-P739|SCH-I925|GT-I9200|GT-P5200|GT-P5210|GT-P5210X|SM-T311|SM-T310|SM-T310X|SM-T210|SM-T210R|SM-T211|SM-P600|SM-P601|SM-P605|SM-P900|SM-P901|SM-T217|SM-T217A|SM-T217S|SM-P6000|SM-T3100|SGH-I467|XE500|SM-T110|GT-P5220|GT-I9200X|GT-N5110X|GT-N5120|SM-P905|SM-T111|SM-T2105|SM-T315|SM-T320|SM-T320X|SM-T321|SM-T520|SM-T525|SM-T530NU|SM-T230NU|SM-T330NU|SM-T900|XE500T1C|SM-P605V|SM-P905V|SM-T337V|SM-T537V|SM-T707V|SM-T807V|SM-P600X|SM-P900X|SM-T210X|SM-T230|SM-T230X|SM-T325|GT-P7503|SM-T531|SM-T330|SM-T530|SM-T705|SM-T705C|SM-T535|SM-T331|SM-T800|SM-T700|SM-T537|SM-T807|SM-P907A|SM-T337A|SM-T537A|SM-T707A|SM-T807A|SM-T237|SM-T807P|SM-P607T|SM-T217T|SM-T337T|SM-T807T|SM-T116NQ|SM-P550|SM-T350|SM-T550|SM-T9000|SM-P9000|SM-T705Y|SM-T805|GT-P3113|SM-T710|SM-T810|SM-T815|SM-T360|SM-T533|SM-T113|SM-T335|SM-T715|SM-T560|SM-T670|SM-T677|SM-T377|SM-T567|SM-T357T|SM-T555|SM-T561\"", + "loneSurrogates": false } }, { @@ -861,7 +920,8 @@ "end": 11080 }, "value": "Kindle", - "raw": "\"Kindle\"" + "raw": "\"Kindle\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -870,7 +930,8 @@ "end": 11223 }, "value": "Kindle|Silk.*Accelerated|Android.*\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI)\\b", - "raw": "\"Kindle|Silk.*Accelerated|Android.*\\\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI)\\\\b\"" + "raw": "\"Kindle|Silk.*Accelerated|Android.*\\\\b(KFOT|KFTT|KFJWI|KFJWA|KFOTE|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|WFJWAE|KFSAWA|KFSAWI|KFASWI|KFARWI)\\\\b\"", + "loneSurrogates": false } }, { @@ -882,7 +943,8 @@ "end": 11248 }, "value": "SurfaceTablet", - "raw": "\"SurfaceTablet\"" + "raw": "\"SurfaceTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -891,7 +953,8 @@ "end": 11293 }, "value": "Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)", - "raw": "\"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)\"" + "raw": "\"Windows NT [0-9.]+; ARM;.*(Tablet|ARMBJS)\"", + "loneSurrogates": false } }, { @@ -903,7 +966,8 @@ "end": 11313 }, "value": "HPTablet", - "raw": "\"HPTablet\"" + "raw": "\"HPTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -912,7 +976,8 @@ "end": 11407 }, "value": "HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10", - "raw": "\"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10\"" + "raw": "\"HP Slate (7|8|10)|HP ElitePad 900|hp-tablet|EliteBook.*Touch|HP 8|Slate 21|HP SlateBook 10\"", + "loneSurrogates": false } }, { @@ -924,7 +989,8 @@ "end": 11429 }, "value": "AsusTablet", - "raw": "\"AsusTablet\"" + "raw": "\"AsusTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -933,7 +999,8 @@ "end": 11817 }, "value": "^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\bK00F\\b|\\bK00C\\b|\\bK00E\\b|\\bK00L\\b|TX201LA|ME176C|ME102A|\\bM80TA\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\bME70C\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA", - "raw": "\"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\\\bK00F\\\\b|\\\\bK00C\\\\b|\\\\bK00E\\\\b|\\\\bK00L\\\\b|TX201LA|ME176C|ME102A|\\\\bM80TA\\\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\\\bME70C\\\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA\"" + "raw": "\"^.*PadFone((?!Mobile).)*$|Transformer|TF101|TF101G|TF300T|TF300TG|TF300TL|TF700T|TF700KL|TF701T|TF810C|ME171|ME301T|ME302C|ME371MG|ME370T|ME372MG|ME172V|ME173X|ME400C|Slider SL101|\\\\bK00F\\\\b|\\\\bK00C\\\\b|\\\\bK00E\\\\b|\\\\bK00L\\\\b|TX201LA|ME176C|ME102A|\\\\bM80TA\\\\b|ME372CL|ME560CG|ME372CG|ME302KL| K010 | K017 |ME572C|ME103K|ME170C|ME171C|\\\\bME70C\\\\b|ME581C|ME581CL|ME8510C|ME181C|P01Y|PO1MA\"", + "loneSurrogates": false } }, { @@ -945,7 +1012,8 @@ "end": 11845 }, "value": "BlackBerryTablet", - "raw": "\"BlackBerryTablet\"" + "raw": "\"BlackBerryTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -954,7 +1022,8 @@ "end": 11868 }, "value": "PlayBook|RIM Tablet", - "raw": "\"PlayBook|RIM Tablet\"" + "raw": "\"PlayBook|RIM Tablet\"", + "loneSurrogates": false } }, { @@ -966,7 +1035,8 @@ "end": 11889 }, "value": "HTCtablet", - "raw": "\"HTCtablet\"" + "raw": "\"HTCtablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -975,7 +1045,8 @@ "end": 11973 }, "value": "HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410", - "raw": "\"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410\"" + "raw": "\"HTC_Flyer_P512|HTC Flyer|HTC Jetstream|HTC-P715a|HTC EVO View 4G|PG41200|PG09410\"", + "loneSurrogates": false } }, { @@ -987,7 +1058,8 @@ "end": 11999 }, "value": "MotorolaTablet", - "raw": "\"MotorolaTablet\"" + "raw": "\"MotorolaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -996,7 +1068,8 @@ "end": 12099 }, "value": "xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617", - "raw": "\"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617\"" + "raw": "\"xoom|sholest|MZ615|MZ605|MZ505|MZ601|MZ602|MZ603|MZ604|MZ606|MZ607|MZ608|MZ609|MZ615|MZ616|MZ617\"", + "loneSurrogates": false } }, { @@ -1008,7 +1081,8 @@ "end": 12121 }, "value": "NookTablet", - "raw": "\"NookTablet\"" + "raw": "\"NookTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1017,7 +1091,8 @@ "end": 12225 }, "value": "Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2", - "raw": "\"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2\"" + "raw": "\"Android.*Nook|NookColor|nook browser|BNRV200|BNRV200A|BNTV250|BNTV250A|BNTV400|BNTV600|LogicPD Zoom2\"", + "loneSurrogates": false } }, { @@ -1029,7 +1104,8 @@ "end": 12247 }, "value": "AcerTablet", - "raw": "\"AcerTablet\"" + "raw": "\"AcerTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1038,7 +1114,8 @@ "end": 12462 }, "value": "Android.*; \\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\b|W3-810|\\bA3-A10\\b|\\bA3-A11\\b|\\bA3-A20", - "raw": "\"Android.*; \\\\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\\\b|W3-810|\\\\bA3-A10\\\\b|\\\\bA3-A11\\\\b|\\\\bA3-A20\"" + "raw": "\"Android.*; \\\\b(A100|A101|A110|A200|A210|A211|A500|A501|A510|A511|A700|A701|W500|W500P|W501|W501P|W510|W511|W700|G100|G100W|B1-A71|B1-710|B1-711|A1-810|A1-811|A1-830)\\\\b|W3-810|\\\\bA3-A10\\\\b|\\\\bA3-A11\\\\b|\\\\bA3-A20\"", + "loneSurrogates": false } }, { @@ -1050,7 +1127,8 @@ "end": 12487 }, "value": "ToshibaTablet", - "raw": "\"ToshibaTablet\"" + "raw": "\"ToshibaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1059,7 +1137,8 @@ "end": 12594 }, "value": "Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO", - "raw": "\"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO\"" + "raw": "\"Android.*(AT100|AT105|AT200|AT205|AT270|AT275|AT300|AT305|AT1S5|AT500|AT570|AT700|AT830)|TOSHIBA.*FOLIO\"", + "loneSurrogates": false } }, { @@ -1071,7 +1150,8 @@ "end": 12614 }, "value": "LGTablet", - "raw": "\"LGTablet\"" + "raw": "\"LGTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1080,7 +1160,8 @@ "end": 12694 }, "value": "\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\b", - "raw": "\"\\\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\\\b\"" + "raw": "\"\\\\bL-06C|LG-V909|LG-V900|LG-V700|LG-V510|LG-V500|LG-V410|LG-V400|LG-VK810\\\\b\"", + "loneSurrogates": false } }, { @@ -1092,7 +1173,8 @@ "end": 12719 }, "value": "FujitsuTablet", - "raw": "\"FujitsuTablet\"" + "raw": "\"FujitsuTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1101,7 +1183,8 @@ "end": 12773 }, "value": "Android.*\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\b", - "raw": "\"Android.*\\\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\\\b\"" + "raw": "\"Android.*\\\\b(F-01D|F-02F|F-05E|F-10D|M532|Q572)\\\\b\"", + "loneSurrogates": false } }, { @@ -1113,7 +1196,8 @@ "end": 12800 }, "value": "PrestigioTablet", - "raw": "\"PrestigioTablet\"" + "raw": "\"PrestigioTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1122,7 +1206,8 @@ "end": 13217 }, "value": "PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002", - "raw": "\"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002\"" + "raw": "\"PMP3170B|PMP3270B|PMP3470B|PMP7170B|PMP3370B|PMP3570C|PMP5870C|PMP3670B|PMP5570C|PMP5770D|PMP3970B|PMP3870C|PMP5580C|PMP5880D|PMP5780D|PMP5588C|PMP7280C|PMP7280C3G|PMP7280|PMP7880D|PMP5597D|PMP5597|PMP7100D|PER3464|PER3274|PER3574|PER3884|PER5274|PER5474|PMP5097CPRO|PMP5097|PMP7380D|PMP5297C|PMP5297C_QUAD|PMP812E|PMP812E3G|PMP812F|PMP810E|PMP880TD|PMT3017|PMT3037|PMT3047|PMT3057|PMT7008|PMT5887|PMT5001|PMT5002\"", + "loneSurrogates": false } }, { @@ -1134,7 +1219,8 @@ "end": 13241 }, "value": "LenovoTablet", - "raw": "\"LenovoTablet\"" + "raw": "\"LenovoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1143,7 +1229,8 @@ "end": 13454 }, "value": "Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)", - "raw": "\"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)\"" + "raw": "\"Lenovo TAB|Idea(Tab|Pad)( A1|A10| K1|)|ThinkPad([ ]+)?Tablet|YT3-X90L|YT3-X90F|YT3-X90X|Lenovo.*(S2109|S2110|S5000|S6000|K3011|A3000|A3500|A1000|A2107|A2109|A1107|A5500|A7600|B6000|B8000|B8080)(-|)(FL|F|HV|H|)\"", + "loneSurrogates": false } }, { @@ -1155,7 +1242,8 @@ "end": 13476 }, "value": "DellTablet", - "raw": "\"DellTablet\"" + "raw": "\"DellTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1164,7 +1252,8 @@ "end": 13533 }, "value": "Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7", - "raw": "\"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7\"" + "raw": "\"Venue 11|Venue 8|Venue 7|Dell Streak 10|Dell Streak 7\"", + "loneSurrogates": false } }, { @@ -1176,7 +1265,8 @@ "end": 13557 }, "value": "YarvikTablet", - "raw": "\"YarvikTablet\"" + "raw": "\"YarvikTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1185,7 +1275,8 @@ "end": 14055 }, "value": "Android.*\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\b", - "raw": "\"Android.*\\\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\\\b\"" + "raw": "\"Android.*\\\\b(TAB210|TAB211|TAB224|TAB250|TAB260|TAB264|TAB310|TAB360|TAB364|TAB410|TAB411|TAB420|TAB424|TAB450|TAB460|TAB461|TAB464|TAB465|TAB467|TAB468|TAB07-100|TAB07-101|TAB07-150|TAB07-151|TAB07-152|TAB07-200|TAB07-201-3G|TAB07-210|TAB07-211|TAB07-212|TAB07-214|TAB07-220|TAB07-400|TAB07-485|TAB08-150|TAB08-200|TAB08-201-3G|TAB08-201-30|TAB09-100|TAB09-211|TAB09-410|TAB10-150|TAB10-201|TAB10-211|TAB10-400|TAB10-410|TAB13-201|TAB274EUK|TAB275EUK|TAB374EUK|TAB462EUK|TAB474EUK|TAB9-200)\\\\b\"", + "loneSurrogates": false } }, { @@ -1197,7 +1288,8 @@ "end": 14079 }, "value": "MedionTablet", - "raw": "\"MedionTablet\"" + "raw": "\"MedionTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1206,7 +1298,8 @@ "end": 14141 }, "value": "Android.*\\bOYO\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB", - "raw": "\"Android.*\\\\bOYO\\\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB\"" + "raw": "\"Android.*\\\\bOYO\\\\b|LIFE.*(P9212|P9514|P9516|S9512)|LIFETAB\"", + "loneSurrogates": false } }, { @@ -1218,7 +1311,8 @@ "end": 14165 }, "value": "ArnovaTablet", - "raw": "\"ArnovaTablet\"" + "raw": "\"ArnovaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1227,7 +1321,8 @@ "end": 14269 }, "value": "AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2", - "raw": "\"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2\"" + "raw": "\"AN10G2|AN7bG3|AN7fG3|AN8G3|AN8cG3|AN7G3|AN9G3|AN7dG3|AN7dG3ST|AN7dG3ChildPad|AN10bG3|AN10bG3DT|AN9G2\"", + "loneSurrogates": false } }, { @@ -1239,7 +1334,8 @@ "end": 14294 }, "value": "IntensoTablet", - "raw": "\"IntensoTablet\"" + "raw": "\"IntensoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1248,7 +1344,8 @@ "end": 14346 }, "value": "INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004", - "raw": "\"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004\"" + "raw": "\"INM8002KP|INM1010FP|INM805ND|Intenso Tab|TAB1004\"", + "loneSurrogates": false } }, { @@ -1260,7 +1357,8 @@ "end": 14367 }, "value": "IRUTablet", - "raw": "\"IRUTablet\"" + "raw": "\"IRUTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1269,7 +1367,8 @@ "end": 14378 }, "value": "M702pro", - "raw": "\"M702pro\"" + "raw": "\"M702pro\"", + "loneSurrogates": false } }, { @@ -1281,7 +1380,8 @@ "end": 14403 }, "value": "MegafonTablet", - "raw": "\"MegafonTablet\"" + "raw": "\"MegafonTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1290,7 +1390,8 @@ "end": 14450 }, "value": "MegaFon V9|\\bZTE V9\\b|Android.*\\bMT7A\\b", - "raw": "\"MegaFon V9|\\\\bZTE V9\\\\b|Android.*\\\\bMT7A\\\\b\"" + "raw": "\"MegaFon V9|\\\\bZTE V9\\\\b|Android.*\\\\bMT7A\\\\b\"", + "loneSurrogates": false } }, { @@ -1302,7 +1403,8 @@ "end": 14473 }, "value": "EbodaTablet", - "raw": "\"EbodaTablet\"" + "raw": "\"EbodaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1311,7 +1413,8 @@ "end": 14524 }, "value": "E-Boda (Supreme|Impresspeed|Izzycomm|Essential)", - "raw": "\"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)\"" + "raw": "\"E-Boda (Supreme|Impresspeed|Izzycomm|Essential)\"", + "loneSurrogates": false } }, { @@ -1323,7 +1426,8 @@ "end": 14549 }, "value": "AllViewTablet", - "raw": "\"AllViewTablet\"" + "raw": "\"AllViewTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1332,7 +1436,8 @@ "end": 14625 }, "value": "Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)", - "raw": "\"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)\"" + "raw": "\"Allview.*(Viva|Alldro|City|Speed|All TV|Frenzy|Quasar|Shine|TX1|AX1|AX2)\"", + "loneSurrogates": false } }, { @@ -1344,7 +1449,8 @@ "end": 14649 }, "value": "ArchosTablet", - "raw": "\"ArchosTablet\"" + "raw": "\"ArchosTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1353,7 +1459,8 @@ "end": 14826 }, "value": "\\b(101G9|80G9|A101IT)\\b|Qilive 97R|Archos5|\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\b", - "raw": "\"\\\\b(101G9|80G9|A101IT)\\\\b|Qilive 97R|Archos5|\\\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\\\b\"" + "raw": "\"\\\\b(101G9|80G9|A101IT)\\\\b|Qilive 97R|Archos5|\\\\bARCHOS (70|79|80|90|97|101|FAMILYPAD|)(b|)(G10| Cobalt| TITANIUM(HD|)| Xenon| Neon|XSK| 2| XS 2| PLATINUM| CARBON|GAMEPAD)\\\\b\"", + "loneSurrogates": false } }, { @@ -1365,7 +1472,8 @@ "end": 14849 }, "value": "AinolTablet", - "raw": "\"AinolTablet\"" + "raw": "\"AinolTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1374,7 +1482,8 @@ "end": 14919 }, "value": "NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark", - "raw": "\"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark\"" + "raw": "\"NOVO7|NOVO8|NOVO10|Novo7Aurora|Novo7Basic|NOVO7PALADIN|novo9-Spark\"", + "loneSurrogates": false } }, { @@ -1386,7 +1495,8 @@ "end": 14947 }, "value": "NokiaLumiaTablet", - "raw": "\"NokiaLumiaTablet\"" + "raw": "\"NokiaLumiaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1395,7 +1505,8 @@ "end": 14961 }, "value": "Lumia 2520", - "raw": "\"Lumia 2520\"" + "raw": "\"Lumia 2520\"", + "loneSurrogates": false } }, { @@ -1407,7 +1518,8 @@ "end": 14983 }, "value": "SonyTablet", - "raw": "\"SonyTablet\"" + "raw": "\"SonyTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1416,7 +1528,8 @@ "end": 15269 }, "value": "Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31", - "raw": "\"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31\"" + "raw": "\"Sony.*Tablet|Xperia Tablet|Sony Tablet S|SO-03E|SGPT12|SGPT13|SGPT114|SGPT121|SGPT122|SGPT123|SGPT111|SGPT112|SGPT113|SGPT131|SGPT132|SGPT133|SGPT211|SGPT212|SGPT213|SGP311|SGP312|SGP321|EBRD1101|EBRD1102|EBRD1201|SGP351|SGP341|SGP511|SGP512|SGP521|SGP541|SGP551|SGP621|SGP612|SOT31\"", + "loneSurrogates": false } }, { @@ -1428,7 +1541,8 @@ "end": 15294 }, "value": "PhilipsTablet", - "raw": "\"PhilipsTablet\"" + "raw": "\"PhilipsTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1437,7 +1551,8 @@ "end": 15382 }, "value": "\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\b", - "raw": "\"\\\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\\\b\"" + "raw": "\"\\\\b(PI2010|PI3000|PI3100|PI3105|PI3110|PI3205|PI3210|PI3900|PI4010|PI7000|PI7100)\\\\b\"", + "loneSurrogates": false } }, { @@ -1449,7 +1564,8 @@ "end": 15404 }, "value": "CubeTablet", - "raw": "\"CubeTablet\"" + "raw": "\"CubeTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1458,7 +1574,8 @@ "end": 15486 }, "value": "Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT", - "raw": "\"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT\"" + "raw": "\"Android.*(K8GT|U9GT|U10GT|U16GT|U17GT|U18GT|U19GT|U20GT|U23GT|U30GT)|CUBE U8GT\"", + "loneSurrogates": false } }, { @@ -1470,7 +1587,8 @@ "end": 15508 }, "value": "CobyTablet", - "raw": "\"CobyTablet\"" + "raw": "\"CobyTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1479,7 +1597,8 @@ "end": 15679 }, "value": "MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010", - "raw": "\"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010\"" + "raw": "\"MID1042|MID1045|MID1125|MID1126|MID7012|MID7014|MID7015|MID7034|MID7035|MID7036|MID7042|MID7048|MID7127|MID8042|MID8048|MID8127|MID9042|MID9740|MID9742|MID7022|MID7010\"", + "loneSurrogates": false } }, { @@ -1491,7 +1610,8 @@ "end": 15700 }, "value": "MIDTablet", - "raw": "\"MIDTablet\"" + "raw": "\"MIDTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1500,7 +1620,8 @@ "end": 15967 }, "value": "M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10", - "raw": "\"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10\"" + "raw": "\"M9701|M9000|M9100|M806|M1052|M806|T703|MID701|MID713|MID710|MID727|MID760|MID830|MID728|MID933|MID125|MID810|MID732|MID120|MID930|MID800|MID731|MID900|MID100|MID820|MID735|MID980|MID130|MID833|MID737|MID960|MID135|MID860|MID736|MID140|MID930|MID835|MID733|MID4X10\"", + "loneSurrogates": false } }, { @@ -1512,7 +1633,8 @@ "end": 15988 }, "value": "MSITablet", - "raw": "\"MSITablet\"" + "raw": "\"MSITablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1521,7 +1643,8 @@ "end": 16131 }, "value": "MSI \\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\b", - "raw": "\"MSI \\\\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\\\b\"" + "raw": "\"MSI \\\\b(Primo 73K|Primo 73L|Primo 81L|Primo 77|Primo 93|Primo 75|Primo 76|Primo 73|Primo 81|Primo 91|Primo 90|Enjoy 71|Enjoy 7|Enjoy 10)\\\\b\"", + "loneSurrogates": false } }, { @@ -1533,7 +1656,8 @@ "end": 16153 }, "value": "SMiTTablet", - "raw": "\"SMiTTablet\"" + "raw": "\"SMiTTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1542,7 +1666,8 @@ "end": 16227 }, "value": "Android.*(\\bMID\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)", - "raw": "\"Android.*(\\\\bMID\\\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)\"" + "raw": "\"Android.*(\\\\bMID\\\\b|MID-560|MTV-T1200|MTV-PND531|MTV-P1101|MTV-PND530)\"", + "loneSurrogates": false } }, { @@ -1554,7 +1679,8 @@ "end": 16253 }, "value": "RockChipTablet", - "raw": "\"RockChipTablet\"" + "raw": "\"RockChipTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1563,7 +1689,8 @@ "end": 16311 }, "value": "Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A", - "raw": "\"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A\"" + "raw": "\"Android.*(RK2818|RK2808A|RK2918|RK3066)|RK2738|RK2808A\"", + "loneSurrogates": false } }, { @@ -1575,7 +1702,8 @@ "end": 16332 }, "value": "FlyTablet", - "raw": "\"FlyTablet\"" + "raw": "\"FlyTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1584,7 +1712,8 @@ "end": 16352 }, "value": "IQ310|Fly Vision", - "raw": "\"IQ310|Fly Vision\"" + "raw": "\"IQ310|Fly Vision\"", + "loneSurrogates": false } }, { @@ -1596,7 +1725,8 @@ "end": 16372 }, "value": "bqTablet", - "raw": "\"bqTablet\"" + "raw": "\"bqTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1605,7 +1735,8 @@ "end": 16531 }, "value": "Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus", - "raw": "\"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus\"" + "raw": "\"Android.*(bq)?.*(Elcano|Curie|Edison|Maxwell|Kepler|Pascal|Tesla|Hypatia|Platon|Newton|Livingstone|Cervantes|Avant|Aquaris E10)|Maxwell.*Lite|Maxwell.*Plus\"", + "loneSurrogates": false } }, { @@ -1617,7 +1748,8 @@ "end": 16555 }, "value": "HuaweiTablet", - "raw": "\"HuaweiTablet\"" + "raw": "\"HuaweiTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1626,7 +1758,8 @@ "end": 16659 }, "value": "MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim", - "raw": "\"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim\"" + "raw": "\"MediaPad|MediaPad 7 Youth|IDEOS S7|S7-201c|S7-202u|S7-101|S7-103|S7-104|S7-105|S7-106|S7-201|S7-Slim\"", + "loneSurrogates": false } }, { @@ -1638,7 +1771,8 @@ "end": 16680 }, "value": "NecTablet", - "raw": "\"NecTablet\"" + "raw": "\"NecTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1647,7 +1781,8 @@ "end": 16701 }, "value": "\\bN-06D|\\bN-08D", - "raw": "\"\\\\bN-06D|\\\\bN-08D\"" + "raw": "\"\\\\bN-06D|\\\\bN-08D\"", + "loneSurrogates": false } }, { @@ -1659,7 +1794,8 @@ "end": 16726 }, "value": "PantechTablet", - "raw": "\"PantechTablet\"" + "raw": "\"PantechTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1668,7 +1804,8 @@ "end": 16744 }, "value": "Pantech.*P4100", - "raw": "\"Pantech.*P4100\"" + "raw": "\"Pantech.*P4100\"", + "loneSurrogates": false } }, { @@ -1680,7 +1817,8 @@ "end": 16769 }, "value": "BronchoTablet", - "raw": "\"BronchoTablet\"" + "raw": "\"BronchoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1689,7 +1827,8 @@ "end": 16803 }, "value": "Broncho.*(N701|N708|N802|a710)", - "raw": "\"Broncho.*(N701|N708|N802|a710)\"" + "raw": "\"Broncho.*(N701|N708|N802|a710)\"", + "loneSurrogates": false } }, { @@ -1701,7 +1840,8 @@ "end": 16827 }, "value": "VersusTablet", - "raw": "\"VersusTablet\"" + "raw": "\"VersusTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1710,7 +1850,8 @@ "end": 16863 }, "value": "TOUCHPAD.*[78910]|\\bTOUCHTAB\\b", - "raw": "\"TOUCHPAD.*[78910]|\\\\bTOUCHTAB\\\\b\"" + "raw": "\"TOUCHPAD.*[78910]|\\\\bTOUCHTAB\\\\b\"", + "loneSurrogates": false } }, { @@ -1722,7 +1863,8 @@ "end": 16885 }, "value": "ZyncTablet", - "raw": "\"ZyncTablet\"" + "raw": "\"ZyncTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1731,7 +1873,8 @@ "end": 16935 }, "value": "z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900", - "raw": "\"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900\"" + "raw": "\"z1000|Z99 2G|z99|z930|z999|z990|z909|Z919|z900\"", + "loneSurrogates": false } }, { @@ -1743,7 +1886,8 @@ "end": 16961 }, "value": "PositivoTablet", - "raw": "\"PositivoTablet\"" + "raw": "\"PositivoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1752,7 +1896,8 @@ "end": 16996 }, "value": "TB07STA|TB10STA|TB07FTA|TB10FTA", - "raw": "\"TB07STA|TB10STA|TB07FTA|TB10FTA\"" + "raw": "\"TB07STA|TB10STA|TB07FTA|TB10FTA\"", + "loneSurrogates": false } }, { @@ -1764,7 +1909,8 @@ "end": 17018 }, "value": "NabiTablet", - "raw": "\"NabiTablet\"" + "raw": "\"NabiTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1773,7 +1919,8 @@ "end": 17038 }, "value": "Android.*\\bNabi", - "raw": "\"Android.*\\\\bNabi\"" + "raw": "\"Android.*\\\\bNabi\"", + "loneSurrogates": false } }, { @@ -1785,7 +1932,8 @@ "end": 17060 }, "value": "KoboTablet", - "raw": "\"KoboTablet\"" + "raw": "\"KoboTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1794,7 +1942,8 @@ "end": 17117 }, "value": "Kobo Touch|\\bK080\\b|\\bVox\\b Build|\\bArc\\b Build", - "raw": "\"Kobo Touch|\\\\bK080\\\\b|\\\\bVox\\\\b Build|\\\\bArc\\\\b Build\"" + "raw": "\"Kobo Touch|\\\\bK080\\\\b|\\\\bVox\\\\b Build|\\\\bArc\\\\b Build\"", + "loneSurrogates": false } }, { @@ -1806,7 +1955,8 @@ "end": 17140 }, "value": "DanewTablet", - "raw": "\"DanewTablet\"" + "raw": "\"DanewTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1815,7 +1965,8 @@ "end": 17215 }, "value": "DSlide.*\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\b", - "raw": "\"DSlide.*\\\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\\\b\"" + "raw": "\"DSlide.*\\\\b(700|701R|702|703R|704|802|970|971|972|973|974|1010|1012)\\\\b\"", + "loneSurrogates": false } }, { @@ -1827,7 +1978,8 @@ "end": 17238 }, "value": "TexetTablet", - "raw": "\"TexetTablet\"" + "raw": "\"TexetTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1836,7 +1988,8 @@ "end": 17857 }, "value": "NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE", - "raw": "\"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE\"" + "raw": "\"NaviPad|TB-772A|TM-7045|TM-7055|TM-9750|TM-7016|TM-7024|TM-7026|TM-7041|TM-7043|TM-7047|TM-8041|TM-9741|TM-9747|TM-9748|TM-9751|TM-7022|TM-7021|TM-7020|TM-7011|TM-7010|TM-7023|TM-7025|TM-7037W|TM-7038W|TM-7027W|TM-9720|TM-9725|TM-9737W|TM-1020|TM-9738W|TM-9740|TM-9743W|TB-807A|TB-771A|TB-727A|TB-725A|TB-719A|TB-823A|TB-805A|TB-723A|TB-715A|TB-707A|TB-705A|TB-709A|TB-711A|TB-890HD|TB-880HD|TB-790HD|TB-780HD|TB-770HD|TB-721HD|TB-710HD|TB-434HD|TB-860HD|TB-840HD|TB-760HD|TB-750HD|TB-740HD|TB-730HD|TB-722HD|TB-720HD|TB-700HD|TB-500HD|TB-470HD|TB-431HD|TB-430HD|TB-506|TB-504|TB-446|TB-436|TB-416|TB-146SE|TB-126SE\"", + "loneSurrogates": false } }, { @@ -1848,7 +2001,8 @@ "end": 17886 }, "value": "PlaystationTablet", - "raw": "\"PlaystationTablet\"" + "raw": "\"PlaystationTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1857,7 +2011,8 @@ "end": 17918 }, "value": "Playstation.*(Portable|Vita)", - "raw": "\"Playstation.*(Portable|Vita)\"" + "raw": "\"Playstation.*(Portable|Vita)\"", + "loneSurrogates": false } }, { @@ -1869,7 +2024,8 @@ "end": 17944 }, "value": "TrekstorTablet", - "raw": "\"TrekstorTablet\"" + "raw": "\"TrekstorTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1878,7 +2034,8 @@ "end": 18052 }, "value": "ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab", - "raw": "\"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab\"" + "raw": "\"ST10416-1|VT10416-1|ST70408-1|ST702xx-1|ST702xx-2|ST80208|ST97216|ST70104-2|VT10416-2|ST10216-2A|SurfTab\"", + "loneSurrogates": false } }, { @@ -1890,7 +2047,8 @@ "end": 18079 }, "value": "PyleAudioTablet", - "raw": "\"PyleAudioTablet\"" + "raw": "\"PyleAudioTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1899,7 +2057,8 @@ "end": 18189 }, "value": "\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\b", - "raw": "\"\\\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\\\b\"" + "raw": "\"\\\\b(PTBL10CEU|PTBL10C|PTBL72BC|PTBL72BCEU|PTBL7CEU|PTBL7C|PTBL92BC|PTBL92BCEU|PTBL9CEU|PTBL9CUK|PTBL9C)\\\\b\"", + "loneSurrogates": false } }, { @@ -1911,7 +2070,8 @@ "end": 18212 }, "value": "AdvanTablet", - "raw": "\"AdvanTablet\"" + "raw": "\"AdvanTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1920,7 +2080,8 @@ "end": 18342 }, "value": "Android.* \\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\b ", - "raw": "\"Android.* \\\\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\\\b \"" + "raw": "\"Android.* \\\\b(E3A|T3X|T5C|T5B|T3E|T3C|T3B|T1J|T1F|T2A|T1H|T1i|E1C|T1-E|T5-A|T4|E1-B|T2Ci|T1-B|T1-D|O1-A|E1-A|T1-A|T3A|T4i)\\\\b \"", + "loneSurrogates": false } }, { @@ -1932,7 +2093,8 @@ "end": 18368 }, "value": "DanyTechTablet", - "raw": "\"DanyTechTablet\"" + "raw": "\"DanyTechTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1941,7 +2103,8 @@ "end": 18502 }, "value": "Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1", - "raw": "\"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1\"" + "raw": "\"Genius Tab G3|Genius Tab S2|Genius Tab Q3|Genius Tab G4|Genius Tab Q4|Genius Tab G-II|Genius TAB GII|Genius TAB GIII|Genius Tab S1\"", + "loneSurrogates": false } }, { @@ -1953,7 +2116,8 @@ "end": 18527 }, "value": "GalapadTablet", - "raw": "\"GalapadTablet\"" + "raw": "\"GalapadTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1962,7 +2126,8 @@ "end": 18548 }, "value": "Android.*\\bG1\\b", - "raw": "\"Android.*\\\\bG1\\\\b\"" + "raw": "\"Android.*\\\\bG1\\\\b\"", + "loneSurrogates": false } }, { @@ -1974,7 +2139,8 @@ "end": 18574 }, "value": "MicromaxTablet", - "raw": "\"MicromaxTablet\"" + "raw": "\"MicromaxTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1983,7 +2149,8 @@ "end": 18648 }, "value": "Funbook|Micromax.*\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\b", - "raw": "\"Funbook|Micromax.*\\\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\\\b\"" + "raw": "\"Funbook|Micromax.*\\\\b(P250|P560|P360|P362|P600|P300|P350|P500|P275)\\\\b\"", + "loneSurrogates": false } }, { @@ -1995,7 +2162,8 @@ "end": 18673 }, "value": "KarbonnTablet", - "raw": "\"KarbonnTablet\"" + "raw": "\"KarbonnTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2004,7 +2172,8 @@ "end": 18740 }, "value": "Android.*\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\b", - "raw": "\"Android.*\\\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\\\b\"" + "raw": "\"Android.*\\\\b(A39|A37|A34|ST8|ST10|ST7|Smart Tab3|Smart Tab2)\\\\b\"", + "loneSurrogates": false } }, { @@ -2016,7 +2185,8 @@ "end": 18765 }, "value": "AllFineTablet", - "raw": "\"AllFineTablet\"" + "raw": "\"AllFineTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2025,7 +2195,8 @@ "end": 18849 }, "value": "Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide", - "raw": "\"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide\"" + "raw": "\"Fine7 Genius|Fine7 Shine|Fine7 Air|Fine8 Style|Fine9 More|Fine10 Joy|Fine11 Wide\"", + "loneSurrogates": false } }, { @@ -2037,7 +2208,8 @@ "end": 18874 }, "value": "PROSCANTablet", - "raw": "\"PROSCANTablet\"" + "raw": "\"PROSCANTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2046,7 +2218,8 @@ "end": 19255 }, "value": "\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\b", - "raw": "\"\\\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\\\b\"" + "raw": "\"\\\\b(PEM63|PLT1023G|PLT1041|PLT1044|PLT1044G|PLT1091|PLT4311|PLT4311PL|PLT4315|PLT7030|PLT7033|PLT7033D|PLT7035|PLT7035D|PLT7044K|PLT7045K|PLT7045KB|PLT7071KG|PLT7072|PLT7223G|PLT7225G|PLT7777G|PLT7810K|PLT7849G|PLT7851G|PLT7852G|PLT8015|PLT8031|PLT8034|PLT8036|PLT8080K|PLT8082|PLT8088|PLT8223G|PLT8234G|PLT8235G|PLT8816K|PLT9011|PLT9045K|PLT9233G|PLT9735|PLT9760G|PLT9770G)\\\\b\"", + "loneSurrogates": false } }, { @@ -2058,7 +2231,8 @@ "end": 19278 }, "value": "YONESTablet", - "raw": "\"YONESTablet\"" + "raw": "\"YONESTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2067,7 +2241,8 @@ "end": 19384 }, "value": "BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026", - "raw": "\"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026\"" + "raw": "\"BQ1078|BC1003|BC1077|RK9702|BC9730|BC9001|IT9001|BC7008|BC7010|BC708|BC728|BC7012|BC7030|BC7027|BC7026\"", + "loneSurrogates": false } }, { @@ -2079,7 +2254,8 @@ "end": 19410 }, "value": "ChangJiaTablet", - "raw": "\"ChangJiaTablet\"" + "raw": "\"ChangJiaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2088,7 +2264,8 @@ "end": 19742 }, "value": "TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503", - "raw": "\"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503\"" + "raw": "\"TPC7102|TPC7103|TPC7105|TPC7106|TPC7107|TPC7201|TPC7203|TPC7205|TPC7210|TPC7708|TPC7709|TPC7712|TPC7110|TPC8101|TPC8103|TPC8105|TPC8106|TPC8203|TPC8205|TPC8503|TPC9106|TPC9701|TPC97101|TPC97103|TPC97105|TPC97106|TPC97111|TPC97113|TPC97203|TPC97603|TPC97809|TPC97205|TPC10101|TPC10103|TPC10106|TPC10111|TPC10203|TPC10205|TPC10503\"", + "loneSurrogates": false } }, { @@ -2100,7 +2277,8 @@ "end": 19762 }, "value": "GUTablet", - "raw": "\"GUTablet\"" + "raw": "\"GUTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2109,7 +2287,8 @@ "end": 19794 }, "value": "TX-A1301|TX-M9002|Q702|kf026", - "raw": "\"TX-A1301|TX-M9002|Q702|kf026\"" + "raw": "\"TX-A1301|TX-M9002|Q702|kf026\"", + "loneSurrogates": false } }, { @@ -2121,7 +2300,8 @@ "end": 19823 }, "value": "PointOfViewTablet", - "raw": "\"PointOfViewTablet\"" + "raw": "\"PointOfViewTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2130,7 +2310,8 @@ "end": 20155 }, "value": "TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10", - "raw": "\"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10\"" + "raw": "\"TAB-P506|TAB-navi-7-3G-M|TAB-P517|TAB-P-527|TAB-P701|TAB-P703|TAB-P721|TAB-P731N|TAB-P741|TAB-P825|TAB-P905|TAB-P925|TAB-PR945|TAB-PL1015|TAB-P1025|TAB-PI1045|TAB-P1325|TAB-PROTAB[0-9]+|TAB-PROTAB25|TAB-PROTAB26|TAB-PROTAB27|TAB-PROTAB26XL|TAB-PROTAB2-IPS9|TAB-PROTAB30-IPS9|TAB-PROTAB25XXL|TAB-PROTAB26-IPS10|TAB-PROTAB30-IPS10\"", + "loneSurrogates": false } }, { @@ -2142,7 +2323,8 @@ "end": 20180 }, "value": "OvermaxTablet", - "raw": "\"OvermaxTablet\"" + "raw": "\"OvermaxTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2151,7 +2333,8 @@ "end": 20308 }, "value": "OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)", - "raw": "\"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)\"" + "raw": "\"OV-(SteelCore|NewBase|Basecore|Baseone|Exellen|Quattor|EduTab|Solution|ACTION|BasicTab|TeddyTab|MagicTab|Stream|TB-08|TB-09)\"", + "loneSurrogates": false } }, { @@ -2163,7 +2346,8 @@ "end": 20329 }, "value": "HCLTablet", - "raw": "\"HCLTablet\"" + "raw": "\"HCLTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2172,7 +2356,8 @@ "end": 20454 }, "value": "HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync", - "raw": "\"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync\"" + "raw": "\"HCL.*Tablet|Connect-3G-2.0|Connect-2G-2.0|ME Tablet U1|ME Tablet U2|ME Tablet G1|ME Tablet X1|ME Tablet Y2|ME Tablet Sync\"", + "loneSurrogates": false } }, { @@ -2184,7 +2369,8 @@ "end": 20475 }, "value": "DPSTablet", - "raw": "\"DPSTablet\"" + "raw": "\"DPSTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2193,7 +2379,8 @@ "end": 20501 }, "value": "DPS Dream 9|DPS Dual 7", - "raw": "\"DPS Dream 9|DPS Dual 7\"" + "raw": "\"DPS Dream 9|DPS Dual 7\"", + "loneSurrogates": false } }, { @@ -2205,7 +2392,8 @@ "end": 20526 }, "value": "VistureTablet", - "raw": "\"VistureTablet\"" + "raw": "\"VistureTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2214,7 +2402,8 @@ "end": 20589 }, "value": "V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10", - "raw": "\"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10\"" + "raw": "\"V97 HD|i75 3G|Visture V4( HD)?|Visture V5( HD)?|Visture V10\"", + "loneSurrogates": false } }, { @@ -2226,7 +2415,8 @@ "end": 20613 }, "value": "CrestaTablet", - "raw": "\"CrestaTablet\"" + "raw": "\"CrestaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2235,7 +2425,8 @@ "end": 20726 }, "value": "CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989", - "raw": "\"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989\"" + "raw": "\"CTP(-)?810|CTP(-)?818|CTP(-)?828|CTP(-)?838|CTP(-)?888|CTP(-)?978|CTP(-)?980|CTP(-)?987|CTP(-)?988|CTP(-)?989\"", + "loneSurrogates": false } }, { @@ -2247,7 +2438,8 @@ "end": 20752 }, "value": "MediatekTablet", - "raw": "\"MediatekTablet\"" + "raw": "\"MediatekTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2256,7 +2448,8 @@ "end": 20789 }, "value": "\\bMT8125|MT8389|MT8135|MT8377\\b", - "raw": "\"\\\\bMT8125|MT8389|MT8135|MT8377\\\\b\"" + "raw": "\"\\\\bMT8125|MT8389|MT8135|MT8377\\\\b\"", + "loneSurrogates": false } }, { @@ -2268,7 +2461,8 @@ "end": 20815 }, "value": "ConcordeTablet", - "raw": "\"ConcordeTablet\"" + "raw": "\"ConcordeTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2277,7 +2471,8 @@ "end": 20854 }, "value": "Concorde([ ]+)?Tab|ConCorde ReadMan", - "raw": "\"Concorde([ ]+)?Tab|ConCorde ReadMan\"" + "raw": "\"Concorde([ ]+)?Tab|ConCorde ReadMan\"", + "loneSurrogates": false } }, { @@ -2289,7 +2484,8 @@ "end": 20880 }, "value": "GoCleverTablet", - "raw": "\"GoCleverTablet\"" + "raw": "\"GoCleverTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2298,7 +2494,8 @@ "end": 21337 }, "value": "GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042", - "raw": "\"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042\"" + "raw": "\"GOCLEVER TAB|A7GOCLEVER|M1042|M7841|M742|R1042BK|R1041|TAB A975|TAB A7842|TAB A741|TAB A741L|TAB M723G|TAB M721|TAB A1021|TAB I921|TAB R721|TAB I720|TAB T76|TAB R70|TAB R76.2|TAB R106|TAB R83.2|TAB M813G|TAB I721|GCTA722|TAB I70|TAB I71|TAB S73|TAB R73|TAB R74|TAB R93|TAB R75|TAB R76.1|TAB A73|TAB A93|TAB A93.2|TAB T72|TAB R83|TAB R974|TAB R973|TAB A101|TAB A103|TAB A104|TAB A104.2|R105BK|M713G|A972BK|TAB A971|TAB R974.2|TAB R104|TAB R83.3|TAB A1042\"", + "loneSurrogates": false } }, { @@ -2310,7 +2507,8 @@ "end": 21362 }, "value": "ModecomTablet", - "raw": "\"ModecomTablet\"" + "raw": "\"ModecomTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2319,7 +2517,8 @@ "end": 21637 }, "value": "FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003", - "raw": "\"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003\"" + "raw": "\"FreeTAB 9000|FreeTAB 7.4|FreeTAB 7004|FreeTAB 7800|FreeTAB 2096|FreeTAB 7.5|FreeTAB 1014|FreeTAB 1001 |FreeTAB 8001|FreeTAB 9706|FreeTAB 9702|FreeTAB 7003|FreeTAB 7002|FreeTAB 1002|FreeTAB 7801|FreeTAB 1331|FreeTAB 1004|FreeTAB 8002|FreeTAB 8014|FreeTAB 9704|FreeTAB 1003\"", + "loneSurrogates": false } }, { @@ -2331,7 +2530,8 @@ "end": 21661 }, "value": "VoninoTablet", - "raw": "\"VoninoTablet\"" + "raw": "\"VoninoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2340,7 +2540,8 @@ "end": 21934 }, "value": "\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\bQ8\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\b", - "raw": "\"\\\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\\\bQ8\\\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\\\b\"" + "raw": "\"\\\\b(Argus[ _]?S|Diamond[ _]?79HD|Emerald[ _]?78E|Luna[ _]?70C|Onyx[ _]?S|Onyx[ _]?Z|Orin[ _]?HD|Orin[ _]?S|Otis[ _]?S|SpeedStar[ _]?S|Magnet[ _]?M9|Primus[ _]?94[ _]?3G|Primus[ _]?94HD|Primus[ _]?QS|Android.*\\\\bQ8\\\\b|Sirius[ _]?EVO[ _]?QS|Sirius[ _]?QS|Spirit[ _]?S)\\\\b\"", + "loneSurrogates": false } }, { @@ -2352,7 +2553,8 @@ "end": 21955 }, "value": "ECSTablet", - "raw": "\"ECSTablet\"" + "raw": "\"ECSTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2361,7 +2563,8 @@ "end": 21987 }, "value": "V07OT2|TM105A|S10OT1|TR10CS1", - "raw": "\"V07OT2|TM105A|S10OT1|TR10CS1\"" + "raw": "\"V07OT2|TM105A|S10OT1|TR10CS1\"", + "loneSurrogates": false } }, { @@ -2373,7 +2576,8 @@ "end": 22011 }, "value": "StorexTablet", - "raw": "\"StorexTablet\"" + "raw": "\"StorexTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2382,7 +2586,8 @@ "end": 22062 }, "value": "eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab", - "raw": "\"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab\"" + "raw": "\"eZee[_']?(Tab|Go)[0-9]+|TabLC7|Looney Tunes Tab\"", + "loneSurrogates": false } }, { @@ -2394,7 +2599,8 @@ "end": 22088 }, "value": "VodafoneTablet", - "raw": "\"VodafoneTablet\"" + "raw": "\"VodafoneTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2403,7 +2609,8 @@ "end": 22146 }, "value": "SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497", - "raw": "\"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497\"" + "raw": "\"SmartTab([ ]+)?[0-9]+|SmartTabII10|SmartTabII7|VF-1497\"", + "loneSurrogates": false } }, { @@ -2415,7 +2622,8 @@ "end": 22174 }, "value": "EssentielBTablet", - "raw": "\"EssentielBTablet\"" + "raw": "\"EssentielBTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2424,7 +2632,8 @@ "end": 22218 }, "value": "Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2", - "raw": "\"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2\"" + "raw": "\"Smart[ ']?TAB[ ]+?[0-9]+|Family[ ']?TAB2\"", + "loneSurrogates": false } }, { @@ -2436,7 +2645,8 @@ "end": 22244 }, "value": "RossMoorTablet", - "raw": "\"RossMoorTablet\"" + "raw": "\"RossMoorTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2445,7 +2655,8 @@ "end": 22320 }, "value": "RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711", - "raw": "\"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711\"" + "raw": "\"RM-790|RM-997|RMD-878G|RMD-974R|RMT-705A|RMT-701|RME-601|RMT-501|RMT-711\"", + "loneSurrogates": false } }, { @@ -2457,7 +2668,8 @@ "end": 22345 }, "value": "iMobileTablet", - "raw": "\"iMobileTablet\"" + "raw": "\"iMobileTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2466,7 +2678,8 @@ "end": 22364 }, "value": "i-mobile i-note", - "raw": "\"i-mobile i-note\"" + "raw": "\"i-mobile i-note\"", + "loneSurrogates": false } }, { @@ -2478,7 +2691,8 @@ "end": 22388 }, "value": "TolinoTablet", - "raw": "\"TolinoTablet\"" + "raw": "\"TolinoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2487,7 +2701,8 @@ "end": 22423 }, "value": "tolino tab [0-9.]+|tolino shine", - "raw": "\"tolino tab [0-9.]+|tolino shine\"" + "raw": "\"tolino tab [0-9.]+|tolino shine\"", + "loneSurrogates": false } }, { @@ -2499,7 +2714,8 @@ "end": 22451 }, "value": "AudioSonicTablet", - "raw": "\"AudioSonicTablet\"" + "raw": "\"AudioSonicTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2508,7 +2724,8 @@ "end": 22484 }, "value": "\\bC-22Q|T7-QC|T-17B|T-17P\\b", - "raw": "\"\\\\bC-22Q|T7-QC|T-17B|T-17P\\\\b\"" + "raw": "\"\\\\bC-22Q|T7-QC|T-17B|T-17P\\\\b\"", + "loneSurrogates": false } }, { @@ -2520,7 +2737,8 @@ "end": 22506 }, "value": "AMPETablet", - "raw": "\"AMPETablet\"" + "raw": "\"AMPETablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2529,7 +2747,8 @@ "end": 22524 }, "value": "Android.* A78 ", - "raw": "\"Android.* A78 \"" + "raw": "\"Android.* A78 \"", + "loneSurrogates": false } }, { @@ -2541,7 +2760,8 @@ "end": 22545 }, "value": "SkkTablet", - "raw": "\"SkkTablet\"" + "raw": "\"SkkTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2550,7 +2770,8 @@ "end": 22583 }, "value": "Android.* (SKYPAD|PHOENIX|CYCLOPS)", - "raw": "\"Android.* (SKYPAD|PHOENIX|CYCLOPS)\"" + "raw": "\"Android.* (SKYPAD|PHOENIX|CYCLOPS)\"", + "loneSurrogates": false } }, { @@ -2562,7 +2783,8 @@ "end": 22606 }, "value": "TecnoTablet", - "raw": "\"TecnoTablet\"" + "raw": "\"TecnoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2571,7 +2793,8 @@ "end": 22618 }, "value": "TECNO P9", - "raw": "\"TECNO P9\"" + "raw": "\"TECNO P9\"", + "loneSurrogates": false } }, { @@ -2583,7 +2806,8 @@ "end": 22639 }, "value": "JXDTablet", - "raw": "\"JXDTablet\"" + "raw": "\"JXDTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2592,7 +2816,8 @@ "end": 22872 }, "value": "Android.* \\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\b", - "raw": "\"Android.* \\\\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\\\b\"" + "raw": "\"Android.* \\\\b(F3000|A3300|JXD5000|JXD3000|JXD2000|JXD300B|JXD300|S5800|S7800|S602b|S5110b|S7300|S5300|S602|S603|S5100|S5110|S601|S7100a|P3000F|P3000s|P101|P200s|P1000m|P200m|P9100|P1000s|S6600b|S908|P1000|P300|S18|S6600|S9100)\\\\b\"", + "loneSurrogates": false } }, { @@ -2604,7 +2829,8 @@ "end": 22894 }, "value": "iJoyTablet", - "raw": "\"iJoyTablet\"" + "raw": "\"iJoyTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2613,7 +2839,8 @@ "end": 23399 }, "value": "Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)", - "raw": "\"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)\"" + "raw": "\"Tablet (Spirit 7|Essentia|Galatea|Fusion|Onix 7|Landa|Titan|Scooby|Deox|Stella|Themis|Argon|Unique 7|Sygnus|Hexen|Finity 7|Cream|Cream X2|Jade|Neon 7|Neron 7|Kandy|Scape|Saphyr 7|Rebel|Biox|Rebel|Rebel 8GB|Myst|Draco 7|Myst|Tab7-004|Myst|Tadeo Jones|Tablet Boing|Arrow|Draco Dual Cam|Aurix|Mint|Amity|Revolution|Finity 9|Neon 9|T9w|Amity 4GB Dual Cam|Stone 4GB|Stone 8GB|Andromeda|Silken|X2|Andromeda II|Halley|Flame|Saphyr 9,7|Touch 8|Planet|Triton|Unique 10|Hexen 10|Memphis 4GB|Memphis 8GB|Onix 10)\"", + "loneSurrogates": false } }, { @@ -2625,7 +2852,8 @@ "end": 23420 }, "value": "FX2Tablet", - "raw": "\"FX2Tablet\"" + "raw": "\"FX2Tablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2634,7 +2862,8 @@ "end": 23442 }, "value": "FX2 PAD7|FX2 PAD10", - "raw": "\"FX2 PAD7|FX2 PAD10\"" + "raw": "\"FX2 PAD7|FX2 PAD10\"", + "loneSurrogates": false } }, { @@ -2646,7 +2875,8 @@ "end": 23464 }, "value": "XoroTablet", - "raw": "\"XoroTablet\"" + "raw": "\"XoroTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2655,7 +2885,8 @@ "end": 23811 }, "value": "KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151", - "raw": "\"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151\"" + "raw": "\"KidsPAD 701|PAD[ ]?712|PAD[ ]?714|PAD[ ]?716|PAD[ ]?717|PAD[ ]?718|PAD[ ]?720|PAD[ ]?721|PAD[ ]?722|PAD[ ]?790|PAD[ ]?792|PAD[ ]?900|PAD[ ]?9715D|PAD[ ]?9716DR|PAD[ ]?9718DR|PAD[ ]?9719QR|PAD[ ]?9720QR|TelePAD1030|Telepad1032|TelePAD730|TelePAD731|TelePAD732|TelePAD735Q|TelePAD830|TelePAD9730|TelePAD795|MegaPAD 1331|MegaPAD 1851|MegaPAD 2151\"", + "loneSurrogates": false } }, { @@ -2667,7 +2898,8 @@ "end": 23838 }, "value": "ViewsonicTablet", - "raw": "\"ViewsonicTablet\"" + "raw": "\"ViewsonicTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2676,7 +2908,8 @@ "end": 23946 }, "value": "ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a", - "raw": "\"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a\"" + "raw": "\"ViewPad 10pi|ViewPad 10e|ViewPad 10s|ViewPad E72|ViewPad7|ViewPad E100|ViewPad 7e|ViewSonic VB733|VB100a\"", + "loneSurrogates": false } }, { @@ -2688,7 +2921,8 @@ "end": 23968 }, "value": "OdysTablet", - "raw": "\"OdysTablet\"" + "raw": "\"OdysTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2697,7 +2931,8 @@ "end": 24088 }, "value": "LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\bXELIO\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10", - "raw": "\"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\\\bXELIO\\\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10\"" + "raw": "\"LOOX|XENO10|ODYS[ -](Space|EVO|Xpress|NOON)|\\\\bXELIO\\\\b|Xelio10Pro|XELIO7PHONETAB|XELIO10EXTREME|XELIOPT2|NEO_QUAD10\"", + "loneSurrogates": false } }, { @@ -2709,7 +2944,8 @@ "end": 24113 }, "value": "CaptivaTablet", - "raw": "\"CaptivaTablet\"" + "raw": "\"CaptivaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2718,7 +2954,8 @@ "end": 24128 }, "value": "CAPTIVA PAD", - "raw": "\"CAPTIVA PAD\"" + "raw": "\"CAPTIVA PAD\"", + "loneSurrogates": false } }, { @@ -2730,7 +2967,8 @@ "end": 24153 }, "value": "IconbitTablet", - "raw": "\"IconbitTablet\"" + "raw": "\"IconbitTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2739,7 +2977,8 @@ "end": 24315 }, "value": "NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S", - "raw": "\"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S\"" + "raw": "\"NetTAB|NT-3702|NT-3702S|NT-3702S|NT-3603P|NT-3603P|NT-0704S|NT-0704S|NT-3805C|NT-3805C|NT-0806C|NT-0806C|NT-0909T|NT-0909T|NT-0907S|NT-0907S|NT-0902S|NT-0902S\"", + "loneSurrogates": false } }, { @@ -2751,7 +2990,8 @@ "end": 24340 }, "value": "TeclastTablet", - "raw": "\"TeclastTablet\"" + "raw": "\"TeclastTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2760,7 +3000,8 @@ "end": 25247 }, "value": "T98 4G|\\bP80\\b|\\bX90HD\\b|X98 Air|X98 Air 3G|\\bX89\\b|P80 3G|\\bX80h\\b|P98 Air|\\bX89HD\\b|P98 3G|\\bP90HD\\b|P89 3G|X98 3G|\\bP70h\\b|P79HD 3G|G18d 3G|\\bP79HD\\b|\\bP89s\\b|\\bA88\\b|\\bP10HD\\b|\\bP19HD\\b|G18 3G|\\bP78HD\\b|\\bA78\\b|\\bP75\\b|G17s 3G|G17h 3G|\\bP85t\\b|\\bP90\\b|\\bP11\\b|\\bP98t\\b|\\bP98HD\\b|\\bG18d\\b|\\bP85s\\b|\\bP11HD\\b|\\bP88s\\b|\\bA80HD\\b|\\bA80se\\b|\\bA10h\\b|\\bP89\\b|\\bP78s\\b|\\bG18\\b|\\bP85\\b|\\bA70h\\b|\\bA70\\b|\\bG17\\b|\\bP18\\b|\\bA80s\\b|\\bA11s\\b|\\bP88HD\\b|\\bA80h\\b|\\bP76s\\b|\\bP76h\\b|\\bP98\\b|\\bA10HD\\b|\\bP78\\b|\\bP88\\b|\\bA11\\b|\\bA10t\\b|\\bP76a\\b|\\bP76t\\b|\\bP76e\\b|\\bP85HD\\b|\\bP85a\\b|\\bP86\\b|\\bP75HD\\b|\\bP76v\\b|\\bA12\\b|\\bP75a\\b|\\bA15\\b|\\bP76Ti\\b|\\bP81HD\\b|\\bA10\\b|\\bT760VE\\b|\\bT720HD\\b|\\bP76\\b|\\bP73\\b|\\bP71\\b|\\bP72\\b|\\bT720SE\\b|\\bC520Ti\\b|\\bT760\\b|\\bT720VE\\b|T720-3GE|T720-WiFi", - "raw": "\"T98 4G|\\\\bP80\\\\b|\\\\bX90HD\\\\b|X98 Air|X98 Air 3G|\\\\bX89\\\\b|P80 3G|\\\\bX80h\\\\b|P98 Air|\\\\bX89HD\\\\b|P98 3G|\\\\bP90HD\\\\b|P89 3G|X98 3G|\\\\bP70h\\\\b|P79HD 3G|G18d 3G|\\\\bP79HD\\\\b|\\\\bP89s\\\\b|\\\\bA88\\\\b|\\\\bP10HD\\\\b|\\\\bP19HD\\\\b|G18 3G|\\\\bP78HD\\\\b|\\\\bA78\\\\b|\\\\bP75\\\\b|G17s 3G|G17h 3G|\\\\bP85t\\\\b|\\\\bP90\\\\b|\\\\bP11\\\\b|\\\\bP98t\\\\b|\\\\bP98HD\\\\b|\\\\bG18d\\\\b|\\\\bP85s\\\\b|\\\\bP11HD\\\\b|\\\\bP88s\\\\b|\\\\bA80HD\\\\b|\\\\bA80se\\\\b|\\\\bA10h\\\\b|\\\\bP89\\\\b|\\\\bP78s\\\\b|\\\\bG18\\\\b|\\\\bP85\\\\b|\\\\bA70h\\\\b|\\\\bA70\\\\b|\\\\bG17\\\\b|\\\\bP18\\\\b|\\\\bA80s\\\\b|\\\\bA11s\\\\b|\\\\bP88HD\\\\b|\\\\bA80h\\\\b|\\\\bP76s\\\\b|\\\\bP76h\\\\b|\\\\bP98\\\\b|\\\\bA10HD\\\\b|\\\\bP78\\\\b|\\\\bP88\\\\b|\\\\bA11\\\\b|\\\\bA10t\\\\b|\\\\bP76a\\\\b|\\\\bP76t\\\\b|\\\\bP76e\\\\b|\\\\bP85HD\\\\b|\\\\bP85a\\\\b|\\\\bP86\\\\b|\\\\bP75HD\\\\b|\\\\bP76v\\\\b|\\\\bA12\\\\b|\\\\bP75a\\\\b|\\\\bA15\\\\b|\\\\bP76Ti\\\\b|\\\\bP81HD\\\\b|\\\\bA10\\\\b|\\\\bT760VE\\\\b|\\\\bT720HD\\\\b|\\\\bP76\\\\b|\\\\bP73\\\\b|\\\\bP71\\\\b|\\\\bP72\\\\b|\\\\bT720SE\\\\b|\\\\bC520Ti\\\\b|\\\\bT760\\\\b|\\\\bT720VE\\\\b|T720-3GE|T720-WiFi\"" + "raw": "\"T98 4G|\\\\bP80\\\\b|\\\\bX90HD\\\\b|X98 Air|X98 Air 3G|\\\\bX89\\\\b|P80 3G|\\\\bX80h\\\\b|P98 Air|\\\\bX89HD\\\\b|P98 3G|\\\\bP90HD\\\\b|P89 3G|X98 3G|\\\\bP70h\\\\b|P79HD 3G|G18d 3G|\\\\bP79HD\\\\b|\\\\bP89s\\\\b|\\\\bA88\\\\b|\\\\bP10HD\\\\b|\\\\bP19HD\\\\b|G18 3G|\\\\bP78HD\\\\b|\\\\bA78\\\\b|\\\\bP75\\\\b|G17s 3G|G17h 3G|\\\\bP85t\\\\b|\\\\bP90\\\\b|\\\\bP11\\\\b|\\\\bP98t\\\\b|\\\\bP98HD\\\\b|\\\\bG18d\\\\b|\\\\bP85s\\\\b|\\\\bP11HD\\\\b|\\\\bP88s\\\\b|\\\\bA80HD\\\\b|\\\\bA80se\\\\b|\\\\bA10h\\\\b|\\\\bP89\\\\b|\\\\bP78s\\\\b|\\\\bG18\\\\b|\\\\bP85\\\\b|\\\\bA70h\\\\b|\\\\bA70\\\\b|\\\\bG17\\\\b|\\\\bP18\\\\b|\\\\bA80s\\\\b|\\\\bA11s\\\\b|\\\\bP88HD\\\\b|\\\\bA80h\\\\b|\\\\bP76s\\\\b|\\\\bP76h\\\\b|\\\\bP98\\\\b|\\\\bA10HD\\\\b|\\\\bP78\\\\b|\\\\bP88\\\\b|\\\\bA11\\\\b|\\\\bA10t\\\\b|\\\\bP76a\\\\b|\\\\bP76t\\\\b|\\\\bP76e\\\\b|\\\\bP85HD\\\\b|\\\\bP85a\\\\b|\\\\bP86\\\\b|\\\\bP75HD\\\\b|\\\\bP76v\\\\b|\\\\bA12\\\\b|\\\\bP75a\\\\b|\\\\bA15\\\\b|\\\\bP76Ti\\\\b|\\\\bP81HD\\\\b|\\\\bA10\\\\b|\\\\bT760VE\\\\b|\\\\bT720HD\\\\b|\\\\bP76\\\\b|\\\\bP73\\\\b|\\\\bP71\\\\b|\\\\bP72\\\\b|\\\\bT720SE\\\\b|\\\\bC520Ti\\\\b|\\\\bT760\\\\b|\\\\bT720VE\\\\b|T720-3GE|T720-WiFi\"", + "loneSurrogates": false } }, { @@ -2772,7 +3013,8 @@ "end": 25269 }, "value": "OndaTablet", - "raw": "\"OndaTablet\"" + "raw": "\"OndaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2781,7 +3023,8 @@ "end": 25582 }, "value": "\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\b[\\s]+", - "raw": "\"\\\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\\\b[\\\\s]+\"" + "raw": "\"\\\\b(V975i|Vi30|VX530|V701|Vi60|V701s|Vi50|V801s|V719|Vx610w|VX610W|V819i|Vi10|VX580W|Vi10|V711s|V813|V811|V820w|V820|Vi20|V711|VI30W|V712|V891w|V972|V819w|V820w|Vi60|V820w|V711|V813s|V801|V819|V975s|V801|V819|V819|V818|V811|V712|V975m|V101w|V961w|V812|V818|V971|V971s|V919|V989|V116w|V102w|V973|Vi40)\\\\b[\\\\s]+\"", + "loneSurrogates": false } }, { @@ -2793,7 +3036,8 @@ "end": 25607 }, "value": "JaytechTablet", - "raw": "\"JaytechTablet\"" + "raw": "\"JaytechTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2802,7 +3046,8 @@ "end": 25620 }, "value": "TPC-PA762", - "raw": "\"TPC-PA762\"" + "raw": "\"TPC-PA762\"", + "loneSurrogates": false } }, { @@ -2814,7 +3059,8 @@ "end": 25647 }, "value": "BlaupunktTablet", - "raw": "\"BlaupunktTablet\"" + "raw": "\"BlaupunktTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2823,7 +3069,8 @@ "end": 25681 }, "value": "Endeavour 800NG|Endeavour 1010", - "raw": "\"Endeavour 800NG|Endeavour 1010\"" + "raw": "\"Endeavour 800NG|Endeavour 1010\"", + "loneSurrogates": false } }, { @@ -2835,7 +3082,8 @@ "end": 25704 }, "value": "DigmaTablet", - "raw": "\"DigmaTablet\"" + "raw": "\"DigmaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2844,7 +3092,8 @@ "end": 25805 }, "value": "\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\b", - "raw": "\"\\\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\\\b\"" + "raw": "\"\\\\b(iDx10|iDx9|iDx8|iDx7|iDxD7|iDxD8|iDsQ8|iDsQ7|iDsQ8|iDsD10|iDnD7|3TS804H|iDsQ11|iDj7|iDs10)\\\\b\"", + "loneSurrogates": false } }, { @@ -2856,7 +3105,8 @@ "end": 25829 }, "value": "EvolioTablet", - "raw": "\"EvolioTablet\"" + "raw": "\"EvolioTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2865,7 +3115,8 @@ "end": 25916 }, "value": "ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\bEvotab\\b|\\bNeura\\b", - "raw": "\"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\\\bEvotab\\\\b|\\\\bNeura\\\\b\"" + "raw": "\"ARIA_Mini_wifi|Aria[ _]Mini|Evolio X10|Evolio X7|Evolio X8|\\\\bEvotab\\\\b|\\\\bNeura\\\\b\"", + "loneSurrogates": false } }, { @@ -2877,7 +3128,8 @@ "end": 25938 }, "value": "LavaTablet", - "raw": "\"LavaTablet\"" + "raw": "\"LavaTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2886,7 +3138,8 @@ "end": 25988 }, "value": "QPAD E704|\\bIvoryS\\b|E-TAB IVORY|\\bE-TAB\\b", - "raw": "\"QPAD E704|\\\\bIvoryS\\\\b|E-TAB IVORY|\\\\bE-TAB\\\\b\"" + "raw": "\"QPAD E704|\\\\bIvoryS\\\\b|E-TAB IVORY|\\\\bE-TAB\\\\b\"", + "loneSurrogates": false } }, { @@ -2898,7 +3151,8 @@ "end": 26009 }, "value": "AocTablet", - "raw": "\"AocTablet\"" + "raw": "\"AocTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2907,7 +3161,8 @@ "end": 26076 }, "value": "MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712", - "raw": "\"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712\"" + "raw": "\"MW0811|MW0812|MW0922|MTK8382|MW1031|MW0831|MW0821|MW0931|MW0712\"", + "loneSurrogates": false } }, { @@ -2919,7 +3174,8 @@ "end": 26099 }, "value": "MpmanTablet", - "raw": "\"MpmanTablet\"" + "raw": "\"MpmanTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2928,7 +3184,8 @@ "end": 26369 }, "value": "MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\bMPG7\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010", - "raw": "\"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\\\bMPG7\\\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010\"" + "raw": "\"MP11 OCTA|MP10 OCTA|MPQC1114|MPQC1004|MPQC994|MPQC974|MPQC973|MPQC804|MPQC784|MPQC780|\\\\bMPG7\\\\b|MPDCG75|MPDCG71|MPDC1006|MP101DC|MPDC9000|MPDC905|MPDC706HD|MPDC706|MPDC705|MPDC110|MPDC100|MPDC99|MPDC97|MPDC88|MPDC8|MPDC77|MP709|MID701|MID711|MID170|MPDC703|MPQC1010\"", + "loneSurrogates": false } }, { @@ -2940,7 +3197,8 @@ "end": 26393 }, "value": "CelkonTablet", - "raw": "\"CelkonTablet\"" + "raw": "\"CelkonTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2949,7 +3207,8 @@ "end": 26481 }, "value": "CT695|CT888|CT[\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\bCT-1\\b", - "raw": "\"CT695|CT888|CT[\\\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\\\bCT-1\\\\b\"" + "raw": "\"CT695|CT888|CT[\\\\s]?910|CT7 Tab|CT9 Tab|CT3 Tab|CT2 Tab|CT1 Tab|C820|C720|\\\\bCT-1\\\\b\"", + "loneSurrogates": false } }, { @@ -2961,7 +3220,8 @@ "end": 26505 }, "value": "WolderTablet", - "raw": "\"WolderTablet\"" + "raw": "\"WolderTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2970,7 +3230,8 @@ "end": 26788 }, "value": "miTab \\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\b", - "raw": "\"miTab \\\\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\\\b\"" + "raw": "\"miTab \\\\b(DIAMOND|SPACE|BROOKLYN|NEO|FLY|MANHATTAN|FUNK|EVOLUTION|SKY|GOCAR|IRON|GENIUS|POP|MINT|EPSILON|BROADWAY|JUMP|HOP|LEGEND|NEW AGE|LINE|ADVANCE|FEEL|FOLLOW|LIKE|LINK|LIVE|THINK|FREEDOM|CHICAGO|CLEVELAND|BALTIMORE-GH|IOWA|BOSTON|SEATTLE|PHOENIX|DALLAS|IN 101|MasterChef)\\\\b\"", + "loneSurrogates": false } }, { @@ -2982,7 +3243,8 @@ "end": 26808 }, "value": "MiTablet", - "raw": "\"MiTablet\"" + "raw": "\"MiTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2991,7 +3253,8 @@ "end": 26841 }, "value": "\\bMI PAD\\b|\\bHM NOTE 1W\\b", - "raw": "\"\\\\bMI PAD\\\\b|\\\\bHM NOTE 1W\\\\b\"" + "raw": "\"\\\\bMI PAD\\\\b|\\\\bHM NOTE 1W\\\\b\"", + "loneSurrogates": false } }, { @@ -3003,7 +3266,8 @@ "end": 26865 }, "value": "NibiruTablet", - "raw": "\"NibiruTablet\"" + "raw": "\"NibiruTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3012,7 +3276,8 @@ "end": 26897 }, "value": "Nibiru M1|Nibiru Jupiter One", - "raw": "\"Nibiru M1|Nibiru Jupiter One\"" + "raw": "\"Nibiru M1|Nibiru Jupiter One\"", + "loneSurrogates": false } }, { @@ -3024,7 +3289,8 @@ "end": 26919 }, "value": "NexoTablet", - "raw": "\"NexoTablet\"" + "raw": "\"NexoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3033,7 +3299,8 @@ "end": 27017 }, "value": "NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI", - "raw": "\"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI\"" + "raw": "\"NEXO NOVA|NEXO 10|NEXO AVIO|NEXO FREE|NEXO GO|NEXO EVO|NEXO 3G|NEXO SMART|NEXO KIDDO|NEXO MOBI\"", + "loneSurrogates": false } }, { @@ -3045,7 +3312,8 @@ "end": 27041 }, "value": "LeaderTablet", - "raw": "\"LeaderTablet\"" + "raw": "\"LeaderTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3054,7 +3322,8 @@ "end": 27185 }, "value": "TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100", - "raw": "\"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100\"" + "raw": "\"TBLT10Q|TBLT10I|TBL-10WDKB|TBL-10WDKBO2013|TBL-W230V2|TBL-W450|TBL-W500|SV572|TBLT7I|TBA-AC7-8G|TBLT79|TBL-8W16|TBL-10W32|TBL-10WKB|TBL-W100\"", + "loneSurrogates": false } }, { @@ -3066,7 +3335,8 @@ "end": 27211 }, "value": "UbislateTablet", - "raw": "\"UbislateTablet\"" + "raw": "\"UbislateTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3075,7 +3345,8 @@ "end": 27231 }, "value": "UbiSlate[\\s]?7C", - "raw": "\"UbiSlate[\\\\s]?7C\"" + "raw": "\"UbiSlate[\\\\s]?7C\"", + "loneSurrogates": false } }, { @@ -3087,7 +3358,8 @@ "end": 27259 }, "value": "PocketBookTablet", - "raw": "\"PocketBookTablet\"" + "raw": "\"PocketBookTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3096,7 +3368,8 @@ "end": 27273 }, "value": "Pocketbook", - "raw": "\"Pocketbook\"" + "raw": "\"Pocketbook\"", + "loneSurrogates": false } }, { @@ -3108,7 +3381,8 @@ "end": 27297 }, "value": "KocasoTablet", - "raw": "\"KocasoTablet\"" + "raw": "\"KocasoTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3117,7 +3391,8 @@ "end": 27316 }, "value": "\\b(TB-1207)\\b", - "raw": "\"\\\\b(TB-1207)\\\\b\"" + "raw": "\"\\\\b(TB-1207)\\\\b\"", + "loneSurrogates": false } }, { @@ -3129,7 +3404,8 @@ "end": 27332 }, "value": "Hudl", - "raw": "\"Hudl\"" + "raw": "\"Hudl\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3138,7 +3414,8 @@ "end": 27353 }, "value": "Hudl HT7S3|Hudl 2", - "raw": "\"Hudl HT7S3|Hudl 2\"" + "raw": "\"Hudl HT7S3|Hudl 2\"", + "loneSurrogates": false } }, { @@ -3150,7 +3427,8 @@ "end": 27378 }, "value": "TelstraTablet", - "raw": "\"TelstraTablet\"" + "raw": "\"TelstraTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3159,7 +3437,8 @@ "end": 27388 }, "value": "T-Hub2", - "raw": "\"T-Hub2\"" + "raw": "\"T-Hub2\"", + "loneSurrogates": false } }, { @@ -3171,7 +3450,8 @@ "end": 27413 }, "value": "GenericTablet", - "raw": "\"GenericTablet\"" + "raw": "\"GenericTablet\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3180,7 +3460,8 @@ "end": 27679 }, "value": "Android.*\\b97D\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\bA7EB\\b|CatNova8|A1_07|CT704|CT1002|\\bM721\\b|rk30sdk|\\bEVOTAB\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\bM6pro\\b|CT1020W|arc 10HD|\\bJolla\\b|\\bTP750\\b", - "raw": "\"Android.*\\\\b97D\\\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\\\bA7EB\\\\b|CatNova8|A1_07|CT704|CT1002|\\\\bM721\\\\b|rk30sdk|\\\\bEVOTAB\\\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\\\bM6pro\\\\b|CT1020W|arc 10HD|\\\\bJolla\\\\b|\\\\bTP750\\\\b\"" + "raw": "\"Android.*\\\\b97D\\\\b|Tablet(?!.*PC)|BNTV250A|MID-WCDMA|LogicPD Zoom2|\\\\bA7EB\\\\b|CatNova8|A1_07|CT704|CT1002|\\\\bM721\\\\b|rk30sdk|\\\\bEVOTAB\\\\b|M758A|ET904|ALUMIUM10|Smartfren Tab|Endeavour 1010|Tablet-PC-4|Tagi Tab|\\\\bM6pro\\\\b|CT1020W|arc 10HD|\\\\bJolla\\\\b|\\\\bTP750\\\\b\"", + "loneSurrogates": false } } ] @@ -3195,7 +3476,8 @@ "end": 27696 }, "value": "oss", - "raw": "\"oss\"" + "raw": "\"oss\"", + "loneSurrogates": false }, "value": { "type": "ObjectExpression", @@ -3213,7 +3495,8 @@ "end": 27719 }, "value": "AndroidOS", - "raw": "\"AndroidOS\"" + "raw": "\"AndroidOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3222,7 +3505,8 @@ "end": 27730 }, "value": "Android", - "raw": "\"Android\"" + "raw": "\"Android\"", + "loneSurrogates": false } }, { @@ -3234,7 +3518,8 @@ "end": 27754 }, "value": "BlackBerryOS", - "raw": "\"BlackBerryOS\"" + "raw": "\"BlackBerryOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3243,7 +3528,8 @@ "end": 27793 }, "value": "blackberry|\\bBB10\\b|rim tablet os", - "raw": "\"blackberry|\\\\bBB10\\\\b|rim tablet os\"" + "raw": "\"blackberry|\\\\bBB10\\\\b|rim tablet os\"", + "loneSurrogates": false } }, { @@ -3255,7 +3541,8 @@ "end": 27811 }, "value": "PalmOS", - "raw": "\"PalmOS\"" + "raw": "\"PalmOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3264,7 +3551,8 @@ "end": 27869 }, "value": "PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino", - "raw": "\"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino\"" + "raw": "\"PalmOS|avantgo|blazer|elaine|hiptop|palm|plucker|xiino\"", + "loneSurrogates": false } }, { @@ -3276,7 +3564,8 @@ "end": 27890 }, "value": "SymbianOS", - "raw": "\"SymbianOS\"" + "raw": "\"SymbianOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3285,7 +3574,8 @@ "end": 27947 }, "value": "Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\bS60\\b", - "raw": "\"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\\\bS60\\\\b\"" + "raw": "\"Symbian|SymbOS|Series60|Series40|SYB-[0-9]+|\\\\bS60\\\\b\"", + "loneSurrogates": false } }, { @@ -3297,7 +3587,8 @@ "end": 27974 }, "value": "WindowsMobileOS", - "raw": "\"WindowsMobileOS\"" + "raw": "\"WindowsMobileOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3306,7 +3597,8 @@ "end": 28072 }, "value": "Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;", - "raw": "\"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;\"" + "raw": "\"Windows CE.*(PPC|Smartphone|Mobile|[0-9]{3}x[0-9]{3})|Window Mobile|Windows Phone [0-9.]+|WCE;\"", + "loneSurrogates": false } }, { @@ -3318,7 +3610,8 @@ "end": 28098 }, "value": "WindowsPhoneOS", - "raw": "\"WindowsPhoneOS\"" + "raw": "\"WindowsPhoneOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3327,7 +3620,8 @@ "end": 28212 }, "value": "Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;", - "raw": "\"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;\"" + "raw": "\"Windows Phone 10.0|Windows Phone 8.1|Windows Phone 8.0|Windows Phone OS|XBLWP7|ZuneWP7|Windows NT 6.[23]; ARM;\"", + "loneSurrogates": false } }, { @@ -3339,7 +3633,8 @@ "end": 28227 }, "value": "iOS", - "raw": "\"iOS\"" + "raw": "\"iOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3348,7 +3643,8 @@ "end": 28264 }, "value": "\\biPhone.*Mobile|\\biPod|\\biPad", - "raw": "\"\\\\biPhone.*Mobile|\\\\biPod|\\\\biPad\"" + "raw": "\"\\\\biPhone.*Mobile|\\\\biPod|\\\\biPad\"", + "loneSurrogates": false } }, { @@ -3360,7 +3656,8 @@ "end": 28283 }, "value": "MeeGoOS", - "raw": "\"MeeGoOS\"" + "raw": "\"MeeGoOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3369,7 +3666,8 @@ "end": 28292 }, "value": "MeeGo", - "raw": "\"MeeGo\"" + "raw": "\"MeeGo\"", + "loneSurrogates": false } }, { @@ -3381,7 +3679,8 @@ "end": 28311 }, "value": "MaemoOS", - "raw": "\"MaemoOS\"" + "raw": "\"MaemoOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3390,7 +3689,8 @@ "end": 28320 }, "value": "Maemo", - "raw": "\"Maemo\"" + "raw": "\"Maemo\"", + "loneSurrogates": false } }, { @@ -3402,7 +3702,8 @@ "end": 28338 }, "value": "JavaOS", - "raw": "\"JavaOS\"" + "raw": "\"JavaOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3411,7 +3712,8 @@ "end": 28370 }, "value": "J2ME/|\\bMIDP\\b|\\bCLDC\\b", - "raw": "\"J2ME\\/|\\\\bMIDP\\\\b|\\\\bCLDC\\\\b\"" + "raw": "\"J2ME\\/|\\\\bMIDP\\\\b|\\\\bCLDC\\\\b\"", + "loneSurrogates": false } }, { @@ -3423,7 +3725,8 @@ "end": 28387 }, "value": "webOS", - "raw": "\"webOS\"" + "raw": "\"webOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3432,7 +3735,8 @@ "end": 28402 }, "value": "webOS|hpwOS", - "raw": "\"webOS|hpwOS\"" + "raw": "\"webOS|hpwOS\"", + "loneSurrogates": false } }, { @@ -3444,7 +3748,8 @@ "end": 28420 }, "value": "badaOS", - "raw": "\"badaOS\"" + "raw": "\"badaOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3453,7 +3758,8 @@ "end": 28434 }, "value": "\\bBada\\b", - "raw": "\"\\\\bBada\\\\b\"" + "raw": "\"\\\\bBada\\\\b\"", + "loneSurrogates": false } }, { @@ -3465,7 +3771,8 @@ "end": 28452 }, "value": "BREWOS", - "raw": "\"BREWOS\"" + "raw": "\"BREWOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3474,7 +3781,8 @@ "end": 28460 }, "value": "BREW", - "raw": "\"BREW\"" + "raw": "\"BREW\"", + "loneSurrogates": false } } ] @@ -3489,7 +3797,8 @@ "end": 28477 }, "value": "uas", - "raw": "\"uas\"" + "raw": "\"uas\"", + "loneSurrogates": false }, "value": { "type": "ObjectExpression", @@ -3507,7 +3816,8 @@ "end": 28498 }, "value": "Vivaldi", - "raw": "\"Vivaldi\"" + "raw": "\"Vivaldi\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3516,7 +3826,8 @@ "end": 28509 }, "value": "Vivaldi", - "raw": "\"Vivaldi\"" + "raw": "\"Vivaldi\"", + "loneSurrogates": false } }, { @@ -3528,7 +3839,8 @@ "end": 28527 }, "value": "Chrome", - "raw": "\"Chrome\"" + "raw": "\"Chrome\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3537,7 +3849,8 @@ "end": 28582 }, "value": "\\bCrMo\\b|CriOS|Android.*Chrome/[.0-9]* (Mobile)?", - "raw": "\"\\\\bCrMo\\\\b|CriOS|Android.*Chrome\\/[.0-9]* (Mobile)?\"" + "raw": "\"\\\\bCrMo\\\\b|CriOS|Android.*Chrome\\/[.0-9]* (Mobile)?\"", + "loneSurrogates": false } }, { @@ -3549,7 +3862,8 @@ "end": 28600 }, "value": "Dolfin", - "raw": "\"Dolfin\"" + "raw": "\"Dolfin\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3558,7 +3872,8 @@ "end": 28616 }, "value": "\\bDolfin\\b", - "raw": "\"\\\\bDolfin\\\\b\"" + "raw": "\"\\\\bDolfin\\\\b\"", + "loneSurrogates": false } }, { @@ -3570,7 +3885,8 @@ "end": 28633 }, "value": "Opera", - "raw": "\"Opera\"" + "raw": "\"Opera\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3579,7 +3895,8 @@ "end": 28711 }, "value": "Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR/[0-9.]+|Coast/[0-9.]+", - "raw": "\"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR\\/[0-9.]+|Coast\\/[0-9.]+\"" + "raw": "\"Opera.*Mini|Opera.*Mobi|Android.*Opera|Mobile.*OPR\\/[0-9.]+|Coast\\/[0-9.]+\"", + "loneSurrogates": false } }, { @@ -3591,7 +3908,8 @@ "end": 28730 }, "value": "Skyfire", - "raw": "\"Skyfire\"" + "raw": "\"Skyfire\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3600,7 +3918,8 @@ "end": 28741 }, "value": "Skyfire", - "raw": "\"Skyfire\"" + "raw": "\"Skyfire\"", + "loneSurrogates": false } }, { @@ -3612,7 +3931,8 @@ "end": 28757 }, "value": "Edge", - "raw": "\"Edge\"" + "raw": "\"Edge\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3621,7 +3941,8 @@ "end": 28788 }, "value": "Mobile Safari/[.0-9]* Edge", - "raw": "\"Mobile Safari\\/[.0-9]* Edge\"" + "raw": "\"Mobile Safari\\/[.0-9]* Edge\"", + "loneSurrogates": false } }, { @@ -3633,7 +3954,8 @@ "end": 28802 }, "value": "IE", - "raw": "\"IE\"" + "raw": "\"IE\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3642,7 +3964,8 @@ "end": 28825 }, "value": "IEMobile|MSIEMobile", - "raw": "\"IEMobile|MSIEMobile\"" + "raw": "\"IEMobile|MSIEMobile\"", + "loneSurrogates": false } }, { @@ -3654,7 +3977,8 @@ "end": 28844 }, "value": "Firefox", - "raw": "\"Firefox\"" + "raw": "\"Firefox\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3663,7 +3987,8 @@ "end": 28910 }, "value": "fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile", - "raw": "\"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile\"" + "raw": "\"fennec|firefox.*maemo|(Mobile|Tablet).*Firefox|Firefox.*Mobile\"", + "loneSurrogates": false } }, { @@ -3675,7 +4000,8 @@ "end": 28926 }, "value": "Bolt", - "raw": "\"Bolt\"" + "raw": "\"Bolt\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3684,7 +4010,8 @@ "end": 28934 }, "value": "bolt", - "raw": "\"bolt\"" + "raw": "\"bolt\"", + "loneSurrogates": false } }, { @@ -3696,7 +4023,8 @@ "end": 28954 }, "value": "TeaShark", - "raw": "\"TeaShark\"" + "raw": "\"TeaShark\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3705,7 +4033,8 @@ "end": 28966 }, "value": "teashark", - "raw": "\"teashark\"" + "raw": "\"teashark\"", + "loneSurrogates": false } }, { @@ -3717,7 +4046,8 @@ "end": 28984 }, "value": "Blazer", - "raw": "\"Blazer\"" + "raw": "\"Blazer\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3726,7 +4056,8 @@ "end": 28994 }, "value": "Blazer", - "raw": "\"Blazer\"" + "raw": "\"Blazer\"", + "loneSurrogates": false } }, { @@ -3738,7 +4069,8 @@ "end": 29012 }, "value": "Safari", - "raw": "\"Safari\"" + "raw": "\"Safari\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3747,7 +4079,8 @@ "end": 29067 }, "value": "Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari", - "raw": "\"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari\"" + "raw": "\"Version.*Mobile.*Safari|Safari.*Mobile|MobileSafari\"", + "loneSurrogates": false } }, { @@ -3759,7 +4092,8 @@ "end": 29084 }, "value": "Tizen", - "raw": "\"Tizen\"" + "raw": "\"Tizen\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3768,7 +4102,8 @@ "end": 29093 }, "value": "Tizen", - "raw": "\"Tizen\"" + "raw": "\"Tizen\"", + "loneSurrogates": false } }, { @@ -3780,7 +4115,8 @@ "end": 29114 }, "value": "UCBrowser", - "raw": "\"UCBrowser\"" + "raw": "\"UCBrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3789,7 +4125,8 @@ "end": 29135 }, "value": "UC.*Browser|UCWEB", - "raw": "\"UC.*Browser|UCWEB\"" + "raw": "\"UC.*Browser|UCWEB\"", + "loneSurrogates": false } }, { @@ -3801,7 +4138,8 @@ "end": 29158 }, "value": "baiduboxapp", - "raw": "\"baiduboxapp\"" + "raw": "\"baiduboxapp\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3810,7 +4148,8 @@ "end": 29173 }, "value": "baiduboxapp", - "raw": "\"baiduboxapp\"" + "raw": "\"baiduboxapp\"", + "loneSurrogates": false } }, { @@ -3822,7 +4161,8 @@ "end": 29197 }, "value": "baidubrowser", - "raw": "\"baidubrowser\"" + "raw": "\"baidubrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3831,7 +4171,8 @@ "end": 29213 }, "value": "baidubrowser", - "raw": "\"baidubrowser\"" + "raw": "\"baidubrowser\"", + "loneSurrogates": false } }, { @@ -3843,7 +4184,8 @@ "end": 29237 }, "value": "DiigoBrowser", - "raw": "\"DiigoBrowser\"" + "raw": "\"DiigoBrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3852,7 +4194,8 @@ "end": 29253 }, "value": "DiigoBrowser", - "raw": "\"DiigoBrowser\"" + "raw": "\"DiigoBrowser\"", + "loneSurrogates": false } }, { @@ -3864,7 +4207,8 @@ "end": 29271 }, "value": "Puffin", - "raw": "\"Puffin\"" + "raw": "\"Puffin\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3873,7 +4217,8 @@ "end": 29281 }, "value": "Puffin", - "raw": "\"Puffin\"" + "raw": "\"Puffin\"", + "loneSurrogates": false } }, { @@ -3885,7 +4230,8 @@ "end": 29300 }, "value": "Mercury", - "raw": "\"Mercury\"" + "raw": "\"Mercury\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3894,7 +4240,8 @@ "end": 29317 }, "value": "\\bMercury\\b", - "raw": "\"\\\\bMercury\\\\b\"" + "raw": "\"\\\\bMercury\\\\b\"", + "loneSurrogates": false } }, { @@ -3906,7 +4253,8 @@ "end": 29341 }, "value": "ObigoBrowser", - "raw": "\"ObigoBrowser\"" + "raw": "\"ObigoBrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3915,7 +4263,8 @@ "end": 29350 }, "value": "Obigo", - "raw": "\"Obigo\"" + "raw": "\"Obigo\"", + "loneSurrogates": false } }, { @@ -3927,7 +4276,8 @@ "end": 29370 }, "value": "NetFront", - "raw": "\"NetFront\"" + "raw": "\"NetFront\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3936,7 +4286,8 @@ "end": 29384 }, "value": "NF-Browser", - "raw": "\"NF-Browser\"" + "raw": "\"NF-Browser\"", + "loneSurrogates": false } }, { @@ -3948,7 +4299,8 @@ "end": 29410 }, "value": "GenericBrowser", - "raw": "\"GenericBrowser\"" + "raw": "\"GenericBrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3957,7 +4309,8 @@ "end": 29545 }, "value": "NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger", - "raw": "\"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger\"" + "raw": "\"NokiaBrowser|OviBrowser|OneBrowser|TwonkyBeamBrowser|SEMC.*Browser|FlyFlow|Minimo|NetFront|Novarra-Vision|MQQBrowser|MicroMessenger\"", + "loneSurrogates": false } }, { @@ -3969,7 +4322,8 @@ "end": 29565 }, "value": "PaleMoon", - "raw": "\"PaleMoon\"" + "raw": "\"PaleMoon\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -3978,7 +4332,8 @@ "end": 29603 }, "value": "Android.*PaleMoon|Mobile.*PaleMoon", - "raw": "\"Android.*PaleMoon|Mobile.*PaleMoon\"" + "raw": "\"Android.*PaleMoon|Mobile.*PaleMoon\"", + "loneSurrogates": false } } ] @@ -3993,7 +4348,8 @@ "end": 29622 }, "value": "props", - "raw": "\"props\"" + "raw": "\"props\"", + "loneSurrogates": false }, "value": { "type": "ObjectExpression", @@ -4011,7 +4367,8 @@ "end": 29642 }, "value": "Mobile", - "raw": "\"Mobile\"" + "raw": "\"Mobile\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4020,7 +4377,8 @@ "end": 29659 }, "value": "Mobile/[VER]", - "raw": "\"Mobile\\/[VER]\"" + "raw": "\"Mobile\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4032,7 +4390,8 @@ "end": 29676 }, "value": "Build", - "raw": "\"Build\"" + "raw": "\"Build\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4041,7 +4400,8 @@ "end": 29692 }, "value": "Build/[VER]", - "raw": "\"Build\\/[VER]\"" + "raw": "\"Build\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4053,7 +4413,8 @@ "end": 29711 }, "value": "Version", - "raw": "\"Version\"" + "raw": "\"Version\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4062,7 +4423,8 @@ "end": 29729 }, "value": "Version/[VER]", - "raw": "\"Version\\/[VER]\"" + "raw": "\"Version\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4074,7 +4436,8 @@ "end": 29749 }, "value": "VendorID", - "raw": "\"VendorID\"" + "raw": "\"VendorID\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4083,7 +4446,8 @@ "end": 29768 }, "value": "VendorID/[VER]", - "raw": "\"VendorID\\/[VER]\"" + "raw": "\"VendorID\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4095,7 +4459,8 @@ "end": 29784 }, "value": "iPad", - "raw": "\"iPad\"" + "raw": "\"iPad\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4104,7 +4469,8 @@ "end": 29809 }, "value": "iPad.*CPU[a-z ]+[VER]", - "raw": "\"iPad.*CPU[a-z ]+[VER]\"" + "raw": "\"iPad.*CPU[a-z ]+[VER]\"", + "loneSurrogates": false } }, { @@ -4116,7 +4482,8 @@ "end": 29827 }, "value": "iPhone", - "raw": "\"iPhone\"" + "raw": "\"iPhone\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4125,7 +4492,8 @@ "end": 29854 }, "value": "iPhone.*CPU[a-z ]+[VER]", - "raw": "\"iPhone.*CPU[a-z ]+[VER]\"" + "raw": "\"iPhone.*CPU[a-z ]+[VER]\"", + "loneSurrogates": false } }, { @@ -4137,7 +4505,8 @@ "end": 29870 }, "value": "iPod", - "raw": "\"iPod\"" + "raw": "\"iPod\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4146,7 +4515,8 @@ "end": 29895 }, "value": "iPod.*CPU[a-z ]+[VER]", - "raw": "\"iPod.*CPU[a-z ]+[VER]\"" + "raw": "\"iPod.*CPU[a-z ]+[VER]\"", + "loneSurrogates": false } }, { @@ -4158,7 +4528,8 @@ "end": 29913 }, "value": "Kindle", - "raw": "\"Kindle\"" + "raw": "\"Kindle\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4167,7 +4538,8 @@ "end": 29930 }, "value": "Kindle/[VER]", - "raw": "\"Kindle\\/[VER]\"" + "raw": "\"Kindle\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4179,7 +4551,8 @@ "end": 29948 }, "value": "Chrome", - "raw": "\"Chrome\"" + "raw": "\"Chrome\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -4197,7 +4570,8 @@ "end": 29979 }, "value": "Chrome/[VER]", - "raw": "\"Chrome\\/[VER]\"" + "raw": "\"Chrome\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4209,7 +4583,8 @@ "end": 30007 }, "value": "CriOS/[VER]", - "raw": "\"CriOS\\/[VER]\"" + "raw": "\"CriOS\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4221,7 +4596,8 @@ "end": 30034 }, "value": "CrMo/[VER]", - "raw": "\"CrMo\\/[VER]\"" + "raw": "\"CrMo\\/[VER]\"", + "loneSurrogates": false } } ] @@ -4236,7 +4612,8 @@ "end": 30061 }, "value": "Coast", - "raw": "\"Coast\"" + "raw": "\"Coast\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -4254,7 +4631,8 @@ "end": 30091 }, "value": "Coast/[VER]", - "raw": "\"Coast\\/[VER]\"" + "raw": "\"Coast\\/[VER]\"", + "loneSurrogates": false } } ] @@ -4269,7 +4647,8 @@ "end": 30119 }, "value": "Dolfin", - "raw": "\"Dolfin\"" + "raw": "\"Dolfin\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4278,7 +4657,8 @@ "end": 30136 }, "value": "Dolfin/[VER]", - "raw": "\"Dolfin\\/[VER]\"" + "raw": "\"Dolfin\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4290,7 +4670,8 @@ "end": 30155 }, "value": "Firefox", - "raw": "\"Firefox\"" + "raw": "\"Firefox\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4299,7 +4680,8 @@ "end": 30173 }, "value": "Firefox/[VER]", - "raw": "\"Firefox\\/[VER]\"" + "raw": "\"Firefox\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4311,7 +4693,8 @@ "end": 30191 }, "value": "Fennec", - "raw": "\"Fennec\"" + "raw": "\"Fennec\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4320,7 +4703,8 @@ "end": 30208 }, "value": "Fennec/[VER]", - "raw": "\"Fennec\\/[VER]\"" + "raw": "\"Fennec\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4332,7 +4716,8 @@ "end": 30224 }, "value": "Edge", - "raw": "\"Edge\"" + "raw": "\"Edge\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4341,7 +4726,8 @@ "end": 30239 }, "value": "Edge/[VER]", - "raw": "\"Edge\\/[VER]\"" + "raw": "\"Edge\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4353,7 +4739,8 @@ "end": 30253 }, "value": "IE", - "raw": "\"IE\"" + "raw": "\"IE\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -4371,7 +4758,8 @@ "end": 30287 }, "value": "IEMobile/[VER];", - "raw": "\"IEMobile\\/[VER];\"" + "raw": "\"IEMobile\\/[VER];\"", + "loneSurrogates": false } }, { @@ -4383,7 +4771,8 @@ "end": 30317 }, "value": "IEMobile [VER]", - "raw": "\"IEMobile [VER]\"" + "raw": "\"IEMobile [VER]\"", + "loneSurrogates": false } }, { @@ -4395,7 +4784,8 @@ "end": 30344 }, "value": "MSIE [VER];", - "raw": "\"MSIE [VER];\"" + "raw": "\"MSIE [VER];\"", + "loneSurrogates": false } }, { @@ -4407,7 +4797,8 @@ "end": 30387 }, "value": "Trident/[0-9.]+;.*rv:[VER]", - "raw": "\"Trident\\/[0-9.]+;.*rv:[VER]\"" + "raw": "\"Trident\\/[0-9.]+;.*rv:[VER]\"", + "loneSurrogates": false } } ] @@ -4422,7 +4813,8 @@ "end": 30417 }, "value": "NetFront", - "raw": "\"NetFront\"" + "raw": "\"NetFront\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4431,7 +4823,8 @@ "end": 30436 }, "value": "NetFront/[VER]", - "raw": "\"NetFront\\/[VER]\"" + "raw": "\"NetFront\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4443,7 +4836,8 @@ "end": 30460 }, "value": "NokiaBrowser", - "raw": "\"NokiaBrowser\"" + "raw": "\"NokiaBrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4452,7 +4846,8 @@ "end": 30483 }, "value": "NokiaBrowser/[VER]", - "raw": "\"NokiaBrowser\\/[VER]\"" + "raw": "\"NokiaBrowser\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4464,7 +4859,8 @@ "end": 30500 }, "value": "Opera", - "raw": "\"Opera\"" + "raw": "\"Opera\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -4482,7 +4878,8 @@ "end": 30529 }, "value": " OPR/[VER]", - "raw": "\" OPR\\/[VER]\"" + "raw": "\" OPR\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4494,7 +4891,8 @@ "end": 30562 }, "value": "Opera Mini/[VER]", - "raw": "\"Opera Mini\\/[VER]\"" + "raw": "\"Opera Mini\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4506,7 +4904,8 @@ "end": 30592 }, "value": "Version/[VER]", - "raw": "\"Version\\/[VER]\"" + "raw": "\"Version\\/[VER]\"", + "loneSurrogates": false } } ] @@ -4521,7 +4920,8 @@ "end": 30624 }, "value": "Opera Mini", - "raw": "\"Opera Mini\"" + "raw": "\"Opera Mini\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4530,7 +4930,8 @@ "end": 30645 }, "value": "Opera Mini/[VER]", - "raw": "\"Opera Mini\\/[VER]\"" + "raw": "\"Opera Mini\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4542,7 +4943,8 @@ "end": 30667 }, "value": "Opera Mobi", - "raw": "\"Opera Mobi\"" + "raw": "\"Opera Mobi\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4551,7 +4953,8 @@ "end": 30685 }, "value": "Version/[VER]", - "raw": "\"Version\\/[VER]\"" + "raw": "\"Version\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4563,7 +4966,8 @@ "end": 30707 }, "value": "UC Browser", - "raw": "\"UC Browser\"" + "raw": "\"UC Browser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4572,7 +4976,8 @@ "end": 30726 }, "value": "UC Browser[VER]", - "raw": "\"UC Browser[VER]\"" + "raw": "\"UC Browser[VER]\"", + "loneSurrogates": false } }, { @@ -4584,7 +4989,8 @@ "end": 30748 }, "value": "MQQBrowser", - "raw": "\"MQQBrowser\"" + "raw": "\"MQQBrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4593,7 +4999,8 @@ "end": 30769 }, "value": "MQQBrowser/[VER]", - "raw": "\"MQQBrowser\\/[VER]\"" + "raw": "\"MQQBrowser\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4605,7 +5012,8 @@ "end": 30795 }, "value": "MicroMessenger", - "raw": "\"MicroMessenger\"" + "raw": "\"MicroMessenger\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4614,7 +5022,8 @@ "end": 30820 }, "value": "MicroMessenger/[VER]", - "raw": "\"MicroMessenger\\/[VER]\"" + "raw": "\"MicroMessenger\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4626,7 +5035,8 @@ "end": 30843 }, "value": "baiduboxapp", - "raw": "\"baiduboxapp\"" + "raw": "\"baiduboxapp\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4635,7 +5045,8 @@ "end": 30865 }, "value": "baiduboxapp/[VER]", - "raw": "\"baiduboxapp\\/[VER]\"" + "raw": "\"baiduboxapp\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4647,7 +5058,8 @@ "end": 30889 }, "value": "baidubrowser", - "raw": "\"baidubrowser\"" + "raw": "\"baidubrowser\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4656,7 +5068,8 @@ "end": 30912 }, "value": "baidubrowser/[VER]", - "raw": "\"baidubrowser\\/[VER]\"" + "raw": "\"baidubrowser\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4668,7 +5081,8 @@ "end": 30928 }, "value": "Iron", - "raw": "\"Iron\"" + "raw": "\"Iron\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4677,7 +5091,8 @@ "end": 30943 }, "value": "Iron/[VER]", - "raw": "\"Iron\\/[VER]\"" + "raw": "\"Iron\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4689,7 +5104,8 @@ "end": 30961 }, "value": "Safari", - "raw": "\"Safari\"" + "raw": "\"Safari\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -4707,7 +5123,8 @@ "end": 30993 }, "value": "Version/[VER]", - "raw": "\"Version\\/[VER]\"" + "raw": "\"Version\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4719,7 +5136,8 @@ "end": 31022 }, "value": "Safari/[VER]", - "raw": "\"Safari\\/[VER]\"" + "raw": "\"Safari\\/[VER]\"", + "loneSurrogates": false } } ] @@ -4734,7 +5152,8 @@ "end": 31051 }, "value": "Skyfire", - "raw": "\"Skyfire\"" + "raw": "\"Skyfire\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4743,7 +5162,8 @@ "end": 31069 }, "value": "Skyfire/[VER]", - "raw": "\"Skyfire\\/[VER]\"" + "raw": "\"Skyfire\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4755,7 +5175,8 @@ "end": 31086 }, "value": "Tizen", - "raw": "\"Tizen\"" + "raw": "\"Tizen\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4764,7 +5185,8 @@ "end": 31102 }, "value": "Tizen/[VER]", - "raw": "\"Tizen\\/[VER]\"" + "raw": "\"Tizen\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4776,7 +5198,8 @@ "end": 31120 }, "value": "Webkit", - "raw": "\"Webkit\"" + "raw": "\"Webkit\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4785,7 +5208,8 @@ "end": 31140 }, "value": "webkit[ /][VER]", - "raw": "\"webkit[ \\/][VER]\"" + "raw": "\"webkit[ \\/][VER]\"", + "loneSurrogates": false } }, { @@ -4797,7 +5221,8 @@ "end": 31160 }, "value": "PaleMoon", - "raw": "\"PaleMoon\"" + "raw": "\"PaleMoon\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4806,7 +5231,8 @@ "end": 31179 }, "value": "PaleMoon/[VER]", - "raw": "\"PaleMoon\\/[VER]\"" + "raw": "\"PaleMoon\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4818,7 +5244,8 @@ "end": 31196 }, "value": "Gecko", - "raw": "\"Gecko\"" + "raw": "\"Gecko\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4827,7 +5254,8 @@ "end": 31212 }, "value": "Gecko/[VER]", - "raw": "\"Gecko\\/[VER]\"" + "raw": "\"Gecko\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4839,7 +5267,8 @@ "end": 31231 }, "value": "Trident", - "raw": "\"Trident\"" + "raw": "\"Trident\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4848,7 +5277,8 @@ "end": 31249 }, "value": "Trident/[VER]", - "raw": "\"Trident\\/[VER]\"" + "raw": "\"Trident\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4860,7 +5290,8 @@ "end": 31267 }, "value": "Presto", - "raw": "\"Presto\"" + "raw": "\"Presto\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4869,7 +5300,8 @@ "end": 31284 }, "value": "Presto/[VER]", - "raw": "\"Presto\\/[VER]\"" + "raw": "\"Presto\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4881,7 +5313,8 @@ "end": 31302 }, "value": "Goanna", - "raw": "\"Goanna\"" + "raw": "\"Goanna\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4890,7 +5323,8 @@ "end": 31319 }, "value": "Goanna/[VER]", - "raw": "\"Goanna\\/[VER]\"" + "raw": "\"Goanna\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4902,7 +5336,8 @@ "end": 31334 }, "value": "iOS", - "raw": "\"iOS\"" + "raw": "\"iOS\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4911,7 +5346,8 @@ "end": 31362 }, "value": " \\bi?OS\\b [VER][ ;]{1}", - "raw": "\" \\\\bi?OS\\\\b [VER][ ;]{1}\"" + "raw": "\" \\\\bi?OS\\\\b [VER][ ;]{1}\"", + "loneSurrogates": false } }, { @@ -4923,7 +5359,8 @@ "end": 31381 }, "value": "Android", - "raw": "\"Android\"" + "raw": "\"Android\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -4932,7 +5369,8 @@ "end": 31398 }, "value": "Android [VER]", - "raw": "\"Android [VER]\"" + "raw": "\"Android [VER]\"", + "loneSurrogates": false } }, { @@ -4944,7 +5382,8 @@ "end": 31420 }, "value": "BlackBerry", - "raw": "\"BlackBerry\"" + "raw": "\"BlackBerry\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -4962,7 +5401,8 @@ "end": 31461 }, "value": "BlackBerry[\\w]+/[VER]", - "raw": "\"BlackBerry[\\\\w]+\\/[VER]\"" + "raw": "\"BlackBerry[\\\\w]+\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4974,7 +5414,8 @@ "end": 31503 }, "value": "BlackBerry.*Version/[VER]", - "raw": "\"BlackBerry.*Version\\/[VER]\"" + "raw": "\"BlackBerry.*Version\\/[VER]\"", + "loneSurrogates": false } }, { @@ -4986,7 +5427,8 @@ "end": 31533 }, "value": "Version/[VER]", - "raw": "\"Version\\/[VER]\"" + "raw": "\"Version\\/[VER]\"", + "loneSurrogates": false } } ] @@ -5001,7 +5443,8 @@ "end": 31559 }, "value": "BREW", - "raw": "\"BREW\"" + "raw": "\"BREW\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5010,7 +5453,8 @@ "end": 31573 }, "value": "BREW [VER]", - "raw": "\"BREW [VER]\"" + "raw": "\"BREW [VER]\"", + "loneSurrogates": false } }, { @@ -5022,7 +5466,8 @@ "end": 31589 }, "value": "Java", - "raw": "\"Java\"" + "raw": "\"Java\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5031,7 +5476,8 @@ "end": 31604 }, "value": "Java/[VER]", - "raw": "\"Java\\/[VER]\"" + "raw": "\"Java\\/[VER]\"", + "loneSurrogates": false } }, { @@ -5043,7 +5489,8 @@ "end": 31632 }, "value": "Windows Phone OS", - "raw": "\"Windows Phone OS\"" + "raw": "\"Windows Phone OS\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -5061,7 +5508,8 @@ "end": 31672 }, "value": "Windows Phone OS [VER]", - "raw": "\"Windows Phone OS [VER]\"" + "raw": "\"Windows Phone OS [VER]\"", + "loneSurrogates": false } }, { @@ -5073,7 +5521,8 @@ "end": 31707 }, "value": "Windows Phone [VER]", - "raw": "\"Windows Phone [VER]\"" + "raw": "\"Windows Phone [VER]\"", + "loneSurrogates": false } } ] @@ -5088,7 +5537,8 @@ "end": 31742 }, "value": "Windows Phone", - "raw": "\"Windows Phone\"" + "raw": "\"Windows Phone\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5097,7 +5547,8 @@ "end": 31765 }, "value": "Windows Phone [VER]", - "raw": "\"Windows Phone [VER]\"" + "raw": "\"Windows Phone [VER]\"", + "loneSurrogates": false } }, { @@ -5109,7 +5560,8 @@ "end": 31787 }, "value": "Windows CE", - "raw": "\"Windows CE\"" + "raw": "\"Windows CE\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5118,7 +5570,8 @@ "end": 31808 }, "value": "Windows CE/[VER]", - "raw": "\"Windows CE\\/[VER]\"" + "raw": "\"Windows CE\\/[VER]\"", + "loneSurrogates": false } }, { @@ -5130,7 +5583,8 @@ "end": 31830 }, "value": "Windows NT", - "raw": "\"Windows NT\"" + "raw": "\"Windows NT\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5139,7 +5593,8 @@ "end": 31850 }, "value": "Windows NT [VER]", - "raw": "\"Windows NT [VER]\"" + "raw": "\"Windows NT [VER]\"", + "loneSurrogates": false } }, { @@ -5151,7 +5606,8 @@ "end": 31869 }, "value": "Symbian", - "raw": "\"Symbian\"" + "raw": "\"Symbian\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -5169,7 +5625,8 @@ "end": 31903 }, "value": "SymbianOS/[VER]", - "raw": "\"SymbianOS\\/[VER]\"" + "raw": "\"SymbianOS\\/[VER]\"", + "loneSurrogates": false } }, { @@ -5181,7 +5638,8 @@ "end": 31933 }, "value": "Symbian/[VER]", - "raw": "\"Symbian\\/[VER]\"" + "raw": "\"Symbian\\/[VER]\"", + "loneSurrogates": false } } ] @@ -5196,7 +5654,8 @@ "end": 31960 }, "value": "webOS", - "raw": "\"webOS\"" + "raw": "\"webOS\"", + "loneSurrogates": false }, "value": { "type": "ArrayExpression", @@ -5214,7 +5673,8 @@ "end": 31990 }, "value": "webOS/[VER]", - "raw": "\"webOS\\/[VER]\"" + "raw": "\"webOS\\/[VER]\"", + "loneSurrogates": false } }, { @@ -5226,7 +5686,8 @@ "end": 32019 }, "value": "hpwOS/[VER];", - "raw": "\"hpwOS\\/[VER];\"" + "raw": "\"hpwOS\\/[VER];\"", + "loneSurrogates": false } } ] @@ -5244,7 +5705,8 @@ "end": 32048 }, "value": "utils", - "raw": "\"utils\"" + "raw": "\"utils\"", + "loneSurrogates": false }, "value": { "type": "ObjectExpression", @@ -5262,7 +5724,8 @@ "end": 32065 }, "value": "Bot", - "raw": "\"Bot\"" + "raw": "\"Bot\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5271,7 +5734,8 @@ "end": 32324 }, "value": "Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom", - "raw": "\"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom\"" + "raw": "\"Googlebot|facebookexternalhit|AdsBot-Google|Google Keyword Suggestion|Facebot|YandexBot|bingbot|ia_archiver|AhrefsBot|Ezooms|GSLFbot|WBSearchBot|Twitterbot|TweetmemeBot|Twikle|PaperLiBot|Wotbox|UnwindFetchor|Exabot|MJ12bot|YandexImages|TurnitinBot|Pingdom\"", + "loneSurrogates": false } }, { @@ -5283,7 +5747,8 @@ "end": 32345 }, "value": "MobileBot", - "raw": "\"MobileBot\"" + "raw": "\"MobileBot\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5292,7 +5757,8 @@ "end": 32409 }, "value": "Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker/M1A1-R2D2", - "raw": "\"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker\\/M1A1-R2D2\"" + "raw": "\"Googlebot-Mobile|AdsBot-Google-Mobile|YahooSeeker\\/M1A1-R2D2\"", + "loneSurrogates": false } }, { @@ -5304,7 +5770,8 @@ "end": 32432 }, "value": "DesktopMode", - "raw": "\"DesktopMode\"" + "raw": "\"DesktopMode\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5313,7 +5780,8 @@ "end": 32445 }, "value": "WPDesktop", - "raw": "\"WPDesktop\"" + "raw": "\"WPDesktop\"", + "loneSurrogates": false } }, { @@ -5325,7 +5793,8 @@ "end": 32459 }, "value": "TV", - "raw": "\"TV\"" + "raw": "\"TV\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5334,7 +5803,8 @@ "end": 32476 }, "value": "SonyDTV|HbbTV", - "raw": "\"SonyDTV|HbbTV\"" + "raw": "\"SonyDTV|HbbTV\"", + "loneSurrogates": false } }, { @@ -5346,7 +5816,8 @@ "end": 32494 }, "value": "WebKit", - "raw": "\"WebKit\"" + "raw": "\"WebKit\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5355,7 +5826,8 @@ "end": 32520 }, "value": "(webkit)[ /]([\\w.]+)", - "raw": "\"(webkit)[ \\/]([\\\\w.]+)\"" + "raw": "\"(webkit)[ \\/]([\\\\w.]+)\"", + "loneSurrogates": false } }, { @@ -5367,7 +5839,8 @@ "end": 32539 }, "value": "Console", - "raw": "\"Console\"" + "raw": "\"Console\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5376,7 +5849,8 @@ "end": 32603 }, "value": "\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\b", - "raw": "\"\\\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\\\b\"" + "raw": "\"\\\\b(Nintendo|Nintendo WiiU|Nintendo 3DS|PLAYSTATION|Xbox)\\\\b\"", + "loneSurrogates": false } }, { @@ -5388,7 +5862,8 @@ "end": 32620 }, "value": "Watch", - "raw": "\"Watch\"" + "raw": "\"Watch\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -5397,7 +5872,8 @@ "end": 32631 }, "value": "SM-V700", - "raw": "\"SM-V700\"" + "raw": "\"SM-V700\"", + "loneSurrogates": false } } ] @@ -5652,7 +6128,8 @@ "end": 34888 }, "value": "UnknownPhone", - "raw": "'UnknownPhone'" + "raw": "'UnknownPhone'", + "loneSurrogates": false } } }, @@ -5701,7 +6178,8 @@ "end": 34932 }, "value": "UnknownTablet", - "raw": "'UnknownTablet'" + "raw": "'UnknownTablet'", + "loneSurrogates": false } } }, @@ -5750,7 +6228,8 @@ "end": 34976 }, "value": "UnknownMobile", - "raw": "'UnknownMobile'" + "raw": "'UnknownMobile'", + "loneSurrogates": false } } }, @@ -5804,7 +6283,8 @@ "end": 35003 }, "value": "isArray", - "raw": "'isArray'" + "raw": "'isArray'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -5980,7 +6460,8 @@ "end": 35124 }, "value": "[object Array]", - "raw": "'[object Array]'" + "raw": "'[object Array]'", + "loneSurrogates": false } } } @@ -6038,7 +6519,8 @@ "end": 35152 }, "value": "isArray", - "raw": "'isArray'" + "raw": "'isArray'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -6188,7 +6670,8 @@ "end": 35256 }, "value": "[object Array]", - "raw": "'[object Array]'" + "raw": "'[object Array]'", + "loneSurrogates": false } } } @@ -7268,7 +7751,8 @@ "end": 35944 }, "value": "i", - "raw": "'i'" + "raw": "'i'", + "loneSurrogates": false } } ], @@ -8102,7 +8586,8 @@ "end": 36527 }, "value": "[VER]", - "raw": "'[VER]'" + "raw": "'[VER]'", + "loneSurrogates": false } } ], @@ -8257,7 +8742,8 @@ "end": 36645 }, "value": "([\\w._\\+]+)", - "raw": "'([\\\\w._\\\\+]+)'" + "raw": "'([\\\\w._\\\\+]+)'", + "loneSurrogates": false } }, "right": { @@ -8420,7 +8906,8 @@ "end": 36752 }, "value": "i", - "raw": "'i'" + "raw": "'i'", + "loneSurrogates": false } } ], @@ -11208,7 +11695,8 @@ "end": 40438 }, "value": ".", - "raw": "'.'" + "raw": "'.'", + "loneSurrogates": false } } } @@ -11321,7 +11809,8 @@ "end": 40507 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -14059,7 +14548,8 @@ "end": 43398 }, "value": "iOS", - "raw": "'iOS'" + "raw": "'iOS'", + "loneSurrogates": false } } ], @@ -14114,7 +14604,8 @@ "end": 43419 }, "value": "iPad", - "raw": "'iPad'" + "raw": "'iPad'", + "loneSurrogates": false } } ], @@ -14180,7 +14671,8 @@ "end": 43451 }, "value": "iOS", - "raw": "'iOS'" + "raw": "'iOS'", + "loneSurrogates": false } } ], @@ -14235,7 +14727,8 @@ "end": 43474 }, "value": "iPhone", - "raw": "'iPhone'" + "raw": "'iPhone'", + "loneSurrogates": false } } ], @@ -14302,7 +14795,8 @@ "end": 43506 }, "value": "iOS", - "raw": "'iOS'" + "raw": "'iOS'", + "loneSurrogates": false } } ], @@ -14357,7 +14851,8 @@ "end": 43527 }, "value": "iPod", - "raw": "'iPod'" + "raw": "'iPod'", + "loneSurrogates": false } } ], @@ -14437,7 +14932,8 @@ "end": 44085 }, "value": "Android", - "raw": "'Android'" + "raw": "'Android'", + "loneSurrogates": false } } ], @@ -14495,7 +14991,8 @@ "end": 44107 }, "value": "Webkit", - "raw": "'Webkit'" + "raw": "'Webkit'", + "loneSurrogates": false } } ], @@ -14553,7 +15050,8 @@ "end": 44274 }, "value": "Windows Phone OS", - "raw": "'Windows Phone OS'" + "raw": "'Windows Phone OS'", + "loneSurrogates": false } } ], @@ -14619,7 +15117,8 @@ "end": 44448 }, "value": "BlackBerry", - "raw": "'BlackBerry'" + "raw": "'BlackBerry'", + "loneSurrogates": false } } ], @@ -14674,7 +15173,8 @@ "end": 44475 }, "value": "BlackBerry", - "raw": "'BlackBerry'" + "raw": "'BlackBerry'", + "loneSurrogates": false } } ], @@ -14734,7 +15234,8 @@ "end": 44589 }, "value": "Playbook.*Tablet", - "raw": "'Playbook.*Tablet'" + "raw": "'Playbook.*Tablet'", + "loneSurrogates": false } } ], @@ -14803,7 +15304,8 @@ "end": 44718 }, "value": "webOS", - "raw": "'webOS'" + "raw": "'webOS'", + "loneSurrogates": false } } ], @@ -14861,7 +15363,8 @@ "end": 44751 }, "value": "Palm|Pre|Pixi", - "raw": "'Palm|Pre|Pixi'" + "raw": "'Palm|Pre|Pixi'", + "loneSurrogates": false } } ], @@ -14912,7 +15415,8 @@ "end": 44847 }, "value": "hp.*TouchPad", - "raw": "'hp.*TouchPad'" + "raw": "'hp.*TouchPad'", + "loneSurrogates": false } } ], @@ -14974,7 +15478,8 @@ "end": 44952 }, "value": "Firefox", - "raw": "'Firefox'" + "raw": "'Firefox'", + "loneSurrogates": false } } ], @@ -15029,7 +15534,8 @@ "end": 44976 }, "value": "Firefox", - "raw": "'Firefox'" + "raw": "'Firefox'", + "loneSurrogates": false } } ], @@ -15110,7 +15616,8 @@ "end": 45085 }, "value": "Chrome", - "raw": "'Chrome'" + "raw": "'Chrome'", + "loneSurrogates": false } } ], @@ -15158,7 +15665,8 @@ "end": 45106 }, "value": "AndroidOS", - "raw": "'AndroidOS'" + "raw": "'AndroidOS'", + "loneSurrogates": false } } ], @@ -15214,7 +15722,8 @@ "end": 45130 }, "value": "Android", - "raw": "'Android'" + "raw": "'Android'", + "loneSurrogates": false } } ], @@ -15302,7 +15811,8 @@ "end": 45229 }, "value": "Skyfire", - "raw": "'Skyfire'" + "raw": "'Skyfire'", + "loneSurrogates": false } } ], @@ -15357,7 +15867,8 @@ "end": 45253 }, "value": "Skyfire", - "raw": "'Skyfire'" + "raw": "'Skyfire'", + "loneSurrogates": false } } ], @@ -15416,7 +15927,8 @@ "end": 45279 }, "value": "AndroidOS", - "raw": "'AndroidOS'" + "raw": "'AndroidOS'", + "loneSurrogates": false } } ], @@ -15472,7 +15984,8 @@ "end": 45303 }, "value": "Android", - "raw": "'Android'" + "raw": "'Android'", + "loneSurrogates": false } } ], @@ -15553,7 +16066,8 @@ "end": 45401 }, "value": "Opera", - "raw": "'Opera'" + "raw": "'Opera'", + "loneSurrogates": false } } ], @@ -15608,7 +16122,8 @@ "end": 45428 }, "value": "Opera Mobi", - "raw": "'Opera Mobi'" + "raw": "'Opera Mobi'", + "loneSurrogates": false } } ], @@ -15667,7 +16182,8 @@ "end": 45452 }, "value": "AndroidOS", - "raw": "'AndroidOS'" + "raw": "'AndroidOS'", + "loneSurrogates": false } } ], @@ -15718,7 +16234,8 @@ "end": 45540 }, "value": "MeeGoOS", - "raw": "'MeeGoOS'" + "raw": "'MeeGoOS'", + "loneSurrogates": false } } ], @@ -15767,7 +16284,8 @@ "end": 45632 }, "value": "Tizen", - "raw": "'Tizen'" + "raw": "'Tizen'", + "loneSurrogates": false } } ], @@ -15823,7 +16341,8 @@ "end": 45780 }, "value": "Dolfin", - "raw": "'Dolfin'" + "raw": "'Dolfin'", + "loneSurrogates": false } } ], @@ -15878,7 +16397,8 @@ "end": 45801 }, "value": "Bada", - "raw": "'Bada'" + "raw": "'Bada'", + "loneSurrogates": false } } ], @@ -15964,7 +16484,8 @@ "end": 45901 }, "value": "UC Browser", - "raw": "'UC Browser'" + "raw": "'UC Browser'", + "loneSurrogates": false } } ], @@ -16012,7 +16533,8 @@ "end": 45919 }, "value": "Dolfin", - "raw": "'Dolfin'" + "raw": "'Dolfin'", + "loneSurrogates": false } } ], @@ -16069,7 +16591,8 @@ "end": 45944 }, "value": "Android", - "raw": "'Android'" + "raw": "'Android'", + "loneSurrogates": false } } ], @@ -16143,7 +16666,8 @@ "end": 46075 }, "value": "Kindle Fire", - "raw": "'Kindle Fire'" + "raw": "'Kindle Fire'", + "loneSurrogates": false } } ], @@ -16198,7 +16722,8 @@ "end": 46109 }, "value": "Kindle", - "raw": "'Kindle'" + "raw": "'Kindle'", + "loneSurrogates": false } } ], @@ -16253,7 +16778,8 @@ "end": 46132 }, "value": "Kindle", - "raw": "'Kindle'" + "raw": "'Kindle'", + "loneSurrogates": false } } ], @@ -16322,7 +16848,8 @@ "end": 46254 }, "value": "AndroidOS", - "raw": "'AndroidOS'" + "raw": "'AndroidOS'", + "loneSurrogates": false } } ], @@ -16370,7 +16897,8 @@ "end": 46276 }, "value": "NookTablet", - "raw": "'NookTablet'" + "raw": "'NookTablet'", + "loneSurrogates": false } } ], @@ -16434,7 +16962,8 @@ "end": 46384 }, "value": "Chrome", - "raw": "'Chrome'" + "raw": "'Chrome'", + "loneSurrogates": false } } ], @@ -16526,7 +17055,8 @@ "end": 46508 }, "value": "Safari", - "raw": "'Safari'" + "raw": "'Safari'", + "loneSurrogates": false } } ], @@ -16618,7 +17148,8 @@ "end": 46636 }, "value": "Firefox", - "raw": "'Firefox'" + "raw": "'Firefox'", + "loneSurrogates": false } } ], @@ -16710,7 +17241,8 @@ "end": 46762 }, "value": "MSIE", - "raw": "'MSIE'" + "raw": "'MSIE'", + "loneSurrogates": false } } ], @@ -16802,7 +17334,8 @@ "end": 46961 }, "value": "Opera", - "raw": "'Opera'" + "raw": "'Opera'", + "loneSurrogates": false } } ], @@ -16859,7 +17392,8 @@ "end": 47019 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } ] @@ -16963,7 +17497,8 @@ "end": 47067 }, "value": "iOS", - "raw": "'iOS'" + "raw": "'iOS'", + "loneSurrogates": false } } ], @@ -17018,7 +17553,8 @@ "end": 47088 }, "value": "iPad", - "raw": "'iPad'" + "raw": "'iPad'", + "loneSurrogates": false } } ], @@ -17084,7 +17620,8 @@ "end": 47119 }, "value": "iOS", - "raw": "'iOS'" + "raw": "'iOS'", + "loneSurrogates": false } } ], @@ -17139,7 +17676,8 @@ "end": 47142 }, "value": "iPhone", - "raw": "'iPhone'" + "raw": "'iPhone'", + "loneSurrogates": false } } ], @@ -17206,7 +17744,8 @@ "end": 47173 }, "value": "iOS", - "raw": "'iOS'" + "raw": "'iOS'", + "loneSurrogates": false } } ], @@ -17261,7 +17800,8 @@ "end": 47194 }, "value": "iPod", - "raw": "'iPod'" + "raw": "'iPod'", + "loneSurrogates": false } } ], @@ -17335,7 +17875,8 @@ "end": 47302 }, "value": "Blackberry", - "raw": "'Blackberry'" + "raw": "'Blackberry'", + "loneSurrogates": false } } ], @@ -17390,7 +17931,8 @@ "end": 47329 }, "value": "BlackBerry", - "raw": "'BlackBerry'" + "raw": "'BlackBerry'", + "loneSurrogates": false } } ], @@ -17456,7 +17998,8 @@ "end": 47359 }, "value": "BlackBerry", - "raw": "'BlackBerry'" + "raw": "'BlackBerry'", + "loneSurrogates": false } } ], @@ -17543,7 +18086,8 @@ "end": 47478 }, "value": "Opera Mini", - "raw": "'Opera Mini'" + "raw": "'Opera Mini'", + "loneSurrogates": false } } ], @@ -17608,7 +18152,8 @@ "end": 47510 }, "value": "Opera Mini", - "raw": "'Opera Mini'" + "raw": "'Opera Mini'", + "loneSurrogates": false } } ], @@ -17687,7 +18232,8 @@ "end": 47556 }, "value": "Android", - "raw": "'Android'" + "raw": "'Android'", + "loneSurrogates": false } } ], @@ -17745,7 +18291,8 @@ "end": 47576 }, "value": "iOS", - "raw": "'iOS'" + "raw": "'iOS'", + "loneSurrogates": false } } ], @@ -17798,7 +18345,8 @@ "end": 47757 }, "value": "NokiaN8|NokiaC7|N97.*Series60|Symbian/3", - "raw": "'NokiaN8|NokiaC7|N97.*Series60|Symbian/3'" + "raw": "'NokiaN8|NokiaC7|N97.*Series60|Symbian/3'", + "loneSurrogates": false } } ], @@ -17861,7 +18409,8 @@ "end": 47853 }, "value": "Opera Mobi", - "raw": "'Opera Mobi'" + "raw": "'Opera Mobi'", + "loneSurrogates": false } } ], @@ -17919,7 +18468,8 @@ "end": 47878 }, "value": "SymbianOS", - "raw": "'SymbianOS'" + "raw": "'SymbianOS'", + "loneSurrogates": false } } ], @@ -17948,7 +18498,8 @@ "end": 47917 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } ] @@ -18024,7 +18575,8 @@ "end": 48030 }, "value": "BlackBerry", - "raw": "'BlackBerry'" + "raw": "'BlackBerry'", + "loneSurrogates": false } } ], @@ -18082,7 +18634,8 @@ "end": 48156 }, "value": "MSIEMobile|Windows CE.*Mobile", - "raw": "'MSIEMobile|Windows CE.*Mobile'" + "raw": "'MSIEMobile|Windows CE.*Mobile'", + "loneSurrogates": false } } ], @@ -18138,7 +18691,8 @@ "end": 48187 }, "value": "Windows Mobile", - "raw": "'Windows Mobile'" + "raw": "'Windows Mobile'", + "loneSurrogates": false } } ], @@ -18176,7 +18730,8 @@ "end": 48232 }, "value": "C", - "raw": "'C'" + "raw": "'C'", + "loneSurrogates": false } } ] @@ -18196,7 +18751,8 @@ "end": 48424 }, "value": "C", - "raw": "'C'" + "raw": "'C'", + "loneSurrogates": false } } ] @@ -18865,7 +19421,8 @@ "end": 50375 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -21485,7 +22042,8 @@ "end": 64945 }, "value": "i", - "raw": "'i'" + "raw": "'i'", + "loneSurrogates": false } } ], @@ -22015,7 +22573,8 @@ "end": 66420 }, "value": "undefined", - "raw": "'undefined'" + "raw": "'undefined'", + "loneSurrogates": false } }, "right": { @@ -22413,7 +22972,8 @@ "end": 66852 }, "value": "1.3.3 2016-07-31", - "raw": "'1.3.3 2016-07-31'" + "raw": "'1.3.3 2016-07-31'", + "loneSurrogates": false } } }, @@ -22553,7 +23113,8 @@ "end": 66975 }, "value": "undefined", - "raw": "'undefined'" + "raw": "'undefined'", + "loneSurrogates": false } }, "right": { @@ -22749,7 +23310,8 @@ "end": 67107 }, "value": "function", - "raw": "'function'" + "raw": "'function'", + "loneSurrogates": false } }, "right": { @@ -22843,7 +23405,8 @@ "end": 67192 }, "value": "undefined", - "raw": "'undefined'" + "raw": "'undefined'", + "loneSurrogates": false } }, "consequent": { @@ -23009,7 +23572,8 @@ "end": 67378 }, "value": "unknown environment", - "raw": "'unknown environment'" + "raw": "'unknown environment'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatements.json b/crates/swc_ecma_parser/tests/tsc/for-inStatements.json index d2f44521b48c..bdcd785477c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatements.json @@ -1047,7 +1047,8 @@ "end": 402 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "consequent": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json b/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json index 9b0e319d7534..61593ebf00cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json +++ b/crates/swc_ecma_parser/tests/tsc/for-inStatementsInvalid.json @@ -840,7 +840,8 @@ "end": 356 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "consequent": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/for-of11.json b/crates/swc_ecma_parser/tests/tsc/for-of11.json index 9a024df9ed34..bb036fc268d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of11.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of11.json @@ -97,7 +97,8 @@ "end": 47 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of12.json b/crates/swc_ecma_parser/tests/tsc/for-of12.json index 843fadc132ed..27b9ba0413b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of12.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of12.json @@ -110,7 +110,8 @@ "end": 47 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of13.json b/crates/swc_ecma_parser/tests/tsc/for-of13.json index d145ec625bdb..7e4b91530485 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of13.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of13.json @@ -98,7 +98,8 @@ "end": 44 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of14.json b/crates/swc_ecma_parser/tests/tsc/for-of14.json index 8fcebff11725..beecf0b796c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of14.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of14.json @@ -68,7 +68,8 @@ "end": 69 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of15.json b/crates/swc_ecma_parser/tests/tsc/for-of15.json index aef9d405a707..19c5e5a5fec3 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of15.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of15.json @@ -68,7 +68,8 @@ "end": 69 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of18.json b/crates/swc_ecma_parser/tests/tsc/for-of18.json index 4777c0416d8a..5fe35aa939ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of18.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of18.json @@ -85,7 +85,8 @@ "end": 90 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of30.json b/crates/swc_ecma_parser/tests/tsc/for-of30.json index 40470bd5fcd2..ff90a6bd508d 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of30.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of30.json @@ -104,7 +104,8 @@ "end": 115 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of31.json b/crates/swc_ecma_parser/tests/tsc/for-of31.json index 91786fb36997..6d6c33ab925a 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of31.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of31.json @@ -85,7 +85,8 @@ "end": 122 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of36.json b/crates/swc_ecma_parser/tests/tsc/for-of36.json index 426059959d7a..99fa5ec3360d 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of36.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of36.json @@ -95,7 +95,8 @@ "end": 50 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of37.json b/crates/swc_ecma_parser/tests/tsc/for-of37.json index b7d6afe82d17..001116084937 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of37.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of37.json @@ -77,7 +77,8 @@ "end": 38 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of38.json b/crates/swc_ecma_parser/tests/tsc/for-of38.json index b83f396f7d4a..5e0a25f0d3d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of38.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of38.json @@ -77,7 +77,8 @@ "end": 38 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of39.json b/crates/swc_ecma_parser/tests/tsc/for-of39.json index 3fff36c4216c..88e0b40f6d35 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of39.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of39.json @@ -77,7 +77,8 @@ "end": 55 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -112,7 +113,8 @@ "end": 67 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of40.json b/crates/swc_ecma_parser/tests/tsc/for-of40.json index 9e2ec2bf58cf..bb08cdaa3a9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of40.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of40.json @@ -77,7 +77,8 @@ "end": 38 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -158,7 +159,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of41.json b/crates/swc_ecma_parser/tests/tsc/for-of41.json index 4b004d9cb650..0fe41241771a 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of41.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of41.json @@ -114,7 +114,8 @@ "end": 47 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of42.json b/crates/swc_ecma_parser/tests/tsc/for-of42.json index f5c49b5f4f26..ecec37438092 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of42.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of42.json @@ -65,7 +65,8 @@ "end": 36 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of43.json b/crates/swc_ecma_parser/tests/tsc/for-of43.json index ee260c6f5925..89a427b41d45 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of43.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of43.json @@ -65,7 +65,8 @@ "end": 36 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -161,7 +162,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/for-of44.json b/crates/swc_ecma_parser/tests/tsc/for-of44.json index 2c96ca8f0f9b..d3155458fce6 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of44.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of44.json @@ -148,7 +148,8 @@ "end": 74 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/for-of45.json b/crates/swc_ecma_parser/tests/tsc/for-of45.json index 4bf5dc8550d1..0f3d2735ed8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of45.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of45.json @@ -157,7 +157,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -222,7 +223,8 @@ "end": 88 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of46.json b/crates/swc_ecma_parser/tests/tsc/for-of46.json index ff14de6cc951..603087db6fd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of46.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of46.json @@ -157,7 +157,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -248,7 +249,8 @@ "end": 99 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/for-of47.json b/crates/swc_ecma_parser/tests/tsc/for-of47.json index 0fc3890cd243..bd9f46c1072b 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of47.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of47.json @@ -145,7 +145,8 @@ "end": 62 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of48.json b/crates/swc_ecma_parser/tests/tsc/for-of48.json index 7a60b3cf6587..55de6b95d419 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of48.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of48.json @@ -145,7 +145,8 @@ "end": 62 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of49.json b/crates/swc_ecma_parser/tests/tsc/for-of49.json index f32d6ccdf2e9..16050c353bfa 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of49.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of49.json @@ -157,7 +157,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of50.json b/crates/swc_ecma_parser/tests/tsc/for-of50.json index 6f7b60060cbe..89f9a7cb9d9f 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of50.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of50.json @@ -77,7 +77,8 @@ "end": 38 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/for-of58.json b/crates/swc_ecma_parser/tests/tsc/for-of58.json index aecaec1fed48..0a633e343115 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of58.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of58.json @@ -68,7 +68,8 @@ "end": 34 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -139,7 +140,8 @@ "end": 55 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/for-of9.json b/crates/swc_ecma_parser/tests/tsc/for-of9.json index 77a4164062d3..b72d6945f9ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/for-of9.json +++ b/crates/swc_ecma_parser/tests/tsc/for-of9.json @@ -85,7 +85,8 @@ "end": 49 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -125,7 +126,8 @@ "end": 73 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "body": { "type": "BlockStatement", diff --git a/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json b/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json index 7799e073a85e..caf9799fd8c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json +++ b/crates/swc_ecma_parser/tests/tsc/forAwaitPerIterationBindingDownlevel.json @@ -512,7 +512,8 @@ }, "tail": false, "cooked": "I'm loop ", - "raw": "I'm loop " + "raw": "I'm loop ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -522,7 +523,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -759,7 +761,8 @@ }, "tail": false, "cooked": "I'm loop ", - "raw": "I'm loop " + "raw": "I'm loop ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -769,7 +772,8 @@ }, "tail": false, "cooked": " and I know I'm loop ", - "raw": " and I know I'm loop " + "raw": " and I know I'm loop ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -779,7 +783,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -861,7 +866,8 @@ }, "tail": false, "cooked": "I'm loop ", - "raw": "I'm loop " + "raw": "I'm loop ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -871,7 +877,8 @@ }, "tail": false, "cooked": ", but I think I'm loop ", - "raw": ", but I think I'm loop " + "raw": ", but I think I'm loop ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -881,7 +888,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/forStatements.json b/crates/swc_ecma_parser/tests/tsc/forStatements.json index ca6167f3652a..a4de47f6f242 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatements.json @@ -900,7 +900,8 @@ "end": 435 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "definite": false } @@ -2475,7 +2476,8 @@ "end": 1152 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json index 3c3120ab5a00..cbbd0aabc66f 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleInvalidDecl.json @@ -1052,7 +1052,8 @@ "end": 508 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false }, "definite": false } @@ -1628,7 +1629,8 @@ "end": 717 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json index c541ccd957b8..b0b5a5012be5 100644 --- a/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json +++ b/crates/swc_ecma_parser/tests/tsc/forStatementsMultipleValidDecl.json @@ -269,7 +269,8 @@ "end": 275 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "definite": false } @@ -1993,7 +1994,8 @@ "end": 972 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -2005,7 +2007,8 @@ "end": 977 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/functionCalls.json b/crates/swc_ecma_parser/tests/tsc/functionCalls.json index 8923ca8b9b6a..bcd3570e6c74 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionCalls.json +++ b/crates/swc_ecma_parser/tests/tsc/functionCalls.json @@ -124,7 +124,8 @@ "end": 109 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -164,7 +165,8 @@ "end": 228 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -509,7 +511,8 @@ "end": 484 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -632,7 +635,8 @@ "end": 666 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -843,7 +847,8 @@ "end": 858 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json index b4e801a8ae27..518aebbe3db8 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping1.json @@ -1205,7 +1205,8 @@ "end": 1309 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1576,7 +1577,8 @@ "end": 1460 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1705,7 +1707,8 @@ "end": 1511 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1730,7 +1733,8 @@ "end": 1532 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json index 137e0131fd13..3b1b7a6c8ed7 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/functionExpressionContextualTyping3.json @@ -203,7 +203,8 @@ "end": 100 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json b/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json index 5b9cc70f776e..25cd03df9d1f 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/functionImplementationErrors.json @@ -63,7 +63,8 @@ "end": 175 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -160,7 +161,8 @@ "end": 231 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -246,7 +248,8 @@ "end": 280 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -365,7 +368,8 @@ "end": 463 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json b/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json index af5125ec5d73..47738c90d779 100644 --- a/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/functionWithMultipleReturnStatements.json @@ -94,7 +94,8 @@ "end": 268 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -236,7 +237,8 @@ "end": 401 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -348,7 +350,8 @@ "end": 495 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -471,7 +474,8 @@ "end": 610 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -541,7 +545,8 @@ "end": 664 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generatorExplicitReturnType.json b/crates/swc_ecma_parser/tests/tsc/generatorExplicitReturnType.json index be2d15881f32..238d74c1a97b 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorExplicitReturnType.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorExplicitReturnType.json @@ -68,7 +68,8 @@ "end": 186 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } diff --git a/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json b/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json index ec4f51e59df9..fb31b5da53a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorNoImplicitReturns.json @@ -130,7 +130,8 @@ "end": 176 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false }, "delegate": false } diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json index 35aef010567d..9ff10137e9f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnContextualType.json @@ -63,7 +63,8 @@ "end": 116 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -156,7 +157,8 @@ "end": 88 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -234,7 +236,8 @@ "end": 189 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -327,7 +330,8 @@ "end": 161 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -405,7 +409,8 @@ "end": 274 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -498,7 +503,8 @@ "end": 246 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -576,7 +582,8 @@ "end": 358 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -669,7 +676,8 @@ "end": 330 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -782,7 +790,8 @@ "end": 459 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -879,7 +888,8 @@ "end": 415 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -992,7 +1002,8 @@ "end": 560 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -1089,7 +1100,8 @@ "end": 516 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -1188,7 +1200,8 @@ "end": 651 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -1340,7 +1353,8 @@ "end": 618 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -1439,7 +1453,8 @@ "end": 780 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -1591,7 +1606,8 @@ "end": 747 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json index 08ab91eaa507..f397dd2a63c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInference.json @@ -1838,7 +1838,8 @@ "end": 1977 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -1913,7 +1914,8 @@ "end": 2066 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -2096,7 +2098,8 @@ "end": 2208 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "alternate": null @@ -2114,7 +2117,8 @@ "end": 2224 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2196,7 +2200,8 @@ "end": 2301 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json index 90a7387aa6d5..46e3ba57b97d 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorReturnTypeInferenceNonStrict.json @@ -1838,7 +1838,8 @@ "end": 2158 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -1913,7 +1914,8 @@ "end": 2247 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -2096,7 +2098,8 @@ "end": 2389 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "alternate": null @@ -2114,7 +2117,8 @@ "end": 2405 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2196,7 +2200,8 @@ "end": 2482 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck12.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck12.json index 401c5d7437d9..90e395349766 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck12.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck12.json @@ -46,7 +46,8 @@ "end": 71 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck13.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck13.json index 29536dddd93d..c030b1be520e 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck13.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck13.json @@ -70,7 +70,8 @@ "end": 84 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck14.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck14.json index ad0f90f79ccb..9d5f330b8564 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck14.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck14.json @@ -70,7 +70,8 @@ "end": 58 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck15.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck15.json index 663ffbdcf089..dac585eac32e 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck15.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck15.json @@ -46,7 +46,8 @@ "end": 45 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck33.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck33.json index f99b001e9f61..144fe8911f70 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck33.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck33.json @@ -104,7 +104,8 @@ "end": 82 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "delegate": false } diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck34.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck34.json index 90369c08589f..1f5386031ff3 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck34.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck34.json @@ -98,7 +98,8 @@ "end": 83 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck35.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck35.json index eadf7186ced7..fea804e68d13 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck35.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck35.json @@ -98,7 +98,8 @@ "end": 82 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json index 4f05793e363c..d6be643548ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck45.json @@ -416,7 +416,8 @@ "end": 113 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json index 7686a4ebfdec..4ec4f0db0cc6 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck46.json @@ -416,7 +416,8 @@ "end": 113 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json index 5d09dbc01924..b97044e60a18 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck59.json @@ -89,7 +89,8 @@ "end": 98 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "delegate": false } diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json index 5b96c9ad7295..a73b0ff28ed9 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck62.json @@ -1074,7 +1074,8 @@ "end": 709 }, "value": "Nothing", - "raw": "\"Nothing\"" + "raw": "\"Nothing\"", + "loneSurrogates": false } }, { @@ -1284,7 +1285,8 @@ "end": 819 }, "value": "Nothing", - "raw": "\"Nothing\"" + "raw": "\"Nothing\"", + "loneSurrogates": false } }, { @@ -1502,7 +1504,8 @@ "end": 928 }, "value": "Nothing", - "raw": "\"Nothing\"" + "raw": "\"Nothing\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json index 20343d68c14d..84eb7968e7b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorTypeCheck63.json @@ -1074,7 +1074,8 @@ "end": 708 }, "value": "Nothing", - "raw": "\"Nothing\"" + "raw": "\"Nothing\"", + "loneSurrogates": false } }, { @@ -1308,7 +1309,8 @@ "end": 832 }, "value": "Nothing", - "raw": "\"Nothing\"" + "raw": "\"Nothing\"", + "loneSurrogates": false } }, { @@ -1500,7 +1502,8 @@ "end": 925 }, "value": "Nothing", - "raw": "\"Nothing\"" + "raw": "\"Nothing\"", + "loneSurrogates": false } }, { @@ -1709,7 +1712,8 @@ "end": 1032 }, "value": "Nothing", - "raw": "\"Nothing\"" + "raw": "\"Nothing\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json b/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json index a7dbfb0c14e0..faa46cd7f8ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json +++ b/crates/swc_ecma_parser/tests/tsc/generatorYieldContextualType.json @@ -1187,7 +1187,8 @@ "end": 551 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "right": { @@ -2453,7 +2454,8 @@ "end": 1365 }, "value": "BreakStep", - "raw": "\"BreakStep\"" + "raw": "\"BreakStep\"", + "loneSurrogates": false } } ], @@ -4445,7 +4447,8 @@ "end": 2619 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -4465,7 +4468,8 @@ "end": 2640 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/generic.json b/crates/swc_ecma_parser/tests/tsc/generic.json index 89b86e9eb360..eb382bad24b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/generic.json +++ b/crates/swc_ecma_parser/tests/tsc/generic.json @@ -193,7 +193,8 @@ "end": 122 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -233,7 +234,8 @@ "end": 147 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -330,7 +332,8 @@ "end": 175 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -593,7 +596,8 @@ "end": 250 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json index ca844df32e97..4d2e692aa529 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallTypeArgumentInference.json @@ -185,7 +185,8 @@ "end": 120 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -644,7 +645,8 @@ "end": 261 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2387,7 +2389,8 @@ "end": 828 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2478,7 +2481,8 @@ "end": 851 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2569,7 +2573,8 @@ "end": 885 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2750,7 +2755,8 @@ "end": 956 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2996,7 +3002,8 @@ "end": 1056 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -4410,7 +4417,8 @@ "end": 1387 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -4501,7 +4509,8 @@ "end": 1421 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -4682,7 +4691,8 @@ "end": 1492 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -4928,7 +4938,8 @@ "end": 1592 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json index 27f6b7695a42..0944992b20c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithArrayLiteralArgs.json @@ -665,7 +665,8 @@ "end": 242 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -753,7 +754,8 @@ "end": 280 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -864,7 +866,8 @@ "end": 322 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json index f484e7750761..1f1ecb0affdc 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments.json @@ -302,7 +302,8 @@ "end": 240 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -445,7 +446,8 @@ "end": 285 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -580,7 +582,8 @@ "end": 319 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -996,7 +999,8 @@ "end": 442 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1130,7 +1134,8 @@ "end": 551 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1199,7 +1204,8 @@ "end": 596 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1744,7 +1750,8 @@ "end": 720 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1791,7 +1798,8 @@ "end": 724 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1911,7 +1919,8 @@ "end": 779 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2027,7 +2036,8 @@ "end": 838 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2044,7 +2054,8 @@ "end": 842 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2303,7 +2314,8 @@ "end": 925 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2404,7 +2416,8 @@ "end": 968 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2529,7 +2542,8 @@ "end": 1016 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2546,7 +2560,8 @@ "end": 1020 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2666,7 +2681,8 @@ "end": 1067 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2803,7 +2819,8 @@ "end": 1128 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json index 88c9f44a24f8..d65f08175f87 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments2.json @@ -1567,7 +1567,8 @@ "end": 678 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2002,7 +2003,8 @@ "end": 800 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2089,7 +2091,8 @@ "end": 836 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2242,7 +2245,8 @@ "end": 912 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2267,7 +2271,8 @@ "end": 920 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json index 5218fc51c78d..a8e02a72bb9a 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithFunctionTypedArguments5.json @@ -372,7 +372,8 @@ "end": 263 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -631,7 +632,8 @@ "end": 356 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -809,7 +811,8 @@ "end": 417 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1324,7 +1327,8 @@ "end": 597 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1477,7 +1481,8 @@ "end": 644 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1574,7 +1579,8 @@ "end": 686 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json index 3753c5df1ab3..da40911383ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments.json @@ -497,7 +497,8 @@ "end": 492 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -659,7 +660,8 @@ "end": 558 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json index ffe8cbb08958..f6964df1e09d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments2.json @@ -607,7 +607,8 @@ "end": 495 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -3206,7 +3207,8 @@ "end": 1422 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json index 2ad05d95fa56..f888fc042850 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithGenericSignatureArguments3.json @@ -483,7 +483,8 @@ "end": 418 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -529,7 +530,8 @@ "end": 437 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -657,7 +659,8 @@ "end": 492 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -689,7 +692,8 @@ "end": 503 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -793,7 +797,8 @@ "end": 554 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -839,7 +844,8 @@ "end": 573 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -900,7 +906,8 @@ "end": 592 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1023,7 +1030,8 @@ "end": 651 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1074,7 +1082,8 @@ "end": 670 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1173,7 +1182,8 @@ "end": 721 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1210,7 +1220,8 @@ "end": 732 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1322,7 +1333,8 @@ "end": 785 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1359,7 +1371,8 @@ "end": 796 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2176,7 +2189,8 @@ "end": 1041 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2208,7 +2222,8 @@ "end": 1052 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2342,7 +2357,8 @@ "end": 1117 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2379,7 +2395,8 @@ "end": 1128 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2502,7 +2519,8 @@ "end": 1183 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2553,7 +2571,8 @@ "end": 1202 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json index 748c9cdf473b..1b204cf375af 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectLiteralArgs.json @@ -303,7 +303,8 @@ "end": 88 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -617,7 +618,8 @@ "end": 244 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json index 9914fb8b90f9..ad0f72a52b77 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndConstraints4.json @@ -788,7 +788,8 @@ "end": 351 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json index 896b58bb9b07..c50f5dbdb07d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexers.json @@ -791,7 +791,8 @@ "end": 366 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json index 9408f3783405..9b053a612dcf 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndIndexersErrors.json @@ -900,7 +900,8 @@ "end": 490 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json index 7bd610eda2f6..807e7747e82b 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithObjectTypeArgsAndStringIndexer.json @@ -911,7 +911,8 @@ "end": 371 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -1298,7 +1299,8 @@ "end": 518 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json index b8c2f09e4865..c1d1d409b722 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments.json @@ -1681,7 +1681,8 @@ "end": 1059 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1859,7 +1860,8 @@ "end": 1134 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2431,7 +2433,8 @@ "end": 1434 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json index cefc387bf3ef..6a10c3024235 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithOverloadedFunctionTypedArguments2.json @@ -1328,7 +1328,8 @@ "end": 717 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json b/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json index b08e861cf729..741a55fe5960 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json +++ b/crates/swc_ecma_parser/tests/tsc/genericCallWithTupleType.json @@ -388,7 +388,8 @@ "end": 122 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -619,7 +620,8 @@ "end": 214 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -824,7 +826,8 @@ "end": 291 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -964,7 +967,8 @@ "end": 343 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1037,7 +1041,8 @@ "end": 367 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1049,7 +1054,8 @@ "end": 374 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1122,7 +1128,8 @@ "end": 398 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1266,7 +1273,8 @@ "end": 454 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json b/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json index 8022a8474724..dc0472fd7b0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/genericClassWithFunctionTypedMemberArguments.json @@ -476,7 +476,8 @@ "end": 337 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -634,7 +635,8 @@ "end": 388 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -784,7 +786,8 @@ "end": 428 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1946,7 +1949,8 @@ "end": 855 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2095,7 +2099,8 @@ "end": 970 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2179,7 +2184,8 @@ "end": 1021 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2855,7 +2861,8 @@ "end": 1230 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2902,7 +2909,8 @@ "end": 1234 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3037,7 +3045,8 @@ "end": 1295 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -3057,7 +3066,8 @@ "end": 1301 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3785,7 +3795,8 @@ "end": 1539 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -3901,7 +3912,8 @@ "end": 1588 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -4041,7 +4053,8 @@ "end": 1643 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -4058,7 +4071,8 @@ "end": 1647 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -4193,7 +4207,8 @@ "end": 1701 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -4345,7 +4360,8 @@ "end": 1769 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json index bb04b15e0b1d..6230d9efa911 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes2.json @@ -741,7 +741,8 @@ "end": 399 }, "value": "xstate.assign", - "raw": "\"xstate.assign\"" + "raw": "\"xstate.assign\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json index 1dc786f64d31..a31c8f917e7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericContextualTypes3.json @@ -741,7 +741,8 @@ "end": 399 }, "value": "xstate.assign", - "raw": "\"xstate.assign\"" + "raw": "\"xstate.assign\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json b/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json index d33f8b0e7929..3c9425f5a34d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json +++ b/crates/swc_ecma_parser/tests/tsc/genericObjectRest.json @@ -39,7 +39,8 @@ "end": 51 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "definite": false } @@ -407,7 +408,8 @@ "end": 221 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -500,7 +502,8 @@ "end": 256 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json b/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json index 61a88360c9dc..b2eec531a2da 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestParameters1.json @@ -850,7 +850,8 @@ "end": 404 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1149,7 +1150,8 @@ "end": 478 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1217,7 +1219,8 @@ "end": 502 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1462,7 +1465,8 @@ "end": 640 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1761,7 +1765,8 @@ "end": 714 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1829,7 +1834,8 @@ "end": 738 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2245,7 +2251,8 @@ "end": 948 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2332,7 +2339,8 @@ "end": 1014 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2671,7 +2679,8 @@ "end": 1237 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2763,7 +2772,8 @@ "end": 1304 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3655,7 +3665,8 @@ "end": 1766 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3742,7 +3753,8 @@ "end": 1826 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4081,7 +4093,8 @@ "end": 2038 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4173,7 +4186,8 @@ "end": 2102 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -6037,7 +6051,8 @@ "end": 2846 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -6114,7 +6129,8 @@ "end": 2887 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -6203,7 +6219,8 @@ "end": 2941 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -6292,7 +6309,8 @@ "end": 3022 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -7392,7 +7410,8 @@ "end": 3478 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -7523,7 +7542,8 @@ "end": 3574 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -7574,7 +7594,8 @@ "end": 3594 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -7947,7 +7968,8 @@ "end": 3788 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -8078,7 +8100,8 @@ "end": 3884 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -8141,7 +8164,8 @@ "end": 3908 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -8221,7 +8245,8 @@ "end": 3931 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -8272,7 +8297,8 @@ "end": 3951 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -8766,7 +8792,8 @@ "end": 4090 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -10229,7 +10256,8 @@ "end": 4790 }, "value": "left", - "raw": "'left'" + "raw": "'left'", + "loneSurrogates": false } }, { @@ -10245,7 +10273,8 @@ "end": 4800 }, "value": "right", - "raw": "'right'" + "raw": "'right'", + "loneSurrogates": false } } ] @@ -10330,7 +10359,8 @@ "end": 4824 }, "value": "up", - "raw": "'up'" + "raw": "'up'", + "loneSurrogates": false } }, { @@ -10346,7 +10376,8 @@ "end": 4833 }, "value": "down", - "raw": "'down'" + "raw": "'down'", + "loneSurrogates": false } } ] @@ -10969,7 +11000,8 @@ "end": 5048 }, "value": "move", - "raw": "'move'" + "raw": "'move'", + "loneSurrogates": false } }, { @@ -10993,7 +11025,8 @@ "end": 5060 }, "value": "left", - "raw": "'left'" + "raw": "'left'", + "loneSurrogates": false } } ], @@ -11048,7 +11081,8 @@ "end": 5081 }, "value": "jump", - "raw": "'jump'" + "raw": "'jump'", + "loneSurrogates": false } }, { @@ -11072,7 +11106,8 @@ "end": 5091 }, "value": "up", - "raw": "'up'" + "raw": "'up'", + "loneSurrogates": false } } ], @@ -11127,7 +11162,8 @@ "end": 5112 }, "value": "stop", - "raw": "'stop'" + "raw": "'stop'", + "loneSurrogates": false } }, { @@ -11139,7 +11175,8 @@ "end": 5120 }, "value": "Bye!", - "raw": "'Bye!'" + "raw": "'Bye!'", + "loneSurrogates": false } } ], @@ -11194,7 +11231,8 @@ "end": 5141 }, "value": "done", - "raw": "'done'" + "raw": "'done'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json b/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json index 88a9f461d673..2ac84704d674 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestParameters2.json @@ -1993,7 +1993,8 @@ "end": 871 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2045,7 +2046,8 @@ "end": 889 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2108,7 +2110,8 @@ "end": 913 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2454,7 +2457,8 @@ "end": 1005 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2522,7 +2526,8 @@ "end": 1030 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2601,7 +2606,8 @@ "end": 1061 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2707,7 +2713,8 @@ "end": 1107 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2759,7 +2766,8 @@ "end": 1125 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2822,7 +2830,8 @@ "end": 1149 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3168,7 +3177,8 @@ "end": 1241 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3236,7 +3246,8 @@ "end": 1266 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3315,7 +3326,8 @@ "end": 1297 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3421,7 +3433,8 @@ "end": 1343 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3473,7 +3486,8 @@ "end": 1361 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3536,7 +3550,8 @@ "end": 1385 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3882,7 +3897,8 @@ "end": 1477 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3950,7 +3966,8 @@ "end": 1502 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4029,7 +4046,8 @@ "end": 1533 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4135,7 +4153,8 @@ "end": 1579 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4187,7 +4206,8 @@ "end": 1597 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4250,7 +4270,8 @@ "end": 1621 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4596,7 +4617,8 @@ "end": 1713 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4664,7 +4686,8 @@ "end": 1738 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4743,7 +4766,8 @@ "end": 1769 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -5113,7 +5137,8 @@ "end": 1903 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -5181,7 +5206,8 @@ "end": 1928 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json b/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json index 5f7c5d994707..1818de9bd53d 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json +++ b/crates/swc_ecma_parser/tests/tsc/genericRestParameters3.json @@ -1164,7 +1164,8 @@ "end": 544 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1176,7 +1177,8 @@ "end": 551 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1216,7 +1218,8 @@ "end": 562 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1279,7 +1282,8 @@ "end": 583 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1335,7 +1339,8 @@ "end": 601 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1391,7 +1396,8 @@ "end": 619 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1447,7 +1453,8 @@ "end": 637 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1503,7 +1510,8 @@ "end": 655 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1555,7 +1563,8 @@ "end": 680 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -3345,7 +3354,8 @@ "end": 1485 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } ], @@ -3385,7 +3395,8 @@ "end": 1520 }, "value": "what", - "raw": "\"what\"" + "raw": "\"what\"", + "loneSurrogates": false } } ], @@ -3592,7 +3603,8 @@ "end": 1687 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json b/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json index cdcbcc3eb309..8f029b7a9d29 100644 --- a/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/genericTypeAliases.json @@ -652,7 +652,8 @@ "end": 271 }, "value": "eager", - "raw": "\"eager\"" + "raw": "\"eager\"", + "loneSurrogates": false } } }, @@ -695,7 +696,8 @@ "end": 290 }, "value": "lazy", - "raw": "\"lazy\"" + "raw": "\"lazy\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1263,7 +1265,8 @@ "end": 459 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -1315,7 +1318,8 @@ "end": 477 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1387,7 +1391,8 @@ "end": 502 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1794,7 +1799,8 @@ "end": 664 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -2434,7 +2440,8 @@ "end": 858 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json index 0c39d982b118..3ba357a3a1d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/getSetAccessorContextualTyping.json @@ -145,7 +145,8 @@ "end": 359 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json b/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json index 8f49fb7ade13..3c2adf33d2d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/globalMergeWithCommonJSAssignmentDeclaration.json @@ -131,7 +131,8 @@ "end": 225 }, "value": "anything", - "raw": "'anything'" + "raw": "'anything'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json b/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json index 44c7c5bfb0b3..495cc7d59ea2 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisAmbientModules.json @@ -21,7 +21,8 @@ "end": 31 }, "value": "ambientModule", - "raw": "\"ambientModule\"" + "raw": "\"ambientModule\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -348,7 +349,8 @@ "end": 252 }, "value": "\"ambientModule\"", - "raw": "\"\\\"ambientModule\\\"\"" + "raw": "\"\\\"ambientModule\\\"\"", + "loneSurrogates": false } } } @@ -416,7 +418,8 @@ "end": 304 }, "value": "valueModule", - "raw": "\"valueModule\"" + "raw": "\"valueModule\"", + "loneSurrogates": false } } } @@ -564,7 +567,8 @@ "end": 405 }, "value": "\"ambientModule\"", - "raw": "\"\\\"ambientModule\\\"\"" + "raw": "\"\\\"ambientModule\\\"\"", + "loneSurrogates": false } } } @@ -577,7 +581,8 @@ "end": 424 }, "value": "ambientModule", - "raw": "'ambientModule'" + "raw": "'ambientModule'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json b/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json index 40b7663f67a8..ad8a003d4fdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisBlockscopedProperties.json @@ -256,7 +256,8 @@ "end": 182 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -296,7 +297,8 @@ "end": 204 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } } @@ -336,7 +338,8 @@ "end": 253 }, "value": "z", - "raw": "'z'" + "raw": "'z'", + "loneSurrogates": false } } } @@ -481,7 +484,8 @@ "end": 387 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -568,7 +572,8 @@ "end": 437 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } } @@ -655,7 +660,8 @@ "end": 490 }, "value": "z", - "raw": "'z'" + "raw": "'z'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisTypeIndexAccess.json b/crates/swc_ecma_parser/tests/tsc/globalThisTypeIndexAccess.json index 90524f847f62..69d17fe2a129 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisTypeIndexAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisTypeIndexAccess.json @@ -81,7 +81,8 @@ "end": 53 }, "value": "globalThis", - "raw": "\"globalThis\"" + "raw": "\"globalThis\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json b/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json index dd71de47180c..fd3dec5e4484 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisUnknown.json @@ -216,7 +216,8 @@ "end": 215 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -253,7 +254,8 @@ "end": 226 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -293,7 +295,8 @@ "end": 243 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json b/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json index 7524289950e8..d0bfb82ffe7c 100644 --- a/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json +++ b/crates/swc_ecma_parser/tests/tsc/globalThisUnknownNoImplicitAny.json @@ -216,7 +216,8 @@ "end": 142 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -253,7 +254,8 @@ "end": 153 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -293,7 +295,8 @@ "end": 170 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json b/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json index 988d2c7b7ed2..5bd09fd020df 100644 --- a/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/heterogeneousArrayLiterals.json @@ -60,7 +60,8 @@ "end": 116 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -186,7 +187,8 @@ "end": 172 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -483,7 +485,8 @@ "end": 295 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -575,7 +578,8 @@ "end": 334 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -699,7 +703,8 @@ "end": 396 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -731,7 +736,8 @@ "end": 409 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -819,7 +825,8 @@ "end": 449 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1087,7 +1094,8 @@ "end": 582 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1221,7 +1229,8 @@ "end": 643 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json b/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json index d34ae21e992f..59cb574aff02 100644 --- a/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/ifDoWhileStatements.json @@ -1553,7 +1553,8 @@ "end": 835 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false }, "consequent": { "type": "BlockStatement", @@ -1579,7 +1580,8 @@ "end": 858 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false }, "body": { "type": "BlockStatement", @@ -1604,7 +1606,8 @@ "end": 886 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false }, "body": { "type": "BlockStatement", @@ -1629,7 +1632,8 @@ "end": 895 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "consequent": { "type": "BlockStatement", @@ -1655,7 +1659,8 @@ "end": 910 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "body": { "type": "BlockStatement", @@ -1680,7 +1685,8 @@ "end": 930 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "body": { "type": "BlockStatement", @@ -2112,7 +2118,8 @@ "end": 1154 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -2178,7 +2185,8 @@ "end": 1183 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -2243,7 +2251,8 @@ "end": 1217 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -3177,7 +3186,8 @@ "end": 1667 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false }, "definite": false } @@ -3296,7 +3306,8 @@ "end": 1720 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -3950,7 +3961,8 @@ "end": 2005 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/implementsClause.json b/crates/swc_ecma_parser/tests/tsc/implementsClause.json index 3a67975cf442..88920f5510b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/implementsClause.json +++ b/crates/swc_ecma_parser/tests/tsc/implementsClause.json @@ -72,7 +72,8 @@ "end": 112 }, "value": "./types", - "raw": "'./types'" + "raw": "'./types'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -141,7 +142,8 @@ "end": 193 }, "value": "./types", - "raw": "'./types'" + "raw": "'./types'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -179,7 +181,8 @@ "end": 234 }, "value": "./ns", - "raw": "'./ns'" + "raw": "'./ns'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json b/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json index 35719ad6aa5c..e02bb17c320b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json +++ b/crates/swc_ecma_parser/tests/tsc/importAliasModuleExports.json @@ -174,7 +174,8 @@ "end": 210 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -446,7 +447,8 @@ "end": 321 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/importAssertion2.json b/crates/swc_ecma_parser/tests/tsc/importAssertion2.json index 1f1c156cb920..36ba65d41efc 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAssertion2.json +++ b/crates/swc_ecma_parser/tests/tsc/importAssertion2.json @@ -113,7 +113,8 @@ "end": 179 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -140,7 +141,8 @@ "end": 201 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -199,7 +201,8 @@ "end": 230 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -226,7 +229,8 @@ "end": 252 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -245,7 +249,8 @@ "end": 274 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -272,7 +277,8 @@ "end": 296 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -310,7 +316,8 @@ "end": 324 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -337,7 +344,8 @@ "end": 346 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -396,7 +404,8 @@ "end": 395 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -479,7 +488,8 @@ "end": 442 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -506,7 +516,8 @@ "end": 458 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -526,7 +537,8 @@ "end": 466 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -546,7 +558,8 @@ "end": 474 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/importAssertion3.json b/crates/swc_ecma_parser/tests/tsc/importAssertion3.json index db3f8e885ed3..93472303984c 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAssertion3.json +++ b/crates/swc_ecma_parser/tests/tsc/importAssertion3.json @@ -54,7 +54,8 @@ "end": 157 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -81,7 +82,8 @@ "end": 179 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -121,7 +123,8 @@ "end": 210 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -148,7 +151,8 @@ "end": 232 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -188,7 +192,8 @@ "end": 283 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -215,7 +220,8 @@ "end": 306 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -254,7 +260,8 @@ "end": 340 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -281,7 +288,8 @@ "end": 362 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes2.json b/crates/swc_ecma_parser/tests/tsc/importAttributes2.json index 0787403a5265..5cd65588ad6b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes2.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes2.json @@ -113,7 +113,8 @@ "end": 179 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -140,7 +141,8 @@ "end": 199 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -199,7 +201,8 @@ "end": 228 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -226,7 +229,8 @@ "end": 248 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -245,7 +249,8 @@ "end": 270 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -272,7 +277,8 @@ "end": 290 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -310,7 +316,8 @@ "end": 318 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -337,7 +344,8 @@ "end": 338 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -396,7 +404,8 @@ "end": 387 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -479,7 +488,8 @@ "end": 432 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -506,7 +516,8 @@ "end": 446 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -526,7 +537,8 @@ "end": 454 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -546,7 +558,8 @@ "end": 462 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes3.json b/crates/swc_ecma_parser/tests/tsc/importAttributes3.json index 2ae79cfba829..09dca0074d63 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes3.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes3.json @@ -54,7 +54,8 @@ "end": 157 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -81,7 +82,8 @@ "end": 177 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -121,7 +123,8 @@ "end": 208 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -148,7 +151,8 @@ "end": 228 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -188,7 +192,8 @@ "end": 279 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -215,7 +220,8 @@ "end": 300 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] @@ -254,7 +260,8 @@ "end": 334 }, "value": "./0", - "raw": "'./0'" + "raw": "'./0'", + "loneSurrogates": false }, "typeOnly": true, "with": { @@ -281,7 +288,8 @@ "end": 354 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes6.json b/crates/swc_ecma_parser/tests/tsc/importAttributes6.json index 2c2c8ade9352..b190c84f1c83 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes6.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes6.json @@ -37,7 +37,8 @@ "end": 79 }, "value": "./mod.mjs", - "raw": "\"./mod.mjs\"" + "raw": "\"./mod.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -103,7 +104,8 @@ "end": 134 }, "value": "./mod.mjs", - "raw": "\"./mod.mjs\"" + "raw": "\"./mod.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -139,7 +141,8 @@ }, "tail": true, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false } ] } @@ -180,7 +183,8 @@ "end": 191 }, "value": "./mod.mjs", - "raw": "\"./mod.mjs\"" + "raw": "\"./mod.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -246,7 +250,8 @@ "end": 249 }, "value": "./mod.mjs", - "raw": "\"./mod.mjs\"" + "raw": "\"./mod.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -282,7 +287,8 @@ "end": 268 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -324,7 +330,8 @@ "end": 308 }, "value": "./mod.mjs", - "raw": "\"./mod.mjs\"" + "raw": "\"./mod.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -410,7 +417,8 @@ "end": 370 }, "value": "./mod.mjs", - "raw": "\"./mod.mjs\"" + "raw": "\"./mod.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -437,7 +445,8 @@ "end": 390 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/importAttributes8.json b/crates/swc_ecma_parser/tests/tsc/importAttributes8.json index 7855f57d4660..1b493e34030a 100644 --- a/crates/swc_ecma_parser/tests/tsc/importAttributes8.json +++ b/crates/swc_ecma_parser/tests/tsc/importAttributes8.json @@ -35,7 +35,8 @@ "end": 84 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -55,7 +56,8 @@ "end": 96 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -93,7 +95,8 @@ "end": 140 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -120,7 +123,8 @@ "end": 154 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -132,7 +136,8 @@ "end": 159 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -141,7 +146,8 @@ "end": 164 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json index 7901f33343ce..657b5157569c 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression1ES2020.json @@ -52,7 +52,8 @@ "end": 94 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 130 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 154 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 230 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 278 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json index ffce9c6e4bf2..fefa519d05bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression2ES2020.json @@ -74,7 +74,8 @@ "end": 104 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -434,7 +435,8 @@ "end": 258 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json index ec28ead7060c..9ea41f22858a 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression3ES2020.json @@ -74,7 +74,8 @@ "end": 104 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -190,7 +191,8 @@ "end": 190 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json index 51a397df3841..7a4af19c47cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression4ES2020.json @@ -74,7 +74,8 @@ "end": 120 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 161 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 226 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -320,7 +323,8 @@ "end": 321 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -419,7 +423,8 @@ "end": 378 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -743,7 +748,8 @@ "end": 551 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json index f1d73eb970c8..d67b170ae4a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression5ES2020.json @@ -74,7 +74,8 @@ "end": 131 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 172 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 237 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -315,7 +318,8 @@ "end": 323 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false }, "alternate": { "type": "Identifier", @@ -536,7 +540,8 @@ "end": 440 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false }, "alternate": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json index 506843f42656..eaa63281692d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpression6ES2020.json @@ -74,7 +74,8 @@ "end": 104 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 145 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 210 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -315,7 +318,8 @@ "end": 296 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false }, "alternate": { "type": "Identifier", @@ -536,7 +540,8 @@ "end": 413 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false }, "alternate": { "type": "NullLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json index 6c3f5de115e5..5a1b01eafb89 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES2020.json @@ -97,7 +97,8 @@ "end": 127 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 222 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 323 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 449 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 546 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json index c5b46b4aec26..56ad7530e984 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5AMD.json @@ -97,7 +97,8 @@ "end": 134 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 229 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 330 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 456 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 553 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json index a7690a712aec..7b6ee964c5dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5CJS.json @@ -97,7 +97,8 @@ "end": 139 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 234 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 335 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 461 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 558 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json index 8ce2502b3e15..d949cde06f41 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5System.json @@ -97,7 +97,8 @@ "end": 137 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 232 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 333 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 459 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 556 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json index c5b46b4aec26..56ad7530e984 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES5UMD.json @@ -97,7 +97,8 @@ "end": 134 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 229 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 330 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 456 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 553 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json index dfb39dd833fc..6c178c4e57d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6AMD.json @@ -97,7 +97,8 @@ "end": 121 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 216 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 317 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 443 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 540 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json index 52d6d8b989f8..0557119d2b56 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6CJS.json @@ -97,7 +97,8 @@ "end": 126 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 221 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 322 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 448 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 545 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json index 22fe327ada2a..537ba8023ca8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6System.json @@ -97,7 +97,8 @@ "end": 124 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 219 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 320 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 446 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 543 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json index dfb39dd833fc..6c178c4e57d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionAsyncES6UMD.json @@ -97,7 +97,8 @@ "end": 121 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 216 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -387,7 +389,8 @@ "end": 317 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -544,7 +547,8 @@ "end": 443 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], @@ -691,7 +695,8 @@ "end": 540 }, "value": "./test", - "raw": "'./test'" + "raw": "'./test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionCheckReturntype1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionCheckReturntype1.json index 2cfdcf4c5ef8..b1cd3edf5718 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionCheckReturntype1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionCheckReturntype1.json @@ -103,7 +103,8 @@ "end": 225 }, "value": "./defaultPath", - "raw": "\"./defaultPath\"" + "raw": "\"./defaultPath\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -141,7 +142,8 @@ "end": 275 }, "value": "./anotherModule", - "raw": "\"./anotherModule\"" + "raw": "\"./anotherModule\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -249,7 +251,8 @@ "end": 340 }, "value": "./defaultPath", - "raw": "\"./defaultPath\"" + "raw": "\"./defaultPath\"", + "loneSurrogates": false } } ], @@ -317,7 +320,8 @@ "end": 374 }, "value": "./defaultPath", - "raw": "\"./defaultPath\"" + "raw": "\"./defaultPath\"", + "loneSurrogates": false } } ], @@ -464,7 +468,8 @@ "end": 455 }, "value": "./defaultPath", - "raw": "\"./defaultPath\"" + "raw": "\"./defaultPath\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json index ea589b3359fb..84ca0badfe23 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit1.json @@ -314,7 +314,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -324,7 +325,8 @@ }, "tail": false, "cooked": "\\", - "raw": "\\\\" + "raw": "\\\\", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -334,7 +336,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -507,7 +510,8 @@ "end": 394 }, "value": "defaulPath", - "raw": "\"defaulPath\"" + "raw": "\"defaulPath\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit2.json index 467f61d52a83..0220f4200fea 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit2.json @@ -52,7 +52,8 @@ "end": 117 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -115,7 +116,8 @@ "end": 162 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit3.json index af7c42811e57..8b2186643947 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionDeclarationEmit3.json @@ -52,7 +52,8 @@ "end": 117 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -135,7 +136,8 @@ "end": 204 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -172,7 +174,8 @@ "end": 218 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -417,7 +420,8 @@ "end": 329 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -526,7 +530,8 @@ "end": 374 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json index 8c48c129ef0d..f96e1e14d8c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5AMD.json @@ -52,7 +52,8 @@ "end": 101 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 137 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 161 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 238 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 286 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 356 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 439 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json index 187e87f139c5..2ddfd1856936 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5CJS.json @@ -52,7 +52,8 @@ "end": 106 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 142 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 166 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 243 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 291 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 361 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 444 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json index 3c09ebbb458f..d2d1d1c841c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5System.json @@ -52,7 +52,8 @@ "end": 104 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 140 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 164 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 241 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 289 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 359 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 442 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json index 8c48c129ef0d..f96e1e14d8c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES5UMD.json @@ -52,7 +52,8 @@ "end": 101 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 137 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 161 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 238 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 286 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 356 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 439 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json index 136e94527b09..a5f0ff14c555 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6AMD.json @@ -52,7 +52,8 @@ "end": 88 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 124 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 148 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 225 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 273 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 343 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 426 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json index 92ff43e1c0a5..a7d07ddce573 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6CJS.json @@ -52,7 +52,8 @@ "end": 93 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 129 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 153 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 230 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 278 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 348 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 431 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json index 3d5ff57d2eac..5c927647d0b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6System.json @@ -52,7 +52,8 @@ "end": 91 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 127 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 151 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 228 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 276 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 346 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 429 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json index 136e94527b09..a5f0ff14c555 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionES6UMD.json @@ -52,7 +52,8 @@ "end": 88 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 124 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 148 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 225 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 273 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -554,7 +559,8 @@ "end": 343 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -693,7 +699,8 @@ "end": 426 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json index 2f1e8324315b..9cd60ee9ec17 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionErrorInES2015.json @@ -52,7 +52,8 @@ "end": 94 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 130 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 154 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -366,7 +369,8 @@ "end": 246 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json index 3a457c348955..4320ad0de9ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD1.json @@ -52,7 +52,8 @@ "end": 91 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 127 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 151 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 228 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 276 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json index 8a75cb5ad3ac..1b5af3814223 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD2.json @@ -74,7 +74,8 @@ "end": 101 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -434,7 +435,8 @@ "end": 339 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json index 95073823eae1..398ea554555e 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD3.json @@ -74,7 +74,8 @@ "end": 101 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -190,7 +191,8 @@ "end": 187 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json index 4117fb2349ae..6bcc8e076ae3 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInAMD4.json @@ -74,7 +74,8 @@ "end": 137 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 178 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 243 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -320,7 +323,8 @@ "end": 338 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -419,7 +423,8 @@ "end": 394 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -743,7 +748,8 @@ "end": 567 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], @@ -933,7 +939,8 @@ "end": 682 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1032,7 +1039,8 @@ "end": 738 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1356,7 +1364,8 @@ "end": 911 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json index 875494cee29b..93fe7a96c6a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS1.json @@ -52,7 +52,8 @@ "end": 96 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 132 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 156 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 233 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 281 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json index d59ed0425b7b..958cef79bc5d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS2.json @@ -52,7 +52,8 @@ "end": 96 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -110,7 +111,8 @@ "end": 162 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -344,7 +346,8 @@ "end": 305 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], @@ -499,7 +502,8 @@ "end": 384 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json index f72715063e34..4a57fa9346f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS3.json @@ -74,7 +74,8 @@ "end": 106 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -434,7 +435,8 @@ "end": 344 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json index 4b8e417fae01..6d1c6fc0242f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS4.json @@ -74,7 +74,8 @@ "end": 106 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -190,7 +191,8 @@ "end": 192 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json index d8f10a655b1f..77e37ae4f4db 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInCJS5.json @@ -74,7 +74,8 @@ "end": 142 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 183 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 248 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -320,7 +323,8 @@ "end": 343 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -419,7 +423,8 @@ "end": 400 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -743,7 +748,8 @@ "end": 573 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], @@ -933,7 +939,8 @@ "end": 688 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1032,7 +1039,8 @@ "end": 744 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1356,7 +1364,8 @@ "end": 917 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsAMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsAMD.json index 08b5be33dd50..b2258482ec88 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsAMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsAMD.json @@ -103,7 +103,8 @@ "end": 176 }, "value": "./something", - "raw": "\"./something\"" + "raw": "\"./something\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsCJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsCJS.json index a64f9b044f7e..6975aaeadffc 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsCJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsCJS.json @@ -103,7 +103,8 @@ "end": 181 }, "value": "./something", - "raw": "\"./something\"" + "raw": "\"./something\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsUMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsUMD.json index 08b5be33dd50..b2258482ec88 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsUMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInExportEqualsUMD.json @@ -103,7 +103,8 @@ "end": 176 }, "value": "./something", - "raw": "\"./something\"" + "raw": "\"./something\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json index 55c5b7cbe7b0..6c0187f859dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem1.json @@ -52,7 +52,8 @@ "end": 94 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 130 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 154 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 231 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 279 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json index 1e7440bc11b1..e21a0a20d880 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem2.json @@ -74,7 +74,8 @@ "end": 104 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -434,7 +435,8 @@ "end": 342 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json index ec28ead7060c..9ea41f22858a 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem3.json @@ -74,7 +74,8 @@ "end": 104 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -190,7 +191,8 @@ "end": 190 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json index 4cabc524e053..6b152e6f329b 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInSystem4.json @@ -74,7 +74,8 @@ "end": 140 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 181 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 246 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -320,7 +323,8 @@ "end": 341 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -419,7 +423,8 @@ "end": 397 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -743,7 +748,8 @@ "end": 570 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], @@ -933,7 +939,8 @@ "end": 685 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1032,7 +1039,8 @@ "end": 741 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1356,7 +1364,8 @@ "end": 914 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json index 3a457c348955..4320ad0de9ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD1.json @@ -52,7 +52,8 @@ "end": 91 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -94,7 +95,8 @@ "end": 127 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -153,7 +155,8 @@ "end": 151 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -344,7 +347,8 @@ "end": 228 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -435,7 +439,8 @@ "end": 276 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json index 8a75cb5ad3ac..1b5af3814223 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD2.json @@ -74,7 +74,8 @@ "end": 101 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -434,7 +435,8 @@ "end": 339 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json index 95073823eae1..398ea554555e 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD3.json @@ -74,7 +74,8 @@ "end": 101 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -190,7 +191,8 @@ "end": 187 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json index e51b1b95f5b8..db920c7ca3fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD4.json @@ -74,7 +74,8 @@ "end": 136 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 177 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 242 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -320,7 +323,8 @@ "end": 337 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -419,7 +423,8 @@ "end": 393 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -743,7 +748,8 @@ "end": 566 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], @@ -933,7 +939,8 @@ "end": 681 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1032,7 +1039,8 @@ "end": 737 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -1356,7 +1364,8 @@ "end": 910 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD5.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD5.json index 844a851d595c..e715fc3bca17 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD5.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionInUMD5.json @@ -52,7 +52,8 @@ "end": 91 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -125,7 +126,8 @@ "end": 223 }, "value": ".", - "raw": "'.'" + "raw": "'.'", + "loneSurrogates": false }, "definite": false } @@ -206,7 +208,8 @@ "end": 291 }, "value": "/package.json", - "raw": "'/package.json'" + "raw": "'/package.json'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json index 2ec713fba202..4670066b6ab8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD.json @@ -18,7 +18,8 @@ "end": 112 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 206 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json index 2ec713fba202..4670066b6ab8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedAMD2.json @@ -18,7 +18,8 @@ "end": 112 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 206 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json index 05c4cbd25179..08068d4d74bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS.json @@ -18,7 +18,8 @@ "end": 117 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 211 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json index 05c4cbd25179..08068d4d74bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedCJS2.json @@ -18,7 +18,8 @@ "end": 117 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 211 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json index a344701bca72..fae6e981433f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2015.json @@ -18,7 +18,8 @@ "end": 115 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 209 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json index a344701bca72..fae6e981433f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20152.json @@ -18,7 +18,8 @@ "end": 115 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 209 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json index a344701bca72..fae6e981433f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES2020.json @@ -18,7 +18,8 @@ "end": 115 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 209 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json index a344701bca72..fae6e981433f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedES20202.json @@ -18,7 +18,8 @@ "end": 115 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 209 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json index a344701bca72..fae6e981433f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem.json @@ -18,7 +18,8 @@ "end": 115 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 209 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json index a344701bca72..fae6e981433f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedSystem2.json @@ -18,7 +18,8 @@ "end": 115 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 209 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json index 2ec713fba202..4670066b6ab8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD.json @@ -18,7 +18,8 @@ "end": 112 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 206 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json index 2ec713fba202..4670066b6ab8 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNestedUMD2.json @@ -18,7 +18,8 @@ "end": 112 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } }, { @@ -122,7 +123,8 @@ "end": 206 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json index 31802ba3ece3..14e8ae3ddbf7 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionNoModuleKindSpecified.json @@ -74,7 +74,8 @@ "end": 79 }, "value": "I am B", - "raw": "\"I am B\"" + "raw": "\"I am B\"", + "loneSurrogates": false } } ] @@ -146,7 +147,8 @@ "end": 120 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -204,7 +206,8 @@ "end": 185 }, "value": "backup", - "raw": "\"backup\"" + "raw": "\"backup\"", + "loneSurrogates": false } } ] @@ -320,7 +323,8 @@ "end": 280 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -419,7 +423,8 @@ "end": 336 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false } } ], @@ -743,7 +748,8 @@ "end": 509 }, "value": "./1", - "raw": "\"./1\"" + "raw": "\"./1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json index df43b633df95..b6b9a1381db1 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionReturnPromiseOfAny.json @@ -70,7 +70,8 @@ "end": 175 }, "value": "./defaultPath", - "raw": "\"./defaultPath\"" + "raw": "\"./defaultPath\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -355,7 +356,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -365,7 +367,8 @@ }, "tail": false, "cooked": "\\", - "raw": "\\\\" + "raw": "\\\\", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -375,7 +378,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -511,7 +515,8 @@ "end": 475 }, "value": "./0", - "raw": "\"./0\"" + "raw": "\"./0\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -520,7 +525,8 @@ "end": 494 }, "value": "externalModule", - "raw": "\"externalModule\"" + "raw": "\"externalModule\"", + "loneSurrogates": false } } } @@ -861,7 +867,8 @@ "end": 669 }, "value": "defaulPath", - "raw": "\"defaulPath\"" + "raw": "\"defaulPath\"", + "loneSurrogates": false } } } @@ -1408,7 +1415,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1418,7 +1426,8 @@ }, "tail": true, "cooked": "\\moduleFile", - "raw": "\\\\moduleFile" + "raw": "\\\\moduleFile", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json index 2ed21783bc57..2e4ab0077475 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionShouldNotGetParen.json @@ -39,7 +39,8 @@ "end": 86 }, "value": "zh-CN", - "raw": "\"zh-CN\"" + "raw": "\"zh-CN\"", + "loneSurrogates": false }, "definite": false } @@ -109,7 +110,8 @@ }, "tail": false, "cooked": "./locales/", - "raw": "./locales/" + "raw": "./locales/", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -119,7 +121,8 @@ }, "tail": true, "cooked": ".js", - "raw": ".js" + "raw": ".js", + "loneSurrogates": false } ] } @@ -278,7 +281,8 @@ "end": 180 }, "value": "./locales/", - "raw": "\"./locales/\"" + "raw": "\"./locales/\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -298,7 +302,8 @@ "end": 201 }, "value": ".js", - "raw": "\".js\"" + "raw": "\".js\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json b/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json index 6677e41b7f4d..2889484845f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json +++ b/crates/swc_ecma_parser/tests/tsc/importCallExpressionSpecifierNotStringTypeError.json @@ -301,7 +301,8 @@ "end": 304 }, "value": "defaulPath", - "raw": "\"defaulPath\"" + "raw": "\"defaulPath\"", + "loneSurrogates": false } } } @@ -496,7 +497,8 @@ "end": 396 }, "value": "path1", - "raw": "\"path1\"" + "raw": "\"path1\"", + "loneSurrogates": false } }, { @@ -508,7 +510,8 @@ "end": 405 }, "value": "path2", - "raw": "\"path2\"" + "raw": "\"path2\"", + "loneSurrogates": false } } ] @@ -581,7 +584,8 @@ "end": 443 }, "value": "PathToModule", - "raw": "\"PathToModule\"" + "raw": "\"PathToModule\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/importClause_default.json b/crates/swc_ecma_parser/tests/tsc/importClause_default.json index a29e2cdb5aa6..8f7514b10063 100644 --- a/crates/swc_ecma_parser/tests/tsc/importClause_default.json +++ b/crates/swc_ecma_parser/tests/tsc/importClause_default.json @@ -110,7 +110,8 @@ "end": 104 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -218,7 +219,8 @@ "end": 133 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json b/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json index f305b0bdf34c..87cf7d652329 100644 --- a/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json +++ b/crates/swc_ecma_parser/tests/tsc/importElisionConstEnumMerge1.json @@ -93,7 +93,8 @@ "end": 114 }, "value": "./enum", - "raw": "\"./enum\"" + "raw": "\"./enum\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -227,7 +228,8 @@ "end": 234 }, "value": "./merge", - "raw": "\"./merge\"" + "raw": "\"./merge\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importEmptyFromModuleNotExisted.json b/crates/swc_ecma_parser/tests/tsc/importEmptyFromModuleNotExisted.json index 349cf3c9bb6b..aa2d28313b24 100644 --- a/crates/swc_ecma_parser/tests/tsc/importEmptyFromModuleNotExisted.json +++ b/crates/swc_ecma_parser/tests/tsc/importEmptyFromModuleNotExisted.json @@ -19,7 +19,8 @@ "end": 36 }, "value": "module-not-existed", - "raw": "'module-not-existed'" + "raw": "'module-not-existed'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importEquals2.json b/crates/swc_ecma_parser/tests/tsc/importEquals2.json index 9a6baba846d7..9b136edcbec5 100644 --- a/crates/swc_ecma_parser/tests/tsc/importEquals2.json +++ b/crates/swc_ecma_parser/tests/tsc/importEquals2.json @@ -94,7 +94,8 @@ "end": 122 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -148,7 +149,8 @@ "end": 181 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json b/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json index b7855607e572..8dabffd51012 100644 --- a/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/importEqualsDeclaration.json @@ -163,7 +163,8 @@ "end": 217 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false } } }, @@ -198,7 +199,8 @@ "end": 253 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false } } }, @@ -309,7 +311,8 @@ "end": 308 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/importFromDot.json b/crates/swc_ecma_parser/tests/tsc/importFromDot.json index 5da26e249410..049de4b2a0c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/importFromDot.json +++ b/crates/swc_ecma_parser/tests/tsc/importFromDot.json @@ -152,7 +152,8 @@ "end": 176 }, "value": ".", - "raw": "\".\"" + "raw": "\".\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json b/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json index 5b8e301d1adb..796ced46a3f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json +++ b/crates/swc_ecma_parser/tests/tsc/importImportOnlyModule.json @@ -137,7 +137,8 @@ "end": 142 }, "value": "./foo_0", - "raw": "'./foo_0'" + "raw": "'./foo_0'", + "loneSurrogates": false } } }, @@ -212,7 +213,8 @@ "end": 263 }, "value": "./foo_1", - "raw": "\"./foo_1\"" + "raw": "\"./foo_1\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json b/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json index f6e5d9c6f773..fa5533767cb0 100644 --- a/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json +++ b/crates/swc_ecma_parser/tests/tsc/importNonExternalModule.json @@ -112,7 +112,8 @@ "end": 134 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/importSpecifiers_js.json b/crates/swc_ecma_parser/tests/tsc/importSpecifiers_js.json index 7eada9c1d1e0..dd30166a99f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/importSpecifiers_js.json +++ b/crates/swc_ecma_parser/tests/tsc/importSpecifiers_js.json @@ -74,7 +74,8 @@ "end": 148 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json b/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json index fc01f467bd6e..7bbedbfd953d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json +++ b/crates/swc_ecma_parser/tests/tsc/importTsBeforeDTs.json @@ -158,7 +158,8 @@ "end": 180 }, "value": "./foo_0", - "raw": "\"./foo_0\"" + "raw": "\"./foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json b/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json index d692341d02e5..a3ea069a13bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeAmbient.json @@ -21,7 +21,8 @@ "end": 56 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -193,7 +194,8 @@ "end": 168 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, @@ -270,7 +272,8 @@ "end": 210 }, "value": "foo2", - "raw": "\"foo2\"" + "raw": "\"foo2\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -753,7 +756,8 @@ "end": 524 }, "value": "foo2", - "raw": "\"foo2\"" + "raw": "\"foo2\"", + "loneSurrogates": false }, "qualifier": { "type": "TsQualifiedName", @@ -809,7 +813,8 @@ "end": 541 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1123,7 +1128,8 @@ "end": 675 }, "value": "foo2", - "raw": "\"foo2\"" + "raw": "\"foo2\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json b/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json index 7232793d2a23..fea8e2e08620 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeAmbientMissing.json @@ -21,7 +21,8 @@ "end": 56 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -193,7 +194,8 @@ "end": 167 }, "value": "fo", - "raw": "\"fo\"" + "raw": "\"fo\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json b/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json index c20aba5afeed..5b78f23f0727 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeAmdBundleRewrite.json @@ -128,7 +128,8 @@ "end": 169 }, "value": "./b/c", - "raw": "\"./b/c\"" + "raw": "\"./b/c\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -266,7 +267,8 @@ "end": 256 }, "value": "./a/inner", - "raw": "\"./a/inner\"" + "raw": "\"./a/inner\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, @@ -287,7 +289,8 @@ "end": 261 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json b/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json index e649b1464ed0..defea0a27f68 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeGenericTypes.json @@ -965,7 +965,8 @@ "end": 527 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": { @@ -1169,7 +1170,8 @@ "end": 604 }, "value": "./foo2", - "raw": "\"./foo2\"" + "raw": "\"./foo2\"", + "loneSurrogates": false }, "qualifier": { "type": "TsQualifiedName", @@ -1277,7 +1279,8 @@ "end": 634 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1720,7 +1723,8 @@ "end": 811 }, "value": "./foo2", - "raw": "\"./foo2\"" + "raw": "\"./foo2\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json b/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json index 1c8af58b95c4..5ead086c8d0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeLocal.json @@ -658,7 +658,8 @@ "end": 462 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, @@ -770,7 +771,8 @@ "end": 511 }, "value": "./foo2", - "raw": "\"./foo2\"" + "raw": "\"./foo2\"", + "loneSurrogates": false }, "qualifier": { "type": "TsQualifiedName", @@ -826,7 +828,8 @@ "end": 528 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1154,7 +1157,8 @@ "end": 678 }, "value": "./foo2", - "raw": "\"./foo2\"" + "raw": "\"./foo2\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json b/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json index 29b4420a3f6d..81aa1e5949df 100644 --- a/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json +++ b/crates/swc_ecma_parser/tests/tsc/importTypeLocalMissing.json @@ -658,7 +658,8 @@ "end": 461 }, "value": "./fo", - "raw": "\"./fo\"" + "raw": "\"./fo\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, @@ -770,7 +771,8 @@ "end": 509 }, "value": "./fo2", - "raw": "\"./fo2\"" + "raw": "\"./fo2\"", + "loneSurrogates": false }, "qualifier": { "type": "TsQualifiedName", @@ -826,7 +828,8 @@ "end": 526 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -906,7 +909,8 @@ "end": 565 }, "value": "./foo2", - "raw": "\"./foo2\"" + "raw": "\"./foo2\"", + "loneSurrogates": false }, "qualifier": { "type": "TsQualifiedName", @@ -962,7 +966,8 @@ "end": 582 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1290,7 +1295,8 @@ "end": 731 }, "value": "./fo2", - "raw": "\"./fo2\"" + "raw": "\"./fo2\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json b/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json index 5c2aaa9ee7cd..dfd33561d9df 100644 --- a/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/importingExportingTypes.json @@ -21,7 +21,8 @@ "end": 125 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -391,7 +392,8 @@ "end": 392 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json b/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json index 69f29c7adc0f..11360b30064f 100644 --- a/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/importsImplicitlyReadonly.json @@ -176,7 +176,8 @@ "end": 131 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -214,7 +215,8 @@ "end": 158 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -251,7 +253,8 @@ "end": 185 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json b/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json index 19ac5ccd760d..42eb6db7c789 100644 --- a/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json +++ b/crates/swc_ecma_parser/tests/tsc/importsNotUsedAsValues_error.json @@ -212,7 +212,8 @@ "end": 223 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -448,7 +449,8 @@ "end": 331 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -701,7 +703,8 @@ "end": 446 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -926,7 +929,8 @@ "end": 543 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -966,7 +970,8 @@ "end": 618 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1015,7 +1020,8 @@ "end": 653 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -1331,7 +1337,8 @@ "end": 765 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1607,7 +1614,8 @@ "end": 899 }, "value": "./h", - "raw": "'./h'" + "raw": "'./h'", + "loneSurrogates": false } } }, @@ -1761,7 +1769,8 @@ "end": 987 }, "value": "./h", - "raw": "'./h'" + "raw": "'./h'", + "loneSurrogates": false } } }, @@ -1870,7 +1879,8 @@ "end": 1123 }, "value": "./k", - "raw": "'./k'" + "raw": "'./k'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json b/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json index 501fe098184d..b400396f4db5 100644 --- a/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/inOperatorWithValidOperands.json @@ -478,7 +478,8 @@ "end": 292 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json index 8ceec32454fb..c6b12f0d4ca8 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithAnyOtherType.json @@ -161,7 +161,8 @@ "end": 79 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -173,7 +174,8 @@ "end": 83 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json index e98f0475d0ec..4ad612ffb795 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumType.json @@ -73,7 +73,8 @@ "end": 51 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -150,7 +151,8 @@ "end": 103 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -267,7 +269,8 @@ "end": 179 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumTypeInvalidOperations.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumTypeInvalidOperations.json index c2b4e870690d..fde118ad962b 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumTypeInvalidOperations.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithEnumTypeInvalidOperations.json @@ -100,7 +100,8 @@ "end": 66 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } diff --git a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json index 437466937013..74426ac1aa5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/incrementOperatorWithUnsupportedStringType.json @@ -115,7 +115,8 @@ "end": 78 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 82 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 120 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 185 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -703,7 +707,8 @@ "end": 452 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -769,7 +774,8 @@ "end": 485 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -789,7 +795,8 @@ "end": 492 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -858,7 +865,8 @@ "end": 527 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -987,7 +995,8 @@ "end": 589 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -1053,7 +1062,8 @@ "end": 622 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1073,7 +1083,8 @@ "end": 629 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1142,7 +1153,8 @@ "end": 665 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -2076,7 +2088,8 @@ "end": 1187 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -2395,7 +2408,8 @@ "end": 1268 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/independentPropertyVariance.json b/crates/swc_ecma_parser/tests/tsc/independentPropertyVariance.json index 8221fe619e1f..1eb593d9e049 100644 --- a/crates/swc_ecma_parser/tests/tsc/independentPropertyVariance.json +++ b/crates/swc_ecma_parser/tests/tsc/independentPropertyVariance.json @@ -241,7 +241,8 @@ "end": 170 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/indexerWithTuple.json b/crates/swc_ecma_parser/tests/tsc/indexerWithTuple.json index 0c344c60527a..5beccda71ff5 100644 --- a/crates/swc_ecma_parser/tests/tsc/indexerWithTuple.json +++ b/crates/swc_ecma_parser/tests/tsc/indexerWithTuple.json @@ -95,7 +95,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -260,7 +261,8 @@ "end": 109 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -403,7 +405,8 @@ "end": 171 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -530,7 +533,8 @@ "end": 231 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -997,7 +1001,8 @@ "end": 525 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -1061,7 +1066,8 @@ "end": 565 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } }, @@ -1647,7 +1653,8 @@ "end": 1028 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -1711,7 +1718,8 @@ "end": 1073 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } }, @@ -2097,7 +2105,8 @@ "end": 1416 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, @@ -2161,7 +2170,8 @@ "end": 1462 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json b/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json index 93bfa5f3581c..bce92b280780 100644 --- a/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/indexersInClassType.json @@ -211,7 +211,8 @@ "end": 79 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json b/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json index 121bd3656522..cd2e67b12b30 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json +++ b/crates/swc_ecma_parser/tests/tsc/inferTypesWithExtends1.json @@ -171,7 +171,8 @@ "end": 144 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -307,7 +308,8 @@ "end": 201 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -418,7 +420,8 @@ "end": 240 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -821,7 +824,8 @@ "end": 467 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -982,7 +986,8 @@ "end": 535 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -1101,7 +1106,8 @@ "end": 577 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -1597,7 +1603,8 @@ "end": 845 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -1784,7 +1791,8 @@ "end": 922 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -1895,7 +1903,8 @@ "end": 966 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2359,7 +2368,8 @@ "end": 1228 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -2583,7 +2593,8 @@ "end": 1316 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -2726,7 +2737,8 @@ "end": 1369 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -3121,7 +3133,8 @@ "end": 1609 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -3266,7 +3279,8 @@ "end": 1673 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -3393,7 +3407,8 @@ "end": 1719 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -3409,7 +3424,8 @@ "end": 1725 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -3826,7 +3842,8 @@ "end": 1947 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -3981,7 +3998,8 @@ "end": 2009 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -4110,7 +4128,8 @@ "end": 2052 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -4541,7 +4560,8 @@ "end": 2293 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -4759,7 +4779,8 @@ "end": 2382 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -4888,7 +4909,8 @@ "end": 2425 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -4931,7 +4953,8 @@ "end": 2433 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -5292,7 +5315,8 @@ "end": 2593 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -5573,7 +5597,8 @@ "end": 2775 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -5784,7 +5809,8 @@ "end": 2849 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -5913,7 +5939,8 @@ "end": 2892 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -5956,7 +5983,8 @@ "end": 2900 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -6317,7 +6345,8 @@ "end": 3060 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -6598,7 +6627,8 @@ "end": 3241 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -6809,7 +6839,8 @@ "end": 3315 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -6938,7 +6969,8 @@ "end": 3358 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -6981,7 +7013,8 @@ "end": 3366 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -7342,7 +7375,8 @@ "end": 3526 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -9621,7 +9655,8 @@ "end": 4876 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -9766,7 +9801,8 @@ "end": 4945 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -10150,7 +10186,8 @@ "end": 5094 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -10538,7 +10575,8 @@ "end": 5251 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json index 10c839b16575..6256637e9209 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassMembersFromAssignments.json @@ -196,7 +196,8 @@ "end": 292 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -475,7 +476,8 @@ "end": 516 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -571,7 +573,8 @@ "end": 608 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -617,7 +620,8 @@ "end": 651 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -811,7 +815,8 @@ "end": 850 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -1020,7 +1025,8 @@ "end": 1015 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -1308,7 +1314,8 @@ "end": 1238 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -1506,7 +1513,8 @@ "end": 1421 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -1708,7 +1716,8 @@ "end": 1593 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -1905,7 +1914,8 @@ "end": 1813 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -2114,7 +2124,8 @@ "end": 1997 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -2312,7 +2323,8 @@ "end": 2166 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -2510,7 +2522,8 @@ "end": 2368 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json b/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json index fbb4a9b5ad53..864e8c7913ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/inferringClassStaticMembersFromAssignments.json @@ -781,7 +781,8 @@ "end": 464 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json b/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json index edcac950fe39..7ceffab28cfa 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName.json @@ -18,7 +18,8 @@ "end": 69 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName2.json b/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName2.json index 8b4f6a5eaefa..a8bbe7e41184 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName2.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceMemberWithComputedPropertyName2.json @@ -18,7 +18,8 @@ "end": 122 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json b/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json index f0cd494a0779..3f8bdae731d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/instancePropertiesInheritedIntoClassType.json @@ -1555,7 +1555,8 @@ "end": 672 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1788,7 +1789,8 @@ "end": 743 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json b/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json index 698f9d6e2c56..4f95596a68cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/instancePropertyInClassType.json @@ -1297,7 +1297,8 @@ "end": 588 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1530,7 +1531,8 @@ "end": 659 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json index 0e549b14f85b..3b497ce86f0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.es2015.json @@ -697,7 +697,8 @@ "end": 431 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1573,7 +1574,8 @@ "end": 911 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1798,7 +1800,8 @@ "end": 1037 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json index 556ae6aaf807..09b4b2bf9fc6 100644 --- a/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json +++ b/crates/swc_ecma_parser/tests/tsc/instanceofOperatorWithInvalidOperands.json @@ -697,7 +697,8 @@ "end": 396 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1573,7 +1574,8 @@ "end": 876 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1798,7 +1800,8 @@ "end": 1002 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/instantiateTemplateTagTypeParameterOnVariableStatement.json b/crates/swc_ecma_parser/tests/tsc/instantiateTemplateTagTypeParameterOnVariableStatement.json index e0cf3648a385..1e550f9f133d 100644 --- a/crates/swc_ecma_parser/tests/tsc/instantiateTemplateTagTypeParameterOnVariableStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/instantiateTemplateTagTypeParameterOnVariableStatement.json @@ -130,7 +130,8 @@ "end": 273 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -170,7 +171,8 @@ "end": 296 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json b/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json index 163c6b84efca..05193085b7c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceDoesNotDependOnBaseTypes.json @@ -99,7 +99,8 @@ "end": 45 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -158,7 +159,8 @@ "end": 62 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -222,7 +224,8 @@ "end": 79 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json index 7e0bf9c8d74b..54f682ceede5 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersection.json @@ -439,7 +439,8 @@ "end": 210 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -455,7 +456,8 @@ "end": 216 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -471,7 +473,8 @@ "end": 222 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json index da831098b4e7..64a288952075 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceExtendsObjectIntersectionErrors.json @@ -316,7 +316,8 @@ "end": 153 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -332,7 +333,8 @@ "end": 159 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -348,7 +350,8 @@ "end": 165 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -1740,7 +1743,8 @@ "end": 826 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json index 7cc4c3b0b361..e4ef8c51e321 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithOverloadedCallAndConstructSignatures.json @@ -353,7 +353,8 @@ "end": 147 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -468,7 +469,8 @@ "end": 185 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json index b994b69ffdd0..ad1706a9ba79 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithPropertyOfEveryType.json @@ -1071,7 +1071,8 @@ "end": 380 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json index 71472eca3dd6..0c509e8487f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/interfaceWithSpecializedCallAndConstructSignatures.json @@ -66,7 +66,8 @@ "end": 28 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -174,7 +175,8 @@ "end": 77 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -370,7 +372,8 @@ "end": 142 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -434,7 +437,8 @@ "end": 159 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } ], @@ -498,7 +502,8 @@ "end": 180 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -562,7 +567,8 @@ "end": 201 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json b/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json index 715d17a1c1bf..4ea82bb4863e 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionAsWeakTypeSource.json @@ -336,7 +336,8 @@ "end": 121 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -1059,7 +1060,8 @@ "end": 463 }, "value": "???", - "raw": "\"???\"" + "raw": "\"???\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json b/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json index e90b62f19041..6f18419885de 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionIncludingPropFromGlobalAugmentation.json @@ -84,7 +84,8 @@ "end": 147 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json b/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json index fd48d2306987..8c83acaa7aca 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionMemberOfUnionNarrowsCorrectly.json @@ -81,7 +81,8 @@ "end": 29 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -175,7 +176,8 @@ "end": 57 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -489,7 +491,8 @@ "end": 151 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json b/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json index 77042b8630e3..9083181e6a29 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionNarrowing.json @@ -650,7 +650,8 @@ "end": 419 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1203,7 +1204,8 @@ "end": 799 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json b/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json index 0170ba72df4d..0bbbc5d3360d 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionOfUnionOfUnitTypes.json @@ -198,7 +198,8 @@ "end": 60 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -214,7 +215,8 @@ "end": 66 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -230,7 +232,8 @@ "end": 72 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -262,7 +265,8 @@ "end": 80 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -278,7 +282,8 @@ "end": 86 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -294,7 +299,8 @@ "end": 92 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -373,7 +379,8 @@ "end": 127 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -389,7 +396,8 @@ "end": 133 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -405,7 +413,8 @@ "end": 139 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -437,7 +446,8 @@ "end": 147 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -453,7 +463,8 @@ "end": 153 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -469,7 +480,8 @@ "end": 159 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } ] @@ -548,7 +560,8 @@ "end": 188 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -564,7 +577,8 @@ "end": 194 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -580,7 +594,8 @@ "end": 200 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -612,7 +627,8 @@ "end": 208 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -628,7 +644,8 @@ "end": 214 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } }, { @@ -644,7 +661,8 @@ "end": 220 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } ] @@ -723,7 +741,8 @@ "end": 243 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -739,7 +758,8 @@ "end": 249 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -755,7 +775,8 @@ "end": 255 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -787,7 +808,8 @@ "end": 263 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } }, { @@ -803,7 +825,8 @@ "end": 269 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } }, { @@ -819,7 +842,8 @@ "end": 275 }, "value": "f", - "raw": "'f'" + "raw": "'f'", + "loneSurrogates": false } } ] @@ -898,7 +922,8 @@ "end": 300 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -914,7 +939,8 @@ "end": 306 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -930,7 +956,8 @@ "end": 312 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -962,7 +989,8 @@ "end": 320 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -978,7 +1006,8 @@ "end": 326 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -994,7 +1023,8 @@ "end": 332 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } ] @@ -1026,7 +1056,8 @@ "end": 340 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -1042,7 +1073,8 @@ "end": 346 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } }, { @@ -1058,7 +1090,8 @@ "end": 352 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } ] @@ -1137,7 +1170,8 @@ "end": 375 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1153,7 +1187,8 @@ "end": 381 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -1169,7 +1204,8 @@ "end": 387 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -1201,7 +1237,8 @@ "end": 395 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -1217,7 +1254,8 @@ "end": 401 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -1233,7 +1271,8 @@ "end": 407 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } ] @@ -1265,7 +1304,8 @@ "end": 415 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -1281,7 +1321,8 @@ "end": 421 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } }, { @@ -1297,7 +1338,8 @@ "end": 427 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } ] @@ -1329,7 +1371,8 @@ "end": 435 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } }, { @@ -1345,7 +1388,8 @@ "end": 441 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } }, { @@ -1361,7 +1405,8 @@ "end": 447 }, "value": "f", - "raw": "'f'" + "raw": "'f'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json b/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json index 08b5f6111e30..a63b3ef024d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionReduction.json @@ -159,7 +159,8 @@ "end": 113 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -203,7 +204,8 @@ "end": 136 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -227,7 +229,8 @@ "end": 151 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -525,7 +528,8 @@ "end": 357 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -640,7 +644,8 @@ "end": 431 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -656,7 +661,8 @@ "end": 437 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -748,7 +754,8 @@ "end": 489 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -811,7 +818,8 @@ "end": 524 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -827,7 +835,8 @@ "end": 530 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1295,7 +1304,8 @@ "end": 750 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1311,7 +1321,8 @@ "end": 756 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1880,7 +1891,8 @@ "end": 978 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1986,7 +1998,8 @@ "end": 1015 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -2092,7 +2105,8 @@ "end": 1052 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -2830,7 +2844,8 @@ "end": 1314 }, "value": "kind", - "raw": "'kind'" + "raw": "'kind'", + "loneSurrogates": false } } } @@ -4627,7 +4642,8 @@ "end": 1880 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } } @@ -4733,7 +4749,8 @@ "end": 1918 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } } @@ -5310,7 +5327,8 @@ "end": 2135 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -5390,7 +5408,8 @@ "end": 2167 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -5469,7 +5488,8 @@ "end": 2199 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -5485,7 +5505,8 @@ "end": 2205 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -5557,7 +5578,8 @@ "end": 2221 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -5630,7 +5652,8 @@ "end": 2253 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -6223,7 +6246,8 @@ "end": 2540 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -6252,7 +6276,8 @@ "end": 2547 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -6268,7 +6293,8 @@ "end": 2553 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -6311,7 +6337,8 @@ "end": 2560 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -6523,7 +6550,8 @@ "end": 2655 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -6578,7 +6606,8 @@ "end": 2673 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -6620,7 +6649,8 @@ "end": 2690 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -6689,7 +6719,8 @@ "end": 2708 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -6794,7 +6825,8 @@ "end": 2744 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -6849,7 +6881,8 @@ "end": 2762 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -6935,7 +6968,8 @@ "end": 2800 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -7004,7 +7038,8 @@ "end": 2818 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -7130,7 +7165,8 @@ "end": 2864 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -7216,7 +7252,8 @@ "end": 2902 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -7327,7 +7364,8 @@ "end": 2971 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -7434,7 +7472,8 @@ "end": 3019 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -7975,7 +8014,8 @@ "end": 3265 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -7991,7 +8031,8 @@ "end": 3271 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -8055,7 +8096,8 @@ "end": 3304 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -8217,7 +8259,8 @@ "end": 3358 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json b/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json index bc0f261f0bc3..0f9a2860985e 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionReductionStrict.json @@ -159,7 +159,8 @@ "end": 112 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -203,7 +204,8 @@ "end": 135 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -227,7 +229,8 @@ "end": 150 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -525,7 +528,8 @@ "end": 356 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -640,7 +644,8 @@ "end": 430 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -656,7 +661,8 @@ "end": 436 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -748,7 +754,8 @@ "end": 488 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -811,7 +818,8 @@ "end": 523 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -827,7 +835,8 @@ "end": 529 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1295,7 +1304,8 @@ "end": 749 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1311,7 +1321,8 @@ "end": 755 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1880,7 +1891,8 @@ "end": 977 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1986,7 +1998,8 @@ "end": 1014 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -2092,7 +2105,8 @@ "end": 1051 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -2830,7 +2844,8 @@ "end": 1313 }, "value": "kind", - "raw": "'kind'" + "raw": "'kind'", + "loneSurrogates": false } } } @@ -4615,7 +4630,8 @@ "end": 1902 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -4695,7 +4711,8 @@ "end": 1934 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -4774,7 +4791,8 @@ "end": 1966 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -4790,7 +4808,8 @@ "end": 1972 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -4862,7 +4881,8 @@ "end": 1988 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -4935,7 +4955,8 @@ "end": 2020 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -5528,7 +5549,8 @@ "end": 2307 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -5557,7 +5579,8 @@ "end": 2314 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -5573,7 +5596,8 @@ "end": 2320 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -5616,7 +5640,8 @@ "end": 2327 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -5828,7 +5853,8 @@ "end": 2422 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -5883,7 +5909,8 @@ "end": 2440 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -5925,7 +5952,8 @@ "end": 2457 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -5994,7 +6022,8 @@ "end": 2475 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -6099,7 +6128,8 @@ "end": 2511 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -6154,7 +6184,8 @@ "end": 2529 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -6240,7 +6271,8 @@ "end": 2567 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -6309,7 +6341,8 @@ "end": 2585 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -6435,7 +6468,8 @@ "end": 2631 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -6521,7 +6555,8 @@ "end": 2669 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json b/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json index 196edfd528da..4b18e967a88a 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionThisTypes.json @@ -1369,7 +1369,8 @@ "end": 589 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json index e89afaba4d2a..7962b3a8b166 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference.json @@ -545,7 +545,8 @@ "end": 218 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1259,7 +1260,8 @@ "end": 416 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json index ecff329e6ed0..cbeea2269af0 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference2.json @@ -985,7 +985,8 @@ "end": 352 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -1038,7 +1039,8 @@ "end": 366 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json index 191d56905590..84fe5da73998 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeInference3.json @@ -233,7 +233,8 @@ "end": 163 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json index cc5910dff09d..f563dea6ad99 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeMembers.json @@ -343,7 +343,8 @@ "end": 296 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -392,7 +393,8 @@ "end": 313 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -441,7 +443,8 @@ "end": 330 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -828,7 +831,8 @@ "end": 434 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -892,7 +896,8 @@ "end": 453 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -956,7 +961,8 @@ "end": 472 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -1235,7 +1241,8 @@ "end": 575 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1859,7 +1866,8 @@ "end": 843 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } }, { @@ -1879,7 +1887,8 @@ "end": 864 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] @@ -2418,7 +2427,8 @@ "end": 1251 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } }, { @@ -2438,7 +2448,8 @@ "end": 1272 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } }, { @@ -2458,7 +2469,8 @@ "end": 1293 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } }, { @@ -2478,7 +2490,8 @@ "end": 1323 }, "value": "affirmative", - "raw": "'affirmative'" + "raw": "'affirmative'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json b/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json index 8d350e3d40b0..c579f608abac 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionTypeOverloading.json @@ -363,7 +363,8 @@ "end": 202 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -473,7 +474,8 @@ "end": 237 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json b/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json index bcd1d1a39fe8..d3a917992a9b 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionWithIndexSignatures.json @@ -1696,7 +1696,8 @@ "end": 600 }, "value": "asd", - "raw": "\"asd\"" + "raw": "\"asd\"", + "loneSurrogates": false } } }, @@ -1776,7 +1777,8 @@ "end": 622 }, "value": "asd", - "raw": "\"asd\"" + "raw": "\"asd\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json b/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json index 9a223f4ceae0..0384baec3a20 100644 --- a/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json +++ b/crates/swc_ecma_parser/tests/tsc/intersectionsAndEmptyObjects.json @@ -2267,7 +2267,8 @@ "end": 984 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -3997,7 +3998,8 @@ "end": 1915 }, "value": "./ex", - "raw": "'./ex'" + "raw": "'./ex'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json index 315394b338d8..815cf9603225 100644 --- a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json +++ b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2020.json @@ -144,7 +144,8 @@ "end": 150 }, "value": "en-NZ", - "raw": "'en-NZ'" + "raw": "'en-NZ'", + "loneSurrogates": false } } ], @@ -214,7 +215,8 @@ "end": 218 }, "value": "en-NZ", - "raw": "'en-NZ'" + "raw": "'en-NZ'", + "loneSurrogates": false } }, { @@ -280,7 +282,8 @@ "end": 284 }, "value": "en-NZ", - "raw": "'en-NZ'" + "raw": "'en-NZ'", + "loneSurrogates": false } }, { @@ -309,7 +312,8 @@ "end": 311 }, "value": "arab", - "raw": "'arab'" + "raw": "'arab'", + "loneSurrogates": false } } ] @@ -439,7 +443,8 @@ "end": 393 }, "value": "en-NZ", - "raw": "'en-NZ'" + "raw": "'en-NZ'", + "loneSurrogates": false } }, { @@ -468,7 +473,8 @@ "end": 414 }, "value": "currency", - "raw": "'currency'" + "raw": "'currency'", + "loneSurrogates": false } }, { @@ -488,7 +494,8 @@ "end": 431 }, "value": "NZD", - "raw": "'NZD'" + "raw": "'NZD'", + "loneSurrogates": false } }, { @@ -508,7 +515,8 @@ "end": 459 }, "value": "accounting", - "raw": "'accounting'" + "raw": "'accounting'", + "loneSurrogates": false } } ] @@ -653,7 +661,8 @@ "end": 551 }, "value": "en-NZ", - "raw": "'en-NZ'" + "raw": "'en-NZ'", + "loneSurrogates": false } }, { @@ -682,7 +691,8 @@ "end": 568 }, "value": "unit", - "raw": "'unit'" + "raw": "'unit'", + "loneSurrogates": false } }, { @@ -702,7 +712,8 @@ "end": 586 }, "value": "kilogram", - "raw": "'kilogram'" + "raw": "'kilogram'", + "loneSurrogates": false } }, { @@ -722,7 +733,8 @@ "end": 609 }, "value": "narrow", - "raw": "'narrow'" + "raw": "'narrow'", + "loneSurrogates": false } } ] @@ -848,7 +860,8 @@ "end": 700 }, "value": "en-NZ", - "raw": "'en-NZ'" + "raw": "'en-NZ'", + "loneSurrogates": false } }, { @@ -877,7 +890,8 @@ "end": 723 }, "value": "compact", - "raw": "'compact'" + "raw": "'compact'", + "loneSurrogates": false } }, { @@ -897,7 +911,8 @@ "end": 747 }, "value": "long", - "raw": "'long'" + "raw": "'long'", + "loneSurrogates": false } } ] @@ -970,7 +985,8 @@ "end": 816 }, "value": "en-NZ", - "raw": "'en-NZ'" + "raw": "'en-NZ'", + "loneSurrogates": false } }, { @@ -999,7 +1015,8 @@ "end": 841 }, "value": "always", - "raw": "'always'" + "raw": "'always'", + "loneSurrogates": false } } ] @@ -1098,7 +1115,8 @@ "end": 944 }, "value": "compact", - "raw": "'compact'" + "raw": "'compact'", + "loneSurrogates": false } }, { @@ -1110,7 +1128,8 @@ "end": 952 }, "value": "unit", - "raw": "'unit'" + "raw": "'unit'", + "loneSurrogates": false } }, { @@ -1122,7 +1141,8 @@ "end": 963 }, "value": "unknown", - "raw": "'unknown'" + "raw": "'unknown'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json index d004767b04dd..6b17e27d5962 100644 --- a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json +++ b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES2023.json @@ -182,7 +182,8 @@ "end": 275 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -252,7 +253,8 @@ "end": 343 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -318,7 +320,8 @@ "end": 392 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -347,7 +350,8 @@ "end": 429 }, "value": "lessPrecision", - "raw": "'lessPrecision'" + "raw": "'lessPrecision'", + "loneSurrogates": false } }, { @@ -387,7 +391,8 @@ "end": 476 }, "value": "trunc", - "raw": "'trunc'" + "raw": "'trunc'", + "loneSurrogates": false } } ] @@ -498,7 +503,8 @@ "end": 561 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -527,7 +533,8 @@ "end": 588 }, "value": "negative", - "raw": "'negative'" + "raw": "'negative'", + "loneSurrogates": false } } ] @@ -600,7 +607,8 @@ "end": 667 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -686,7 +694,8 @@ "end": 722 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -715,7 +724,8 @@ "end": 745 }, "value": "true", - "raw": "'true'" + "raw": "'true'", + "loneSurrogates": false } } ] @@ -773,7 +783,8 @@ "end": 779 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -802,7 +813,8 @@ "end": 804 }, "value": "always", - "raw": "'always'" + "raw": "'always'", + "loneSurrogates": false } } ] @@ -873,7 +885,8 @@ "end": 854 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -978,7 +991,8 @@ "end": 907 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1099,7 +1113,8 @@ "end": 963 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1227,7 +1242,8 @@ "end": 1027 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1359,7 +1375,8 @@ "end": 1134 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1384,7 +1401,8 @@ "end": 1153 }, "value": "-12.3E-4", - "raw": "'-12.3E-4'" + "raw": "'-12.3E-4'", + "loneSurrogates": false } } ], @@ -1452,7 +1470,8 @@ "end": 1185 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1477,7 +1496,8 @@ "end": 1206 }, "value": "123.4", - "raw": "'123.4'" + "raw": "'123.4'", + "loneSurrogates": false } }, { @@ -1489,7 +1509,8 @@ "end": 1215 }, "value": "567.8", - "raw": "'567.8'" + "raw": "'567.8'", + "loneSurrogates": false } } ], @@ -1557,7 +1578,8 @@ "end": 1247 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1582,7 +1604,8 @@ "end": 1276 }, "value": "123E-4", - "raw": "'123E-4'" + "raw": "'123E-4'", + "loneSurrogates": false } }, { @@ -1594,7 +1617,8 @@ "end": 1285 }, "value": "567E8", - "raw": "'567E8'" + "raw": "'567E8'", + "loneSurrogates": false } } ], @@ -1662,7 +1686,8 @@ "end": 1317 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1687,7 +1712,8 @@ "end": 1336 }, "value": "Infinity", - "raw": "'Infinity'" + "raw": "'Infinity'", + "loneSurrogates": false } } ], @@ -1755,7 +1781,8 @@ "end": 1368 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1780,7 +1807,8 @@ "end": 1388 }, "value": "-Infinity", - "raw": "'-Infinity'" + "raw": "'-Infinity'", + "loneSurrogates": false } } ], @@ -1848,7 +1876,8 @@ "end": 1420 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], @@ -1873,7 +1902,8 @@ "end": 1440 }, "value": "+Infinity", - "raw": "'+Infinity'" + "raw": "'+Infinity'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json index 576ef73b9c7a..9b4dde82c344 100644 --- a/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json +++ b/crates/swc_ecma_parser/tests/tsc/intlNumberFormatES5UseGrouping.json @@ -53,7 +53,8 @@ "end": 64 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -139,7 +140,8 @@ "end": 119 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -168,7 +170,8 @@ "end": 142 }, "value": "true", - "raw": "'true'" + "raw": "'true'", + "loneSurrogates": false } } ] @@ -226,7 +229,8 @@ "end": 192 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } }, { @@ -255,7 +259,8 @@ "end": 217 }, "value": "always", - "raw": "'always'" + "raw": "'always'", + "loneSurrogates": false } } ] @@ -366,7 +371,8 @@ "end": 292 }, "value": "en-GB", - "raw": "'en-GB'" + "raw": "'en-GB'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json b/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json index 94486377ebd3..14317fb0ac52 100644 --- a/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json +++ b/crates/swc_ecma_parser/tests/tsc/intraExpressionInferences.json @@ -3438,7 +3438,8 @@ "end": 1476 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "async": false, "generator": false, @@ -8488,7 +8489,8 @@ "end": 3931 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -8504,7 +8506,8 @@ "end": 3937 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -8624,7 +8627,8 @@ "end": 3991 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "async": false, @@ -8672,7 +8676,8 @@ "end": 3978 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -8762,7 +8767,8 @@ "end": 4026 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -9884,7 +9890,8 @@ "end": 4465 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } } ], @@ -12012,7 +12019,8 @@ "end": 5379 }, "value": "first", - "raw": "\"first\"" + "raw": "\"first\"", + "loneSurrogates": false } }, "async": false, @@ -12053,7 +12061,8 @@ "end": 5405 }, "value": "two", - "raw": "\"two\"" + "raw": "\"two\"", + "loneSurrogates": false } }, "async": false, @@ -12925,7 +12934,8 @@ "end": 5710 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } } ], @@ -13967,7 +13977,8 @@ "end": 6073 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json b/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json index c4e7b242ec26..7bb38b32910c 100644 --- a/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json +++ b/crates/swc_ecma_parser/tests/tsc/intrinsicKeyword.json @@ -728,7 +728,8 @@ "end": 459 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json b/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json index 60bc4d6e6f2b..80ba5833b003 100644 --- a/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/intrinsicTypes.json @@ -59,7 +59,8 @@ "end": 69 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -127,7 +128,8 @@ "end": 110 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -143,7 +145,8 @@ "end": 118 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -426,7 +429,8 @@ "end": 346 }, "value": "HELLO", - "raw": "'HELLO'" + "raw": "'HELLO'", + "loneSurrogates": false } } ] @@ -494,7 +498,8 @@ "end": 387 }, "value": "FOO", - "raw": "'FOO'" + "raw": "'FOO'", + "loneSurrogates": false } }, { @@ -510,7 +515,8 @@ "end": 395 }, "value": "BAR", - "raw": "'BAR'" + "raw": "'BAR'", + "loneSurrogates": false } } ] @@ -793,7 +799,8 @@ "end": 624 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -861,7 +868,8 @@ "end": 666 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -877,7 +885,8 @@ "end": 674 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -1160,7 +1169,8 @@ "end": 911 }, "value": "Hello", - "raw": "'Hello'" + "raw": "'Hello'", + "loneSurrogates": false } } ] @@ -1228,7 +1238,8 @@ "end": 955 }, "value": "Foo", - "raw": "'Foo'" + "raw": "'Foo'", + "loneSurrogates": false } }, { @@ -1244,7 +1255,8 @@ "end": 963 }, "value": "Bar", - "raw": "'Bar'" + "raw": "'Bar'", + "loneSurrogates": false } } ] @@ -1592,7 +1604,8 @@ }, "tail": false, "cooked": "aB", - "raw": "aB" + "raw": "aB", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1602,7 +1615,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1665,7 +1679,8 @@ "end": 1251 }, "value": "xYz", - "raw": "'xYz'" + "raw": "'xYz'", + "loneSurrogates": false } } ] @@ -1791,7 +1806,8 @@ }, "tail": false, "cooked": "aB", - "raw": "aB" + "raw": "aB", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1801,7 +1817,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1864,7 +1881,8 @@ "end": 1336 }, "value": "xYz", - "raw": "'xYz'" + "raw": "'xYz'", + "loneSurrogates": false } } ] @@ -1938,7 +1956,8 @@ "end": 1380 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ] @@ -1980,7 +1999,8 @@ "end": 1399 }, "value": "XYZ", - "raw": "'XYZ'" + "raw": "'XYZ'", + "loneSurrogates": false } } ] @@ -1996,7 +2016,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2006,7 +2027,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2016,7 +2038,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2734,7 +2757,8 @@ "end": 1742 }, "value": "FOO", - "raw": "'FOO'" + "raw": "'FOO'", + "loneSurrogates": false } }, { @@ -2750,7 +2774,8 @@ "end": 1750 }, "value": "BAR", - "raw": "'BAR'" + "raw": "'BAR'", + "loneSurrogates": false } } ] @@ -2821,7 +2846,8 @@ "end": 1697 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -2837,7 +2863,8 @@ "end": 1705 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json b/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json index 04709362e9e7..e130bf683904 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidAssignmentsToVoid.json @@ -151,7 +151,8 @@ "end": 37 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json index ba88de8be01b..52dda2b48727 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidEnumAssignments.json @@ -446,7 +446,8 @@ "end": 125 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json b/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json index ad7aa28393ec..a5aa93d825e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidMultipleVariableDeclarations.json @@ -1010,7 +1010,8 @@ "end": 453 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false }, "definite": false } @@ -1442,7 +1443,8 @@ "end": 591 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json b/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json index 3e9302a2d8c1..32846e8fe819 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidStringAssignments.json @@ -39,7 +39,8 @@ "end": 11 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json index 9df33b23d99b..3f92a8fdf943 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidUndefinedValues.json @@ -127,7 +127,8 @@ "end": 40 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json b/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json index 1b6cdd16053e..f0971c8dbae3 100644 --- a/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json +++ b/crates/swc_ecma_parser/tests/tsc/invalidVoidValues.json @@ -117,7 +117,8 @@ "end": 27 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json b/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json index 22b6f01058cb..513caf014a45 100644 --- a/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/isomorphicMappedTypeInference.json @@ -1950,7 +1950,8 @@ "end": 809 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2278,7 +2279,8 @@ "end": 963 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2619,7 +2621,8 @@ "end": 1119 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2897,7 +2900,8 @@ "end": 1262 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3529,7 +3533,8 @@ "end": 1530 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4131,7 +4136,8 @@ "end": 1803 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -6135,7 +6141,8 @@ "end": 2998 }, "value": "n", - "raw": "\"n\"" + "raw": "\"n\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -8086,7 +8093,8 @@ "end": 3812 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -8190,7 +8198,8 @@ "end": 3853 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -8331,7 +8340,8 @@ "end": 3914 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -8438,7 +8448,8 @@ "end": 3957 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -8542,7 +8553,8 @@ "end": 3998 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -8988,7 +9000,8 @@ "end": 4181 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -9000,7 +9013,8 @@ "end": 4188 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -9174,7 +9188,8 @@ "end": 4250 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -9186,7 +9201,8 @@ "end": 4257 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern21.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern21.json index a7dbf63d69de..92724f920cd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern21.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern21.json @@ -79,7 +79,8 @@ "end": 36 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern22.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern22.json index e88dbc71382d..9bf4d0ea4518 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern22.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern22.json @@ -80,7 +80,8 @@ "end": 36 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern23.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern23.json index b74778e3398b..aad76da4cb3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern23.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern23.json @@ -156,7 +156,8 @@ "end": 59 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern24.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern24.json index d288dade1c11..b9d8d5ce0b8d 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern24.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern24.json @@ -175,7 +175,8 @@ "end": 64 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern25.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern25.json index c84c7e7f1afb..663ad4effdb4 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern25.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern25.json @@ -208,7 +208,8 @@ "end": 106 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -244,7 +245,8 @@ "end": 120 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern26.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern26.json index 08d041fbec40..46e21131ea9e 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern26.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern26.json @@ -262,7 +262,8 @@ "end": 126 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -298,7 +299,8 @@ "end": 140 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern27.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern27.json index 9e9ac67375eb..a5fe7c7b91f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern27.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern27.json @@ -265,7 +265,8 @@ "end": 129 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -301,7 +302,8 @@ "end": 143 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern28.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern28.json index e12f00537560..a241d919e703 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern28.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern28.json @@ -265,7 +265,8 @@ "end": 146 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -301,7 +302,8 @@ "end": 160 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern29.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern29.json index 2f62e799d4ce..afafeb411839 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern29.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern29.json @@ -265,7 +265,8 @@ "end": 129 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -300,7 +301,8 @@ "end": 146 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern30.json b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern30.json index d99d090a1633..b136996faa11 100644 --- a/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern30.json +++ b/crates/swc_ecma_parser/tests/tsc/iterableArrayPattern30.json @@ -143,7 +143,8 @@ "end": 57 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -178,7 +179,8 @@ "end": 74 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json index 4aa11e6ee551..63fb730821d3 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall12.json @@ -452,7 +452,8 @@ "end": 320 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json index 666bbc774cdc..d060c70e1b42 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall5.json @@ -415,7 +415,8 @@ "end": 315 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json index bb5c13c4c622..4eadc12a095c 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall6.json @@ -415,7 +415,8 @@ "end": 315 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json index 4877323781d9..23472e2eef3a 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall7.json @@ -472,7 +472,8 @@ "end": 315 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json index 646641056038..acb6ee68229a 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall8.json @@ -452,7 +452,8 @@ "end": 320 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json index 6e40da33d351..969870daf499 100644 --- a/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json +++ b/crates/swc_ecma_parser/tests/tsc/iteratorSpreadInCall9.json @@ -452,7 +452,8 @@ "end": 320 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json index 9b0533f2fc19..08f3bc3c93bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassAccessor.json @@ -32,7 +32,8 @@ "end": 168 }, "value": "./argument.js", - "raw": "\"./argument.js\"" + "raw": "\"./argument.js\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -403,7 +404,8 @@ "end": 499 }, "value": "./base.js", - "raw": "\"./base.js\"" + "raw": "\"./base.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -550,7 +552,8 @@ "end": 677 }, "value": "argument", - "raw": "\"argument\"" + "raw": "\"argument\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json index 2fb37248f812..98c51902f338 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassExtendsVisibility.json @@ -135,7 +135,8 @@ "end": 197 }, "value": "./bar", - "raw": "\"./bar\"" + "raw": "\"./bar\"", + "loneSurrogates": false } } ], @@ -196,7 +197,8 @@ "end": 228 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -216,7 +218,8 @@ "end": 240 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json index dd3ce3d94271..0b2807bc1c1d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic.json @@ -250,7 +250,8 @@ "end": 254 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -270,7 +271,8 @@ "end": 266 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json index 92f3226e2330..d0b7e106dd3f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassStatic2.json @@ -46,7 +46,8 @@ "end": 159 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -153,7 +154,8 @@ "end": 211 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -191,7 +193,8 @@ "end": 265 }, "value": "./Foo.js", - "raw": "\"./Foo.js\"" + "raw": "\"./Foo.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -277,7 +280,8 @@ "end": 308 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json index 7b353fd45bd7..7b1d14567f6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClasses.json @@ -85,7 +85,8 @@ "end": 174 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -846,7 +847,8 @@ "end": 1343 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -969,7 +971,8 @@ "end": 1487 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1728,7 +1731,8 @@ "end": 2083 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json index e01e4aefbf97..16193ff7946e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsClassesErr.json @@ -469,7 +469,8 @@ "end": 517 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -571,7 +572,8 @@ "end": 572 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -673,7 +675,8 @@ "end": 627 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -1047,7 +1050,8 @@ "end": 842 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -1200,7 +1204,8 @@ "end": 924 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json index 213adf804d5a..747208c26b83 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCommonjsRelativePath.json @@ -18,7 +18,8 @@ "end": 127 }, "value": "use strict", - "raw": "'use strict'" + "raw": "'use strict'", + "loneSurrogates": false } }, { @@ -119,7 +120,8 @@ "end": 210 }, "value": "use strict", - "raw": "'use strict'" + "raw": "'use strict'", + "loneSurrogates": false } }, { @@ -182,7 +184,8 @@ "end": 243 }, "value": "./thing", - "raw": "'./thing'" + "raw": "'./thing'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json index 42cd9a974506..d884b31b919f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsComputedNames.json @@ -577,7 +577,8 @@ "end": 482 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json index 0fec6d754c95..7325797dc9aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsConstsAsNamespacesWithReferences.json @@ -62,7 +62,8 @@ "end": 164 }, "value": "#6400e4", - "raw": "\"#6400e4\"" + "raw": "\"#6400e4\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json index 2b58b93a2b9c..d13daf7d07c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsCrossfileMerge.json @@ -59,7 +59,8 @@ "end": 159 }, "value": "./exporter", - "raw": "\"./exporter\"" + "raw": "\"./exporter\"", + "loneSurrogates": false } } ], @@ -194,7 +195,8 @@ "end": 226 }, "value": "thing", - "raw": "\"thing\"" + "raw": "\"thing\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json index 1736b7844c85..af8a7a653d04 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefault.json @@ -366,7 +366,8 @@ "end": 441 }, "value": "./index3", - "raw": "\"./index3\"" + "raw": "\"./index3\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json index c40e90c4cdeb..a5c0d5115723 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDefaultsErr.json @@ -80,7 +80,8 @@ "end": 217 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json index 5a7295b45206..bf2fc96df7cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsDocCommentsOnConsts.json @@ -73,7 +73,8 @@ "end": 178 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json index 5f1e00502496..63a174124698 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnumTag.json @@ -62,7 +62,8 @@ "end": 180 }, "value": "start", - "raw": "\"start\"" + "raw": "\"start\"", + "loneSurrogates": false } }, { @@ -82,7 +83,8 @@ "end": 202 }, "value": "middle", - "raw": "\"middle\"" + "raw": "\"middle\"", + "loneSurrogates": false } }, { @@ -102,7 +104,8 @@ "end": 218 }, "value": "end", - "raw": "\"end\"" + "raw": "\"end\"", + "loneSurrogates": false } }, { @@ -740,7 +743,8 @@ "end": 800 }, "value": "something else", - "raw": "'something else'" + "raw": "'something else'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnums.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnums.json index 8c2e1ff2ba17..1940b01055e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnums.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsEnums.json @@ -461,7 +461,8 @@ "end": 533 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -487,7 +488,8 @@ "end": 546 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -541,7 +543,8 @@ "end": 577 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json index 804d24bfe154..495ecd8891bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignedVisibility.json @@ -200,7 +200,8 @@ "end": 242 }, "value": "./obj", - "raw": "\"./obj\"" + "raw": "\"./obj\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json index 07a75a6b52f5..5751bfa6ff8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentExpressionPlusSecondary.json @@ -56,7 +56,8 @@ "end": 144 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -76,7 +77,8 @@ "end": 156 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -147,7 +149,8 @@ "end": 194 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } }, { @@ -167,7 +170,8 @@ "end": 210 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } }, { @@ -204,7 +208,8 @@ "end": 242 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json index 47f1e81002ac..135fba896e22 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportAssignmentWithKeywordName.json @@ -107,7 +107,8 @@ "end": 166 }, "value": "base", - "raw": "'base'" + "raw": "'base'", + "loneSurrogates": false } }, { @@ -153,7 +154,8 @@ "end": 203 }, "value": "strs", - "raw": "'strs'" + "raw": "'strs'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json index 6250659ccfd5..f71059615569 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportDefinePropertyEmit.json @@ -81,7 +81,8 @@ "end": 141 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -220,7 +221,8 @@ "end": 214 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -374,7 +376,8 @@ "end": 290 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false } }, { @@ -403,7 +406,8 @@ "end": 306 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false } } ] @@ -584,7 +588,8 @@ "end": 476 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } }, { @@ -795,7 +800,8 @@ "end": 665 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } }, { @@ -983,7 +989,8 @@ "end": 795 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } }, { @@ -1114,7 +1121,8 @@ "end": 858 }, "value": "self", - "raw": "\"self\"" + "raw": "\"self\"", + "loneSurrogates": false } }, { @@ -1409,7 +1417,8 @@ "end": 1055 }, "value": "g", - "raw": "\"g\"" + "raw": "\"g\"", + "loneSurrogates": false } }, { @@ -1674,7 +1683,8 @@ "end": 1239 }, "value": "h", - "raw": "\"h\"" + "raw": "\"h\"", + "loneSurrogates": false } }, { @@ -1790,7 +1800,8 @@ "end": 1299 }, "value": "i", - "raw": "\"i\"" + "raw": "\"i\"", + "loneSurrogates": false } }, { @@ -1929,7 +1940,8 @@ "end": 1371 }, "value": "ii", - "raw": "\"ii\"" + "raw": "\"ii\"", + "loneSurrogates": false } }, { @@ -2075,7 +2087,8 @@ "end": 1543 }, "value": "jj", - "raw": "\"jj\"" + "raw": "\"jj\"", + "loneSurrogates": false } }, { @@ -2221,7 +2234,8 @@ "end": 1616 }, "value": "j", - "raw": "\"j\"" + "raw": "\"j\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json index e0a5e508bf20..3d51f4a5f7b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportForms.json @@ -92,7 +92,8 @@ "end": 226 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -110,7 +111,8 @@ "end": 273 }, "value": "./func", - "raw": "\"./func\"" + "raw": "\"./func\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -128,7 +130,8 @@ "end": 296 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -167,7 +170,8 @@ "end": 345 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -236,7 +240,8 @@ "end": 410 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -291,7 +296,8 @@ "end": 480 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -360,7 +366,8 @@ "end": 544 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -460,7 +467,8 @@ "end": 627 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false } } ], @@ -583,7 +591,8 @@ "end": 704 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false } } ], @@ -697,7 +706,8 @@ "end": 777 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false } } ], @@ -826,7 +836,8 @@ "end": 853 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false } } ], @@ -915,7 +926,8 @@ "end": 927 }, "value": "./cjs4", - "raw": "\"./cjs4\"" + "raw": "\"./cjs4\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -935,7 +947,8 @@ "end": 944 }, "value": "./cjs3", - "raw": "\"./cjs3\"" + "raw": "\"./cjs3\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -955,7 +968,8 @@ "end": 961 }, "value": "./cjs2", - "raw": "\"./cjs2\"" + "raw": "\"./cjs2\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -975,7 +989,8 @@ "end": 977 }, "value": "./cjs", - "raw": "\"./cjs\"" + "raw": "\"./cjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -995,7 +1010,8 @@ "end": 993 }, "value": "./bol", - "raw": "\"./bol\"" + "raw": "\"./bol\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1015,7 +1031,8 @@ "end": 1009 }, "value": "./ban", - "raw": "\"./ban\"" + "raw": "\"./ban\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1035,7 +1052,8 @@ "end": 1025 }, "value": "./bat", - "raw": "\"./bat\"" + "raw": "\"./bat\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1055,7 +1073,8 @@ "end": 1041 }, "value": "./baz", - "raw": "\"./baz\"" + "raw": "\"./baz\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1075,7 +1094,8 @@ "end": 1057 }, "value": "./bar", - "raw": "\"./bar\"" + "raw": "\"./bar\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -1095,7 +1115,8 @@ "end": 1074 }, "value": "./bar2", - "raw": "\"./bar2\"" + "raw": "\"./bar2\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSpecifierNonlocal.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSpecifierNonlocal.json index 85373b2f04b5..ea01da0e4077 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSpecifierNonlocal.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSpecifierNonlocal.json @@ -133,7 +133,8 @@ "end": 244 }, "value": "./source", - "raw": "\"./source\"" + "raw": "\"./source\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json index 268148ff4c04..346c7fc818aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportSubAssignments.json @@ -56,7 +56,8 @@ "end": 142 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -76,7 +77,8 @@ "end": 154 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json index b6bc42ae43df..d81e0b13c203 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsExportedClassAliases.json @@ -119,7 +119,8 @@ }, "tail": false, "cooked": "error with status ", - "raw": "error with status " + "raw": "error with status ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -129,7 +130,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -272,7 +274,8 @@ "end": 357 }, "value": "./errors", - "raw": "\"./errors\"" + "raw": "\"./errors\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json index a875a913b188..5f61e9e3e1e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses.json @@ -326,7 +326,8 @@ "end": 366 }, "value": "./source", - "raw": "\"./source\"" + "raw": "\"./source\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json index 6583aff48ff0..db786607119b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionLikeClasses2.json @@ -369,7 +369,8 @@ }, "tail": true, "cooked": "Dot product only applicable for vectors of equal length", - "raw": "Dot product only applicable for vectors of equal length" + "raw": "Dot product only applicable for vectors of equal length", + "loneSurrogates": false } ] } @@ -1898,7 +1899,8 @@ "end": 1462 }, "value": "./source", - "raw": "\"./source\"" + "raw": "\"./source\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json index 7b12468e751b..6dbdf810f212 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctions.json @@ -132,7 +132,8 @@ "end": 160 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json index a2190fe6e7e6..25f6e92bc1fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsFunctionsCjs.json @@ -256,7 +256,8 @@ "end": 199 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json index 9cf8bda79f18..2f3b81e75eeb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsGetterSetter.json @@ -462,7 +462,8 @@ "end": 402 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -638,7 +639,8 @@ "end": 504 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -817,7 +819,8 @@ "end": 630 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -1044,7 +1047,8 @@ "end": 794 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -1235,7 +1239,8 @@ "end": 925 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -1394,7 +1399,8 @@ "end": 1004 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -1632,7 +1638,8 @@ "end": 1184 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -1911,7 +1918,8 @@ "end": 1378 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -2242,7 +2250,8 @@ "end": 1600 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -2573,7 +2582,8 @@ "end": 1842 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespace.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespace.json index 13e187e2efc0..c8ada3cdc9b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespace.json @@ -109,7 +109,8 @@ "end": 591 }, "value": "./file.js", - "raw": "'./file.js'" + "raw": "'./file.js'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -240,7 +241,8 @@ "end": 973 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json index 01ec5730a398..9f4f04287ba0 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportAliasExposedWithinNamespaceCjs.json @@ -167,7 +167,8 @@ "end": 604 }, "value": "./file.js", - "raw": "'./file.js'" + "raw": "'./file.js'", + "loneSurrogates": false } } ], @@ -302,7 +303,8 @@ "end": 987 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportNamespacedType.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportNamespacedType.json index 8455fa4fbbbe..64f037532555 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportNamespacedType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsImportNamespacedType.json @@ -39,7 +39,8 @@ "end": 123 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json index b5aa134d21de..76ede69e423a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsInterfaces.json @@ -2265,7 +2265,8 @@ "end": 1269 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -2379,7 +2380,8 @@ "end": 1328 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -2493,7 +2495,8 @@ "end": 1387 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -2905,7 +2908,8 @@ "end": 1618 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -3070,7 +3074,8 @@ "end": 1704 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json index c10458cdb67d..6e49893aae8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsJSDocRedirectedLookups.json @@ -39,7 +39,8 @@ "end": 246 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -535,7 +536,8 @@ "end": 675 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsMultipleExportFromMerge.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsMultipleExportFromMerge.json index d8fa62df5a40..f8550ee0bf3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsMultipleExportFromMerge.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsMultipleExportFromMerge.json @@ -218,7 +218,8 @@ "end": 235 }, "value": "./items", - "raw": "\"./items\"" + "raw": "\"./items\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -257,7 +258,8 @@ "end": 286 }, "value": "./items", - "raw": "\"./items\"" + "raw": "\"./items\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -315,7 +317,8 @@ "end": 318 }, "value": "./items", - "raw": "\"./items\"" + "raw": "\"./items\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -373,7 +376,8 @@ "end": 375 }, "value": "./items", - "raw": "\"./items\"" + "raw": "\"./items\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -421,7 +425,8 @@ "end": 406 }, "value": "./two", - "raw": "\"./two\"" + "raw": "\"./two\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -469,7 +474,8 @@ "end": 437 }, "value": "./two", - "raw": "\"./two\"" + "raw": "\"./two\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -508,7 +514,8 @@ "end": 462 }, "value": "./two", - "raw": "\"./two\"" + "raw": "\"./two\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -556,7 +563,8 @@ "end": 494 }, "value": "./items", - "raw": "\"./items\"" + "raw": "\"./items\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json index 26ee6492448a..514b4bc2e9bb 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsPrivateFields01.json @@ -53,7 +53,8 @@ "end": 150 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -331,7 +332,8 @@ "end": 385 }, "value": "NO", - "raw": "\"NO\"" + "raw": "\"NO\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliases.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliases.json index 2f6f9fed6f5e..c056d8917cd4 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliases.json @@ -80,7 +80,8 @@ "end": 203 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -187,7 +188,8 @@ "end": 273 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json index 53aa603caae8..b63260424702 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportAliasesEsModuleInterop.json @@ -124,7 +124,8 @@ "end": 236 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -231,7 +232,8 @@ "end": 306 }, "value": "./cls", - "raw": "\"./cls\"" + "raw": "\"./cls\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json index ad8bbbdc6ab3..627f7acfd7f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReexportedCjsAlias.json @@ -346,7 +346,8 @@ "end": 360 }, "value": "./lib", - "raw": "'./lib'" + "raw": "'./lib'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json index db8f599ecd3d..4e742aa96b96 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsReferenceToClassInstanceCrossFile.json @@ -97,7 +97,8 @@ "end": 219 }, "value": "I'm a rectangle!", - "raw": "\"I'm a rectangle!\"" + "raw": "\"I'm a rectangle!\"", + "loneSurrogates": false } } ], @@ -248,7 +249,8 @@ "end": 327 }, "value": "./rectangle", - "raw": "'./rectangle'" + "raw": "'./rectangle'", + "loneSurrogates": false } } ], @@ -671,7 +673,8 @@ "end": 766 }, "value": "./index", - "raw": "\"./index\"" + "raw": "\"./index\"", + "loneSurrogates": false } } ], @@ -822,7 +825,8 @@ "end": 841 }, "value": "Objects", - "raw": "\"Objects\"" + "raw": "\"Objects\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json index fd0b1704b11e..206e1a068baf 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsSubclassWithExplicitNoArgumentConstructor.json @@ -186,7 +186,8 @@ "end": 332 }, "value": "first", - "raw": "'first'" + "raw": "'first'", + "loneSurrogates": false } }, { @@ -198,7 +199,8 @@ "end": 342 }, "value": "second", - "raw": "'second'" + "raw": "'second'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json index 039f3604bc0e..f15a96932387 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeAliases.json @@ -101,7 +101,8 @@ "end": 657 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -166,7 +167,8 @@ "end": 698 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -296,7 +298,8 @@ "end": 789 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json index 48017d9854bb..665239444718 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReassignmentFromDeclaration2.json @@ -204,7 +204,8 @@ "end": 266 }, "value": "./some-mod", - "raw": "\"./some-mod\"" + "raw": "\"./some-mod\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json index b9242315a799..6493f2bd2f9f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences.json @@ -21,7 +21,8 @@ "end": 203 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -126,7 +127,8 @@ "end": 323 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json index 0b5f3d941a01..d35d43e5e33e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences2.json @@ -190,7 +190,8 @@ "end": 263 }, "value": "./something", - "raw": "\"./something\"" + "raw": "\"./something\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json index 4c4971e8041f..629f999316fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences3.json @@ -21,7 +21,8 @@ "end": 203 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -126,7 +127,8 @@ "end": 323 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json index 69d5e64de38c..c831981597b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypeReferences4.json @@ -21,7 +21,8 @@ "end": 203 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -237,7 +238,8 @@ "end": 471 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json index 04257ca408f0..c77ad596c3a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndImportTypes.json @@ -355,7 +355,8 @@ "end": 487 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json index 8c9700c9a978..8303f1e2b37d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefAndLatebound.json @@ -59,7 +59,8 @@ "end": 176 }, "value": "./LazySet", - "raw": "\"./LazySet\"" + "raw": "\"./LazySet\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json index 0be30701d50e..7d178bb22a9d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsTypedefPropertyAndExportAssignment.json @@ -73,7 +73,8 @@ "end": 429 }, "value": "parseHTML", - "raw": "'parseHTML'" + "raw": "'parseHTML'", + "loneSurrogates": false } }, { @@ -93,7 +94,8 @@ "end": 464 }, "value": "Parse HTML & CSS", - "raw": "'Parse HTML & CSS'" + "raw": "'Parse HTML & CSS'", + "loneSurrogates": false } } ] @@ -133,7 +135,8 @@ "end": 516 }, "value": "styleLayout", - "raw": "'styleLayout'" + "raw": "'styleLayout'", + "loneSurrogates": false } }, { @@ -153,7 +156,8 @@ "end": 549 }, "value": "Style & Layout", - "raw": "'Style & Layout'" + "raw": "'Style & Layout'", + "loneSurrogates": false } } ] @@ -365,7 +369,8 @@ "end": 771 }, "value": "./module.js", - "raw": "'./module.js'" + "raw": "'./module.js'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsUniqueSymbolUsage.json b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsUniqueSymbolUsage.json index 1dc045b71d0c..5c3385dccf00 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsDeclarationsUniqueSymbolUsage.json +++ b/crates/swc_ecma_parser/tests/tsc/jsDeclarationsUniqueSymbolUsage.json @@ -65,7 +65,8 @@ "end": 165 }, "value": "my-symbol", - "raw": "\"my-symbol\"" + "raw": "\"my-symbol\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocAugments_qualifiedName.json b/crates/swc_ecma_parser/tests/tsc/jsdocAugments_qualifiedName.json index 9637078d5aa9..6a9beb72a05f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocAugments_qualifiedName.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocAugments_qualifiedName.json @@ -70,7 +70,8 @@ "end": 138 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json b/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json index 323779c52eb1..f6b19425392e 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocConstructorFunctionTypeReference.json @@ -101,7 +101,8 @@ "end": 191 }, "value": "gim", - "raw": "\"gim\"" + "raw": "\"gim\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json b/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json index f7291ef45cbc..da9004974e61 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocFunctionType.json @@ -700,7 +700,8 @@ "end": 771 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "consequent": { @@ -1515,7 +1516,8 @@ "end": 1352 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -1527,7 +1529,8 @@ "end": 1359 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ], @@ -1579,7 +1582,8 @@ "end": 1375 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -1591,7 +1595,8 @@ "end": 1382 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json index 9f4a7069e80b..0ce42f24b65c 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_class.json @@ -253,7 +253,8 @@ "end": 352 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json index f8cfd0add96b..ec30ced13a64 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_interface.json @@ -220,7 +220,8 @@ "end": 332 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json index 1aa0a5506c06..4b70ed1b3950 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImplements_namespacedInterface.json @@ -354,7 +354,8 @@ "end": 424 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json index 3ed1c6348eeb..42ef330ab52f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportType.json @@ -477,7 +477,8 @@ "end": 489 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json index df11de4734cd..dce767db352f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportType2.json @@ -466,7 +466,8 @@ "end": 482 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToStringLiteral.json b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToStringLiteral.json index cf07b32222c0..2c3e9d80e7e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToStringLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocImportTypeReferenceToStringLiteral.json @@ -45,7 +45,8 @@ "end": 97 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag1.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag1.json index e7b585a7ab94..61c3adfc00f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag1.json @@ -74,7 +74,8 @@ "end": 117 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag2.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag2.json index b533fce2dc3d..6961f39b58f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag2.json @@ -72,7 +72,8 @@ "end": 181 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json index f9e50cabdb75..f720cc79171d 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag3.json @@ -74,7 +74,8 @@ "end": 117 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json index 7d08dbb1f6a1..6ada755fc088 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLinkTag4.json @@ -72,7 +72,8 @@ "end": 113 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocLiteral.json b/crates/swc_ecma_parser/tests/tsc/jsdocLiteral.json index c6dc907e6c05..d37b32770d31 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocLiteral.json @@ -231,7 +231,8 @@ "end": 291 }, "value": ".", - "raw": "'.'" + "raw": "'.'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json b/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json index be5f19ba791f..69d765b892d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocOverrideTag1.json @@ -113,7 +113,8 @@ "end": 255 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json b/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json index eb1ba9ba09e5..c729b9efc1ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocParamTagTypeLiteral.json @@ -254,7 +254,8 @@ "end": 570 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ] @@ -433,7 +434,8 @@ "end": 793 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -583,7 +585,8 @@ "end": 911 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ] @@ -762,7 +765,8 @@ "end": 1134 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] @@ -1052,7 +1056,8 @@ "end": 1848 }, "value": "help", - "raw": "\"help\"" + "raw": "\"help\"", + "loneSurrogates": false } }, { @@ -1089,7 +1094,8 @@ "end": 1864 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1135,7 +1141,8 @@ "end": 1886 }, "value": "idea", - "raw": "'idea'" + "raw": "'idea'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocReturnTag1.json b/crates/swc_ecma_parser/tests/tsc/jsdocReturnTag1.json index 25db51cd3918..1a9b3063dfe1 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocReturnTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocReturnTag1.json @@ -164,7 +164,8 @@ "end": 379 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json index b48592a1a983..88ac22e28d37 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag.json @@ -310,7 +310,8 @@ "end": 308 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json index 87d9d863d52b..b4e84f860ecf 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag3.json @@ -445,7 +445,8 @@ "end": 502 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -575,7 +576,8 @@ "end": 572 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false } } ], @@ -685,7 +687,8 @@ "end": 622 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json index 51ac9475476d..af0e82b174c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag4.json @@ -247,7 +247,8 @@ "end": 464 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -518,7 +519,8 @@ "end": 846 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -852,7 +854,8 @@ "end": 1262 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json index 2986990f3d60..fd3373322cc3 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag5.json @@ -246,7 +246,8 @@ "end": 480 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -521,7 +522,8 @@ "end": 894 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -857,7 +859,8 @@ "end": 1332 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json index 8880cff9eb99..343506baf0a5 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag6.json @@ -131,7 +131,8 @@ "end": 202 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -204,7 +205,8 @@ "end": 223 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -225,7 +227,8 @@ "end": 229 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -237,7 +240,8 @@ "end": 234 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -344,7 +348,8 @@ "end": 267 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -373,7 +378,8 @@ "end": 276 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } }, { @@ -425,7 +431,8 @@ "end": 295 }, "value": "g", - "raw": "\"g\"" + "raw": "\"g\"", + "loneSurrogates": false } } ] @@ -577,7 +584,8 @@ "end": 419 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -650,7 +658,8 @@ "end": 440 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -671,7 +680,8 @@ "end": 446 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -683,7 +693,8 @@ "end": 451 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -790,7 +801,8 @@ "end": 484 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -819,7 +831,8 @@ "end": 493 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } }, { @@ -871,7 +884,8 @@ "end": 512 }, "value": "g", - "raw": "\"g\"" + "raw": "\"g\"", + "loneSurrogates": false } } ] @@ -1028,7 +1042,8 @@ "end": 640 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1092,7 +1107,8 @@ "end": 664 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1281,7 +1297,8 @@ "end": 792 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -1317,7 +1334,8 @@ "end": 802 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -1433,7 +1451,8 @@ "end": 837 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -1485,7 +1504,8 @@ "end": 855 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -1680,7 +1700,8 @@ "end": 1003 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -1724,7 +1745,8 @@ "end": 1016 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -1848,7 +1870,8 @@ "end": 1056 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -1908,7 +1931,8 @@ "end": 1077 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -2171,7 +2195,8 @@ "end": 1316 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } }, { @@ -2200,7 +2225,8 @@ "end": 1325 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false } }, { @@ -2252,7 +2278,8 @@ "end": 1344 }, "value": "g", - "raw": "\"g\"" + "raw": "\"g\"", + "loneSurrogates": false } } ] @@ -2349,7 +2376,8 @@ "end": 1376 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2370,7 +2398,8 @@ "end": 1382 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -2382,7 +2411,8 @@ "end": 1387 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -2548,7 +2578,8 @@ "end": 1541 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -2597,7 +2628,8 @@ "end": 1557 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json index fdb106f76130..4b55d5acd2b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTag8.json @@ -116,7 +116,8 @@ "end": 304 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -609,7 +610,8 @@ "end": 995 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagDefault.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagDefault.json index 0725be17841b..92ec180fe4bd 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagDefault.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagDefault.json @@ -48,7 +48,8 @@ "end": 278 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -152,7 +153,8 @@ "end": 444 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json index a37bd6f7c0aa..e59056cd5dd2 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTemplateTagNameResolution.json @@ -99,7 +99,8 @@ "end": 238 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json index d571672fde76..42bd850d015f 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment.json @@ -639,7 +639,8 @@ "end": 382 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ], @@ -694,7 +695,8 @@ "end": 409 }, "value": "not really", - "raw": "'not really'" + "raw": "'not really'", + "loneSurrogates": false } } ], @@ -749,7 +751,8 @@ "end": 434 }, "value": "still no", - "raw": "'still no'" + "raw": "'still no'", + "loneSurrogates": false } } ], @@ -804,7 +807,8 @@ "end": 466 }, "value": "not here either", - "raw": "'not here either'" + "raw": "'not here either'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json index cd76cb2794ea..8ec6fb4cc97b 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeFromChainedAssignment2.json @@ -346,7 +346,8 @@ }, "tail": false, "cooked": "hi, ", - "raw": "hi, " + "raw": "hi, ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -356,7 +357,8 @@ }, "tail": true, "cooked": "!", - "raw": "!" + "raw": "!", + "loneSurrogates": false } ] } @@ -425,7 +427,8 @@ "end": 344 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false } } ], @@ -483,7 +486,8 @@ "end": 357 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ], @@ -538,7 +542,8 @@ "end": 374 }, "value": "also no", - "raw": "'also no'" + "raw": "'also no'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json index 786ae1e1b3f7..32e405a8cc8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImport.json @@ -65,7 +65,8 @@ "end": 133 }, "value": "./ex", - "raw": "'./ex'" + "raw": "'./ex'", + "loneSurrogates": false } } ], @@ -151,7 +152,8 @@ "end": 162 }, "value": "./ex", - "raw": "'./ex'" + "raw": "'./ex'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json index 793b7f60d638..39d4c0a88cde 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfClassExpression.json @@ -232,7 +232,8 @@ "end": 304 }, "value": "./MW", - "raw": "\"./MW\"" + "raw": "\"./MW\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json index d411fb3a7b80..c65b7a578e15 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeReferenceToImportOfFunctionExpression.json @@ -232,7 +232,8 @@ "end": 304 }, "value": "./MW", - "raw": "\"./MW\"" + "raw": "\"./MW\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json b/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json index f1b7d151c818..f09e8714f468 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocTypeTagCast.json @@ -263,7 +263,8 @@ "end": 328 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "NumericLiteral", @@ -321,7 +322,8 @@ "end": 345 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -753,7 +755,8 @@ "end": 685 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/jsdocVariadicType.json b/crates/swc_ecma_parser/tests/tsc/jsdocVariadicType.json index 01dab243fea3..e1153005f162 100644 --- a/crates/swc_ecma_parser/tests/tsc/jsdocVariadicType.json +++ b/crates/swc_ecma_parser/tests/tsc/jsdocVariadicType.json @@ -174,7 +174,8 @@ "end": 202 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json index 0f5b065cb5ef..dbc5a3d05741 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess.json @@ -436,7 +436,8 @@ "end": 288 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } }, { @@ -452,7 +453,8 @@ "end": 295 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } ] @@ -1951,7 +1953,8 @@ "end": 1578 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } }, @@ -1993,7 +1996,8 @@ "end": 1610 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false } }, { @@ -2009,7 +2013,8 @@ "end": 1621 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } ] @@ -2071,7 +2076,8 @@ "end": 1647 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } } @@ -2139,7 +2145,8 @@ "end": 1685 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false } }, { @@ -2155,7 +2162,8 @@ "end": 1696 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } ] @@ -2225,7 +2233,8 @@ "end": 1733 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -2241,7 +2250,8 @@ "end": 1745 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } ] @@ -2899,7 +2909,8 @@ "end": 2116 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } } @@ -2983,7 +2994,8 @@ "end": 2161 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } } @@ -3078,7 +3090,8 @@ "end": 2214 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } } @@ -3173,7 +3186,8 @@ "end": 2282 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } } @@ -3260,7 +3274,8 @@ "end": 2384 }, "value": "howdy", - "raw": "\"howdy\"" + "raw": "\"howdy\"", + "loneSurrogates": false } } } @@ -4208,7 +4223,8 @@ "end": 2769 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } ], @@ -4301,7 +4317,8 @@ "end": 2840 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -4310,7 +4327,8 @@ "end": 2851 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } } @@ -4404,7 +4422,8 @@ "end": 2921 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -4413,7 +4432,8 @@ "end": 2933 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } } @@ -4470,7 +4490,8 @@ "end": 2986 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -4482,7 +4503,8 @@ "end": 2999 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false } } ], @@ -4551,7 +4573,8 @@ "end": 3039 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -4560,7 +4583,8 @@ "end": 3050 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } }, @@ -4642,7 +4666,8 @@ "end": 3093 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -4651,7 +4676,8 @@ "end": 3105 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } }, @@ -4823,7 +4849,8 @@ "end": 3206 }, "value": "length", - "raw": "\"length\"" + "raw": "\"length\"", + "loneSurrogates": false } } ], @@ -4879,7 +4906,8 @@ "end": 3247 }, "value": "length", - "raw": "\"length\"" + "raw": "\"length\"", + "loneSurrogates": false } }, { @@ -5078,7 +5106,8 @@ "end": 3331 }, "value": "length", - "raw": "\"length\"" + "raw": "\"length\"", + "loneSurrogates": false } } ], @@ -5155,7 +5184,8 @@ "end": 3365 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } ], @@ -5232,7 +5262,8 @@ "end": 3409 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ], @@ -5411,7 +5442,8 @@ "end": 3494 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ], @@ -5488,7 +5520,8 @@ "end": 3539 }, "value": "100", - "raw": "\"100\"" + "raw": "\"100\"", + "loneSurrogates": false } } ], @@ -6336,7 +6369,8 @@ "end": 3936 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } ], @@ -6431,7 +6465,8 @@ "end": 4010 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -6440,7 +6475,8 @@ "end": 4021 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } } @@ -6536,7 +6572,8 @@ "end": 4094 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -6545,7 +6582,8 @@ "end": 4106 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } } @@ -6604,7 +6642,8 @@ "end": 4162 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -6616,7 +6655,8 @@ "end": 4175 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false } } ], @@ -6687,7 +6727,8 @@ "end": 4218 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -6696,7 +6737,8 @@ "end": 4229 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } }, @@ -6780,7 +6822,8 @@ "end": 4274 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -6789,7 +6832,8 @@ "end": 4286 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } }, @@ -7272,7 +7316,8 @@ "end": 4488 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } ], @@ -7349,7 +7394,8 @@ "end": 4544 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false } } ], @@ -7442,7 +7488,8 @@ "end": 4612 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -7451,7 +7498,8 @@ "end": 4624 }, "value": "visible", - "raw": "\"visible\"" + "raw": "\"visible\"", + "loneSurrogates": false } } } @@ -7616,7 +7664,8 @@ "end": 4739 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -7934,7 +7983,8 @@ "end": 4910 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -8093,7 +8143,8 @@ "end": 4849 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false } }, { @@ -8109,7 +8160,8 @@ "end": 4860 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } ] @@ -8302,7 +8354,8 @@ "end": 5099 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } ], @@ -8647,7 +8700,8 @@ "end": 5222 }, "value": "tag", - "raw": "\"tag\"" + "raw": "\"tag\"", + "loneSurrogates": false } } ], @@ -8724,7 +8778,8 @@ "end": 5261 }, "value": "tag", - "raw": "\"tag\"" + "raw": "\"tag\"", + "loneSurrogates": false } } ], @@ -9016,7 +9071,8 @@ "end": 5553 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -9077,7 +9133,8 @@ "end": 5574 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } @@ -9138,7 +9195,8 @@ "end": 5595 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false } } } @@ -9223,7 +9281,8 @@ "end": 5618 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -9311,7 +9370,8 @@ "end": 5641 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } }, @@ -9399,7 +9459,8 @@ "end": 5664 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false } } }, @@ -11292,7 +11353,8 @@ "end": 6337 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -11608,7 +11670,8 @@ "end": 6462 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -12345,7 +12408,8 @@ "end": 6714 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -12357,7 +12421,8 @@ "end": 6719 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -12563,7 +12628,8 @@ "end": 6774 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -12575,7 +12641,8 @@ "end": 6779 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -12781,7 +12848,8 @@ "end": 6834 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -12793,7 +12861,8 @@ "end": 6839 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ], @@ -13328,7 +13397,8 @@ "end": 6939 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -13954,7 +14024,8 @@ "end": 7182 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -14000,7 +14071,8 @@ "end": 7202 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -14101,7 +14173,8 @@ "end": 7251 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -14147,7 +14220,8 @@ "end": 7271 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -14248,7 +14322,8 @@ "end": 7320 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -14294,7 +14369,8 @@ "end": 7340 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ], @@ -14789,7 +14865,8 @@ "end": 7479 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -14835,7 +14912,8 @@ "end": 7499 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -14936,7 +15014,8 @@ "end": 7548 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -14982,7 +15061,8 @@ "end": 7568 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -15083,7 +15163,8 @@ "end": 7617 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -15129,7 +15210,8 @@ "end": 7637 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ], @@ -15624,7 +15706,8 @@ "end": 7776 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -15690,7 +15773,8 @@ "end": 7802 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -15791,7 +15875,8 @@ "end": 7851 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -15857,7 +15942,8 @@ "end": 7877 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -16058,7 +16144,8 @@ "end": 8011 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -16128,7 +16215,8 @@ "end": 8049 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -16170,7 +16258,8 @@ "end": 8059 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -16312,7 +16401,8 @@ "end": 8123 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -16329,7 +16419,8 @@ "end": 8128 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } }, @@ -16405,7 +16496,8 @@ "end": 8159 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -16422,7 +16514,8 @@ "end": 8164 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } }, @@ -16471,7 +16564,8 @@ "end": 8174 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -16488,7 +16582,8 @@ "end": 8179 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -16732,7 +16827,8 @@ "end": 8271 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -16749,7 +16845,8 @@ "end": 8276 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } }, @@ -16798,7 +16895,8 @@ "end": 8286 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -16815,7 +16913,8 @@ "end": 8291 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -17053,7 +17152,8 @@ "end": 8348 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -17360,7 +17460,8 @@ "end": 8528 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } }, @@ -17428,7 +17529,8 @@ "end": 8541 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -17729,7 +17831,8 @@ "end": 8600 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -17747,7 +17850,8 @@ "end": 8611 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -17863,7 +17967,8 @@ "end": 8667 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ], @@ -18492,7 +18597,8 @@ "end": 8944 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -18566,7 +18672,8 @@ "end": 8987 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ], @@ -18640,7 +18747,8 @@ "end": 9042 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ], @@ -18735,7 +18843,8 @@ "end": 9095 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } }, @@ -18795,7 +18904,8 @@ "end": 9123 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -18857,7 +18967,8 @@ "end": 9159 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -21227,7 +21338,8 @@ "end": 10022 }, "value": "parts", - "raw": "\"parts\"" + "raw": "\"parts\"", + "loneSurrogates": false } }, { @@ -21327,7 +21439,8 @@ "end": 10086 }, "value": "parts", - "raw": "\"parts\"" + "raw": "\"parts\"", + "loneSurrogates": false } } ], @@ -21525,7 +21638,8 @@ "end": 10202 }, "value": "parts", - "raw": "\"parts\"" + "raw": "\"parts\"", + "loneSurrogates": false } }, { @@ -21623,7 +21737,8 @@ "end": 10275 }, "value": "parts", - "raw": "\"parts\"" + "raw": "\"parts\"", + "loneSurrogates": false } } ], @@ -23618,7 +23733,8 @@ "end": 10973 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -23695,7 +23811,8 @@ "end": 11033 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -23707,7 +23824,8 @@ "end": 11038 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ], @@ -23784,7 +23902,8 @@ "end": 11080 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -23873,7 +23992,8 @@ "end": 11127 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -23885,7 +24005,8 @@ "end": 11132 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -25885,7 +26006,8 @@ "end": 12038 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -25949,7 +26071,8 @@ "end": 12064 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -27081,7 +27204,8 @@ "end": 12653 }, "value": "name", - "raw": "'name'" + "raw": "'name'", + "loneSurrogates": false } } } @@ -27148,7 +27272,8 @@ "end": 12670 }, "value": "args", - "raw": "'args'" + "raw": "'args'", + "loneSurrogates": false } } } @@ -27257,7 +27382,8 @@ "end": 12689 }, "value": "returnValue", - "raw": "'returnValue'" + "raw": "'returnValue'", + "loneSurrogates": false } } } @@ -27326,7 +27452,8 @@ "end": 12742 }, "value": "someMethod", - "raw": "\"someMethod\"" + "raw": "\"someMethod\"", + "loneSurrogates": false } } } @@ -27498,7 +27625,8 @@ "end": 12858 }, "value": "someMethod", - "raw": "\"someMethod\"" + "raw": "\"someMethod\"", + "loneSurrogates": false } }, { @@ -27519,7 +27647,8 @@ "end": 12868 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -27608,7 +27737,8 @@ "end": 12918 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -27624,7 +27754,8 @@ "end": 12924 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -27876,7 +28007,8 @@ "end": 13052 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -28289,7 +28421,8 @@ "end": 13250 }, "value": "preset", - "raw": "'preset'" + "raw": "'preset'", + "loneSurrogates": false } } ], @@ -29990,7 +30123,8 @@ "end": 14064 }, "value": "props", - "raw": "\"props\"" + "raw": "\"props\"", + "loneSurrogates": false } } } @@ -31444,7 +31578,8 @@ "end": 14679 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -32773,7 +32908,8 @@ "end": 15313 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } } } @@ -33415,7 +33551,8 @@ "end": 15522 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } } } @@ -33803,7 +33940,8 @@ "end": 15712 }, "value": "flag_1", - "raw": "\"flag_1\"" + "raw": "\"flag_1\"", + "loneSurrogates": false } }, { @@ -33829,7 +33967,8 @@ "end": 15735 }, "value": "flag_2", - "raw": "\"flag_2\"" + "raw": "\"flag_2\"", + "loneSurrogates": false } } ] @@ -37722,7 +37861,8 @@ "end": 17324 }, "value": "cool", - "raw": "\"cool\"" + "raw": "\"cool\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json index b650132f1ae4..66574380f8a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccess2.json @@ -226,7 +226,8 @@ "end": 98 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -274,7 +275,8 @@ "end": 107 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -290,7 +292,8 @@ "end": 113 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -340,7 +343,8 @@ "end": 122 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -356,7 +360,8 @@ "end": 128 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -372,7 +377,8 @@ "end": 134 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -565,7 +571,8 @@ "end": 189 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } }, @@ -739,7 +746,8 @@ "end": 264 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } }, @@ -913,7 +921,8 @@ "end": 351 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -4874,7 +4883,8 @@ "end": 2312 }, "value": "id", - "raw": "'id'" + "raw": "'id'", + "loneSurrogates": false } } } @@ -6161,7 +6171,8 @@ "end": 2898 }, "value": "some string", - "raw": "\"some string\"" + "raw": "\"some string\"", + "loneSurrogates": false } } } @@ -7355,7 +7366,8 @@ "end": 3419 }, "value": "elements", - "raw": "'elements'" + "raw": "'elements'", + "loneSurrogates": false } } }, @@ -8412,7 +8424,8 @@ "end": 3781 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false }, "definite": false } @@ -8518,7 +8531,8 @@ "end": 3826 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false }, "definite": false } @@ -8711,7 +8725,8 @@ "end": 3938 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -8754,7 +8769,8 @@ "end": 3952 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -8765,7 +8781,8 @@ "end": 3959 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -9718,7 +9735,8 @@ "end": 4246 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } } @@ -9774,7 +9792,8 @@ "end": 4302 }, "value": "resizeTo", - "raw": "'resizeTo'" + "raw": "'resizeTo'", + "loneSurrogates": false } }, { @@ -9786,7 +9805,8 @@ "end": 4314 }, "value": "resizeBy", - "raw": "'resizeBy'" + "raw": "'resizeBy'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json index 1bb76e56dbfc..ddf2084d41c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofAndIndexedAccessErrors.json @@ -802,7 +802,8 @@ "end": 435 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } } @@ -863,7 +864,8 @@ "end": 460 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -931,7 +933,8 @@ "end": 496 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -947,7 +950,8 @@ "end": 504 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -1624,7 +1628,8 @@ "end": 930 }, "value": "length", - "raw": "\"length\"" + "raw": "\"length\"", + "loneSurrogates": false } } } @@ -2273,7 +2278,8 @@ "end": 1336 }, "value": "toString", - "raw": "\"toString\"" + "raw": "\"toString\"", + "loneSurrogates": false } } } @@ -2324,7 +2330,8 @@ "end": 1363 }, "value": "toString", - "raw": "\"toString\"" + "raw": "\"toString\"", + "loneSurrogates": false } } } @@ -3081,7 +3088,8 @@ "end": 1646 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } ], @@ -3158,7 +3166,8 @@ "end": 1687 }, "value": "size", - "raw": "\"size\"" + "raw": "\"size\"", + "loneSurrogates": false } } ], @@ -3251,7 +3260,8 @@ "end": 1745 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -3260,7 +3270,8 @@ "end": 1754 }, "value": "size", - "raw": "\"size\"" + "raw": "\"size\"", + "loneSurrogates": false } } } @@ -3317,7 +3328,8 @@ "end": 1796 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -3329,7 +3341,8 @@ "end": 1809 }, "value": "rectangle", - "raw": "\"rectangle\"" + "raw": "\"rectangle\"", + "loneSurrogates": false } } ], @@ -3382,7 +3395,8 @@ "end": 1841 }, "value": "size", - "raw": "\"size\"" + "raw": "\"size\"", + "loneSurrogates": false } }, { @@ -3463,7 +3477,8 @@ "end": 1894 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -3472,7 +3487,8 @@ "end": 1903 }, "value": "size", - "raw": "\"size\"" + "raw": "\"size\"", + "loneSurrogates": false } } }, @@ -6200,7 +6216,8 @@ "end": 3034 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -6784,7 +6801,8 @@ "end": 3291 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -6797,7 +6815,8 @@ "end": 3298 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "definite": false } @@ -6872,7 +6891,8 @@ "end": 3331 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -6885,7 +6905,8 @@ "end": 3338 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "definite": false } @@ -7118,7 +7139,8 @@ "end": 3463 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -7509,7 +7531,8 @@ "end": 3626 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -7935,7 +7958,8 @@ "end": 3780 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json b/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json index 598b8c9b7491..8a6c7a049a0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofInferenceIntersectsResults.json @@ -541,7 +541,8 @@ "end": 177 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -553,7 +554,8 @@ "end": 182 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -643,7 +645,8 @@ "end": 222 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -655,7 +658,8 @@ "end": 227 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], @@ -719,7 +723,8 @@ "end": 264 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -731,7 +736,8 @@ "end": 269 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json b/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json index d75632754f3c..19bf48380cb9 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofInferenceLowerPriorityThanReturn.json @@ -2087,7 +2087,8 @@ "end": 1049 }, "value": "serial", - "raw": "\"serial\"" + "raw": "\"serial\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/keyofIntersection.json b/crates/swc_ecma_parser/tests/tsc/keyofIntersection.json index 5a8058f1fb56..b52f6b76ab88 100644 --- a/crates/swc_ecma_parser/tests/tsc/keyofIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/keyofIntersection.json @@ -1033,7 +1033,8 @@ "end": 524 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -1049,7 +1050,8 @@ "end": 529 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ] @@ -1130,7 +1132,8 @@ "end": 579 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -1180,7 +1183,8 @@ "end": 598 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } }, { @@ -1383,7 +1387,8 @@ "end": 707 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -1399,7 +1404,8 @@ "end": 713 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ] @@ -1674,7 +1680,8 @@ "end": 851 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -1690,7 +1697,8 @@ "end": 856 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ] @@ -1906,7 +1914,8 @@ "end": 945 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -1956,7 +1965,8 @@ "end": 963 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json index 612a81b37671..5c48bf3e51b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport1.json @@ -90,7 +90,8 @@ "end": 217 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -150,7 +151,8 @@ "end": 240 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -208,7 +210,8 @@ "end": 262 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -316,7 +319,8 @@ "end": 368 }, "value": "./lateBoundAssignmentDeclarationSupport1.js", - "raw": "\"./lateBoundAssignmentDeclarationSupport1.js\"" + "raw": "\"./lateBoundAssignmentDeclarationSupport1.js\"", + "loneSurrogates": false } } ], @@ -382,7 +386,8 @@ "end": 396 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json index e2ddf701f2f5..9cc2e4f85459 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport2.json @@ -90,7 +90,8 @@ "end": 217 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -165,7 +166,8 @@ "end": 247 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -238,7 +240,8 @@ "end": 276 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -361,7 +364,8 @@ "end": 389 }, "value": "./lateBoundAssignmentDeclarationSupport2.js", - "raw": "\"./lateBoundAssignmentDeclarationSupport2.js\"" + "raw": "\"./lateBoundAssignmentDeclarationSupport2.js\"", + "loneSurrogates": false } } ], @@ -427,7 +431,8 @@ "end": 417 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json index ce71c745a354..f47ebe30c070 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport3.json @@ -90,7 +90,8 @@ "end": 217 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -202,7 +203,8 @@ "end": 277 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] @@ -318,7 +320,8 @@ "end": 339 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] @@ -447,7 +450,8 @@ "end": 455 }, "value": "./lateBoundAssignmentDeclarationSupport3.js", - "raw": "\"./lateBoundAssignmentDeclarationSupport3.js\"" + "raw": "\"./lateBoundAssignmentDeclarationSupport3.js\"", + "loneSurrogates": false } } ], @@ -513,7 +517,8 @@ "end": 483 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json index a1b379c2f35d..2f6709c5dff8 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport4.json @@ -90,7 +90,8 @@ "end": 217 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -199,7 +200,8 @@ "end": 261 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -272,7 +274,8 @@ "end": 287 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -641,7 +644,8 @@ "end": 491 }, "value": "./lateBoundAssignmentDeclarationSupport4.js", - "raw": "\"./lateBoundAssignmentDeclarationSupport4.js\"" + "raw": "\"./lateBoundAssignmentDeclarationSupport4.js\"", + "loneSurrogates": false } } ], @@ -773,7 +777,8 @@ "end": 547 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json index 74fd08fa3e7e..c00f8d3fcaf1 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport5.json @@ -90,7 +90,8 @@ "end": 217 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -201,7 +202,8 @@ "end": 269 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } }, { @@ -230,7 +232,8 @@ "end": 287 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] @@ -602,7 +605,8 @@ "end": 492 }, "value": "./lateBoundAssignmentDeclarationSupport5.js", - "raw": "\"./lateBoundAssignmentDeclarationSupport5.js\"" + "raw": "\"./lateBoundAssignmentDeclarationSupport5.js\"", + "loneSurrogates": false } } ], @@ -734,7 +738,8 @@ "end": 548 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json index 85c9f5aeeecc..bd9bf94463b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport6.json @@ -90,7 +90,8 @@ "end": 217 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -299,7 +300,8 @@ "end": 321 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] @@ -415,7 +417,8 @@ "end": 378 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] @@ -790,7 +793,8 @@ "end": 584 }, "value": "./lateBoundAssignmentDeclarationSupport6.js", - "raw": "\"./lateBoundAssignmentDeclarationSupport6.js\"" + "raw": "\"./lateBoundAssignmentDeclarationSupport6.js\"", + "loneSurrogates": false } } ], @@ -922,7 +926,8 @@ "end": 640 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json index 7e2b0336d610..16199d03f211 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundAssignmentDeclarationSupport7.json @@ -90,7 +90,8 @@ "end": 192 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -184,7 +185,8 @@ "end": 226 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -242,7 +244,8 @@ "end": 242 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } }, @@ -430,7 +433,8 @@ "end": 377 }, "value": "./lateBoundAssignmentDeclarationSupport7.js", - "raw": "\"./lateBoundAssignmentDeclarationSupport7.js\"" + "raw": "\"./lateBoundAssignmentDeclarationSupport7.js\"", + "loneSurrogates": false } } ], @@ -511,7 +515,8 @@ "end": 407 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json index b4184260e478..20906012a163 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS.json @@ -59,7 +59,8 @@ "end": 198 }, "value": "_sym", - "raw": "\"_sym\"" + "raw": "\"_sym\"", + "loneSurrogates": false } } ], @@ -170,7 +171,8 @@ "end": 269 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } } @@ -260,7 +262,8 @@ "end": 319 }, "value": "yep", - "raw": "\"yep\"" + "raw": "\"yep\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json index 5ee9b1b06641..dfb61a2a9984 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS2.json @@ -39,7 +39,8 @@ "end": 199 }, "value": "my-fake-sym", - "raw": "\"my-fake-sym\"" + "raw": "\"my-fake-sym\"", + "loneSurrogates": false }, "definite": false } @@ -146,7 +147,8 @@ "end": 269 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } } @@ -236,7 +238,8 @@ "end": 319 }, "value": "yep", - "raw": "\"yep\"" + "raw": "\"yep\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json index 5d49d83f5015..b159fe678376 100644 --- a/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json +++ b/crates/swc_ecma_parser/tests/tsc/lateBoundClassMemberAssignmentJS3.json @@ -59,7 +59,8 @@ "end": 198 }, "value": "_sym", - "raw": "\"_sym\"" + "raw": "\"_sym\"", + "loneSurrogates": false } } ], @@ -211,7 +212,8 @@ "end": 293 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } } @@ -342,7 +344,8 @@ "end": 367 }, "value": "yep", - "raw": "\"yep\"" + "raw": "\"yep\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json b/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json index fe95dfff82ff..2c0ffb1debdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json +++ b/crates/swc_ecma_parser/tests/tsc/leaveOptionalParameterAsWritten.json @@ -72,7 +72,8 @@ "end": 204 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json index 805ee2e8f816..d690d67923e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json +++ b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLib.json @@ -411,7 +411,8 @@ "end": 500 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json index a6d94a3617c9..acae50c4458f 100644 --- a/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json +++ b/crates/swc_ecma_parser/tests/tsc/libReferenceNoLibBundle.json @@ -411,7 +411,8 @@ "end": 519 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json b/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json index d8a1ac64b0b4..4c4e693b3da8 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypeWidening.json @@ -67,7 +67,8 @@ "end": 83 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -240,7 +241,8 @@ "end": 243 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -252,7 +254,8 @@ "end": 253 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "definite": false } @@ -343,7 +346,8 @@ "end": 327 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -522,7 +526,8 @@ "end": 444 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -531,7 +536,8 @@ "end": 452 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "definite": false @@ -589,7 +595,8 @@ "end": 509 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -605,7 +612,8 @@ "end": 517 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -754,7 +762,8 @@ "end": 623 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } }, "definite": false @@ -812,7 +821,8 @@ "end": 679 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -828,7 +838,8 @@ "end": 687 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -844,7 +855,8 @@ "end": 695 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ] @@ -2211,7 +2223,8 @@ "end": 1695 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "definite": false } @@ -2302,7 +2315,8 @@ "end": 1733 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -2314,7 +2328,8 @@ "end": 1741 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "definite": false } @@ -2401,7 +2416,8 @@ "end": 1780 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -2416,7 +2432,8 @@ "end": 1789 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -2505,7 +2522,8 @@ "end": 1835 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -2520,7 +2538,8 @@ "end": 1829 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -2972,7 +2991,8 @@ "end": 2026 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -3116,7 +3136,8 @@ "end": 2088 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "alternate": { "type": "NumericLiteral", @@ -3190,7 +3211,8 @@ "end": 2124 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -3334,7 +3356,8 @@ "end": 2192 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "alternate": { "type": "NumericLiteral", @@ -3392,7 +3415,8 @@ "end": 2249 }, "value": "FAILURE", - "raw": "\"FAILURE\"" + "raw": "\"FAILURE\"", + "loneSurrogates": false } } }, @@ -3430,7 +3454,8 @@ "end": 2276 }, "value": "FAILURE", - "raw": "\"FAILURE\"" + "raw": "\"FAILURE\"", + "loneSurrogates": false }, "definite": false } @@ -4429,7 +4454,8 @@ "end": 2739 }, "value": "onmouseover", - "raw": "\"onmouseover\"" + "raw": "\"onmouseover\"", + "loneSurrogates": false } }, { @@ -4445,7 +4471,8 @@ "end": 2754 }, "value": "onmouseout", - "raw": "\"onmouseout\"" + "raw": "\"onmouseout\"", + "loneSurrogates": false } } ] @@ -4492,7 +4519,8 @@ "end": 2813 }, "value": "onmouseover", - "raw": "\"onmouseover\"" + "raw": "\"onmouseover\"", + "loneSurrogates": false } } ] @@ -5496,7 +5524,8 @@ "end": 3222 }, "value": "fr", - "raw": "'fr'" + "raw": "'fr'", + "loneSurrogates": false } }, { @@ -5508,7 +5537,8 @@ "end": 3228 }, "value": "en", - "raw": "'en'" + "raw": "'en'", + "loneSurrogates": false } }, { @@ -5520,7 +5550,8 @@ "end": 3234 }, "value": "es", - "raw": "'es'" + "raw": "'es'", + "loneSurrogates": false } }, { @@ -5532,7 +5563,8 @@ "end": 3240 }, "value": "it", - "raw": "'it'" + "raw": "'it'", + "loneSurrogates": false } }, { @@ -5544,7 +5576,8 @@ "end": 3246 }, "value": "nl", - "raw": "'nl'" + "raw": "'nl'", + "loneSurrogates": false } } ], @@ -6021,7 +6054,8 @@ "end": 3532 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypes1.json b/crates/swc_ecma_parser/tests/tsc/literalTypes1.json index 6c3bfc5d87f2..b7dcf077cec8 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypes1.json @@ -943,7 +943,8 @@ "end": 577 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1349,7 +1350,8 @@ "end": 859 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "consequent": [] }, @@ -1366,7 +1368,8 @@ "end": 879 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false }, "consequent": [ { @@ -1634,7 +1637,8 @@ "end": 1146 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "consequent": [ { @@ -1779,7 +1783,8 @@ "end": 1321 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "consequent": [] }, diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypes2.json b/crates/swc_ecma_parser/tests/tsc/literalTypes2.json index 374c7216bfca..b5f57b6f1ce2 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypes2.json @@ -206,7 +206,8 @@ "end": 75 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } }, @@ -489,7 +490,8 @@ "end": 173 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "definite": false } @@ -529,7 +531,8 @@ "end": 190 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -576,7 +579,8 @@ "end": 210 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -585,7 +589,8 @@ "end": 218 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } }, "definite": false @@ -866,7 +871,8 @@ "end": 330 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "definite": false } @@ -906,7 +912,8 @@ "end": 347 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -953,7 +960,8 @@ "end": 367 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -962,7 +970,8 @@ "end": 375 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } }, "definite": false @@ -1243,7 +1252,8 @@ "end": 495 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "definite": false } @@ -1283,7 +1293,8 @@ "end": 514 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -1330,7 +1341,8 @@ "end": 536 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -1339,7 +1351,8 @@ "end": 544 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } }, "definite": false @@ -1560,7 +1573,8 @@ "end": 622 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } } @@ -1572,7 +1586,8 @@ "end": 630 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } }, @@ -1912,7 +1927,8 @@ "end": 727 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } } @@ -1924,7 +1940,8 @@ "end": 735 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "definite": false } @@ -2261,7 +2278,8 @@ "end": 846 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } } @@ -2273,7 +2291,8 @@ "end": 854 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "definite": false } @@ -2594,7 +2613,8 @@ "end": 983 }, "value": "two", - "raw": "\"two\"" + "raw": "\"two\"", + "loneSurrogates": false } }, "definite": false @@ -2758,7 +2778,8 @@ "end": 1059 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "alternate": { "type": "NullLiteral", @@ -3071,7 +3092,8 @@ "end": 1179 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -3087,7 +3109,8 @@ "end": 1187 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -3125,7 +3148,8 @@ "end": 1200 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -3220,7 +3244,8 @@ "end": 1249 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -3731,7 +3756,8 @@ "end": 1458 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -3765,7 +3791,8 @@ "end": 1471 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -3806,7 +3833,8 @@ "end": 1487 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -3815,7 +3843,8 @@ "end": 1495 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } }, "typeAnnotation": null, @@ -4060,7 +4089,8 @@ "end": 1619 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -4094,7 +4124,8 @@ "end": 1641 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -4135,7 +4166,8 @@ "end": 1666 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -4144,7 +4176,8 @@ "end": 1674 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } }, "typeAnnotation": null, @@ -4347,7 +4380,8 @@ "end": 1773 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -4507,7 +4541,8 @@ "end": 1812 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -4523,7 +4558,8 @@ "end": 1820 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -4578,7 +4614,8 @@ "end": 1841 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -4658,7 +4695,8 @@ "end": 1874 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -4818,7 +4856,8 @@ "end": 1911 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -4834,7 +4873,8 @@ "end": 1919 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -4889,7 +4929,8 @@ "end": 1940 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -4988,7 +5029,8 @@ "end": 1987 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5076,7 +5118,8 @@ "end": 2014 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5113,7 +5156,8 @@ "end": 2029 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5204,7 +5248,8 @@ "end": 2055 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -5240,7 +5285,8 @@ "end": 2068 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5304,7 +5350,8 @@ "end": 2093 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5392,7 +5439,8 @@ "end": 2118 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5429,7 +5477,8 @@ "end": 2133 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5520,7 +5569,8 @@ "end": 2157 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -5556,7 +5606,8 @@ "end": 2170 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5700,7 +5751,8 @@ "end": 2233 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -5770,7 +5822,8 @@ "end": 2267 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -5879,7 +5932,8 @@ "end": 2310 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -5949,7 +6003,8 @@ "end": 2344 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -6006,7 +6061,8 @@ "end": 2386 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -6082,7 +6138,8 @@ "end": 2435 }, "value": "two", - "raw": "\"two\"" + "raw": "\"two\"", + "loneSurrogates": false } } } @@ -6184,7 +6241,8 @@ "end": 2528 }, "value": "two", - "raw": "\"two\"" + "raw": "\"two\"", + "loneSurrogates": false } } ] @@ -6493,7 +6551,8 @@ "end": 2705 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -6667,7 +6726,8 @@ "end": 2793 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -6691,7 +6751,8 @@ "end": 2784 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -6765,7 +6826,8 @@ "end": 2820 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -6781,7 +6843,8 @@ "end": 2828 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -6805,7 +6868,8 @@ "end": 2842 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -6887,7 +6951,8 @@ "end": 2870 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -6926,7 +6991,8 @@ "end": 2886 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -6951,7 +7017,8 @@ "end": 2901 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -8683,7 +8750,8 @@ "end": 3386 }, "value": "two", - "raw": "\"two\"" + "raw": "\"two\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypes3.json b/crates/swc_ecma_parser/tests/tsc/literalTypes3.json index 26c577090db9..5e1fa94cde6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypes3.json @@ -97,7 +97,8 @@ "end": 73 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "consequent": { @@ -166,7 +167,8 @@ "end": 123 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "right": { @@ -193,7 +195,8 @@ "end": 138 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, @@ -325,7 +328,8 @@ "end": 240 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "consequent": [] }, @@ -342,7 +346,8 @@ "end": 260 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "consequent": [ { @@ -377,7 +382,8 @@ "end": 313 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, "consequent": [ { @@ -548,7 +554,8 @@ "end": 474 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "right": { @@ -575,7 +582,8 @@ "end": 489 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, @@ -1331,7 +1339,8 @@ "end": 882 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1347,7 +1356,8 @@ "end": 890 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1578,7 +1588,8 @@ "end": 1007 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1594,7 +1605,8 @@ "end": 1015 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1707,7 +1719,8 @@ "end": 1130 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "consequent": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json b/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json index e0dab91ad902..fd11847bf746 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypesAndDestructuring.json @@ -788,7 +788,8 @@ "end": 289 }, "value": "yo", - "raw": "'yo'" + "raw": "'yo'", + "loneSurrogates": false } }, { @@ -804,7 +805,8 @@ "end": 296 }, "value": "ha", - "raw": "'ha'" + "raw": "'ha'", + "loneSurrogates": false } }, { @@ -869,7 +871,8 @@ "end": 329 }, "value": "yo", - "raw": "'yo'" + "raw": "'yo'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json b/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json index a22779bf5210..1c629f218dc9 100644 --- a/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json +++ b/crates/swc_ecma_parser/tests/tsc/literalTypesAndTypeAssertions.json @@ -62,7 +62,8 @@ "end": 27 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -77,7 +78,8 @@ "end": 36 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -105,7 +107,8 @@ "end": 57 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -120,7 +123,8 @@ "end": 51 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -142,7 +146,8 @@ "end": 71 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -333,7 +338,8 @@ "end": 127 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -364,7 +370,8 @@ "end": 142 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -426,7 +433,8 @@ "end": 161 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -441,7 +449,8 @@ "end": 170 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -474,7 +483,8 @@ "end": 185 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -530,7 +540,8 @@ "end": 204 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -567,7 +578,8 @@ "end": 219 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -582,7 +594,8 @@ "end": 228 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -646,7 +659,8 @@ "end": 247 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -661,7 +675,8 @@ "end": 256 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -700,7 +715,8 @@ "end": 271 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -715,7 +731,8 @@ "end": 280 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes1.json b/crates/swc_ecma_parser/tests/tsc/localTypes1.json index 5ddffd096c5c..7c0938b9a167 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes1.json @@ -3598,7 +3598,8 @@ "end": 2117 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -3647,7 +3648,8 @@ "end": 2140 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -3696,7 +3698,8 @@ "end": 2163 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes3.json b/crates/swc_ecma_parser/tests/tsc/localTypes3.json index 2e2e346e22b3..e13ccf05751f 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes3.json @@ -402,7 +402,8 @@ "end": 194 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -970,7 +971,8 @@ "end": 442 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1481,7 +1483,8 @@ "end": 662 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/localTypes4.json b/crates/swc_ecma_parser/tests/tsc/localTypes4.json index 2fafa0185271..be0f45c88388 100644 --- a/crates/swc_ecma_parser/tests/tsc/localTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/localTypes4.json @@ -902,7 +902,8 @@ "end": 723 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json b/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json index c8ce4e0c9218..f6b08500fa9b 100644 --- a/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/localesObjectArgument.json @@ -74,7 +74,8 @@ "end": 57 }, "value": "en-US", - "raw": "\"en-US\"" + "raw": "\"en-US\"", + "loneSurrogates": false } } ], @@ -153,7 +154,8 @@ "end": 96 }, "value": "de-DE", - "raw": "\"de-DE\"" + "raw": "\"de-DE\"", + "loneSurrogates": false } } ], @@ -232,7 +234,8 @@ "end": 135 }, "value": "ja-JP", - "raw": "\"ja-JP\"" + "raw": "\"ja-JP\"", + "loneSurrogates": false } } ], @@ -413,7 +416,8 @@ "end": 231 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -509,7 +513,8 @@ "end": 286 }, "value": "de-DE", - "raw": "'de-DE'" + "raw": "'de-DE'", + "loneSurrogates": false } }, { @@ -521,7 +526,8 @@ "end": 295 }, "value": "ja-JP", - "raw": "'ja-JP'" + "raw": "'ja-JP'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment1.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment1.json index 007186d60422..0648dcae5fbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment1.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment1.json @@ -699,7 +699,8 @@ "end": 358 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -734,7 +735,8 @@ "end": 370 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -769,7 +771,8 @@ "end": 382 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment10.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment10.json index bb58e4ef49d4..450046e93083 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment10.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment10.json @@ -322,7 +322,8 @@ "end": 175 }, "value": "obj", - "raw": "\"obj\"" + "raw": "\"obj\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json index 461ab2708637..0b934cd3169e 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment11.json @@ -202,7 +202,8 @@ "end": 127 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -352,7 +353,8 @@ "end": 181 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json index f57ca27a2d86..28fe6d8b5cbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment2.json @@ -196,7 +196,8 @@ "end": 147 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -309,7 +310,8 @@ "end": 198 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -421,7 +423,8 @@ "end": 241 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -907,7 +910,8 @@ "end": 402 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, @@ -1010,7 +1014,8 @@ "end": 434 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, @@ -1113,7 +1118,8 @@ "end": 466 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json b/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json index 2e5aee897144..9723f6c7d043 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalAssignment3.json @@ -132,7 +132,8 @@ "end": 111 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json index 43ea3c491a7b..0d50ae931140 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithAnyOtherType.json @@ -147,7 +147,8 @@ "end": 73 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -159,7 +160,8 @@ "end": 77 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -281,7 +283,8 @@ "end": 116 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json index 7f432444c60d..8c3d885274fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithEnumType.json @@ -226,7 +226,8 @@ "end": 174 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -336,7 +337,8 @@ "end": 219 }, "value": "C", - "raw": "\"C\"" + "raw": "\"C\"", + "loneSurrogates": false } } } @@ -494,7 +496,8 @@ "end": 314 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json index 18d9f65a159d..10c698585b52 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalNotOperatorWithStringType.json @@ -115,7 +115,8 @@ "end": 77 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 84 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 125 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 190 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -600,7 +604,8 @@ "end": 391 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -665,7 +670,8 @@ "end": 424 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -685,7 +691,8 @@ "end": 431 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -753,7 +760,8 @@ "end": 466 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1501,7 +1509,8 @@ "end": 917 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json index b1859df467e4..d5371c49a0bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalOrExpressionIsContextuallyTyped.json @@ -113,7 +113,8 @@ "end": 289 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -162,7 +163,8 @@ "end": 310 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json index c333bd679ce9..f6d2ff173c03 100644 --- a/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/logicalOrOperatorWithTypeParameters.json @@ -1340,7 +1340,8 @@ "end": 535 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json index 030c410b9c4d..20e86b5fbbdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauseRelationships.json @@ -795,7 +795,8 @@ }, "tail": false, "cooked": "bool", - "raw": "bool" + "raw": "bool", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -805,7 +806,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1586,7 +1588,8 @@ }, "tail": false, "cooked": "bool", - "raw": "bool" + "raw": "bool", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1596,7 +1599,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2076,7 +2080,8 @@ }, "tail": false, "cooked": "bool", - "raw": "bool" + "raw": "bool", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2086,7 +2091,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json index ced700a1f561..4078fb85d3ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeAsClauses.json @@ -191,7 +191,8 @@ }, "tail": false, "cooked": "get", - "raw": "get" + "raw": "get", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -201,7 +202,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -830,7 +832,8 @@ "end": 436 }, "value": "name", - "raw": "'name'" + "raw": "'name'", + "loneSurrogates": false } } }, @@ -873,7 +876,8 @@ "end": 448 }, "value": "type", - "raw": "'type'" + "raw": "'type'", + "loneSurrogates": false } } } @@ -972,7 +976,8 @@ "end": 489 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1059,7 +1064,8 @@ "end": 519 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } } @@ -1146,7 +1152,8 @@ "end": 549 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1955,7 +1962,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1965,7 +1973,8 @@ }, "tail": true, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false } ] } @@ -2011,7 +2020,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2021,7 +2031,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] } @@ -2655,7 +2666,8 @@ }, "tail": false, "cooked": "get", - "raw": "get" + "raw": "get", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2665,7 +2677,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3440,7 +3453,8 @@ "end": 1784 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -3552,7 +3566,8 @@ "end": 1828 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "definite": false } @@ -3924,7 +3939,8 @@ "end": 2058 }, "value": "summer", - "raw": "\"summer\"" + "raw": "\"summer\"", + "loneSurrogates": false } }, { @@ -3940,7 +3956,8 @@ "end": 2069 }, "value": "winter", - "raw": "\"winter\"" + "raw": "\"winter\"", + "loneSurrogates": false } } ] @@ -6369,7 +6386,8 @@ "end": 3119 }, "value": "root", - "raw": "'root'" + "raw": "'root'", + "loneSurrogates": false } } }, @@ -6386,7 +6404,8 @@ "end": 3127 }, "value": "task", - "raw": "'task'" + "raw": "'task'", + "loneSurrogates": false } } } @@ -6498,7 +6517,8 @@ "end": 3188 }, "value": "root", - "raw": "'root'" + "raw": "'root'", + "loneSurrogates": false } } }, @@ -6515,7 +6535,8 @@ "end": 3196 }, "value": "task", - "raw": "'task'" + "raw": "'task'", + "loneSurrogates": false } } } @@ -6634,7 +6655,8 @@ "end": 3263 }, "value": "root", - "raw": "'root'" + "raw": "'root'", + "loneSurrogates": false } } }, @@ -6651,7 +6673,8 @@ "end": 3271 }, "value": "task", - "raw": "'task'" + "raw": "'task'", + "loneSurrogates": false } } } @@ -7196,7 +7219,8 @@ "end": 3514 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -7242,7 +7266,8 @@ "end": 3571 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -7265,7 +7290,8 @@ "end": 3576 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } } @@ -7284,7 +7310,8 @@ "end": 3581 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -7307,7 +7334,8 @@ "end": 3586 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } } @@ -7326,7 +7354,8 @@ "end": 3591 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -7349,7 +7378,8 @@ "end": 3596 }, "value": "z", - "raw": "'z'" + "raw": "'z'", + "loneSurrogates": false } } } @@ -7708,7 +7738,8 @@ "end": 3766 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -7724,7 +7755,8 @@ "end": 3772 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -7740,7 +7772,8 @@ "end": 3778 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -7920,7 +7953,8 @@ "end": 3839 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -7936,7 +7970,8 @@ "end": 3845 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -7952,7 +7987,8 @@ "end": 3851 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -8142,7 +8178,8 @@ "end": 3918 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -8158,7 +8195,8 @@ "end": 3924 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -8174,7 +8212,8 @@ "end": 3930 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -9402,7 +9441,8 @@ "end": 4439 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, "extendsType": { @@ -9436,7 +9476,8 @@ "end": 4455 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, "falseType": { @@ -9452,7 +9493,8 @@ "end": 4461 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } }, @@ -9677,7 +9719,8 @@ "end": 4543 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -9696,7 +9739,8 @@ "end": 4549 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -9715,7 +9759,8 @@ "end": 4555 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -10434,7 +10479,8 @@ "end": 4892 }, "value": "apple", - "raw": "\"apple\"" + "raw": "\"apple\"", + "loneSurrogates": false } } } @@ -10477,7 +10523,8 @@ "end": 4912 }, "value": "red", - "raw": "\"red\"" + "raw": "\"red\"", + "loneSurrogates": false } } } @@ -10529,7 +10576,8 @@ "end": 4946 }, "value": "banana", - "raw": "\"banana\"" + "raw": "\"banana\"", + "loneSurrogates": false } } } @@ -10572,7 +10620,8 @@ "end": 4969 }, "value": "yellow", - "raw": "\"yellow\"" + "raw": "\"yellow\"", + "loneSurrogates": false } } } @@ -10624,7 +10673,8 @@ "end": 5003 }, "value": "orange", - "raw": "\"orange\"" + "raw": "\"orange\"", + "loneSurrogates": false } } } @@ -10667,7 +10717,8 @@ "end": 5026 }, "value": "orange", - "raw": "\"orange\"" + "raw": "\"orange\"", + "loneSurrogates": false } } } @@ -10934,7 +10985,8 @@ "end": 5140 }, "value": "name", - "raw": "'name'" + "raw": "'name'", + "loneSurrogates": false } } }, @@ -10976,7 +11028,8 @@ "end": 5156 }, "value": "color", - "raw": "'color'" + "raw": "'color'", + "loneSurrogates": false } } } @@ -10990,7 +11043,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11000,7 +11054,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11010,7 +11065,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11290,7 +11346,8 @@ "end": 5285 }, "value": "name", - "raw": "'name'" + "raw": "'name'", + "loneSurrogates": false } } }, @@ -11332,7 +11389,8 @@ "end": 5301 }, "value": "color", - "raw": "'color'" + "raw": "'color'", + "loneSurrogates": false } } } @@ -11346,7 +11404,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11356,7 +11415,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11366,7 +11426,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json index 4f3c275d6d9a..87ac110a774e 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints.json @@ -144,7 +144,8 @@ "end": 100 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -457,7 +458,8 @@ "end": 201 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -1687,7 +1689,8 @@ "end": 589 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1706,7 +1709,8 @@ "end": 596 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json index 60c5bf2c124a..6a9e2a7da20c 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeConstraints2.json @@ -616,7 +616,8 @@ }, "tail": false, "cooked": "get", - "raw": "get" + "raw": "get", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -626,7 +627,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -834,7 +836,8 @@ }, "tail": false, "cooked": "get", - "raw": "get" + "raw": "get", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -844,7 +847,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1648,7 +1652,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1658,7 +1663,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1972,7 +1978,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1982,7 +1989,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2088,7 +2096,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2098,7 +2107,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2265,7 +2275,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2275,7 +2286,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2565,7 +2577,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2575,7 +2588,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2806,7 +2820,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2816,7 +2831,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3079,7 +3095,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3089,7 +3106,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3320,7 +3338,8 @@ }, "tail": false, "cooked": "get", - "raw": "get" + "raw": "get", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3330,7 +3349,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3537,7 +3557,8 @@ }, "tail": false, "cooked": "get", - "raw": "get" + "raw": "get", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3547,7 +3568,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4728,7 +4750,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4738,7 +4761,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4999,7 +5023,8 @@ }, "tail": false, "cooked": "_", - "raw": "_" + "raw": "_", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5009,7 +5034,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json index 358f64de64bb..4c4c672ece21 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors.json @@ -698,7 +698,8 @@ "end": 475 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } ] @@ -777,7 +778,8 @@ "end": 506 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -863,7 +865,8 @@ "end": 548 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -879,7 +882,8 @@ "end": 556 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -5559,7 +5563,8 @@ "end": 2441 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -5651,7 +5656,8 @@ "end": 2477 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } }, { @@ -5744,7 +5750,8 @@ "end": 2511 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ] @@ -6670,7 +6677,8 @@ "end": 2883 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } }, { @@ -6765,7 +6773,8 @@ "end": 2915 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ] @@ -7300,7 +7309,8 @@ "end": 3129 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] @@ -7410,7 +7420,8 @@ "end": 3174 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] @@ -7577,7 +7588,8 @@ "end": 3232 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] @@ -8217,7 +8229,8 @@ "end": 3473 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors2.json index 104469325d33..7a3c86f59509 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeErrors2.json @@ -68,7 +68,8 @@ "end": 96 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -111,7 +112,8 @@ "end": 107 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -346,7 +348,8 @@ "end": 189 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -362,7 +365,8 @@ "end": 193 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -659,7 +663,8 @@ "end": 300 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -675,7 +680,8 @@ "end": 304 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -792,7 +798,8 @@ "end": 345 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -808,7 +815,8 @@ "end": 349 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -824,7 +832,8 @@ "end": 357 }, "value": "extra", - "raw": "'extra'" + "raw": "'extra'", + "loneSurrogates": false } } ] @@ -1013,7 +1022,8 @@ "end": 419 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1029,7 +1039,8 @@ "end": 423 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1075,7 +1086,8 @@ "end": 438 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1091,7 +1103,8 @@ "end": 442 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1280,7 +1293,8 @@ "end": 504 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1296,7 +1310,8 @@ "end": 508 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -1335,7 +1350,8 @@ "end": 523 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, "default": null diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeIndexSignatureModifiers.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeIndexSignatureModifiers.json index d10f68102e36..921e27b70f20 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeIndexSignatureModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeIndexSignatureModifiers.json @@ -238,7 +238,8 @@ "end": 226 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } } @@ -511,7 +512,8 @@ "end": 388 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -739,7 +741,8 @@ "end": 505 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -967,7 +970,8 @@ "end": 622 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1295,7 +1299,8 @@ }, "tail": false, "cooked": "wow", - "raw": "wow" + "raw": "wow", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1305,7 +1310,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1332,7 +1338,8 @@ "end": 766 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1535,7 +1542,8 @@ }, "tail": false, "cooked": "wow", - "raw": "wow" + "raw": "wow", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1545,7 +1553,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1572,7 +1581,8 @@ "end": 883 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1775,7 +1785,8 @@ }, "tail": false, "cooked": "wow", - "raw": "wow" + "raw": "wow", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1785,7 +1796,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1812,7 +1824,8 @@ "end": 1000 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2372,7 +2385,8 @@ "end": 1293 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2600,7 +2614,8 @@ "end": 1423 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2828,7 +2843,8 @@ "end": 1553 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -3156,7 +3172,8 @@ }, "tail": false, "cooked": "wow", - "raw": "wow" + "raw": "wow", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3166,7 +3183,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3193,7 +3211,8 @@ "end": 1729 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json index 2e5108c9f5dc..5a222ca962ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeModifiers.json @@ -448,7 +448,8 @@ "end": 250 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -464,7 +465,8 @@ "end": 256 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -3982,7 +3984,8 @@ "end": 1273 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -3998,7 +4001,8 @@ "end": 1279 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -6904,7 +6908,8 @@ "end": 2106 }, "value": "other", - "raw": "\"other\"" + "raw": "\"other\"", + "loneSurrogates": false } } }, @@ -7117,7 +7122,8 @@ "end": 2191 }, "value": "other", - "raw": "\"other\"" + "raw": "\"other\"", + "loneSurrogates": false } } }, @@ -7325,7 +7331,8 @@ "end": 2270 }, "value": "other", - "raw": "\"other\"" + "raw": "\"other\"", + "loneSurrogates": false } } }, @@ -7593,7 +7600,8 @@ "end": 2366 }, "value": "other", - "raw": "\"other\"" + "raw": "\"other\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json index c9ed86bea40f..1a5449ca0181 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeOverlappingStringEnumKeys.json @@ -47,7 +47,8 @@ "end": 55 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false } }, { @@ -73,7 +74,8 @@ "end": 70 }, "value": "dog", - "raw": "\"dog\"" + "raw": "\"dog\"", + "loneSurrogates": false } } ] @@ -127,7 +129,8 @@ "end": 112 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false } } ] @@ -825,7 +828,8 @@ "end": 533 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -893,7 +897,8 @@ "end": 581 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json b/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json index 6f6bcb4d64bc..397b5adb2287 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypeRelationships.json @@ -13929,7 +13929,8 @@ "end": 4228 }, "value": "audio", - "raw": "\"audio\"" + "raw": "\"audio\"", + "loneSurrogates": false } } } @@ -14023,7 +14024,8 @@ "end": 4293 }, "value": "audio", - "raw": "\"audio\"" + "raw": "\"audio\"", + "loneSurrogates": false } }, { @@ -14039,7 +14041,8 @@ "end": 4303 }, "value": "video", - "raw": "\"video\"" + "raw": "\"video\"", + "loneSurrogates": false } } ] @@ -14247,7 +14250,8 @@ "end": 4454 }, "value": "audio", - "raw": "\"audio\"" + "raw": "\"audio\"", + "loneSurrogates": false } } ] @@ -14315,7 +14319,8 @@ "end": 4516 }, "value": "audio", - "raw": "\"audio\"" + "raw": "\"audio\"", + "loneSurrogates": false } }, { @@ -14331,7 +14336,8 @@ "end": 4526 }, "value": "video", - "raw": "\"video\"" + "raw": "\"video\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes1.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes1.json index cecfccd5fb67..195fef8c4d72 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes1.json @@ -202,7 +202,8 @@ "end": 124 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -218,7 +219,8 @@ "end": 130 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -301,7 +303,8 @@ "end": 165 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } }, { @@ -317,7 +320,8 @@ "end": 171 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -410,7 +414,8 @@ "end": 201 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -426,7 +431,8 @@ "end": 207 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2134,7 +2140,8 @@ "end": 989 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2150,7 +2157,8 @@ "end": 995 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2233,7 +2241,8 @@ "end": 1028 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2249,7 +2258,8 @@ "end": 1034 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -2265,7 +2275,8 @@ "end": 1040 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -2281,7 +2292,8 @@ "end": 1046 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ] @@ -2372,7 +2384,8 @@ "end": 1088 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2388,7 +2401,8 @@ "end": 1094 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -2404,7 +2418,8 @@ "end": 1100 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -2420,7 +2435,8 @@ "end": 1106 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json index 9c1734db9f3e..49f4d4a336c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes2.json @@ -3477,7 +3477,8 @@ "end": 1357 }, "value": "circle", - "raw": "\"circle\"" + "raw": "\"circle\"", + "loneSurrogates": false } } ] @@ -4314,7 +4315,8 @@ "end": 1728 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } }, { @@ -4326,7 +4328,8 @@ "end": 1740 }, "value": "location", - "raw": "\"location\"" + "raw": "\"location\"", + "loneSurrogates": false } } ], @@ -4422,7 +4425,8 @@ "end": 1830 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4442,7 +4446,8 @@ "end": 1844 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } }, { @@ -4462,7 +4467,8 @@ "end": 1856 }, "value": "bye", - "raw": "\"bye\"" + "raw": "\"bye\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json b/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json index fa4cc1e8e7ec..0a85ca248917 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypes4.json @@ -348,7 +348,8 @@ "end": 200 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -1733,7 +1734,8 @@ "end": 815 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1749,7 +1751,8 @@ "end": 825 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples.json b/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples.json index 8c385fc69430..b1a30bf40f3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples.json +++ b/crates/swc_ecma_parser/tests/tsc/mappedTypesGenericTuples.json @@ -2273,7 +2273,8 @@ "end": 1129 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -2297,7 +2298,8 @@ "end": 1134 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } }, @@ -2321,7 +2323,8 @@ "end": 1139 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -2490,7 +2493,8 @@ "end": 1217 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -2514,7 +2518,8 @@ "end": 1222 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } }, @@ -2538,7 +2543,8 @@ "end": 1227 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -2725,7 +2731,8 @@ "end": 1306 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -2749,7 +2756,8 @@ "end": 1311 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } }, @@ -2773,7 +2781,8 @@ "end": 1316 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } @@ -2942,7 +2951,8 @@ "end": 1394 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -2966,7 +2976,8 @@ "end": 1399 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } }, @@ -2990,7 +3001,8 @@ "end": 1404 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json index e99f17a4e10a..9887546ab1f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPrivateOverloads.json @@ -357,7 +357,8 @@ "end": 139 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -996,7 +997,8 @@ "end": 403 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1682,7 +1684,8 @@ "end": 665 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -2341,7 +2344,8 @@ "end": 919 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -3119,7 +3123,8 @@ "end": 1181 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json index bede8f137559..09176170546e 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicOverloads.json @@ -357,7 +357,8 @@ "end": 135 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -996,7 +997,8 @@ "end": 392 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1682,7 +1684,8 @@ "end": 647 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -2341,7 +2344,8 @@ "end": 894 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json index 3eb6cc9f2eb2..373acaa64623 100644 --- a/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/memberFunctionsWithPublicPrivateOverloads.json @@ -357,7 +357,8 @@ "end": 147 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1277,7 +1278,8 @@ "end": 554 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1635,7 +1637,8 @@ "end": 723 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -2321,7 +2324,8 @@ "end": 1006 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -3261,7 +3265,8 @@ "end": 1393 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers.json index c09b34c370ea..e7e7e30ad1c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers.json @@ -377,7 +377,8 @@ "end": 218 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -441,7 +442,8 @@ "end": 236 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers2.json b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers2.json index 0ac6a8efa79b..6177479c54f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers2.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedInterfacesWithIndexers2.json @@ -292,7 +292,8 @@ "end": 245 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json b/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json index bc92d80d0fb9..c1ac03bd9950 100644 --- a/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json +++ b/crates/swc_ecma_parser/tests/tsc/mergedWithLocalValue.json @@ -42,7 +42,8 @@ "end": 39 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -81,7 +82,8 @@ "end": 89 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -145,7 +147,8 @@ "end": 107 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json index 9f7621a582a2..19c6b607cc73 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnnotated.json @@ -648,7 +648,8 @@ "end": 484 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -761,7 +762,8 @@ "end": 543 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } }, "right": { @@ -1380,7 +1382,8 @@ "end": 848 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json index 31eaf422744e..2eeb99afbdb7 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesAnonymous.json @@ -583,7 +583,8 @@ "end": 359 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -696,7 +697,8 @@ "end": 410 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } }, "right": { @@ -1130,7 +1132,8 @@ "end": 642 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json b/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json index b2536cdaae32..18344a8e4b1a 100644 --- a/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/mixinClassesMembers.json @@ -1171,7 +1171,8 @@ "end": 657 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1299,7 +1300,8 @@ "end": 720 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1427,7 +1429,8 @@ "end": 783 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1555,7 +1558,8 @@ "end": 846 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1769,7 +1773,8 @@ "end": 954 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1964,7 +1969,8 @@ "end": 1038 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2159,7 +2165,8 @@ "end": 1122 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2438,7 +2445,8 @@ "end": 1233 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2943,7 +2951,8 @@ "end": 1460 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json index dbbd9dfd324f..ba4385d35618 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias.json @@ -36,7 +36,8 @@ "end": 83 }, "value": "./b.js", - "raw": "\"./b.js\"" + "raw": "\"./b.js\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json index ce4aa7c132ea..40c61b69a97a 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias2.json @@ -503,7 +503,8 @@ "end": 416 }, "value": "./semver", - "raw": "\"./semver\"" + "raw": "\"./semver\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json index 6609b5da30ae..d127612d97ac 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAlias4.json @@ -59,7 +59,8 @@ "end": 102 }, "value": "./bug24024", - "raw": "'./bug24024'" + "raw": "'./bug24024'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasElementAccessExpression.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasElementAccessExpression.json index cc3a939d47f8..04f062ca2b0b 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasElementAccessExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasElementAccessExpression.json @@ -81,7 +81,8 @@ "end": 145 }, "value": "D", - "raw": "\"D\"" + "raw": "\"D\"", + "loneSurrogates": false } } }, @@ -139,7 +140,8 @@ "end": 269 }, "value": "Does not work yet", - "raw": "\"Does not work yet\"" + "raw": "\"Does not work yet\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json index 633e0beed51d..fb1b24971d47 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAliasImported.json @@ -169,7 +169,8 @@ "end": 228 }, "value": "./bug28014", - "raw": "'./bug28014'" + "raw": "'./bug28014'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json index 94e187cd065b..d2c1ef606d8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment.json @@ -227,7 +227,8 @@ "end": 188 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], @@ -297,7 +298,8 @@ "end": 248 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], @@ -550,7 +552,8 @@ "end": 376 }, "value": "./npmlog", - "raw": "'./npmlog'" + "raw": "'./npmlog'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json index d709ca827a26..b6b4d502a4b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment3.json @@ -174,7 +174,8 @@ "end": 195 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json index 57b0ecacf479..6238af3f67a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment4.json @@ -161,7 +161,8 @@ "end": 144 }, "value": "default", - "raw": "'default'" + "raw": "'default'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json index d78ec0f4e569..28d347c7c3d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportAssignment7.json @@ -390,7 +390,8 @@ "end": 329 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1204,7 +1205,8 @@ "end": 1196 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1257,7 +1259,8 @@ "end": 1226 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1310,7 +1313,8 @@ "end": 1263 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1363,7 +1367,8 @@ "end": 1291 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1416,7 +1421,8 @@ "end": 1319 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1469,7 +1475,8 @@ "end": 1347 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1522,7 +1529,8 @@ "end": 1375 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1827,7 +1835,8 @@ "end": 1494 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1888,7 +1897,8 @@ "end": 1531 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1949,7 +1959,8 @@ "end": 1575 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -2010,7 +2021,8 @@ "end": 1610 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -2071,7 +2083,8 @@ "end": 1645 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -2132,7 +2145,8 @@ "end": 1680 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -2193,7 +2207,8 @@ "end": 1715 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json index 85411c9f944b..b8116f9f281c 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias.json @@ -296,7 +296,8 @@ "end": 302 }, "value": "./moduleExportAliasDuplicateAlias", - "raw": "'./moduleExportAliasDuplicateAlias'" + "raw": "'./moduleExportAliasDuplicateAlias'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json index 9fb1fe7d16bc..63ddb23e742e 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias2.json @@ -364,7 +364,8 @@ "end": 333 }, "value": "./moduleExportAliasDuplicateAlias", - "raw": "'./moduleExportAliasDuplicateAlias'" + "raw": "'./moduleExportAliasDuplicateAlias'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json index 505aee9275a7..efe15d716374 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportDuplicateAlias3.json @@ -276,7 +276,8 @@ "end": 249 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } }, @@ -483,7 +484,8 @@ "end": 389 }, "value": "./moduleExportAliasDuplicateAlias", - "raw": "'./moduleExportAliasDuplicateAlias'" + "raw": "'./moduleExportAliasDuplicateAlias'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json b/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json index bb5596401628..a9a40290ea5b 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportNestedNamespaces.json @@ -397,7 +397,8 @@ "end": 282 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json index 1435a1628462..897599c49117 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment.json @@ -378,7 +378,8 @@ "end": 410 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json index 8bc7023b61ae..7a734f2f7061 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment2.json @@ -343,7 +343,8 @@ "end": 370 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json index aea0736acc32..f726f729feef 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment3.json @@ -221,7 +221,8 @@ "end": 264 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -394,7 +395,8 @@ "end": 377 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -458,7 +460,8 @@ "end": 416 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -516,7 +519,8 @@ "end": 505 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json index e6a076d95c58..cfa910e138fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportWithExportPropertyAssignment4.json @@ -221,7 +221,8 @@ "end": 264 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -563,7 +564,8 @@ "end": 401 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -627,7 +629,8 @@ "end": 440 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -685,7 +688,8 @@ "end": 529 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json index a33096fdc328..5ea9f5b0f4a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment.json @@ -67,7 +67,8 @@ "end": 148 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -116,7 +117,8 @@ "end": 163 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -144,7 +146,8 @@ "end": 175 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -193,7 +196,8 @@ "end": 196 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } } }, @@ -221,7 +225,8 @@ "end": 208 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -285,7 +290,8 @@ "end": 230 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } }, @@ -313,7 +319,8 @@ "end": 242 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -368,7 +375,8 @@ "end": 262 }, "value": "exports", - "raw": "\"exports\"" + "raw": "\"exports\"", + "loneSurrogates": false } } }, @@ -385,7 +393,8 @@ "end": 267 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } }, @@ -453,7 +462,8 @@ "end": 291 }, "value": "exports", - "raw": "\"exports\"" + "raw": "\"exports\"", + "loneSurrogates": false } } }, @@ -470,7 +480,8 @@ "end": 296 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } }, @@ -548,7 +559,8 @@ "end": 357 }, "value": "./mod1", - "raw": "\"./mod1\"" + "raw": "\"./mod1\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json index 24f686a0e305..7db06772c892 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleExportsElementAccessAssignment2.json @@ -189,7 +189,8 @@ "end": 305 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -249,7 +250,8 @@ "end": 331 }, "value": "AST_", - "raw": "\"AST_\"" + "raw": "\"AST_\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithExtensions.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithExtensions.json index 0ea76aeb4f5d..50a9b6978f56 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithExtensions.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithExtensions.json @@ -53,7 +53,8 @@ "end": 143 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -91,7 +92,8 @@ "end": 245 }, "value": "./a.js", - "raw": "'./a.js'" + "raw": "'./a.js'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -192,7 +194,8 @@ "end": 412 }, "value": "./jquery", - "raw": "\"./jquery\"" + "raw": "\"./jquery\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -230,7 +233,8 @@ "end": 533 }, "value": "./jquery.js", - "raw": "\"./jquery.js\"" + "raw": "\"./jquery.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension1.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension1.json index 2d74792e5a91..fdeae51bac3c 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension1.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension1.json @@ -52,7 +52,8 @@ "end": 114 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -97,7 +98,8 @@ "end": 230 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -137,7 +139,8 @@ "end": 298 }, "value": "./baz", - "raw": "\"./baz\"" + "raw": "\"./baz\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension2.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension2.json index cd8273d0fc7e..bfe73bf8c832 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension2.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension2.json @@ -36,7 +36,8 @@ "end": 164 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension3.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension3.json index 31a6ecb6e7d4..64faafa57274 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension3.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension3.json @@ -52,7 +52,8 @@ "end": 136 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -97,7 +98,8 @@ "end": 252 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension4.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension4.json index 5313d1f9aeb2..9faf1f71154a 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension4.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension4.json @@ -52,7 +52,8 @@ "end": 133 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -97,7 +98,8 @@ "end": 249 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json index 841f05fb1427..c2940b09883e 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension5.json @@ -49,7 +49,8 @@ "end": 154 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension6.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension6.json index c9724924c16d..7c39ccbb3b38 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension6.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension6.json @@ -39,7 +39,8 @@ "end": 279 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension7.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension7.json index 2fcfb878a600..8dca1ab1b6dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension7.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension7.json @@ -36,7 +36,8 @@ "end": 163 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json index be4686a063eb..193c91c18322 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleResolutionWithoutExtension8.json @@ -49,7 +49,8 @@ "end": 153 }, "value": "./foo", - "raw": "\"./foo\"" + "raw": "\"./foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/moduleScoping.json b/crates/swc_ecma_parser/tests/tsc/moduleScoping.json index ecd3fc8a732e..8e25260a57a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleScoping.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleScoping.json @@ -39,7 +39,8 @@ "end": 43 }, "value": "sausages", - "raw": "\"sausages\"" + "raw": "\"sausages\"", + "loneSurrogates": false }, "definite": false } @@ -291,7 +292,8 @@ "end": 303 }, "value": "./file3", - "raw": "'./file3'" + "raw": "'./file3'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json b/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json index 1096fd6d0d48..2fa07194dc07 100644 --- a/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json +++ b/crates/swc_ecma_parser/tests/tsc/moduleWithStatementsOfEveryKind.json @@ -936,7 +936,8 @@ "end": 450 }, "value": "hello ", - "raw": "'hello '" + "raw": "'hello '", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1012,7 +1013,8 @@ "end": 487 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2137,7 +2139,8 @@ "end": 1098 }, "value": "hello ", - "raw": "'hello '" + "raw": "'hello '", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -2220,7 +2223,8 @@ "end": 1142 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json b/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json index 10b97b010254..2d967a79355a 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleDeclarations.json @@ -384,7 +384,8 @@ "end": 269 }, "value": "frankly, complete nonsense", - "raw": "'frankly, complete nonsense'" + "raw": "'frankly, complete nonsense'", + "loneSurrogates": false } } } @@ -941,7 +942,8 @@ "end": 528 }, "value": "even more nonsense", - "raw": "'even more nonsense'" + "raw": "'even more nonsense'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports01.json b/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports01.json index 357a157523ca..86c36dd4c87d 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports01.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports01.json @@ -166,7 +166,8 @@ "end": 202 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports02.json b/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports02.json index a82530f1a55c..224cc58fe6e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports02.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleDefaultExports02.json @@ -117,7 +117,8 @@ "end": 176 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json index 11f2bd27c5e1..147ba79aa276 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault1.json @@ -75,7 +75,8 @@ "end": 85 }, "value": "another default", - "raw": "\"another default\"" + "raw": "\"another default\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json index ef5ed5731fdf..46e3891ee522 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault2.json @@ -35,7 +35,8 @@ "end": 45 }, "value": "another default", - "raw": "\"another default\"" + "raw": "\"another default\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json index 6f4d2b99a8e8..d5dcd8c3ab12 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault3.json @@ -35,7 +35,8 @@ "end": 45 }, "value": "another default", - "raw": "\"another default\"" + "raw": "\"another default\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json index 1a9a627c4796..8e98d31c5291 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleExportDefault4.json @@ -67,7 +67,8 @@ "end": 73 }, "value": "another default", - "raw": "\"another default\"" + "raw": "\"another default\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/multipleNumericIndexers.json b/crates/swc_ecma_parser/tests/tsc/multipleNumericIndexers.json index dad1832d5e21..5e060fe3c330 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleNumericIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleNumericIndexers.json @@ -583,7 +583,8 @@ "end": 314 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -595,7 +596,8 @@ "end": 319 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -604,7 +606,8 @@ "end": 323 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json b/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json index ad7459165674..5e4cfcab35c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/multipleStringIndexers.json @@ -582,7 +582,8 @@ "end": 315 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/nameCollision.json b/crates/swc_ecma_parser/tests/tsc/nameCollision.json index 37c8dcae36a6..8ef9a63bad27 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameCollision.json +++ b/crates/swc_ecma_parser/tests/tsc/nameCollision.json @@ -105,7 +105,8 @@ "end": 144 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -829,7 +830,8 @@ "end": 711 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json b/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json index 73aa3ef675b4..c13b620d596d 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json +++ b/crates/swc_ecma_parser/tests/tsc/nameDelimitedBySlashes.json @@ -83,7 +83,8 @@ "end": 130 }, "value": "./test/foo_0", - "raw": "'./test/foo_0'" + "raw": "'./test/foo_0'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json b/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json index 2d97d3115828..c5ed8aa52830 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json +++ b/crates/swc_ecma_parser/tests/tsc/nameWithFileExtension.json @@ -83,7 +83,8 @@ "end": 123 }, "value": "./foo_0.js", - "raw": "'./foo_0.js'" + "raw": "'./foo_0.js'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json b/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json index 54d2203a44d2..637b8a57aed8 100644 --- a/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json +++ b/crates/swc_ecma_parser/tests/tsc/nameWithRelativePaths.json @@ -223,7 +223,8 @@ "end": 268 }, "value": "../foo_0", - "raw": "'../foo_0'" + "raw": "'../foo_0'", + "loneSurrogates": false } } }, @@ -258,7 +259,8 @@ "end": 307 }, "value": "./test/foo_1", - "raw": "'./test/foo_1'" + "raw": "'./test/foo_1'", + "loneSurrogates": false } } }, @@ -293,7 +295,8 @@ "end": 351 }, "value": "./.././test/foo_2", - "raw": "'./.././test/foo_2'" + "raw": "'./.././test/foo_2'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json b/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json index 34b44d47f308..8920c730c52b 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceAssignmentToRequireAlias.json @@ -107,7 +107,8 @@ "end": 210 }, "value": "untyped", - "raw": "'untyped'" + "raw": "'untyped'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json index 9d9edbaf1147..39e4b2ce209d 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery.json @@ -134,7 +134,8 @@ "end": 119 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json index 3653f4efae67..0ebcad015a56 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery2.json @@ -98,7 +98,8 @@ "end": 99 }, "value": "./z", - "raw": "'./z'" + "raw": "'./z'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -247,7 +248,8 @@ "end": 196 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json index e00318d25041..e4acff1cadfc 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery3.json @@ -39,7 +39,8 @@ "end": 49 }, "value": "./z", - "raw": "'./z'" + "raw": "'./z'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -188,7 +189,8 @@ "end": 160 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json index 73552849d997..7152b99c77bf 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceImportTypeQuery4.json @@ -39,7 +39,8 @@ "end": 49 }, "value": "./z", - "raw": "'./z'" + "raw": "'./z'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -183,7 +184,8 @@ "end": 159 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json b/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json index 4492eb6cbfdb..6ad9d7e118db 100644 --- a/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/namespaceMemberAccess.json @@ -135,7 +135,8 @@ "end": 112 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json b/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json index ce522d79e2ac..4a43713fc96c 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowExceptionVariableInCatchClause.json @@ -137,7 +137,8 @@ "end": 56 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json index 3c998e9bb1c5..6983ab3c5603 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithInstanceof.json @@ -217,7 +217,8 @@ "end": 146 }, "value": "hello!", - "raw": "\"hello!\"" + "raw": "\"hello!\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json index a14d3d546bb1..917b3671729d 100644 --- a/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json +++ b/crates/swc_ecma_parser/tests/tsc/narrowFromAnyWithTypePredicate.json @@ -688,7 +688,8 @@ "end": 350 }, "value": "hello!", - "raw": "\"hello!\"" + "raw": "\"hello!\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json index 2d6128c6a3fe..97b351efe9b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithEnumType.json @@ -100,7 +100,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -225,7 +226,8 @@ "end": 164 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -335,7 +337,8 @@ "end": 209 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -438,7 +441,8 @@ "end": 268 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json index 3128b59a6df0..cfc01269f59d 100644 --- a/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/negateOperatorWithStringType.json @@ -115,7 +115,8 @@ "end": 77 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 84 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 125 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 190 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -600,7 +604,8 @@ "end": 388 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -665,7 +670,8 @@ "end": 420 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -685,7 +691,8 @@ "end": 427 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -753,7 +760,8 @@ "end": 461 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1354,7 +1362,8 @@ "end": 801 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json b/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json index d11f4bff6721..4e3d337dc154 100644 --- a/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json +++ b/crates/swc_ecma_parser/tests/tsc/nestedDestructuringOfRequire.json @@ -224,7 +224,8 @@ "end": 230 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json b/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json index fa7e0a676e6e..323fd294ddd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json +++ b/crates/swc_ecma_parser/tests/tsc/nestedNamespace.json @@ -106,7 +106,8 @@ "end": 116 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json b/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json index 6dcc9698362e..bc8eb6554835 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json +++ b/crates/swc_ecma_parser/tests/tsc/neverIntersectionNotCallable.json @@ -138,7 +138,8 @@ "end": 46 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json b/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json index 48bd99c82024..12b43b06b3cd 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json +++ b/crates/swc_ecma_parser/tests/tsc/neverReturningFunctions1.json @@ -275,7 +275,8 @@ "end": 235 }, "value": "undefined argument", - "raw": "\"undefined argument\"" + "raw": "\"undefined argument\"", + "loneSurrogates": false } } ], @@ -470,7 +471,8 @@ "end": 352 }, "value": "negative number", - "raw": "\"negative number\"" + "raw": "\"negative number\"", + "loneSurrogates": false } } ], @@ -866,7 +868,8 @@ "end": 586 }, "value": "undefined argument", - "raw": "\"undefined argument\"" + "raw": "\"undefined argument\"", + "loneSurrogates": false } } ], @@ -1136,7 +1139,8 @@ "end": 738 }, "value": "negative number", - "raw": "\"negative number\"" + "raw": "\"negative number\"", + "loneSurrogates": false } } ], @@ -1657,7 +1661,8 @@ "end": 1058 }, "value": "undefined argument", - "raw": "\"undefined argument\"" + "raw": "\"undefined argument\"", + "loneSurrogates": false } } ], @@ -1867,7 +1872,8 @@ "end": 1181 }, "value": "negative number", - "raw": "\"negative number\"" + "raw": "\"negative number\"", + "loneSurrogates": false } } ], @@ -2529,7 +2535,8 @@ "end": 1570 }, "value": "undefined argument", - "raw": "\"undefined argument\"" + "raw": "\"undefined argument\"", + "loneSurrogates": false } } ], @@ -2745,7 +2752,8 @@ "end": 1701 }, "value": "negative number", - "raw": "\"negative number\"" + "raw": "\"negative number\"", + "loneSurrogates": false } } ], @@ -3080,7 +3088,8 @@ "end": 1912 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -3551,7 +3560,8 @@ "end": 2365 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -6377,7 +6387,8 @@ "end": 4186 }, "value": "test-component", - "raw": "'test-component'" + "raw": "'test-component'", + "loneSurrogates": false } }, { @@ -6538,7 +6549,8 @@ "end": 4301 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } ] @@ -6713,7 +6725,8 @@ "end": 4390 }, "value": "custom-attribute", - "raw": "'custom-attribute'" + "raw": "'custom-attribute'", + "loneSurrogates": false } }, { @@ -6725,7 +6738,8 @@ "end": 4406 }, "value": "custom-value", - "raw": "'custom-value'" + "raw": "'custom-value'", + "loneSurrogates": false } } ], @@ -7801,7 +7815,8 @@ "end": 5091 }, "value": "ouch", - "raw": "\"ouch\"" + "raw": "\"ouch\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/neverType.json b/crates/swc_ecma_parser/tests/tsc/neverType.json index e3c871bbbb20..4144d543cf68 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverType.json +++ b/crates/swc_ecma_parser/tests/tsc/neverType.json @@ -300,7 +300,8 @@ "end": 250 }, "value": "Something failed", - "raw": "\"Something failed\"" + "raw": "\"Something failed\"", + "loneSurrogates": false } } ], @@ -653,7 +654,8 @@ "end": 524 }, "value": "up", - "raw": "\"up\"" + "raw": "\"up\"", + "loneSurrogates": false } }, { @@ -669,7 +671,8 @@ "end": 533 }, "value": "down", - "raw": "\"down\"" + "raw": "\"down\"", + "loneSurrogates": false } } ] @@ -722,7 +725,8 @@ "end": 579 }, "value": "up", - "raw": "\"up\"" + "raw": "\"up\"", + "loneSurrogates": false }, "consequent": [ { @@ -756,7 +760,8 @@ "end": 622 }, "value": "down", - "raw": "\"down\"" + "raw": "\"down\"", + "loneSurrogates": false }, "consequent": [ { @@ -820,7 +825,8 @@ "end": 694 }, "value": "Should never get here", - "raw": "\"Should never get here\"" + "raw": "\"Should never get here\"", + "loneSurrogates": false } } ], @@ -890,7 +896,8 @@ "end": 730 }, "value": "up", - "raw": "\"up\"" + "raw": "\"up\"", + "loneSurrogates": false } }, { @@ -906,7 +913,8 @@ "end": 739 }, "value": "down", - "raw": "\"down\"" + "raw": "\"down\"", + "loneSurrogates": false } } ] @@ -965,7 +973,8 @@ "end": 772 }, "value": "up", - "raw": "\"up\"" + "raw": "\"up\"", + "loneSurrogates": false } }, "consequent": { @@ -1007,7 +1016,8 @@ "end": 807 }, "value": "down", - "raw": "\"down\"" + "raw": "\"down\"", + "loneSurrogates": false } }, "consequent": { @@ -1054,7 +1064,8 @@ "end": 852 }, "value": "Should never get here", - "raw": "\"Should never get here\"" + "raw": "\"Should never get here\"", + "loneSurrogates": false } } ], @@ -1209,7 +1220,8 @@ "end": 935 }, "value": "Undefined value", - "raw": "\"Undefined value\"" + "raw": "\"Undefined value\"", + "loneSurrogates": false } } ], @@ -1704,7 +1716,8 @@ "end": 1216 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1882,7 +1895,8 @@ "end": 1337 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2139,7 +2153,8 @@ "end": 1509 }, "value": "Error callback", - "raw": "\"Error callback\"" + "raw": "\"Error callback\"", + "loneSurrogates": false } } ], @@ -2195,7 +2210,8 @@ "end": 1531 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json index eff27338f926..5a7614c34c38 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json +++ b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors1.json @@ -145,7 +145,8 @@ "end": 59 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } }, @@ -786,7 +787,8 @@ "end": 387 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -858,7 +860,8 @@ "end": 418 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json index b5c19081bbae..9b3970794a7b 100644 --- a/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json +++ b/crates/swc_ecma_parser/tests/tsc/neverTypeErrors2.json @@ -145,7 +145,8 @@ "end": 87 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } }, @@ -786,7 +787,8 @@ "end": 415 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -858,7 +860,8 @@ "end": 446 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpread.json b/crates/swc_ecma_parser/tests/tsc/newWithSpread.json index a45bfcee0860..7e4a17443369 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpread.json @@ -629,7 +629,8 @@ "end": 266 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1369,7 +1370,8 @@ "end": 489 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1517,7 +1519,8 @@ "end": 537 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1732,7 +1735,8 @@ "end": 656 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1900,7 +1904,8 @@ "end": 708 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1982,7 +1987,8 @@ "end": 766 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2160,7 +2166,8 @@ "end": 818 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2246,7 +2253,8 @@ "end": 875 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2438,7 +2446,8 @@ "end": 931 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2540,7 +2549,8 @@ "end": 990 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2764,7 +2774,8 @@ "end": 1048 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2819,7 +2830,8 @@ "end": 1114 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -2866,7 +2878,8 @@ "end": 1132 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2921,7 +2934,8 @@ "end": 1146 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3027,7 +3041,8 @@ "end": 1174 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3090,7 +3105,8 @@ "end": 1198 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3154,7 +3170,8 @@ "end": 1242 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3302,7 +3319,8 @@ "end": 1290 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3351,7 +3369,8 @@ "end": 1335 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3389,7 +3408,8 @@ "end": 1351 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3438,7 +3458,8 @@ "end": 1365 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3529,7 +3550,8 @@ "end": 1391 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3583,7 +3605,8 @@ "end": 1413 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3638,7 +3661,8 @@ "end": 1457 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3677,7 +3701,8 @@ "end": 1474 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3732,7 +3757,8 @@ "end": 1489 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3830,7 +3856,8 @@ "end": 1517 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3885,7 +3912,8 @@ "end": 1540 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3957,7 +3985,8 @@ "end": 1587 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3995,7 +4024,8 @@ "end": 1603 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4067,7 +4097,8 @@ "end": 1620 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4181,7 +4212,8 @@ "end": 1649 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4235,7 +4267,8 @@ "end": 1671 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4290,7 +4323,8 @@ "end": 1737 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4307,7 +4341,8 @@ "end": 1744 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4345,7 +4380,8 @@ "end": 1760 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4400,7 +4436,8 @@ "end": 1774 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4417,7 +4454,8 @@ "end": 1781 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4514,7 +4552,8 @@ "end": 1807 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4531,7 +4570,8 @@ "end": 1814 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4585,7 +4625,8 @@ "end": 1836 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4640,7 +4681,8 @@ "end": 1894 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4695,7 +4737,8 @@ "end": 1913 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4750,7 +4793,8 @@ "end": 1927 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4864,7 +4908,8 @@ "end": 1956 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4935,7 +4980,8 @@ "end": 1981 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json index 72958ab5d40c..a18b19b5696a 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES5.json @@ -629,7 +629,8 @@ "end": 280 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1369,7 +1370,8 @@ "end": 503 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1517,7 +1519,8 @@ "end": 551 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1732,7 +1735,8 @@ "end": 670 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1900,7 +1904,8 @@ "end": 722 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1982,7 +1987,8 @@ "end": 780 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2160,7 +2166,8 @@ "end": 832 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2246,7 +2253,8 @@ "end": 889 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2438,7 +2446,8 @@ "end": 945 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2540,7 +2549,8 @@ "end": 1004 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2764,7 +2774,8 @@ "end": 1062 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2819,7 +2830,8 @@ "end": 1128 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -2866,7 +2878,8 @@ "end": 1146 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2921,7 +2934,8 @@ "end": 1160 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3027,7 +3041,8 @@ "end": 1188 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3090,7 +3105,8 @@ "end": 1212 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3154,7 +3170,8 @@ "end": 1256 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3302,7 +3319,8 @@ "end": 1304 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3351,7 +3369,8 @@ "end": 1349 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3389,7 +3408,8 @@ "end": 1365 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3438,7 +3458,8 @@ "end": 1379 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3529,7 +3550,8 @@ "end": 1405 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3583,7 +3605,8 @@ "end": 1427 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3638,7 +3661,8 @@ "end": 1471 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3677,7 +3701,8 @@ "end": 1488 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3732,7 +3757,8 @@ "end": 1503 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3830,7 +3856,8 @@ "end": 1531 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3885,7 +3912,8 @@ "end": 1554 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3957,7 +3985,8 @@ "end": 1601 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3995,7 +4024,8 @@ "end": 1617 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4067,7 +4097,8 @@ "end": 1634 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4181,7 +4212,8 @@ "end": 1663 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4235,7 +4267,8 @@ "end": 1685 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4290,7 +4323,8 @@ "end": 1751 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4307,7 +4341,8 @@ "end": 1758 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4345,7 +4380,8 @@ "end": 1774 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4400,7 +4436,8 @@ "end": 1788 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4417,7 +4454,8 @@ "end": 1795 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4514,7 +4552,8 @@ "end": 1821 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4531,7 +4570,8 @@ "end": 1828 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4585,7 +4625,8 @@ "end": 1850 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4640,7 +4681,8 @@ "end": 1908 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4695,7 +4737,8 @@ "end": 1927 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4750,7 +4793,8 @@ "end": 1941 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4864,7 +4908,8 @@ "end": 1970 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4935,7 +4980,8 @@ "end": 1995 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json index 3926672743f2..268b910adc8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json +++ b/crates/swc_ecma_parser/tests/tsc/newWithSpreadES6.json @@ -629,7 +629,8 @@ "end": 281 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1369,7 +1370,8 @@ "end": 504 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1517,7 +1519,8 @@ "end": 552 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1732,7 +1735,8 @@ "end": 671 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1900,7 +1904,8 @@ "end": 723 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1982,7 +1987,8 @@ "end": 781 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2160,7 +2166,8 @@ "end": 833 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2246,7 +2253,8 @@ "end": 890 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2438,7 +2446,8 @@ "end": 946 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2540,7 +2549,8 @@ "end": 1005 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2764,7 +2774,8 @@ "end": 1063 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2819,7 +2830,8 @@ "end": 1129 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -2866,7 +2878,8 @@ "end": 1147 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -2921,7 +2934,8 @@ "end": 1161 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3027,7 +3041,8 @@ "end": 1189 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3090,7 +3105,8 @@ "end": 1213 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3154,7 +3170,8 @@ "end": 1257 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3302,7 +3319,8 @@ "end": 1305 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3351,7 +3369,8 @@ "end": 1350 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3389,7 +3408,8 @@ "end": 1366 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3438,7 +3458,8 @@ "end": 1380 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3529,7 +3550,8 @@ "end": 1406 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3583,7 +3605,8 @@ "end": 1428 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3638,7 +3661,8 @@ "end": 1472 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3677,7 +3701,8 @@ "end": 1489 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3732,7 +3757,8 @@ "end": 1504 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3830,7 +3856,8 @@ "end": 1532 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } } @@ -3885,7 +3912,8 @@ "end": 1555 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -3957,7 +3985,8 @@ "end": 1602 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -3995,7 +4024,8 @@ "end": 1618 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4067,7 +4097,8 @@ "end": 1635 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4181,7 +4212,8 @@ "end": 1664 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4235,7 +4267,8 @@ "end": 1686 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4290,7 +4323,8 @@ "end": 1752 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4307,7 +4341,8 @@ "end": 1759 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4345,7 +4380,8 @@ "end": 1775 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4400,7 +4436,8 @@ "end": 1789 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4417,7 +4454,8 @@ "end": 1796 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4514,7 +4552,8 @@ "end": 1822 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4531,7 +4570,8 @@ "end": 1829 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4585,7 +4625,8 @@ "end": 1851 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4640,7 +4681,8 @@ "end": 1909 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4695,7 +4737,8 @@ "end": 1928 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -4750,7 +4793,8 @@ "end": 1942 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4864,7 +4908,8 @@ "end": 1971 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false } } }, @@ -4935,7 +4980,8 @@ "end": 1996 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/noAssertForUnparseableTypedefs.json b/crates/swc_ecma_parser/tests/tsc/noAssertForUnparseableTypedefs.json index 70d6b216e54b..89f3e3733806 100644 --- a/crates/swc_ecma_parser/tests/tsc/noAssertForUnparseableTypedefs.json +++ b/crates/swc_ecma_parser/tests/tsc/noAssertForUnparseableTypedefs.json @@ -39,7 +39,8 @@ "end": 143 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/noInfer.json b/crates/swc_ecma_parser/tests/tsc/noInfer.json index d3a1c54c4ea2..36ecb588610d 100644 --- a/crates/swc_ecma_parser/tests/tsc/noInfer.json +++ b/crates/swc_ecma_parser/tests/tsc/noInfer.json @@ -243,7 +243,8 @@ "end": 211 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -322,7 +323,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -332,7 +334,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -420,7 +423,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -430,7 +434,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -466,7 +471,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -476,7 +482,8 @@ }, "tail": true, "cooked": "bar", - "raw": "bar" + "raw": "bar", + "loneSurrogates": false } ] } @@ -2570,7 +2577,8 @@ "end": 1183 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -2582,7 +2590,8 @@ "end": 1190 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], @@ -2622,7 +2631,8 @@ "end": 1208 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -2634,7 +2644,8 @@ "end": 1215 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ], @@ -2674,7 +2685,8 @@ "end": 1236 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -2695,7 +2707,8 @@ "end": 1244 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -2738,7 +2751,8 @@ "end": 1266 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -2759,7 +2773,8 @@ "end": 1274 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -2802,7 +2817,8 @@ "end": 1296 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -2831,7 +2847,8 @@ "end": 1308 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -2874,7 +2891,8 @@ "end": 1331 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -2903,7 +2921,8 @@ "end": 1343 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/noInferRedeclaration.json b/crates/swc_ecma_parser/tests/tsc/noInferRedeclaration.json index 4e0d70d2233e..02886077c134 100644 --- a/crates/swc_ecma_parser/tests/tsc/noInferRedeclaration.json +++ b/crates/swc_ecma_parser/tests/tsc/noInferRedeclaration.json @@ -227,7 +227,8 @@ "end": 170 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json b/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json index 4acff82fe283..2b3cc5d76706 100644 --- a/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json +++ b/crates/swc_ecma_parser/tests/tsc/noPropertyAccessFromIndexSignature1.json @@ -572,7 +572,8 @@ "end": 304 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -644,7 +645,8 @@ "end": 347 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -716,7 +718,8 @@ "end": 384 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -788,7 +791,8 @@ "end": 427 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -875,7 +879,8 @@ "end": 476 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -963,7 +968,8 @@ "end": 531 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json index 447b4ad3c6c3..cf95a64e4ceb 100644 --- a/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/noUncheckedIndexedAccess.json @@ -355,7 +355,8 @@ "end": 309 }, "value": "Alpha", - "raw": "\"Alpha\"" + "raw": "\"Alpha\"", + "loneSurrogates": false } }, { @@ -381,7 +382,8 @@ "end": 321 }, "value": "Beta", - "raw": "\"Beta\"" + "raw": "\"Beta\"", + "loneSurrogates": false } } ] @@ -554,7 +556,8 @@ "end": 439 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -1156,7 +1159,8 @@ "end": 676 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsUnionType", @@ -1178,7 +1182,8 @@ "end": 685 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1194,7 +1199,8 @@ "end": 693 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ] @@ -2023,7 +2029,8 @@ "end": 1113 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -2290,7 +2297,8 @@ "end": 1269 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -2391,7 +2399,8 @@ "end": 1324 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -2407,7 +2416,8 @@ "end": 1332 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ] @@ -2631,7 +2641,8 @@ "end": 1514 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, @@ -3516,7 +3527,8 @@ "end": 2073 }, "value": "blah", - "raw": "\"blah\"" + "raw": "\"blah\"", + "loneSurrogates": false } } } @@ -3744,7 +3756,8 @@ "end": 2189 }, "value": "blah", - "raw": "\"blah\"" + "raw": "\"blah\"", + "loneSurrogates": false } } } @@ -4251,7 +4264,8 @@ "end": 2429 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -4290,7 +4304,8 @@ "end": 2445 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "definite": false } @@ -4371,7 +4386,8 @@ "end": 2468 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false }, "definite": false } @@ -4452,7 +4468,8 @@ "end": 2491 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false }, "definite": false } @@ -4753,7 +4770,8 @@ "end": 2668 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json b/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json index f69e459e612d..2094ec3c2b95 100644 --- a/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json +++ b/crates/swc_ecma_parser/tests/tsc/nodeModulesAllowJsCjsFromJs.json @@ -50,7 +50,8 @@ "end": 105 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -86,7 +87,8 @@ "end": 154 }, "value": "./foo.cjs", - "raw": "\"./foo.cjs\"" + "raw": "\"./foo.cjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json b/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json index 4b78d165fcd6..378cbf6f74f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json +++ b/crates/swc_ecma_parser/tests/tsc/nodeModulesAtTypesPriority.json @@ -290,7 +290,8 @@ "end": 588 }, "value": "react", - "raw": "\"react\"" + "raw": "\"react\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -330,7 +331,8 @@ "end": 625 }, "value": "redux", - "raw": "\"redux\"" + "raw": "\"redux\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM1_emptyPackageJson.json b/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM1_emptyPackageJson.json index 427740237241..ca83d8c2f403 100644 --- a/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM1_emptyPackageJson.json +++ b/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM1_emptyPackageJson.json @@ -39,7 +39,8 @@ "end": 249 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -59,7 +60,8 @@ "end": 311 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -79,7 +81,8 @@ "end": 375 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -99,7 +102,8 @@ "end": 439 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM4_noPackageJson.json b/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM4_noPackageJson.json index e2a7b23380b4..7ea4c1c6508b 100644 --- a/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM4_noPackageJson.json +++ b/crates/swc_ecma_parser/tests/tsc/nodeModulesCJSResolvingToESM4_noPackageJson.json @@ -30,7 +30,8 @@ "end": 217 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -50,7 +51,8 @@ "end": 279 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -70,7 +72,8 @@ "end": 343 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -90,7 +93,8 @@ "end": 407 }, "value": "./module.mjs", - "raw": "\"./module.mjs\"" + "raw": "\"./module.mjs\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement1.json b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement1.json index 383e235ccbb6..f11f482234c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement1.json +++ b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement1.json @@ -107,7 +107,8 @@ "end": 25 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement2.json b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement2.json index 12f5d4272453..476a54ab84d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement2.json +++ b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement2.json @@ -107,7 +107,8 @@ "end": 40 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json index 2f0dcb712a3e..c72e37273279 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json +++ b/crates/swc_ecma_parser/tests/tsc/nonIterableRestElement3.json @@ -128,7 +128,8 @@ "end": 35 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json index 53dbc6fb9c0d..20e28f2ab02b 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAsProperty.json @@ -161,7 +161,8 @@ "end": 115 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -248,7 +249,8 @@ "end": 158 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json index aee235b0f1f6..c8379b9468f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveAssignError.json @@ -95,7 +95,8 @@ "end": 32 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -407,7 +408,8 @@ "end": 136 }, "value": "fooo", - "raw": "\"fooo\"" + "raw": "\"fooo\"", + "loneSurrogates": false }, "definite": false } @@ -814,7 +816,8 @@ "end": 363 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json index d2c46431a124..e1306cbbd53d 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveInGeneric.json @@ -242,7 +242,8 @@ "end": 116 }, "value": "42", - "raw": "\"42\"" + "raw": "\"42\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json index 9acb38436711..277bd69e2ddd 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveNarrow.json @@ -269,7 +269,8 @@ "end": 155 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } }, "consequent": { @@ -427,7 +428,8 @@ "end": 242 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveRhsSideOfInExpression.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveRhsSideOfInExpression.json index 7db45632a27c..5960cb65d28f 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveRhsSideOfInExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveRhsSideOfInExpression.json @@ -163,7 +163,8 @@ "end": 76 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -221,7 +222,8 @@ "end": 99 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "CallExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json index c4aea82b0e59..e423f3ff231c 100644 --- a/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/nonPrimitiveUnionIntersection.json @@ -70,7 +70,8 @@ "end": 50 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -141,7 +142,8 @@ "end": 88 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -372,7 +374,8 @@ "end": 197 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -499,7 +502,8 @@ "end": 253 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json b/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json index dfb1eb46d79c..4219aeb6edcd 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json +++ b/crates/swc_ecma_parser/tests/tsc/nullIsSubtypeOfEverythingButUndefined.json @@ -479,7 +479,8 @@ "end": 269 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "alternate": { "type": "NullLiteral", @@ -548,7 +549,8 @@ "end": 303 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json b/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json index 6f114a17ab9e..6f3f3cacaf6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json +++ b/crates/swc_ecma_parser/tests/tsc/nullOrUndefinedTypeGuardIsOrderIndependent.json @@ -182,7 +182,8 @@ "end": 138 }, "value": "original", - "raw": "\"original\"" + "raw": "\"original\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json index 558bb5c27bab..d422fa0fc087 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator1.json @@ -1296,7 +1296,8 @@ "end": 797 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1354,7 +1355,8 @@ "end": 827 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1412,7 +1414,8 @@ "end": 857 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1470,7 +1473,8 @@ "end": 887 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator10.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator10.json index a9aa19f9da21..99a9cc9abca8 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator10.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator10.json @@ -123,7 +123,8 @@ "end": 83 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json index 364444a11358..6397e61cc0f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator11.json @@ -88,7 +88,8 @@ "end": 48 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator2.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator2.json index 09204b43bce2..a42067049dd6 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator2.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator2.json @@ -56,7 +56,8 @@ "end": 46 }, "value": "literal", - "raw": "'literal'" + "raw": "'literal'", + "loneSurrogates": false } }, { @@ -135,7 +136,8 @@ "end": 86 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -717,7 +719,8 @@ "end": 392 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -775,7 +778,8 @@ "end": 421 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -833,7 +837,8 @@ "end": 450 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -891,7 +896,8 @@ "end": 479 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -949,7 +955,8 @@ "end": 508 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1007,7 +1014,8 @@ "end": 537 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1065,7 +1073,8 @@ "end": 566 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1123,7 +1132,8 @@ "end": 595 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1181,7 +1191,8 @@ "end": 624 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator3.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator3.json index e739c0050942..2d2ba6dbdcef 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator3.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator3.json @@ -56,7 +56,8 @@ "end": 46 }, "value": "literal", - "raw": "'literal'" + "raw": "'literal'", + "loneSurrogates": false } }, { @@ -135,7 +136,8 @@ "end": 86 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -618,7 +620,8 @@ "end": 329 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json index d92f0c767eff..24dc5327f6f7 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator4.json @@ -56,7 +56,8 @@ "end": 46 }, "value": "literal", - "raw": "'literal'" + "raw": "'literal'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json index c0be7cc92279..fb68cbe4e404 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator6.json @@ -100,7 +100,8 @@ "end": 63 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator7.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator7.json index 9c64f0e6e86e..427788ea29db 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator7.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator7.json @@ -317,7 +317,8 @@ "end": 178 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "consequent": { @@ -400,7 +401,8 @@ "end": 211 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "consequent": { @@ -433,7 +435,8 @@ "end": 225 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } }, @@ -467,7 +470,8 @@ "end": 240 }, "value": "baz", - "raw": "'baz'" + "raw": "'baz'", + "loneSurrogates": false } } } @@ -561,7 +565,8 @@ "end": 287 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, "consequent": { @@ -588,7 +593,8 @@ "end": 300 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } }, "alternate": { @@ -615,7 +621,8 @@ "end": 313 }, "value": "baz", - "raw": "'baz'" + "raw": "'baz'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json index df264ccbcd2b..677e35414d5e 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator8.json @@ -375,7 +375,8 @@ "end": 185 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } }, "definite": false @@ -458,7 +459,8 @@ "end": 216 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } }, "definite": false @@ -617,7 +619,8 @@ "end": 263 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.2.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.2.json index d727d7a8affb..4faf46104f26 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.2.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.2.json @@ -166,7 +166,8 @@ "end": 195 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } }, @@ -194,7 +195,8 @@ "end": 204 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -289,7 +291,8 @@ "end": 239 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -371,7 +374,8 @@ "end": 256 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } }, @@ -399,7 +403,8 @@ "end": 265 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.json index d00e4a74b483..ee91477c5e8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterBindingPattern.json @@ -166,7 +166,8 @@ "end": 178 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } }, @@ -194,7 +195,8 @@ "end": 187 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.2.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.2.json index 8ba02f3c6c4d..567795659492 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.2.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.2.json @@ -168,7 +168,8 @@ "end": 196 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } } @@ -259,7 +260,8 @@ "end": 229 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -343,7 +345,8 @@ "end": 247 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.json index 608a81f6d8c7..5ab62bacfc4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperatorInParameterInitializer.json @@ -168,7 +168,8 @@ "end": 179 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_es2020.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_es2020.json index f3f929e3214d..240a64b1a77b 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_es2020.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_es2020.json @@ -56,7 +56,8 @@ "end": 65 }, "value": "literal", - "raw": "'literal'" + "raw": "'literal'", + "loneSurrogates": false } }, { @@ -135,7 +136,8 @@ "end": 105 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -717,7 +719,8 @@ "end": 411 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -775,7 +778,8 @@ "end": 440 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -833,7 +837,8 @@ "end": 469 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -891,7 +896,8 @@ "end": 498 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -949,7 +955,8 @@ "end": 527 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1007,7 +1014,8 @@ "end": 556 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1065,7 +1073,8 @@ "end": 585 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1123,7 +1132,8 @@ "end": 614 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1181,7 +1191,8 @@ "end": 643 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_not_strict.json b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_not_strict.json index 2b89e01748fd..b88938f1fdf0 100644 --- a/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_not_strict.json +++ b/crates/swc_ecma_parser/tests/tsc/nullishCoalescingOperator_not_strict.json @@ -56,7 +56,8 @@ "end": 47 }, "value": "literal", - "raw": "'literal'" + "raw": "'literal'", + "loneSurrogates": false } }, { @@ -135,7 +136,8 @@ "end": 87 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -717,7 +719,8 @@ "end": 393 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -775,7 +778,8 @@ "end": 422 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -833,7 +837,8 @@ "end": 451 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -891,7 +896,8 @@ "end": 480 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -949,7 +955,8 @@ "end": 509 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1007,7 +1014,8 @@ "end": 538 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1065,7 +1073,8 @@ "end": 567 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1123,7 +1132,8 @@ "end": 596 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false @@ -1181,7 +1191,8 @@ "end": 625 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json index 0f05abcdd073..b016c058837b 100644 --- a/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/numberPropertyAccess.json @@ -180,7 +180,8 @@ "end": 73 }, "value": "toFixed", - "raw": "'toFixed'" + "raw": "'toFixed'", + "loneSurrogates": false } } ], @@ -253,7 +254,8 @@ "end": 102 }, "value": "toExponential", - "raw": "'toExponential'" + "raw": "'toExponential'", + "loneSurrogates": false } } }, @@ -327,7 +329,8 @@ "end": 133 }, "value": "hasOwnProperty", - "raw": "'hasOwnProperty'" + "raw": "'hasOwnProperty'", + "loneSurrogates": false } } }, @@ -341,7 +344,8 @@ "end": 144 }, "value": "toFixed", - "raw": "'toFixed'" + "raw": "'toFixed'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json index b03086ae111a..06e5e5c68eb0 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations.json @@ -336,7 +336,8 @@ "end": 283 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -377,7 +378,8 @@ "end": 306 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -500,7 +502,8 @@ "end": 380 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -541,7 +544,8 @@ "end": 405 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -663,7 +667,8 @@ "end": 489 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -786,7 +791,8 @@ "end": 551 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1205,7 +1211,8 @@ "end": 811 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1239,7 +1246,8 @@ "end": 834 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1437,7 +1445,8 @@ "end": 977 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1471,7 +1480,8 @@ "end": 1002 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1763,7 +1773,8 @@ "end": 1156 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1797,7 +1808,8 @@ "end": 1179 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1995,7 +2007,8 @@ "end": 1322 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2029,7 +2042,8 @@ "end": 1347 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2220,7 +2234,8 @@ "end": 1449 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2285,7 +2300,8 @@ "end": 1488 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2294,7 +2310,8 @@ "end": 1492 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2306,7 +2323,8 @@ "end": 1502 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -2336,7 +2354,8 @@ "end": 1519 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2369,7 +2388,8 @@ "end": 1543 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2378,7 +2398,8 @@ "end": 1547 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2390,7 +2411,8 @@ "end": 1559 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -2481,7 +2503,8 @@ "end": 1617 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2561,7 +2584,8 @@ "end": 1675 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json index 3fbda67198ad..e575b9d0b7ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json +++ b/crates/swc_ecma_parser/tests/tsc/numericIndexerConstrainsPropertyDeclarations2.json @@ -68,7 +68,8 @@ "end": 105 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -169,7 +170,8 @@ "end": 161 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -412,7 +414,8 @@ "end": 245 }, "value": "2.5", - "raw": "\"2.5\"" + "raw": "\"2.5\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -504,7 +507,8 @@ "end": 290 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -728,7 +732,8 @@ "end": 394 }, "value": "2.5", - "raw": "\"2.5\"" + "raw": "\"2.5\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -806,7 +811,8 @@ "end": 439 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1030,7 +1036,8 @@ "end": 535 }, "value": "2.5", - "raw": "\"2.5\"" + "raw": "\"2.5\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1108,7 +1115,8 @@ "end": 580 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1320,7 +1328,8 @@ "end": 689 }, "value": "2.5", - "raw": "\"2.5\"" + "raw": "\"2.5\"", + "loneSurrogates": false }, "value": { "type": "NewExpression", @@ -1373,7 +1382,8 @@ "end": 721 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1382,7 +1392,8 @@ "end": 725 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/numericIndexingResults.json b/crates/swc_ecma_parser/tests/tsc/numericIndexingResults.json index e1c73ee24fa2..3d52555c8f51 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericIndexingResults.json +++ b/crates/swc_ecma_parser/tests/tsc/numericIndexingResults.json @@ -98,7 +98,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -124,7 +125,8 @@ "end": 55 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -133,7 +135,8 @@ "end": 60 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -265,7 +268,8 @@ "end": 88 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -329,7 +333,8 @@ "end": 105 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } } }, @@ -393,7 +398,8 @@ "end": 122 }, "value": "3", - "raw": "'3'" + "raw": "'3'", + "loneSurrogates": false } } }, @@ -718,7 +724,8 @@ "end": 232 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -853,7 +860,8 @@ "end": 268 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -917,7 +925,8 @@ "end": 285 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } } }, @@ -981,7 +990,8 @@ "end": 302 }, "value": "3", - "raw": "'3'" + "raw": "'3'", + "loneSurrogates": false } } }, @@ -1318,7 +1328,8 @@ "end": 407 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1403,7 +1414,8 @@ "end": 434 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -1467,7 +1479,8 @@ "end": 451 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } } }, @@ -1531,7 +1544,8 @@ "end": 468 }, "value": "3", - "raw": "'3'" + "raw": "'3'", + "loneSurrogates": false } } }, @@ -1849,7 +1863,8 @@ "end": 557 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1861,7 +1876,8 @@ "end": 562 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1870,7 +1886,8 @@ "end": 566 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1935,7 +1952,8 @@ "end": 584 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -1999,7 +2017,8 @@ "end": 602 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } } }, @@ -2063,7 +2082,8 @@ "end": 619 }, "value": "3", - "raw": "'3'" + "raw": "'3'", + "loneSurrogates": false } } }, @@ -2400,7 +2420,8 @@ "end": 713 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2449,7 +2470,8 @@ "end": 734 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2461,7 +2483,8 @@ "end": 739 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2470,7 +2493,8 @@ "end": 743 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2535,7 +2559,8 @@ "end": 762 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -2599,7 +2624,8 @@ "end": 781 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } } }, @@ -2663,7 +2689,8 @@ "end": 799 }, "value": "3", - "raw": "'3'" + "raw": "'3'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json index 9d61ca0457e1..d54e7169f799 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes1.json @@ -3330,7 +3330,8 @@ "end": 1124 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -3552,7 +3553,8 @@ "end": 1219 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -3586,7 +3588,8 @@ "end": 1247 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -3620,7 +3623,8 @@ "end": 1275 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -3752,7 +3756,8 @@ "end": 1352 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -3786,7 +3791,8 @@ "end": 1380 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -3820,7 +3826,8 @@ "end": 1408 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -4633,7 +4640,8 @@ "end": 1753 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json index 537ef0c17122..eb1add1bf7b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/numericLiteralTypes2.json @@ -3330,7 +3330,8 @@ "end": 1152 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -3552,7 +3553,8 @@ "end": 1247 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -3586,7 +3588,8 @@ "end": 1275 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -3620,7 +3623,8 @@ "end": 1303 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -3752,7 +3756,8 @@ "end": 1380 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ] @@ -3786,7 +3791,8 @@ "end": 1408 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -3820,7 +3826,8 @@ "end": 1436 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] @@ -4633,7 +4640,8 @@ "end": 1781 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json b/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json index 26a8c7586a59..1276506ca237 100644 --- a/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/numericStringLiteralTypes.json @@ -69,7 +69,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -79,7 +80,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -151,7 +153,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -161,7 +164,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -233,7 +237,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -243,7 +248,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -362,7 +368,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -372,7 +379,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -527,7 +535,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -537,7 +546,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -555,7 +565,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -565,7 +576,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -680,7 +692,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -690,7 +703,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -907,7 +921,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -917,7 +932,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1085,7 +1101,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1095,7 +1112,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1188,7 +1206,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1198,7 +1217,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1296,7 +1316,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1306,7 +1327,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1811,7 +1833,8 @@ "end": 817 }, "value": "value", - "raw": "'value'" + "raw": "'value'", + "loneSurrogates": false } } } @@ -2329,7 +2352,8 @@ "end": 1071 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json index 3583ec44cc72..cda7740b371d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralContextualTyping.json @@ -333,7 +333,8 @@ "end": 550 }, "value": "Sprocket", - "raw": "\"Sprocket\"" + "raw": "\"Sprocket\"", + "loneSurrogates": false } } ] @@ -463,7 +464,8 @@ "end": 601 }, "value": "Sprocket", - "raw": "\"Sprocket\"" + "raw": "\"Sprocket\"", + "loneSurrogates": false } }, { @@ -483,7 +485,8 @@ "end": 629 }, "value": "Bumpy wheel", - "raw": "\"Bumpy wheel\"" + "raw": "\"Bumpy wheel\"", + "loneSurrogates": false } } ] @@ -613,7 +616,8 @@ "end": 680 }, "value": "Sprocket", - "raw": "\"Sprocket\"" + "raw": "\"Sprocket\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json index 961ed8dcf91f..c3686b25b960 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralNormalization.json @@ -123,7 +123,8 @@ "end": 133 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -175,7 +176,8 @@ "end": 151 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } }, { @@ -497,7 +499,8 @@ "end": 303 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } ] @@ -676,7 +679,8 @@ "end": 382 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -903,7 +907,8 @@ "end": 499 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } } ] @@ -992,7 +997,8 @@ "end": 527 }, "value": "def", - "raw": "\"def\"" + "raw": "\"def\"", + "loneSurrogates": false } }, { @@ -1997,7 +2003,8 @@ "end": 1133 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -2089,7 +2096,8 @@ "end": 1169 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -2148,7 +2156,8 @@ "end": 1192 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } ] @@ -2724,7 +2733,8 @@ "end": 1346 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } } @@ -2903,7 +2913,8 @@ "end": 1463 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -3009,7 +3020,8 @@ "end": 1497 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json index 56a9d808a6dd..128a65744d5e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignment.json @@ -107,7 +107,8 @@ "end": 66 }, "value": "my name", - "raw": "\"my name\"" + "raw": "\"my name\"", + "loneSurrogates": false }, "definite": false } @@ -967,7 +968,8 @@ "end": 431 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1093,7 +1095,8 @@ "end": 480 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1254,7 +1257,8 @@ "end": 540 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json index dcea3c42dfc3..3f0bd09e049b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentES6.json @@ -107,7 +107,8 @@ "end": 82 }, "value": "my name", - "raw": "\"my name\"" + "raw": "\"my name\"", + "loneSurrogates": false }, "definite": false } @@ -967,7 +968,8 @@ "end": 447 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1093,7 +1095,8 @@ "end": 496 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1254,7 +1257,8 @@ "end": 557 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json index b4f47f18116d..51133625d55c 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentError.json @@ -107,7 +107,8 @@ "end": 66 }, "value": "my name", - "raw": "\"my name\"" + "raw": "\"my name\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json index df1c150718a2..fb174da444ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesAssignmentErrorFromMissingIdentifier.json @@ -107,7 +107,8 @@ "end": 66 }, "value": "my name", - "raw": "\"my name\"" + "raw": "\"my name\"", + "loneSurrogates": false }, "definite": false } @@ -932,7 +933,8 @@ "end": 429 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json index 7bb6a2d4a9c3..c02b62818b11 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument.json @@ -107,7 +107,8 @@ "end": 66 }, "value": "my name", - "raw": "\"my name\"" + "raw": "\"my name\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json index 5fd7a0b72543..911c3bf09ef5 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectLiteralShorthandPropertiesFunctionArgument2.json @@ -107,7 +107,8 @@ "end": 66 }, "value": "my name", - "raw": "\"my name\"" + "raw": "\"my name\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/objectRest.json b/crates/swc_ecma_parser/tests/tsc/objectRest.json index 4731d69f96e0..a22803f2d565 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRest.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRest.json @@ -76,7 +76,8 @@ "end": 43 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] @@ -375,7 +376,8 @@ "end": 140 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, "value": { @@ -463,7 +465,8 @@ "end": 177 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -567,7 +570,8 @@ "end": 218 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -590,7 +594,8 @@ "end": 226 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": { "type": "Identifier", @@ -701,7 +706,8 @@ "end": 283 }, "value": "terrible idea?", - "raw": "'terrible idea?'" + "raw": "'terrible idea?'", + "loneSurrogates": false } }, { @@ -721,7 +727,8 @@ "end": 293 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } } ] @@ -3008,7 +3015,8 @@ "end": 1215 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "definite": false } @@ -3048,7 +3056,8 @@ "end": 1236 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/objectRest2.json b/crates/swc_ecma_parser/tests/tsc/objectRest2.json index 548eaf314781..666be9fed471 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRest2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRest2.json @@ -443,7 +443,8 @@ "end": 371 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json b/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json index b2149d5f8444..54363a0042e0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestForOf.json @@ -668,7 +668,8 @@ "end": 282 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json b/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json index 158060532586..f9650ed8ab1f 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestNegative.json @@ -76,7 +76,8 @@ "end": 48 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json b/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json index 5ac6055d37f8..2ac91a7d8334 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestParameter.json @@ -772,7 +772,8 @@ "end": 287 }, "value": "noo", - "raw": "'noo'" + "raw": "'noo'", + "loneSurrogates": false } } ] @@ -1477,7 +1478,8 @@ "end": 622 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -1554,7 +1556,8 @@ "end": 660 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json b/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json index ad1c7b7c61ba..cc96ab3ed7d8 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestParameterES5.json @@ -772,7 +772,8 @@ "end": 284 }, "value": "noo", - "raw": "'noo'" + "raw": "'noo'", + "loneSurrogates": false } } ] @@ -1477,7 +1478,8 @@ "end": 619 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -1554,7 +1556,8 @@ "end": 657 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json b/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json index bb54530d4499..0f3e53318f6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/objectRestReadonly.json @@ -239,7 +239,8 @@ "end": 119 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } }, { @@ -259,7 +260,8 @@ "end": 133 }, "value": "qux", - "raw": "'qux'" + "raw": "'qux'", + "loneSurrogates": false } }, { @@ -279,7 +281,8 @@ "end": 149 }, "value": "quuz", - "raw": "'quuz'" + "raw": "'quuz'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpread.json b/crates/swc_ecma_parser/tests/tsc/objectSpread.json index fa716502e7fe..aed6289d2d50 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpread.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpread.json @@ -76,7 +76,8 @@ "end": 67 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] @@ -136,7 +137,8 @@ "end": 89 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } }, { @@ -215,7 +217,8 @@ "end": 122 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } }, { @@ -797,7 +800,8 @@ "end": 353 }, "value": "override", - "raw": "'override'" + "raw": "'override'", + "loneSurrogates": false } } ] @@ -1042,7 +1046,8 @@ "end": 453 }, "value": "overriden", - "raw": "'overriden'" + "raw": "'overriden'", + "loneSurrogates": false } } ] @@ -1068,7 +1073,8 @@ "end": 472 }, "value": "whatever", - "raw": "'whatever'" + "raw": "'whatever'", + "loneSurrogates": false } } ] @@ -1476,7 +1482,8 @@ "end": 632 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } ] @@ -1721,7 +1728,8 @@ "end": 750 }, "value": "overriden", - "raw": "'overriden'" + "raw": "'overriden'", + "loneSurrogates": false } } ] @@ -3804,7 +3812,8 @@ "end": 1936 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -4949,7 +4958,8 @@ "end": 2506 }, "value": "wrong type?", - "raw": "'wrong type?'" + "raw": "'wrong type?'", + "loneSurrogates": false } } ] @@ -6026,7 +6036,8 @@ "end": 3210 }, "value": "before everything", - "raw": "\"before everything\"" + "raw": "\"before everything\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -6072,7 +6083,8 @@ "end": 3253 }, "value": "before everything", - "raw": "'before everything'" + "raw": "'before everything'", + "loneSurrogates": false } }, "value": { @@ -6119,7 +6131,8 @@ "end": 3274 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } } ] @@ -6250,7 +6263,8 @@ "end": 3336 }, "value": "at the end", - "raw": "\"at the end\"" + "raw": "\"at the end\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -6315,7 +6329,8 @@ "end": 3374 }, "value": "yeah", - "raw": "'yeah'" + "raw": "'yeah'", + "loneSurrogates": false } }, { @@ -6333,7 +6348,8 @@ "end": 3389 }, "value": "at the end", - "raw": "'at the end'" + "raw": "'at the end'", + "loneSurrogates": false } }, "value": { @@ -6800,7 +6816,8 @@ "end": 3631 }, "value": "id", - "raw": "'id'" + "raw": "'id'", + "loneSurrogates": false } } ] @@ -7146,7 +7163,8 @@ "end": 3737 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } } ] @@ -7178,7 +7196,8 @@ "end": 3750 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } }, { @@ -7453,7 +7472,8 @@ "end": 3850 }, "value": "extra", - "raw": "'extra'" + "raw": "'extra'", + "loneSurrogates": false } } ] @@ -7654,7 +7674,8 @@ "end": 3933 }, "value": "mismatch", - "raw": "'mismatch'" + "raw": "'mismatch'", + "loneSurrogates": false } } ] @@ -7964,7 +7985,8 @@ "end": 4045 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] @@ -8677,7 +8699,8 @@ "end": 4288 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -8791,7 +8814,8 @@ "end": 4333 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] @@ -8871,7 +8895,8 @@ "end": 4366 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -9021,7 +9046,8 @@ "end": 4428 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -9154,7 +9180,8 @@ "end": 4484 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json index 12bb4afe03ff..2a23d3424c47 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadNoTransform.json @@ -56,7 +56,8 @@ "end": 40 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } }, { @@ -76,7 +77,8 @@ "end": 49 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json b/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json index be58dd90b24b..e54ba8d79b95 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json +++ b/crates/swc_ecma_parser/tests/tsc/objectSpreadStrictNull.json @@ -1760,7 +1760,8 @@ "end": 1271 }, "value": "The Matrix", - "raw": "\"The Matrix\"" + "raw": "\"The Matrix\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json index 8ebcf67dc45e..53f27e894aed 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeHidingMembersOfExtendedObject.json @@ -726,7 +726,8 @@ "end": 305 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -790,7 +791,8 @@ "end": 346 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -1231,7 +1233,8 @@ "end": 519 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -1295,7 +1298,8 @@ "end": 560 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -1623,7 +1627,8 @@ "end": 705 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -1687,7 +1692,8 @@ "end": 746 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json index e06ac73fd46d..4c3758c9b4c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypePropertyAccess.json @@ -257,7 +257,8 @@ "end": 173 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, @@ -380,7 +381,8 @@ "end": 210 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -637,7 +639,8 @@ "end": 301 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, @@ -760,7 +763,8 @@ "end": 338 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } }, @@ -819,7 +823,8 @@ "end": 363 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -957,7 +962,8 @@ "end": 411 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, @@ -1080,7 +1086,8 @@ "end": 450 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json index c37713fd7d6e..b822c3b3f60b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithCallSignatureHidingMembersOfExtendedFunction.json @@ -893,7 +893,8 @@ "end": 468 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -1626,7 +1627,8 @@ "end": 777 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json index 95340702e39d..164d5214d73e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithConstructSignatureHidingMembersOfExtendedFunction.json @@ -893,7 +893,8 @@ "end": 373 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, @@ -1626,7 +1627,8 @@ "end": 687 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithNumericProperty.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithNumericProperty.json index 09c9acb210af..7e8b127ce440 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithNumericProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithNumericProperty.json @@ -354,7 +354,8 @@ "end": 121 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -418,7 +419,8 @@ "end": 140 }, "value": "1.1", - "raw": "'1.1'" + "raw": "'1.1'", + "loneSurrogates": false } } }, @@ -763,7 +765,8 @@ "end": 249 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -827,7 +830,8 @@ "end": 268 }, "value": "1.1", - "raw": "'1.1'" + "raw": "'1.1'", + "loneSurrogates": false } } }, @@ -1134,7 +1138,8 @@ "end": 362 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -1198,7 +1203,8 @@ "end": 381 }, "value": "1.1", - "raw": "'1.1'" + "raw": "'1.1'", + "loneSurrogates": false } } }, @@ -1279,7 +1285,8 @@ "end": 416 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1472,7 +1479,8 @@ "end": 466 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -1536,7 +1544,8 @@ "end": 485 }, "value": "1.1", - "raw": "'1.1'" + "raw": "'1.1'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json index aa3e5885cba6..93ac4d098b34 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringIndexerHidingObjectIndexer.json @@ -190,7 +190,8 @@ "end": 244 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -442,7 +443,8 @@ "end": 353 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -691,7 +693,8 @@ "end": 446 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, @@ -902,7 +905,8 @@ "end": 526 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringNamedPropertyOfIllegalCharacters.json b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringNamedPropertyOfIllegalCharacters.json index 12cdfe5b8c39..fc17961e002d 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringNamedPropertyOfIllegalCharacters.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypeWithStringNamedPropertyOfIllegalCharacters.json @@ -38,7 +38,8 @@ "end": 20 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -79,7 +80,8 @@ "end": 41 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -120,7 +122,8 @@ "end": 83 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -161,7 +164,8 @@ "end": 102 }, "value": "aa", - "raw": "\"a\\a\"" + "raw": "\"a\\a\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -202,7 +206,8 @@ "end": 127 }, "value": "a ", - "raw": "\"a \"" + "raw": "\"a \"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -349,7 +354,8 @@ "end": 164 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -413,7 +419,8 @@ "end": 184 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -477,7 +484,8 @@ "end": 205 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, @@ -541,7 +549,8 @@ "end": 261 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false } } }, @@ -589,7 +598,8 @@ "end": 288 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -623,7 +633,8 @@ "end": 309 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -657,7 +668,8 @@ "end": 351 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -792,7 +804,8 @@ "end": 389 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -856,7 +869,8 @@ "end": 409 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -920,7 +934,8 @@ "end": 430 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, @@ -984,7 +999,8 @@ "end": 486 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false } } }, @@ -1044,7 +1060,8 @@ "end": 509 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1078,7 +1095,8 @@ "end": 530 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1112,7 +1130,8 @@ "end": 572 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1197,7 +1216,8 @@ "end": 600 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -1261,7 +1281,8 @@ "end": 620 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -1325,7 +1346,8 @@ "end": 641 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, @@ -1389,7 +1411,8 @@ "end": 697 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false } } }, @@ -1440,7 +1463,8 @@ "end": 720 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -1461,7 +1485,8 @@ "end": 736 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -1470,7 +1495,8 @@ "end": 740 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1482,7 +1508,8 @@ "end": 774 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -1556,7 +1583,8 @@ "end": 797 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -1620,7 +1648,8 @@ "end": 817 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } }, @@ -1684,7 +1713,8 @@ "end": 838 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, @@ -1748,7 +1778,8 @@ "end": 894 }, "value": "~!@#$%^&*()_+{}|:'<>?/.,`", - "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"" + "raw": "\"~!@#$%^&*()_+{}|:'<>?\\/.,`\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json index 18bf982e23e0..4f109f3e1fa4 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentity.json @@ -443,7 +443,8 @@ "end": 208 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json index eca562946526..62c7bad0ca70 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures.json @@ -901,7 +901,8 @@ "end": 363 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json index a5a3023aef4a..52716805dd41 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignatures2.json @@ -921,7 +921,8 @@ "end": 362 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json index 2cff070a5790..bb76496d3365 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesDifferingParamCounts.json @@ -1002,7 +1002,8 @@ "end": 391 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json index f304077a2d06..12986bac268e 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithCallSignaturesWithOverloads.json @@ -1736,7 +1736,8 @@ "end": 667 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json index 128954d5807a..d0ff97ba3a44 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignatures2.json @@ -684,7 +684,8 @@ "end": 310 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json index b16b24120146..1566602dc823 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithConstructSignaturesDifferingParamCounts.json @@ -765,7 +765,8 @@ "end": 339 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json index 213fdc26c622..46f1ced33dd0 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints.json @@ -1185,7 +1185,8 @@ "end": 772 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json index 53bb2786ac81..e2d977832957 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints2.json @@ -1968,7 +1968,8 @@ "end": 994 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json index 96aa3da58471..71b9e4ab69e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericCallSignaturesDifferingByConstraints3.json @@ -2523,7 +2523,8 @@ "end": 1181 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json index 8fd436109d6a..ce533a124a1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints.json @@ -901,7 +901,8 @@ "end": 704 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json index 4889d5fab6b9..6664fb8f3dc7 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints2.json @@ -1573,7 +1573,8 @@ "end": 907 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json index 0c4cbdf023a8..1ceb195067c8 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithGenericConstructSignaturesDifferingByConstraints3.json @@ -2128,7 +2128,8 @@ "end": 1095 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json index 67652911c714..dcf821beb3ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers1.json @@ -645,7 +645,8 @@ "end": 324 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json index 5bf8544eba1f..b2626b423ce6 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithNumericIndexers3.json @@ -645,7 +645,8 @@ "end": 324 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json index f5fe50696f9a..aad11d8f7548 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithOptionality.json @@ -443,7 +443,8 @@ "end": 210 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json index c99a3ba4d1ab..48aa7f1005fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPrivates.json @@ -513,7 +513,8 @@ "end": 280 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json index e03b44d4c9c0..10d1a2d72446 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithPublics.json @@ -443,7 +443,8 @@ "end": 229 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json index 0f93ece87f2a..70c752851080 100644 --- a/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json +++ b/crates/swc_ecma_parser/tests/tsc/objectTypesIdentityWithStringIndexers.json @@ -644,7 +644,8 @@ "end": 326 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json index a4e32c77af30..e7f103638bf0 100644 --- a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteral.json @@ -217,7 +217,8 @@ "end": 966 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -349,7 +350,8 @@ "end": 1628 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -504,7 +506,8 @@ "end": 2002 }, "value": "0o45436", - "raw": "\"0o45436\"" + "raw": "\"0o45436\"", + "loneSurrogates": false } } } @@ -544,7 +547,8 @@ "end": 2026 }, "value": "19230", - "raw": "\"19230\"" + "raw": "\"19230\"", + "loneSurrogates": false } } } @@ -624,7 +628,8 @@ "end": 2080 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -664,7 +669,8 @@ "end": 2109 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -704,7 +710,8 @@ "end": 2141 }, "value": "oct1", - "raw": "\"oct1\"" + "raw": "\"oct1\"", + "loneSurrogates": false } } } @@ -744,7 +751,8 @@ "end": 2174 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } @@ -824,7 +832,8 @@ "end": 2232 }, "value": "0O45436", - "raw": "\"0O45436\"" + "raw": "\"0O45436\"", + "loneSurrogates": false } } } @@ -864,7 +873,8 @@ "end": 2255 }, "value": "19230", - "raw": "\"19230\"" + "raw": "\"19230\"", + "loneSurrogates": false } } } @@ -944,7 +954,8 @@ "end": 2307 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -984,7 +995,8 @@ "end": 2335 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1024,7 +1036,8 @@ "end": 2366 }, "value": "oct2", - "raw": "\"oct2\"" + "raw": "\"oct2\"", + "loneSurrogates": false } } } @@ -1104,7 +1117,8 @@ "end": 2456 }, "value": "5.462437423415177e+244", - "raw": "\"5.462437423415177e+244\"" + "raw": "\"5.462437423415177e+244\"", + "loneSurrogates": false } } } @@ -1144,7 +1158,8 @@ "end": 2486 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json index a4e32c77af30..e7f103638bf0 100644 --- a/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json +++ b/crates/swc_ecma_parser/tests/tsc/octalIntegerLiteralES6.json @@ -217,7 +217,8 @@ "end": 966 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -349,7 +350,8 @@ "end": 1628 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -504,7 +506,8 @@ "end": 2002 }, "value": "0o45436", - "raw": "\"0o45436\"" + "raw": "\"0o45436\"", + "loneSurrogates": false } } } @@ -544,7 +547,8 @@ "end": 2026 }, "value": "19230", - "raw": "\"19230\"" + "raw": "\"19230\"", + "loneSurrogates": false } } } @@ -624,7 +628,8 @@ "end": 2080 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -664,7 +669,8 @@ "end": 2109 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -704,7 +710,8 @@ "end": 2141 }, "value": "oct1", - "raw": "\"oct1\"" + "raw": "\"oct1\"", + "loneSurrogates": false } } } @@ -744,7 +751,8 @@ "end": 2174 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } @@ -824,7 +832,8 @@ "end": 2232 }, "value": "0O45436", - "raw": "\"0O45436\"" + "raw": "\"0O45436\"", + "loneSurrogates": false } } } @@ -864,7 +873,8 @@ "end": 2255 }, "value": "19230", - "raw": "\"19230\"" + "raw": "\"19230\"", + "loneSurrogates": false } } } @@ -944,7 +954,8 @@ "end": 2307 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -984,7 +995,8 @@ "end": 2335 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -1024,7 +1036,8 @@ "end": 2366 }, "value": "oct2", - "raw": "\"oct2\"" + "raw": "\"oct2\"", + "loneSurrogates": false } } } @@ -1104,7 +1117,8 @@ "end": 2456 }, "value": "5.462437423415177e+244", - "raw": "\"5.462437423415177e+244\"" + "raw": "\"5.462437423415177e+244\"", + "loneSurrogates": false } } } @@ -1144,7 +1158,8 @@ "end": 2486 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json b/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json index 213706862f88..1c42653c46f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/operatorsAndIntersectionTypes.json @@ -184,7 +184,8 @@ "end": 201 }, "value": "21EC2020-3AEA-4069-A2DD-08002B30309D", - "raw": "\"21EC2020-3AEA-4069-A2DD-08002B30309D\"" + "raw": "\"21EC2020-3AEA-4069-A2DD-08002B30309D\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeReference", @@ -713,7 +714,8 @@ "end": 483 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -765,7 +767,8 @@ "end": 533 }, "value": "{", - "raw": "\"{\"" + "raw": "\"{\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -785,7 +788,8 @@ "end": 546 }, "value": "}", - "raw": "\"}\"" + "raw": "\"}\"", + "loneSurrogates": false } }, "definite": false @@ -1223,7 +1227,8 @@ "end": 746 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters1.json b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters1.json index 0e4e98415023..d6ff999b30d7 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters1.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters1.json @@ -197,7 +197,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -295,7 +296,8 @@ "end": 97 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json index 7afd0abbf998..4c464ba140b9 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters2.json @@ -286,7 +286,8 @@ "end": 84 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -424,7 +425,8 @@ "end": 133 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters3.json b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters3.json index 9d2403593c10..5c32edefd7c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters3.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalBindingParameters3.json @@ -57,7 +57,8 @@ "end": 178 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads1.json b/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads1.json index 7e4e4b2e1528..62060c935cfb 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads1.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads1.json @@ -276,7 +276,8 @@ "end": 98 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -374,7 +375,8 @@ "end": 130 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json b/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json index eb16821ea28c..7651efd92347 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalBindingParametersInOverloads2.json @@ -365,7 +365,8 @@ "end": 114 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -503,7 +504,8 @@ "end": 163 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json index 80e8b0f4d1c8..a9972c36f11d 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInLoop.json @@ -350,7 +350,8 @@ "end": 231 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -359,7 +360,8 @@ "end": 237 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json index c74814261962..cfc8f4891680 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.2.json @@ -236,7 +236,8 @@ "end": 207 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -331,7 +332,8 @@ "end": 242 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json index f0e33b3a1d7b..af3233bde4da 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterBindingPattern.json @@ -236,7 +236,8 @@ "end": 190 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json index f43db01744eb..7a9bb0109932 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInParameterInitializer.2.json @@ -301,7 +301,8 @@ "end": 232 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json index b0071a719820..02d7f4210cee 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInTypeAssertions.json @@ -628,7 +628,8 @@ "end": 317 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false } } } @@ -713,7 +714,8 @@ "end": 350 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json b/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json index 94c3f10bc563..9924aeb391cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalChainingInference.json @@ -1371,7 +1371,8 @@ "end": 652 }, "value": "length", - "raw": "\"length\"" + "raw": "\"length\"", + "loneSurrogates": false } } } @@ -1751,7 +1752,8 @@ "end": 797 }, "value": "length", - "raw": "\"length\"" + "raw": "\"length\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json b/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json index 35fc3de5a49f..d2099a5ee060 100644 --- a/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json +++ b/crates/swc_ecma_parser/tests/tsc/optionalProperties01.json @@ -196,7 +196,8 @@ "end": 166 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -281,7 +282,8 @@ "end": 210 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -301,7 +303,8 @@ "end": 227 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesAmd.json b/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesAmd.json index 6f857a4a037b..02c438171770 100644 --- a/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesAmd.json +++ b/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesAmd.json @@ -37,7 +37,8 @@ "end": 117 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -134,7 +135,8 @@ "end": 199 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -239,7 +241,8 @@ "end": 315 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesSystem.json b/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesSystem.json index 0b0babf1760e..86a23575da98 100644 --- a/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesSystem.json +++ b/crates/swc_ecma_parser/tests/tsc/outFilerootDirModuleNamesSystem.json @@ -37,7 +37,8 @@ "end": 120 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -134,7 +135,8 @@ "end": 202 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -239,7 +241,8 @@ "end": 318 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolution.json b/crates/swc_ecma_parser/tests/tsc/overloadResolution.json index 6d665861251f..d8f8ef90d20e 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolution.json @@ -1172,7 +1172,8 @@ "end": 896 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1215,7 +1216,8 @@ "end": 1033 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1293,7 +1295,8 @@ "end": 1179 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2059,7 +2062,8 @@ "end": 1453 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2083,7 +2087,8 @@ "end": 1460 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2361,7 +2366,8 @@ "end": 1668 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2373,7 +2379,8 @@ "end": 1672 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2385,7 +2392,8 @@ "end": 1676 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2473,7 +2481,8 @@ "end": 1717 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2485,7 +2494,8 @@ "end": 1721 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3031,7 +3041,8 @@ "end": 2142 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3119,7 +3130,8 @@ "end": 2173 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3183,7 +3195,8 @@ "end": 2207 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3271,7 +3284,8 @@ "end": 2247 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3335,7 +3349,8 @@ "end": 2370 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3399,7 +3414,8 @@ "end": 2385 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3492,7 +3508,8 @@ "end": 2413 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json b/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json index 912cfa09bc20..69391390b1fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolutionClassConstructors.json @@ -965,7 +965,8 @@ "end": 863 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1008,7 +1009,8 @@ "end": 1004 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1086,7 +1088,8 @@ "end": 1151 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1661,7 +1664,8 @@ "end": 1402 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1685,7 +1689,8 @@ "end": 1409 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1845,7 +1850,8 @@ "end": 1599 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1857,7 +1863,8 @@ "end": 1603 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1869,7 +1876,8 @@ "end": 1607 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1933,7 +1941,8 @@ "end": 1654 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1945,7 +1954,8 @@ "end": 1658 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2324,7 +2334,8 @@ "end": 2045 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2412,7 +2423,8 @@ "end": 2080 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2476,7 +2488,8 @@ "end": 2118 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2564,7 +2577,8 @@ "end": 2162 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2628,7 +2642,8 @@ "end": 2297 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2692,7 +2707,8 @@ "end": 2316 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2785,7 +2801,8 @@ "end": 2370 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json b/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json index 52a0576101a8..12270c5a26c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadResolutionConstructors.json @@ -1129,7 +1129,8 @@ "end": 889 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1172,7 +1173,8 @@ "end": 1030 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1250,7 +1252,8 @@ "end": 1180 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1948,7 +1951,8 @@ "end": 1447 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1972,7 +1976,8 @@ "end": 1454 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2250,7 +2255,8 @@ "end": 1674 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2262,7 +2268,8 @@ "end": 1678 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2274,7 +2281,8 @@ "end": 1682 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2362,7 +2370,8 @@ "end": 1727 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2374,7 +2383,8 @@ "end": 1731 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2907,7 +2917,8 @@ "end": 2164 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2995,7 +3006,8 @@ "end": 2199 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3059,7 +3071,8 @@ "end": 2237 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3147,7 +3160,8 @@ "end": 2281 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3211,7 +3225,8 @@ "end": 2408 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3275,7 +3290,8 @@ "end": 2427 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -3368,7 +3384,8 @@ "end": 2463 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/overloadTag1.json b/crates/swc_ecma_parser/tests/tsc/overloadTag1.json index 5d2e8c5167f7..176687cdbed8 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadTag1.json @@ -123,7 +123,8 @@ "end": 425 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -158,7 +159,8 @@ "end": 450 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -252,7 +254,8 @@ "end": 506 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "right": { @@ -287,7 +290,8 @@ "end": 531 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -372,7 +376,8 @@ "end": 594 }, "value": "Invalid arguments", - "raw": "\"Invalid arguments\"" + "raw": "\"Invalid arguments\"", + "loneSurrogates": false } } ], @@ -517,7 +522,8 @@ "end": 650 }, "value": "zero", - "raw": "\"zero\"" + "raw": "\"zero\"", + "loneSurrogates": false } }, { @@ -529,7 +535,8 @@ "end": 657 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } } ], @@ -593,7 +600,8 @@ "end": 682 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -815,7 +823,8 @@ "end": 970 }, "value": "zero", - "raw": "\"zero\"" + "raw": "\"zero\"", + "loneSurrogates": false } }, { @@ -827,7 +836,8 @@ "end": 977 }, "value": "one", - "raw": "\"one\"" + "raw": "\"one\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/overloadTag2.json b/crates/swc_ecma_parser/tests/tsc/overloadTag2.json index a1472449c6a2..6ab33eace6f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/overloadTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/overloadTag2.json @@ -76,7 +76,8 @@ "end": 183 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, "typeAnnotation": null, @@ -388,7 +389,8 @@ "end": 726 }, "value": "str", - "raw": "'str'" + "raw": "'str'", + "loneSurrogates": false } } ], @@ -516,7 +518,8 @@ "end": 768 }, "value": "str", - "raw": "'str'" + "raw": "'str'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/override16.json b/crates/swc_ecma_parser/tests/tsc/override16.json index a6334073681a..d4b42c87ff8f 100644 --- a/crates/swc_ecma_parser/tests/tsc/override16.json +++ b/crates/swc_ecma_parser/tests/tsc/override16.json @@ -113,7 +113,8 @@ "end": 135 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/override18.json b/crates/swc_ecma_parser/tests/tsc/override18.json index 34ef89ffa9b1..a7c9376c06f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/override18.json +++ b/crates/swc_ecma_parser/tests/tsc/override18.json @@ -113,7 +113,8 @@ "end": 169 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/override2.json b/crates/swc_ecma_parser/tests/tsc/override2.json index aa3778a97fa1..c81daceda107 100644 --- a/crates/swc_ecma_parser/tests/tsc/override2.json +++ b/crates/swc_ecma_parser/tests/tsc/override2.json @@ -387,7 +387,8 @@ "end": 271 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -514,7 +515,8 @@ "end": 354 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -755,7 +757,8 @@ "end": 477 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -854,7 +857,8 @@ "end": 510 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json b/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json index f71e8708634c..670f54eebb9b 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagOnCallExpression.json @@ -144,7 +144,8 @@ "end": 256 }, "value": "inherits", - "raw": "'inherits'" + "raw": "'inherits'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json b/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json index 94f6013acc29..c63d82f157da 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagOnFunctionUsingArguments.json @@ -141,7 +141,8 @@ "end": 249 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json b/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json index 8de15f834129..5138d07ef347 100644 --- a/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json +++ b/crates/swc_ecma_parser/tests/tsc/paramTagTypeResolution.json @@ -204,7 +204,8 @@ "end": 239 }, "value": "./first", - "raw": "'./first'" + "raw": "'./first'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.2.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.2.json index 692236f0b846..ac938b09bfff 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.2.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing.2.json @@ -262,7 +262,8 @@ "end": 222 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json index 0a1f14cc0d82..f9664a5055d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1.json @@ -53,7 +53,8 @@ "end": 21 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json index b8ac75f5170b..cec223c91fe2 100644 --- a/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json +++ b/crates/swc_ecma_parser/tests/tsc/parameterInitializersForwardReferencing1_es6.json @@ -53,7 +53,8 @@ "end": 41 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json index dcb24ccc01b2..805299ec0e68 100644 --- a/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/parenthesizedContexualTyping3.json @@ -1042,7 +1042,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1052,7 +1053,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1062,7 +1064,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1184,7 +1187,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1194,7 +1198,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1204,7 +1209,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1333,7 +1339,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1343,7 +1350,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1353,7 +1361,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1503,7 +1512,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1513,7 +1523,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1523,7 +1534,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1533,7 +1545,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1690,7 +1703,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1700,7 +1714,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1710,7 +1725,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1720,7 +1736,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1884,7 +1901,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1894,7 +1912,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1904,7 +1923,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1914,7 +1934,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2092,7 +2113,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2102,7 +2124,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2112,7 +2135,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2122,7 +2146,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2301,7 +2326,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2311,7 +2337,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2321,7 +2348,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2331,7 +2359,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json b/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json index 21afd8837c4e..68021eca0d3e 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser15.4.4.14-9-2.json @@ -325,7 +325,8 @@ "end": 664 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -370,7 +371,8 @@ "end": 692 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/parser509534.json b/crates/swc_ecma_parser/tests/tsc/parser509534.json index 4339080d161f..b2d7f9f1a573 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509534.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509534.json @@ -18,7 +18,8 @@ "end": 13 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -75,7 +76,8 @@ "end": 47 }, "value": "../config", - "raw": "\"../config\"" + "raw": "\"../config\"", + "loneSurrogates": false } } ], @@ -271,7 +273,8 @@ "end": 165 }, "value": "/auth/login", - "raw": "\"/auth/login\"" + "raw": "\"/auth/login\"", + "loneSurrogates": false } } }, @@ -401,7 +404,8 @@ "end": 284 }, "value": "/auth/live", - "raw": "\"/auth/live\"" + "raw": "\"/auth/live\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/parser509546_2.json b/crates/swc_ecma_parser/tests/tsc/parser509546_2.json index 578f18a7cbcb..2b3fb5f033dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509546_2.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509546_2.json @@ -18,7 +18,8 @@ "end": 13 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/parser509693.json b/crates/swc_ecma_parser/tests/tsc/parser509693.json index 5c11cdd03efa..72c1a9568b63 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser509693.json +++ b/crates/swc_ecma_parser/tests/tsc/parser509693.json @@ -89,7 +89,8 @@ "end": 41 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parser536727.json b/crates/swc_ecma_parser/tests/tsc/parser536727.json index 84c4cb3d40ba..e6b3837b68f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser536727.json +++ b/crates/swc_ecma_parser/tests/tsc/parser536727.json @@ -142,7 +142,8 @@ "end": 57 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -241,7 +242,8 @@ "end": 95 }, "value": "blah", - "raw": "\"blah\"" + "raw": "\"blah\"", + "loneSurrogates": false } }, "async": false, diff --git a/crates/swc_ecma_parser/tests/tsc/parser630933.json b/crates/swc_ecma_parser/tests/tsc/parser630933.json index 98c8dcb536e3..771f484dc0b0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parser630933.json +++ b/crates/swc_ecma_parser/tests/tsc/parser630933.json @@ -39,7 +39,8 @@ "end": 16 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json b/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json index 6703cf33e066..65be243bb8d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserArgumentList1.json @@ -430,7 +430,8 @@ "end": 264 }, "value": " ", - "raw": "' '" + "raw": "' '", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -439,7 +440,8 @@ "end": 269 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json index f2832866fe2c..75110ecd565f 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration19.json @@ -73,7 +73,8 @@ "end": 31 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration20.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration20.json index 64ab04b1555f..5eaa96321113 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration20.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration20.json @@ -74,7 +74,8 @@ "end": 27 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration22.json b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration22.json index 49cfc44f1e58..2a715a7963d6 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration22.json +++ b/crates/swc_ecma_parser/tests/tsc/parserClassDeclaration22.json @@ -38,7 +38,8 @@ "end": 20 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "function": { "params": [], @@ -74,7 +75,8 @@ "end": 33 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserComputedPropertyName40.json b/crates/swc_ecma_parser/tests/tsc/parserComputedPropertyName40.json index fbd8a4a631b1..f2002256dadb 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserComputedPropertyName40.json +++ b/crates/swc_ecma_parser/tests/tsc/parserComputedPropertyName40.json @@ -60,7 +60,8 @@ "end": 37 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -69,7 +70,8 @@ "end": 42 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json index 41e4b238c15e..3181fc45a35b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserES5SymbolProperty6.json @@ -70,7 +70,8 @@ "end": 63 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", diff --git a/crates/swc_ecma_parser/tests/tsc/parserEnum6.json b/crates/swc_ecma_parser/tests/tsc/parserEnum6.json index 8abf4347e56c..704dde9bffb2 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserEnum6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserEnum6.json @@ -37,7 +37,8 @@ "end": 15 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "init": null }, @@ -54,7 +55,8 @@ "end": 20 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false }, "init": null }, @@ -71,7 +73,8 @@ "end": 25 }, "value": "C", - "raw": "\"C\"" + "raw": "\"C\"", + "loneSurrogates": false }, "init": null } diff --git a/crates/swc_ecma_parser/tests/tsc/parserEnum7.json b/crates/swc_ecma_parser/tests/tsc/parserEnum7.json index 5cbf57e07c55..80a42247dc18 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserEnum7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserEnum7.json @@ -37,7 +37,8 @@ "end": 13 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false }, "init": null }, @@ -54,7 +55,8 @@ "end": 16 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false }, "init": null }, @@ -71,7 +73,8 @@ "end": 19 }, "value": "3", - "raw": "\"3\"" + "raw": "\"3\"", + "loneSurrogates": false }, "init": null } diff --git a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json index b46a694d521c..9f0c8c41612a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserErrorRecovery_IncompleteMemberVariable1.json @@ -156,7 +156,8 @@ "end": 170 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserExportAssignment6.json b/crates/swc_ecma_parser/tests/tsc/parserExportAssignment6.json index 1742d9fde199..de561527f19d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserExportAssignment6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserExportAssignment6.json @@ -21,7 +21,8 @@ "end": 19 }, "value": "M", - "raw": "\"M\"" + "raw": "\"M\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json b/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json index 9bb22924336c..52a5955c0666 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserForInStatement8.json @@ -65,7 +65,8 @@ "end": 86 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", @@ -102,7 +103,8 @@ "end": 101 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -233,7 +235,8 @@ "end": 140 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", @@ -270,7 +273,8 @@ "end": 155 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json b/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json index da57e9e99a6c..ab192c660a44 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json +++ b/crates/swc_ecma_parser/tests/tsc/parserForOfStatement25.json @@ -66,7 +66,8 @@ "end": 106 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", @@ -225,7 +226,8 @@ "end": 155 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json b/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json index 198ce6accf8c..3ca6d48d5795 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json +++ b/crates/swc_ecma_parser/tests/tsc/parserForStatement9.json @@ -65,7 +65,8 @@ "end": 86 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", @@ -265,7 +266,8 @@ "end": 144 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment3.json b/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment3.json index d8a5849bab99..38d1caddeb2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/parserFunctionPropertyAssignment3.json @@ -48,7 +48,8 @@ "end": 16 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "params": [], "decorators": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json b/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json index e186f206a841..66319ec30a74 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserInExpression1.json @@ -60,7 +60,8 @@ "end": 16 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", @@ -78,7 +79,8 @@ "end": 25 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "value": { "type": "BooleanLiteral", diff --git a/crates/swc_ecma_parser/tests/tsc/parserInterfaceKeywordInEnum1.json b/crates/swc_ecma_parser/tests/tsc/parserInterfaceKeywordInEnum1.json index 2e5530260050..4087a71e9137 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserInterfaceKeywordInEnum1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserInterfaceKeywordInEnum1.json @@ -18,7 +18,8 @@ "end": 13 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration2.json index 38e7bd0f10ac..97d41f06886d 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration2.json @@ -38,7 +38,8 @@ "end": 36 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "function": { "params": [], diff --git a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration5.json b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration5.json index 554511ab82e8..ce642c863b80 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMemberAccessorDeclaration5.json @@ -38,7 +38,8 @@ "end": 36 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "function": { "params": [ diff --git a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature5.json b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature5.json index f16a8e8a9c63..b4e6fcaf8923 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature5.json @@ -44,7 +44,8 @@ "end": 20 }, "value": "E", - "raw": "\"E\"" + "raw": "\"E\"", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature6.json b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature6.json index effb67eae225..48c2aaea40d5 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature6.json @@ -44,7 +44,8 @@ "end": 20 }, "value": "F", - "raw": "\"F\"" + "raw": "\"F\"", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature7.json b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature7.json index a12b3af9bee9..13c81b9ba299 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature7.json @@ -44,7 +44,8 @@ "end": 20 }, "value": "G", - "raw": "\"G\"" + "raw": "\"G\"", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature8.json b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature8.json index 8c0190ab42c7..755fabfe49d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserMethodSignature8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserMethodSignature8.json @@ -44,7 +44,8 @@ "end": 20 }, "value": "H", - "raw": "\"H\"" + "raw": "\"H\"", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json index 29a1ae640363..f7bf0d4af569 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json +++ b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration11.json @@ -177,7 +177,8 @@ "end": 99 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration2.json b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration2.json index 40ef69081ef6..1f965b4cc0e4 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserModuleDeclaration2.json @@ -21,7 +21,8 @@ "end": 21 }, "value": "Foo", - "raw": "\"Foo\"" + "raw": "\"Foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json b/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json index d51902bd5e43..e1bd48409727 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserNotHexLiteral1.json @@ -56,7 +56,8 @@ "end": 19 }, "value": "cat", - "raw": "'cat'" + "raw": "'cat'", + "loneSurrogates": false } }, { @@ -76,7 +77,8 @@ "end": 30 }, "value": "dog", - "raw": "'dog'" + "raw": "'dog'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json b/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json index 4e9f9dee33f6..8b1961069b34 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserOverloadOnConstants1.json @@ -150,7 +150,8 @@ "end": 106 }, "value": "canvas", - "raw": "'canvas'" + "raw": "'canvas'", + "loneSurrogates": false } } } @@ -230,7 +231,8 @@ "end": 160 }, "value": "div", - "raw": "'div'" + "raw": "'div'", + "loneSurrogates": false } } } @@ -310,7 +312,8 @@ "end": 212 }, "value": "span", - "raw": "'span'" + "raw": "'span'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature5.json b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature5.json index 38884ef653c8..f01a5637df2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature5.json @@ -45,7 +45,8 @@ "end": 20 }, "value": "E", - "raw": "\"E\"" + "raw": "\"E\"", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature6.json b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature6.json index 8ce8dcfc4f24..291e476d3795 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature6.json @@ -45,7 +45,8 @@ "end": 20 }, "value": "F", - "raw": "\"F\"" + "raw": "\"F\"", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature7.json b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature7.json index 37c5d21b9b34..20d6a360c99c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature7.json +++ b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature7.json @@ -45,7 +45,8 @@ "end": 20 }, "value": "G", - "raw": "\"G\"" + "raw": "\"G\"", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature8.json b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature8.json index 528f23cd24bb..c3ae203f5ab7 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserPropertySignature8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserPropertySignature8.json @@ -45,7 +45,8 @@ "end": 20 }, "value": "H", - "raw": "\"H\"" + "raw": "\"H\"", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json index e1b05364f5db..839986ece7a9 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource1.json @@ -4010,7 +4010,8 @@ "end": 3167 }, "value": " completed in ", - "raw": "\" completed in \"" + "raw": "\" completed in \"", + "loneSurrogates": false } }, "right": { @@ -4056,7 +4057,8 @@ "end": 3193 }, "value": " msec", - "raw": "\" msec\"" + "raw": "\" msec\"", + "loneSurrogates": false } } } @@ -4238,7 +4240,8 @@ "end": 3326 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -4457,7 +4460,8 @@ "end": 3513 }, "value": "\\t", - "raw": "\"\\\\t\"" + "raw": "\"\\\\t\"", + "loneSurrogates": false } } }, @@ -4518,7 +4522,8 @@ "end": 3617 }, "value": "\\n", - "raw": "\"\\\\n\"" + "raw": "\"\\\\n\"", + "loneSurrogates": false } } }, @@ -4579,7 +4584,8 @@ "end": 3724 }, "value": "\\v", - "raw": "\"\\\\v\"" + "raw": "\"\\\\v\"", + "loneSurrogates": false } } }, @@ -4640,7 +4646,8 @@ "end": 3828 }, "value": "\\f", - "raw": "\"\\\\f\"" + "raw": "\"\\\\f\"", + "loneSurrogates": false } } }, @@ -4701,7 +4708,8 @@ "end": 3938 }, "value": "\\r", - "raw": "\"\\\\r\"" + "raw": "\"\\\\r\"", + "loneSurrogates": false } } }, @@ -4762,7 +4770,8 @@ "end": 4047 }, "value": "\\\"", - "raw": "\"\\\\\\\"\"" + "raw": "\"\\\\\\\"\"", + "loneSurrogates": false } } }, @@ -4823,7 +4832,8 @@ "end": 4155 }, "value": "\\'", - "raw": "\"\\\\\\'\"" + "raw": "\"\\\\\\'\"", + "loneSurrogates": false } } }, @@ -4884,7 +4894,8 @@ "end": 4258 }, "value": "\\", - "raw": "\"\\\\\"" + "raw": "\"\\\\\"", + "loneSurrogates": false } } }, @@ -5325,7 +5336,8 @@ "end": 4576 }, "value": "(...)", - "raw": "\"(...)\"" + "raw": "\"(...)\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json index f145ccc77bfb..ea449ccedf60 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource12.json @@ -14652,7 +14652,8 @@ "end": 13361 }, "value": "initWalkers function is not up to date with enum content!", - "raw": "\"initWalkers function is not up to date with enum content!\"" + "raw": "\"initWalkers function is not up to date with enum content!\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json index a4cb3c58719a..1695e1149a54 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource13.json @@ -10071,7 +10071,8 @@ "end": 6526 }, "value": "Callback", - "raw": "\"Callback\"" + "raw": "\"Callback\"", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json index f29e49bcc199..d55dd1fbc1e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource14.json @@ -2348,7 +2348,8 @@ "end": 1792 }, "value": "Invalid call to 'up'", - "raw": "\"Invalid call to 'up'\"" + "raw": "\"Invalid call to 'up'\"", + "loneSurrogates": false } } ], @@ -2562,7 +2563,8 @@ "end": 1959 }, "value": "Invalid call to 'down'", - "raw": "\"Invalid call to 'down'\"" + "raw": "\"Invalid call to 'down'\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json index 15735ee435f1..7f3c058086f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource2.json @@ -8819,7 +8819,8 @@ "end": 8369 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -9251,7 +9252,8 @@ "end": 8625 }, "value": "|", - "raw": "\"|\"" + "raw": "\"|\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json index e5bde768416c..9352cd609d2c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource5.json @@ -78,7 +78,8 @@ "end": 342 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -112,7 +113,8 @@ "end": 373 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -830,7 +832,8 @@ "end": 976 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -1476,7 +1479,8 @@ "end": 1447 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json b/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json index cad04967af0f..180ce34f165b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRealSource8.json @@ -12026,7 +12026,8 @@ "end": 11194 }, "value": "__missing", - "raw": "\"__missing\"" + "raw": "\"__missing\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json index d4815f83bfde..b2a14b33cace 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json +++ b/crates/swc_ecma_parser/tests/tsc/parserRegularExpression4.json @@ -411,7 +411,8 @@ "end": 157 }, "value": "&rct=j", - "raw": "\"&rct=j\"" + "raw": "\"&rct=j\"", + "loneSurrogates": false } } } @@ -531,7 +532,8 @@ "end": 199 }, "value": "&q=", - "raw": "\"&q=\"" + "raw": "\"&q=\"", + "loneSurrogates": false }, "right": { "type": "CallExpression", @@ -594,7 +596,8 @@ "end": 226 }, "value": "q", - "raw": "\"q\"" + "raw": "\"q\"", + "loneSurrogates": false } } ], @@ -627,7 +630,8 @@ "end": 239 }, "value": "as_q", - "raw": "\"as_q\"" + "raw": "\"as_q\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/parserS7.2_A1.5_T2.json b/crates/swc_ecma_parser/tests/tsc/parserS7.2_A1.5_T2.json index bf787279517d..4007713d4238 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserS7.2_A1.5_T2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserS7.2_A1.5_T2.json @@ -38,7 +38,8 @@ "end": 353 }, "value": " var x = 1 ", - "raw": "\"\\u00A0var x\\u00A0= 1\\u00A0\"" + "raw": "\"\\u00A0var x\\u00A0= 1\\u00A0\"", + "loneSurrogates": false } } ], @@ -126,7 +127,8 @@ "end": 442 }, "value": "#1: eval(\"\\u00A0var x\\u00A0= 1\\u00A0\"); x === 1. Actual: ", - "raw": "'#1: eval(\"\\\\u00A0var x\\\\u00A0= 1\\\\u00A0\"); x === 1. Actual: '" + "raw": "'#1: eval(\"\\\\u00A0var x\\\\u00A0= 1\\\\u00A0\"); x === 1. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -276,7 +278,8 @@ "end": 543 }, "value": "#2:  var x = 1 ; x === 1. Actual: ", - "raw": "'#2:  var x = 1 ; x === 1. Actual: '" + "raw": "'#2:  var x = 1 ; x === 1. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parserS7.3_A1.1_T2.json b/crates/swc_ecma_parser/tests/tsc/parserS7.3_A1.1_T2.json index 627d90fba168..9322fafd8dca 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserS7.3_A1.1_T2.json +++ b/crates/swc_ecma_parser/tests/tsc/parserS7.3_A1.1_T2.json @@ -126,7 +126,8 @@ "end": 387 }, "value": "#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ", - "raw": "'#1: var\\\\nx\\\\n=\\\\n1\\\\n; x === 1. Actual: '" + "raw": "'#1: var\\\\nx\\\\n=\\\\n1\\\\n; x === 1. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parserS7.6_A4.2_T1.json b/crates/swc_ecma_parser/tests/tsc/parserS7.6_A4.2_T1.json index 63cabebccaee..cedf42ba0418 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserS7.6_A4.2_T1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserS7.6_A4.2_T1.json @@ -119,7 +119,8 @@ "end": 333 }, "value": "#А", - "raw": "'#А'" + "raw": "'#А'", + "loneSurrogates": false } } ], @@ -244,7 +245,8 @@ "end": 384 }, "value": "#Б", - "raw": "'#Б'" + "raw": "'#Б'", + "loneSurrogates": false } } ], @@ -369,7 +371,8 @@ "end": 435 }, "value": "#В", - "raw": "'#В'" + "raw": "'#В'", + "loneSurrogates": false } } ], @@ -494,7 +497,8 @@ "end": 486 }, "value": "#Г", - "raw": "'#Г'" + "raw": "'#Г'", + "loneSurrogates": false } } ], @@ -619,7 +623,8 @@ "end": 537 }, "value": "#Д", - "raw": "'#Д'" + "raw": "'#Д'", + "loneSurrogates": false } } ], @@ -744,7 +749,8 @@ "end": 588 }, "value": "#Е", - "raw": "'#Е'" + "raw": "'#Е'", + "loneSurrogates": false } } ], @@ -869,7 +875,8 @@ "end": 639 }, "value": "#Ж", - "raw": "'#Ж'" + "raw": "'#Ж'", + "loneSurrogates": false } } ], @@ -994,7 +1001,8 @@ "end": 690 }, "value": "#З", - "raw": "'#З'" + "raw": "'#З'", + "loneSurrogates": false } } ], @@ -1119,7 +1127,8 @@ "end": 741 }, "value": "#И", - "raw": "'#И'" + "raw": "'#И'", + "loneSurrogates": false } } ], @@ -1244,7 +1253,8 @@ "end": 792 }, "value": "#Й", - "raw": "'#Й'" + "raw": "'#Й'", + "loneSurrogates": false } } ], @@ -1369,7 +1379,8 @@ "end": 843 }, "value": "#К", - "raw": "'#К'" + "raw": "'#К'", + "loneSurrogates": false } } ], @@ -1494,7 +1505,8 @@ "end": 894 }, "value": "#Л", - "raw": "'#Л'" + "raw": "'#Л'", + "loneSurrogates": false } } ], @@ -1619,7 +1631,8 @@ "end": 945 }, "value": "#М", - "raw": "'#М'" + "raw": "'#М'", + "loneSurrogates": false } } ], @@ -1744,7 +1757,8 @@ "end": 996 }, "value": "#Н", - "raw": "'#Н'" + "raw": "'#Н'", + "loneSurrogates": false } } ], @@ -1869,7 +1883,8 @@ "end": 1047 }, "value": "#О", - "raw": "'#О'" + "raw": "'#О'", + "loneSurrogates": false } } ], @@ -1994,7 +2009,8 @@ "end": 1098 }, "value": "#П", - "raw": "'#П'" + "raw": "'#П'", + "loneSurrogates": false } } ], @@ -2119,7 +2135,8 @@ "end": 1149 }, "value": "#Р", - "raw": "'#Р'" + "raw": "'#Р'", + "loneSurrogates": false } } ], @@ -2244,7 +2261,8 @@ "end": 1200 }, "value": "#С", - "raw": "'#С'" + "raw": "'#С'", + "loneSurrogates": false } } ], @@ -2369,7 +2387,8 @@ "end": 1251 }, "value": "#Т", - "raw": "'#Т'" + "raw": "'#Т'", + "loneSurrogates": false } } ], @@ -2494,7 +2513,8 @@ "end": 1302 }, "value": "#У", - "raw": "'#У'" + "raw": "'#У'", + "loneSurrogates": false } } ], @@ -2619,7 +2639,8 @@ "end": 1353 }, "value": "#Ф", - "raw": "'#Ф'" + "raw": "'#Ф'", + "loneSurrogates": false } } ], @@ -2744,7 +2765,8 @@ "end": 1404 }, "value": "#Х", - "raw": "'#Х'" + "raw": "'#Х'", + "loneSurrogates": false } } ], @@ -2869,7 +2891,8 @@ "end": 1455 }, "value": "#Ц", - "raw": "'#Ц'" + "raw": "'#Ц'", + "loneSurrogates": false } } ], @@ -2994,7 +3017,8 @@ "end": 1506 }, "value": "#Ч", - "raw": "'#Ч'" + "raw": "'#Ч'", + "loneSurrogates": false } } ], @@ -3119,7 +3143,8 @@ "end": 1557 }, "value": "#Ш", - "raw": "'#Ш'" + "raw": "'#Ш'", + "loneSurrogates": false } } ], @@ -3244,7 +3269,8 @@ "end": 1608 }, "value": "#Щ", - "raw": "'#Щ'" + "raw": "'#Щ'", + "loneSurrogates": false } } ], @@ -3369,7 +3395,8 @@ "end": 1659 }, "value": "#Ъ", - "raw": "'#Ъ'" + "raw": "'#Ъ'", + "loneSurrogates": false } } ], @@ -3494,7 +3521,8 @@ "end": 1710 }, "value": "#Ы", - "raw": "'#Ы'" + "raw": "'#Ы'", + "loneSurrogates": false } } ], @@ -3619,7 +3647,8 @@ "end": 1761 }, "value": "#Ь", - "raw": "'#Ь'" + "raw": "'#Ь'", + "loneSurrogates": false } } ], @@ -3744,7 +3773,8 @@ "end": 1812 }, "value": "#Э", - "raw": "'#Э'" + "raw": "'#Э'", + "loneSurrogates": false } } ], @@ -3869,7 +3899,8 @@ "end": 1863 }, "value": "#Ю", - "raw": "'#Ю'" + "raw": "'#Ю'", + "loneSurrogates": false } } ], @@ -3994,7 +4025,8 @@ "end": 1914 }, "value": "#Я", - "raw": "'#Я'" + "raw": "'#Я'", + "loneSurrogates": false } } ], @@ -4119,7 +4151,8 @@ "end": 1965 }, "value": "#Ё", - "raw": "'#Ё'" + "raw": "'#Ё'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/parserStrictMode15-negative.json b/crates/swc_ecma_parser/tests/tsc/parserStrictMode15-negative.json index 54fe55cf6509..155c8f0da3ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserStrictMode15-negative.json +++ b/crates/swc_ecma_parser/tests/tsc/parserStrictMode15-negative.json @@ -18,7 +18,8 @@ "end": 13 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/parserStrictMode16.json b/crates/swc_ecma_parser/tests/tsc/parserStrictMode16.json index 238e6d718003..0d03bf6c6a0c 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserStrictMode16.json +++ b/crates/swc_ecma_parser/tests/tsc/parserStrictMode16.json @@ -18,7 +18,8 @@ "end": 13 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -109,7 +110,8 @@ "end": 61 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json index 41e4b238c15e..3181fc45a35b 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json +++ b/crates/swc_ecma_parser/tests/tsc/parserSymbolProperty6.json @@ -70,7 +70,8 @@ "end": 63 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", diff --git a/crates/swc_ecma_parser/tests/tsc/parserUnicode1.json b/crates/swc_ecma_parser/tests/tsc/parserUnicode1.json index 522dc3df44f3..f9bc4f77f915 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserUnicode1.json +++ b/crates/swc_ecma_parser/tests/tsc/parserUnicode1.json @@ -140,7 +140,8 @@ "end": 101 }, "value": "#6.1: var \\u0078x = 1; xx === 6. Actual: ", - "raw": "'#6.1: var \\\\u0078x = 1; xx === 6. Actual: '" + "raw": "'#6.1: var \\\\u0078x = 1; xx === 6. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -236,7 +237,8 @@ "end": 184 }, "value": "#6.2: var \\u0078x = 1; xx === 6. Actual: ", - "raw": "'#6.2: var \\\\u0078x = 1; xx === 6. Actual: '" + "raw": "'#6.2: var \\\\u0078x = 1; xx === 6. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json b/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json index 573eb50f1e5f..c5656f2efbf1 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json +++ b/crates/swc_ecma_parser/tests/tsc/parserUsingConstructorAsIdentifier.json @@ -922,7 +922,8 @@ "end": 949 }, "value": "constructor", - "raw": "\"constructor\"" + "raw": "\"constructor\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/parserindenter.json b/crates/swc_ecma_parser/tests/tsc/parserindenter.json index 979a3319fbce..4794672514c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/parserindenter.json +++ b/crates/swc_ecma_parser/tests/tsc/parserindenter.json @@ -823,7 +823,8 @@ "end": 1605 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -1367,7 +1368,8 @@ "end": 1999 }, "value": "GetIndentationEdits(", - "raw": "\"GetIndentationEdits(\"" + "raw": "\"GetIndentationEdits(\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -1376,7 +1378,8 @@ "end": 2028 }, "value": "t1=[", - "raw": "\"t1=[\"" + "raw": "\"t1=[\"", + "loneSurrogates": false } }, "right": { @@ -1437,7 +1440,8 @@ "end": 2063 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } }, "right": { @@ -1498,7 +1502,8 @@ "end": 2097 }, "value": "], ", - "raw": "\"], \"" + "raw": "\"], \"", + "loneSurrogates": false } }, "right": { @@ -1508,7 +1513,8 @@ "end": 2126 }, "value": "t2=[", - "raw": "\"t2=[\"" + "raw": "\"t2=[\"", + "loneSurrogates": false } }, "right": { @@ -1555,7 +1561,8 @@ "end": 2156 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false }, "alternate": { "type": "ParenthesisExpression", @@ -1634,7 +1641,8 @@ "end": 2196 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } }, "right": { @@ -1699,7 +1707,8 @@ "end": 2235 }, "value": "]", - "raw": "\"]\"" + "raw": "\"]\"", + "loneSurrogates": false } }, "right": { @@ -1709,7 +1718,8 @@ "end": 2261 }, "value": ")", - "raw": "\")\"" + "raw": "\")\"", + "loneSurrogates": false } } } @@ -2206,7 +2216,8 @@ "end": 2580 }, "value": "edit: minChar=", - "raw": "\"edit: minChar=\"" + "raw": "\"edit: minChar=\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -2241,7 +2252,8 @@ "end": 2611 }, "value": ", limChar=", - "raw": "\", limChar=\"" + "raw": "\", limChar=\"", + "loneSurrogates": false } }, "right": { @@ -2317,7 +2329,8 @@ "end": 2657 }, "value": ", text=\"", - "raw": "\", text=\\\"\"" + "raw": "\", text=\\\"\"", + "loneSurrogates": false } }, "right": { @@ -2404,7 +2417,8 @@ "end": 2715 }, "value": "\"", - "raw": "\"\\\"\"" + "raw": "\"\\\"\"", + "loneSurrogates": false } } } @@ -6818,7 +6832,8 @@ "end": 9064 }, "value": "\t", - "raw": "'\\t'" + "raw": "'\\t'", + "loneSurrogates": false } }, "consequent": { @@ -6985,7 +7000,8 @@ "end": 9209 }, "value": " ", - "raw": "' '" + "raw": "' '", + "loneSurrogates": false } }, "consequent": { @@ -10516,7 +10532,8 @@ "end": 14033 }, "value": "//", - "raw": "\"//\"" + "raw": "\"//\"", + "loneSurrogates": false } }, "right": { @@ -10568,7 +10585,8 @@ "end": 14066 }, "value": "/*", - "raw": "\"/*\"" + "raw": "\"/*\"", + "loneSurrogates": false } } } @@ -13628,7 +13646,8 @@ "end": 20089 }, "value": "Formatting error: Will remove user code when indenting the line: ", - "raw": "\"Formatting error: Will remove user code when indenting the line: \"" + "raw": "\"Formatting error: Will remove user code when indenting the line: \"", + "loneSurrogates": false }, "right": { "type": "CallExpression", @@ -14276,7 +14295,8 @@ "end": 20826 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "alternate": null @@ -14433,7 +14453,8 @@ "end": 20965 }, "value": "\t", - "raw": "'\\t'" + "raw": "'\\t'", + "loneSurrogates": false } }, "consequent": { @@ -14611,7 +14632,8 @@ "end": 21217 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "alternate": { @@ -15135,7 +15157,8 @@ "end": 21729 }, "value": " ", - "raw": "' '" + "raw": "' '", + "loneSurrogates": false } }, { @@ -15161,7 +15184,8 @@ "end": 21746 }, "value": "\t", - "raw": "\"\\t\"" + "raw": "\"\\t\"", + "loneSurrogates": false } }, "definite": false @@ -15202,7 +15226,8 @@ "end": 21774 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -15557,7 +15582,8 @@ "end": 22176 }, "value": " ", - "raw": "' '" + "raw": "' '", + "loneSurrogates": false } } }, @@ -17941,7 +17967,8 @@ "end": 24648 }, "value": "Error: caller must pass 'null' for undefined position", - "raw": "\"Error: caller must pass 'null' for undefined position\"" + "raw": "\"Error: caller must pass 'null' for undefined position\"", + "loneSurrogates": false } } ], @@ -23748,7 +23775,8 @@ "end": 33038 }, "value": " ", - "raw": "' '" + "raw": "' '", + "loneSurrogates": false } }, "right": { @@ -23814,7 +23842,8 @@ "end": 33072 }, "value": "\t", - "raw": "'\\t'" + "raw": "'\\t'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json index 8145852a71ba..c3159be616c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples.json @@ -2351,7 +2351,8 @@ "end": 1261 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "falseType": { @@ -2367,7 +2368,8 @@ "end": 1267 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -2468,7 +2470,8 @@ "end": 1301 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json index 2ad6a80e6ea8..87da3bf9a008 100644 --- a/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json +++ b/crates/swc_ecma_parser/tests/tsc/partiallyNamedTuples2.json @@ -1247,7 +1247,8 @@ "end": 658 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", diff --git a/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors2.json b/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors2.json index 1e40b6a48893..473d0b3e18ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors2.json +++ b/crates/swc_ecma_parser/tests/tsc/plainJSGrammarErrors2.json @@ -64,7 +64,8 @@ "end": 230 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json index e8d644b4ea37..87fe7b790fcf 100644 --- a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithEnumType.json @@ -100,7 +100,8 @@ "end": 65 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -274,7 +275,8 @@ "end": 204 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -392,7 +394,8 @@ "end": 250 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json index 774feb1ccd4f..ef95f37d9a80 100644 --- a/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/plusOperatorWithStringType.json @@ -115,7 +115,8 @@ "end": 77 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 84 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 125 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 190 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -600,7 +604,8 @@ "end": 388 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -665,7 +670,8 @@ "end": 420 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -685,7 +691,8 @@ "end": 427 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -753,7 +760,8 @@ "end": 461 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1354,7 +1362,8 @@ "end": 801 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/preserveValueImports.json b/crates/swc_ecma_parser/tests/tsc/preserveValueImports.json index 99a0cfab742b..9e9764fc5452 100644 --- a/crates/swc_ecma_parser/tests/tsc/preserveValueImports.json +++ b/crates/swc_ecma_parser/tests/tsc/preserveValueImports.json @@ -238,7 +238,8 @@ "end": 236 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -276,7 +277,8 @@ "end": 282 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -328,7 +330,8 @@ "end": 361 }, "value": "./d", - "raw": "\"./d\"" + "raw": "\"./d\"", + "loneSurrogates": false } } }, @@ -363,7 +366,8 @@ "end": 389 }, "value": "./d", - "raw": "\"./d\"" + "raw": "\"./d\"", + "loneSurrogates": false } } }, @@ -416,7 +420,8 @@ "end": 440 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -475,7 +480,8 @@ "end": 468 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/preserveValueImports_errors.json b/crates/swc_ecma_parser/tests/tsc/preserveValueImports_errors.json index 169234005b69..e2fcc61f2857 100644 --- a/crates/swc_ecma_parser/tests/tsc/preserveValueImports_errors.json +++ b/crates/swc_ecma_parser/tests/tsc/preserveValueImports_errors.json @@ -203,7 +203,8 @@ "end": 264 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -243,7 +244,8 @@ "end": 289 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -281,7 +283,8 @@ "end": 317 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -321,7 +324,8 @@ "end": 342 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -359,7 +363,8 @@ "end": 401 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -399,7 +404,8 @@ "end": 431 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -437,7 +443,8 @@ "end": 464 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -477,7 +484,8 @@ "end": 494 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -526,7 +534,8 @@ "end": 545 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -574,7 +583,8 @@ "end": 576 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -622,7 +632,8 @@ "end": 638 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -670,7 +681,8 @@ "end": 674 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -728,7 +740,8 @@ "end": 724 }, "value": "./d", - "raw": "\"./d\"" + "raw": "\"./d\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -787,7 +800,8 @@ "end": 785 }, "value": "./d", - "raw": "\"./d\"" + "raw": "\"./d\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -827,7 +841,8 @@ "end": 835 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -867,7 +882,8 @@ "end": 865 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -966,7 +982,8 @@ "end": 944 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -1006,7 +1023,8 @@ "end": 974 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/preserveValueImports_importsNotUsedAsValues.json b/crates/swc_ecma_parser/tests/tsc/preserveValueImports_importsNotUsedAsValues.json index dcb326e4eb28..733a656e0a88 100644 --- a/crates/swc_ecma_parser/tests/tsc/preserveValueImports_importsNotUsedAsValues.json +++ b/crates/swc_ecma_parser/tests/tsc/preserveValueImports_importsNotUsedAsValues.json @@ -179,7 +179,8 @@ "end": 254 }, "value": "./mod.js", - "raw": "\"./mod.js\"" + "raw": "\"./mod.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -257,7 +258,8 @@ "end": 333 }, "value": "./mod.js", - "raw": "\"./mod.js\"" + "raw": "\"./mod.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/tsc/preserveValueImports_mixedImports.json b/crates/swc_ecma_parser/tests/tsc/preserveValueImports_mixedImports.json index 5319c1da363d..bce4f55eb3f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/preserveValueImports_mixedImports.json +++ b/crates/swc_ecma_parser/tests/tsc/preserveValueImports_mixedImports.json @@ -134,7 +134,8 @@ "end": 251 }, "value": "./exports.js", - "raw": "\"./exports.js\"" + "raw": "\"./exports.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -193,7 +194,8 @@ "end": 345 }, "value": "./exports.js", - "raw": "\"./exports.js\"" + "raw": "\"./exports.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json b/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json index d2e4ae4131d3..7441887787b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json +++ b/crates/swc_ecma_parser/tests/tsc/primtiveTypesAreIdentical.json @@ -806,7 +806,8 @@ "end": 422 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -874,7 +875,8 @@ "end": 445 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json b/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json index fe2e555c10c5..c0fbd998ccc2 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAccessors.json @@ -68,7 +68,8 @@ "end": 73 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -205,7 +206,8 @@ "end": 140 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -322,7 +324,8 @@ "end": 200 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -368,7 +371,8 @@ "end": 227 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json index 13d14bd25d3f..3a10a35e4515 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAccessorsCallExpression.json @@ -835,7 +835,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -845,7 +846,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -855,7 +857,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } @@ -960,7 +963,8 @@ }, "tail": false, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -970,7 +974,8 @@ }, "tail": false, "cooked": "and", - "raw": "and" + "raw": "and", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -980,7 +985,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json index d59448171fa4..56a82a04d968 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameAndIndexSignature.json @@ -128,7 +128,8 @@ "end": 92 }, "value": "#bar", - "raw": "\"#bar\"" + "raw": "\"#bar\"", + "loneSurrogates": false } }, "value": { @@ -157,7 +158,8 @@ "end": 107 }, "value": "#bar", - "raw": "\"#bar\"" + "raw": "\"#bar\"", + "loneSurrogates": false } } }, @@ -315,7 +317,8 @@ "end": 348 }, "value": "#foo", - "raw": "\"#foo\"" + "raw": "\"#foo\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameCircularReference.json b/crates/swc_ecma_parser/tests/tsc/privateNameCircularReference.json index 335ae4156753..067cd608fb02 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameCircularReference.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameCircularReference.json @@ -136,7 +136,8 @@ "end": 100 }, "value": "#baz", - "raw": "\"#baz\"" + "raw": "\"#baz\"", + "loneSurrogates": false } }, "value": { @@ -165,7 +166,8 @@ "end": 115 }, "value": "#baz", - "raw": "\"#baz\"" + "raw": "\"#baz\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json b/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json index 3c4bd990be05..b6d7197ed57b 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameClassExpressionLoop.json @@ -226,7 +226,8 @@ "end": 120 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json index 27543869353f..57754684daf6 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName1.json @@ -47,7 +47,8 @@ "end": 59 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -119,7 +120,8 @@ "end": 99 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -191,7 +193,8 @@ "end": 138 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -268,7 +271,8 @@ "end": 182 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } }, @@ -314,7 +318,8 @@ "end": 205 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } } @@ -452,7 +457,8 @@ "end": 280 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -472,7 +478,8 @@ "end": 288 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -492,7 +499,8 @@ "end": 296 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -512,7 +520,8 @@ "end": 304 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } }, { @@ -532,7 +541,8 @@ "end": 312 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } ] @@ -780,7 +790,8 @@ "end": 462 }, "value": "e", - "raw": "'e'" + "raw": "'e'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json index 5315a81309ed..053485c6d109 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName2.json @@ -281,7 +281,8 @@ "end": 122 }, "value": "_", - "raw": "\"_\"" + "raw": "\"_\"", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json index 483ac4b7d335..12c05f6c85e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName3.json @@ -587,7 +587,8 @@ "end": 370 }, "value": "NAME", - "raw": "\"NAME\"" + "raw": "\"NAME\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName4.json b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName4.json index 6440ed0aaf8a..62d166e99c00 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName4.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameComputedPropertyName4.json @@ -77,7 +77,8 @@ "end": 197 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "function": { @@ -188,7 +189,8 @@ "end": 257 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "function": { @@ -299,7 +301,8 @@ "end": 317 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "value": { @@ -309,7 +312,8 @@ "end": 327 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json b/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json index 89b03602d0d1..88d36e77ba4c 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameDuplicateField.json @@ -75,7 +75,8 @@ "end": 114 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -108,7 +109,8 @@ "end": 136 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -168,7 +170,8 @@ "end": 205 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -271,7 +274,8 @@ "end": 293 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -325,7 +329,8 @@ "end": 325 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -391,7 +396,8 @@ "end": 394 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -528,7 +534,8 @@ "end": 504 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -561,7 +568,8 @@ "end": 533 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -621,7 +629,8 @@ "end": 608 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -724,7 +733,8 @@ "end": 709 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -778,7 +788,8 @@ "end": 748 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -844,7 +855,8 @@ "end": 823 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -1059,7 +1071,8 @@ "end": 976 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -1296,7 +1309,8 @@ "end": 1161 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1552,7 +1566,8 @@ "end": 1365 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -1789,7 +1804,8 @@ "end": 1576 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2058,7 +2074,8 @@ "end": 1794 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2097,7 +2114,8 @@ "end": 1816 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -2178,7 +2196,8 @@ "end": 1896 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2308,7 +2327,8 @@ "end": 1995 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2368,7 +2388,8 @@ "end": 2027 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2455,7 +2476,8 @@ "end": 2103 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2619,7 +2641,8 @@ "end": 2224 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2749,7 +2772,8 @@ "end": 2336 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2879,7 +2903,8 @@ "end": 2448 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2939,7 +2964,8 @@ "end": 2487 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -3026,7 +3052,8 @@ "end": 2573 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -3281,7 +3308,8 @@ "end": 2743 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -3586,7 +3614,8 @@ "end": 2959 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -3910,7 +3939,8 @@ "end": 3197 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -4215,7 +4245,8 @@ "end": 3442 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -4497,7 +4528,8 @@ "end": 3683 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -4530,7 +4562,8 @@ "end": 3705 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -4590,7 +4623,8 @@ "end": 3787 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -4693,7 +4727,8 @@ "end": 3888 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -4747,7 +4782,8 @@ "end": 3920 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -4813,7 +4849,8 @@ "end": 4002 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -4950,7 +4987,8 @@ "end": 4125 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -4983,7 +5021,8 @@ "end": 4154 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -5043,7 +5082,8 @@ "end": 4242 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -5146,7 +5186,8 @@ "end": 4356 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -5200,7 +5241,8 @@ "end": 4395 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -5266,7 +5308,8 @@ "end": 4483 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -5481,7 +5524,8 @@ "end": 4655 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -5718,7 +5762,8 @@ "end": 4866 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -5974,7 +6019,8 @@ "end": 5096 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -6211,7 +6257,8 @@ "end": 5333 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -6480,7 +6527,8 @@ "end": 5583 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -6519,7 +6567,8 @@ "end": 5605 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -6600,7 +6649,8 @@ "end": 5698 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -6730,7 +6780,8 @@ "end": 5810 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -6790,7 +6841,8 @@ "end": 5842 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -6877,7 +6929,8 @@ "end": 5935 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -7041,7 +7094,8 @@ "end": 6069 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -7171,7 +7225,8 @@ "end": 6194 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -7301,7 +7356,8 @@ "end": 6319 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -7361,7 +7417,8 @@ "end": 6358 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -7448,7 +7505,8 @@ "end": 6453 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -7703,7 +7761,8 @@ "end": 6642 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -8008,7 +8067,8 @@ "end": 6888 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -8332,7 +8392,8 @@ "end": 7152 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -8637,7 +8698,8 @@ "end": 7420 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json b/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json index 34dac6794d03..064e9c56a71a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameES5Ban.json @@ -151,7 +151,8 @@ "end": 118 }, "value": "hello world", - "raw": "\"hello world\"" + "raw": "\"hello world\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -248,7 +249,8 @@ "end": 171 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json index 9e53b5353eb7..8845443225ad 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldAccess.json @@ -47,7 +47,8 @@ "end": 59 }, "value": "hello world", - "raw": "\"hello world\"" + "raw": "\"hello world\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json index cf8dc631a5fc..ae75c8954937 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldCallExpression.json @@ -828,7 +828,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -838,7 +839,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -848,7 +850,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } @@ -953,7 +956,8 @@ }, "tail": false, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -963,7 +967,8 @@ }, "tail": false, "cooked": "and", - "raw": "and" + "raw": "and", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -973,7 +978,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json index c52509266f0e..0008c93b10f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldClassExpression.json @@ -122,7 +122,8 @@ "end": 105 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json b/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json index 1222e6ad82b4..a48dee9dd35a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameFieldsESNext.json @@ -113,7 +113,8 @@ "end": 115 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -291,7 +292,8 @@ "end": 195 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -399,7 +401,8 @@ "end": 255 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, @@ -610,7 +613,8 @@ "end": 358 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json index 41b8749cf838..f6e1bd0dfd4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameInLhsReceiverExpression.json @@ -308,7 +308,8 @@ "end": 153 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -487,7 +488,8 @@ "end": 221 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json index 7c916f0206e1..df5e048156c9 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethod.json @@ -102,7 +102,8 @@ "end": 100 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -236,7 +237,8 @@ "end": 163 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json index 9a38bb1ef684..066d90d6a7c3 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameMethodCallExpression.json @@ -785,7 +785,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -795,7 +796,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -805,7 +807,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } @@ -910,7 +913,8 @@ }, "tail": false, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -920,7 +924,8 @@ }, "tail": false, "cooked": "and", - "raw": "and" + "raw": "and", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -930,7 +935,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1294,7 +1300,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1304,7 +1311,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1314,7 +1322,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json b/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json index 293a646305c7..69771b4437f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameReadonly.json @@ -192,7 +192,8 @@ "end": 125 }, "value": "should log this then throw", - "raw": "\"should log this then throw\"" + "raw": "\"should log this then throw\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json index e08682e0978a..5c744b2a8142 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessors.json @@ -68,7 +68,8 @@ "end": 80 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -205,7 +206,8 @@ "end": 161 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -325,7 +327,8 @@ "end": 219 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -374,7 +377,8 @@ "end": 244 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json index f65d3d3eb095..4b176917a7b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticAccessorsCallExpression.json @@ -837,7 +837,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -847,7 +848,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -857,7 +859,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } @@ -962,7 +965,8 @@ }, "tail": false, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -972,7 +976,8 @@ }, "tail": false, "cooked": "and", - "raw": "and" + "raw": "and", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -982,7 +987,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json index 97e255f2dbc5..f64348e25880 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldAccess.json @@ -47,7 +47,8 @@ "end": 66 }, "value": "hello world", - "raw": "\"hello world\"" + "raw": "\"hello world\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json index 865d7543ffbc..f08b38b8afac 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldCallExpression.json @@ -849,7 +849,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -859,7 +860,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -869,7 +871,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } @@ -974,7 +977,8 @@ }, "tail": false, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -984,7 +988,8 @@ }, "tail": false, "cooked": "and", - "raw": "and" + "raw": "and", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -994,7 +999,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json index ba5871f94985..2cbf64214372 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticFieldClassExpression.json @@ -122,7 +122,8 @@ "end": 112 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json index 96fd3a972deb..9be7a2d5db73 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethod.json @@ -102,7 +102,8 @@ "end": 107 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -205,7 +206,8 @@ "end": 156 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json index d5b5e2a7d3f2..5f448aba9e2b 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticMethodCallExpression.json @@ -803,7 +803,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -813,7 +814,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -823,7 +825,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } @@ -931,7 +934,8 @@ }, "tail": false, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -941,7 +945,8 @@ }, "tail": false, "cooked": "and", - "raw": "and" + "raw": "and", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -951,7 +956,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1324,7 +1330,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1334,7 +1341,8 @@ }, "tail": false, "cooked": "middle", - "raw": "middle" + "raw": "middle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1344,7 +1352,8 @@ }, "tail": true, "cooked": "tail", - "raw": "tail" + "raw": "tail", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json index fd621b78a528..1b2892d8287a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameStaticsAndStaticMethods.json @@ -1041,7 +1041,8 @@ "end": 651 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json b/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json index 872418a00feb..e1489009cf6a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameUnused.json @@ -53,7 +53,8 @@ "end": 98 }, "value": "used", - "raw": "\"used\"" + "raw": "\"used\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -86,7 +87,8 @@ "end": 122 }, "value": "unused", - "raw": "\"unused\"" + "raw": "\"unused\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json b/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json index 2840f2d5916a..d14106056ee3 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNameWhenNotUseDefineForClassFieldsInEsNext.json @@ -137,7 +137,8 @@ "end": 191 }, "value": "X_ z_ zz", - "raw": "\"X_ z_ zz\"" + "raw": "\"X_ z_ zz\"", + "loneSurrogates": false } }, "value": { @@ -810,7 +811,8 @@ "end": 782 }, "value": "X_ z_ zz", - "raw": "\"X_ z_ zz\"" + "raw": "\"X_ z_ zz\"", + "loneSurrogates": false } }, "value": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json index ecb4b99d09d7..951b149b2e1e 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndFields.json @@ -295,7 +295,8 @@ "end": 225 }, "value": "some string", - "raw": "\"some string\"" + "raw": "\"some string\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json index 858415e0897e..cddde8fb338a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndMethods.json @@ -1020,7 +1020,8 @@ "end": 606 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json index fd621b78a528..1b2892d8287a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndStaticMethods.json @@ -1041,7 +1041,8 @@ "end": 651 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json index af583bf9b4fd..d98bf703d05a 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAndkeyof.json @@ -400,7 +400,8 @@ "end": 248 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "definite": false } @@ -437,7 +438,8 @@ "end": 265 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, @@ -472,7 +474,8 @@ "end": 289 }, "value": "#fooField", - "raw": "\"#fooField\"" + "raw": "\"#fooField\"", + "loneSurrogates": false } } }, @@ -507,7 +510,8 @@ "end": 316 }, "value": "#fooMethod", - "raw": "\"#fooMethod\"" + "raw": "\"#fooMethod\"", + "loneSurrogates": false } } }, @@ -542,7 +546,8 @@ "end": 341 }, "value": "#fooProp", - "raw": "\"#fooProp\"" + "raw": "\"#fooProp\"", + "loneSurrogates": false } } }, @@ -577,7 +582,8 @@ "end": 367 }, "value": "fooField", - "raw": "\"fooField\"" + "raw": "\"fooField\"", + "loneSurrogates": false } } }, @@ -612,7 +618,8 @@ "end": 393 }, "value": "fooMethod", - "raw": "\"fooMethod\"" + "raw": "\"fooMethod\"", + "loneSurrogates": false } } }, @@ -647,7 +654,8 @@ "end": 417 }, "value": "fooProp", - "raw": "\"fooProp\"" + "raw": "\"fooProp\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json b/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json index 2f52b060a224..216b1c7209ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesAssertion.json @@ -106,7 +106,8 @@ "end": 178 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -522,7 +523,8 @@ "end": 376 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json index 96315c5cb35c..5fa8efa1d508 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-1.json @@ -258,7 +258,8 @@ "end": 297 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -291,7 +292,8 @@ "end": 400 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json index 8c59f7128d18..1e1ea65e4d7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesConstructorChain-2.json @@ -304,7 +304,8 @@ "end": 314 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -337,7 +338,8 @@ "end": 417 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json index 5717b8dad8e9..75adf5b56b62 100644 --- a/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json +++ b/crates/swc_ecma_parser/tests/tsc/privateNamesUnique-2.json @@ -107,7 +107,8 @@ "end": 94 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -296,7 +297,8 @@ "end": 244 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -345,7 +347,8 @@ "end": 276 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json b/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json index 06e6449b8da1..2821b832442f 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/propertiesOfGenericConstructorFunctions.json @@ -261,7 +261,8 @@ "end": 442 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -337,7 +338,8 @@ "end": 504 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false } }, { @@ -430,7 +432,8 @@ "end": 554 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -509,7 +512,8 @@ "end": 600 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -588,7 +592,8 @@ "end": 646 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -667,7 +672,8 @@ "end": 692 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccess.json b/crates/swc_ecma_parser/tests/tsc/propertyAccess.json index 90ff72fc5aae..83ea4523bd30 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccess.json @@ -359,7 +359,8 @@ "end": 164 }, "value": "three", - "raw": "'three'" + "raw": "'three'", + "loneSurrogates": false } }, { @@ -371,7 +372,8 @@ "end": 173 }, "value": "three", - "raw": "'three'" + "raw": "'three'", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -380,7 +382,8 @@ "end": 182 }, "value": "three", - "raw": "'three'" + "raw": "'three'", + "loneSurrogates": false } } ] @@ -508,7 +511,8 @@ "end": 232 }, "value": "N", - "raw": "'N'" + "raw": "'N'", + "loneSurrogates": false }, "value": { "type": "MemberExpression", @@ -545,7 +549,8 @@ "end": 252 }, "value": "E", - "raw": "'E'" + "raw": "'E'", + "loneSurrogates": false }, "value": { "type": "MemberExpression", @@ -834,7 +839,8 @@ "end": 396 }, "value": "ten", - "raw": "'ten'" + "raw": "'ten'", + "loneSurrogates": false } }, { @@ -854,7 +860,8 @@ "end": 412 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -911,7 +918,8 @@ "end": 444 }, "value": "world", - "raw": "'world'" + "raw": "'world'", + "loneSurrogates": false } }, { @@ -978,7 +986,8 @@ "end": 493 }, "value": "literal property", - "raw": "'literal property'" + "raw": "'literal property'", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -1598,7 +1607,8 @@ "end": 1141 }, "value": "literal property", - "raw": "'literal property'" + "raw": "'literal property'", + "loneSurrogates": false } } }, @@ -1708,7 +1718,8 @@ "end": 1299 }, "value": "wa wa wa wa wa", - "raw": "'wa wa wa wa wa'" + "raw": "'wa wa wa wa wa'", + "loneSurrogates": false } } }, @@ -1818,7 +1829,8 @@ "end": 1447 }, "value": "10", - "raw": "'10'" + "raw": "'10'", + "loneSurrogates": false } } }, @@ -1928,7 +1940,8 @@ "end": 1600 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -2385,7 +2398,8 @@ "end": 2151 }, "value": "what", - "raw": "'what'" + "raw": "'what'", + "loneSurrogates": false } } }, @@ -2560,7 +2574,8 @@ "end": 2481 }, "value": "N", - "raw": "'N'" + "raw": "'N'", + "loneSurrogates": false } } }, @@ -2680,7 +2695,8 @@ "end": 2525 }, "value": "zzz", - "raw": "'zzz'" + "raw": "'zzz'", + "loneSurrogates": false } } }, @@ -3299,7 +3315,8 @@ "end": 3296 }, "value": "zzzz", - "raw": "'zzzz'" + "raw": "'zzzz'", + "loneSurrogates": false } } }, @@ -4102,7 +4119,8 @@ "end": 4352 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -4222,7 +4240,8 @@ "end": 4518 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json index 7b57cc93a4b4..96a40c9285d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints.json @@ -174,7 +174,8 @@ "end": 189 }, "value": "getDate", - "raw": "'getDate'" + "raw": "'getDate'", + "loneSurrogates": false } } }, @@ -784,7 +785,8 @@ "end": 386 }, "value": "getDate", - "raw": "'getDate'" + "raw": "'getDate'", + "loneSurrogates": false } } }, @@ -1098,7 +1100,8 @@ "end": 483 }, "value": "getDate", - "raw": "'getDate'" + "raw": "'getDate'", + "loneSurrogates": false } } }, @@ -1268,7 +1271,8 @@ "end": 563 }, "value": "getDate", - "raw": "'getDate'" + "raw": "'getDate'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json index 27ebe6194332..83777511fc55 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints2.json @@ -68,7 +68,8 @@ "end": 124 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -169,7 +170,8 @@ "end": 188 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -385,7 +387,8 @@ "end": 286 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -607,7 +610,8 @@ "end": 383 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1482,7 +1486,8 @@ "end": 954 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2200,7 +2205,8 @@ "end": 1288 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2465,7 +2471,8 @@ "end": 1425 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2670,7 +2677,8 @@ "end": 1517 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json index ec1943a781a7..9ea64257b394 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints3.json @@ -68,7 +68,8 @@ "end": 124 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -169,7 +170,8 @@ "end": 188 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -385,7 +387,8 @@ "end": 308 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -607,7 +610,8 @@ "end": 427 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1482,7 +1486,8 @@ "end": 672 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1965,7 +1970,8 @@ "end": 869 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2173,7 +2179,8 @@ "end": 1058 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -2343,7 +2350,8 @@ "end": 1240 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json index bf8918dd873c..888213184ff3 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints4.json @@ -174,7 +174,8 @@ "end": 82 }, "value": "notHere", - "raw": "'notHere'" + "raw": "'notHere'", + "loneSurrogates": false } } }, @@ -784,7 +785,8 @@ "end": 289 }, "value": "notHere", - "raw": "'notHere'" + "raw": "'notHere'", + "loneSurrogates": false } } }, @@ -1100,7 +1102,8 @@ "end": 396 }, "value": "notHere", - "raw": "'notHere'" + "raw": "'notHere'", + "loneSurrogates": false } } }, @@ -1270,7 +1273,8 @@ "end": 479 }, "value": "notHere", - "raw": "'notHere'" + "raw": "'notHere'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json index 22db74c3d18b..4b2262d8cc68 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithConstraints5.json @@ -68,7 +68,8 @@ "end": 40 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -169,7 +170,8 @@ "end": 104 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -385,7 +387,8 @@ "end": 202 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1152,7 +1155,8 @@ "end": 425 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1507,7 +1511,8 @@ "end": 552 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -1677,7 +1682,8 @@ "end": 641 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json index 233710c5f5c6..ba30f53938a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessOnTypeParameterWithoutConstraints.json @@ -174,7 +174,8 @@ "end": 70 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, @@ -730,7 +731,8 @@ "end": 271 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, @@ -1029,7 +1031,8 @@ "end": 367 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, @@ -1199,7 +1202,8 @@ "end": 435 }, "value": "toString", - "raw": "'toString'" + "raw": "'toString'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json index 368895f87d89..b08d92ee3ae5 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignature.json @@ -279,7 +279,8 @@ "end": 136 }, "value": "this is fine", - "raw": "'this is fine'" + "raw": "'this is fine'", + "loneSurrogates": false } } } @@ -435,7 +436,8 @@ "end": 207 }, "value": "that's ok", - "raw": "\"that's ok\"" + "raw": "\"that's ok\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json index bce91c9542f1..5db0c004b2f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessStringIndexSignatureNoImplicitAny.json @@ -272,7 +272,8 @@ "end": 159 }, "value": "this is fine", - "raw": "'this is fine'" + "raw": "'this is fine'", + "loneSurrogates": false } } } @@ -428,7 +429,8 @@ "end": 239 }, "value": "not allowed either", - "raw": "\"not allowed either\"" + "raw": "\"not allowed either\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json b/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json index fce93fa79d29..2cbafd9915a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAccessWidening.json @@ -523,7 +523,8 @@ "end": 311 }, "value": "concat", - "raw": "\"concat\"" + "raw": "\"concat\"", + "loneSurrogates": false } } }, @@ -846,7 +847,8 @@ "end": 544 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -991,7 +993,8 @@ "end": 664 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json index 89ed4a1f9092..ab26c275dea4 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnImportedSymbol.json @@ -85,7 +85,8 @@ "end": 152 }, "value": "./mod1", - "raw": "'./mod1'" + "raw": "'./mod1'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json index eec60c1d6e0d..cc2e0dc66eff 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentOnUnresolvedImportedSymbol.json @@ -37,7 +37,8 @@ "end": 104 }, "value": "arglebaz", - "raw": "'arglebaz'" + "raw": "'arglebaz'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json index 601f3d04174a..bf981c0722d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyAssignmentUseParentType3.json @@ -115,7 +115,8 @@ "end": 132 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -235,7 +236,8 @@ "end": 191 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -280,7 +282,8 @@ "end": 233 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -349,7 +352,8 @@ "end": 251 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -526,7 +530,8 @@ "end": 324 }, "value": "456", - "raw": "\"456\"" + "raw": "\"456\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json index 43ca5084eeb9..049966adfeb3 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors.json @@ -68,7 +68,8 @@ "end": 92 }, "value": "oh no", - "raw": "'oh no'" + "raw": "'oh no'", + "loneSurrogates": false } } ] @@ -133,7 +134,8 @@ "end": 130 }, "value": "yep", - "raw": "'yep'" + "raw": "'yep'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json index 178efc4ab956..16f14ba841b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors2.json @@ -203,7 +203,8 @@ }, "tail": false, "cooked": "x was set to ", - "raw": "x was set to " + "raw": "x was set to ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -213,7 +214,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json index 7b7bdac5ed39..aa0e205a908d 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors3.json @@ -46,7 +46,8 @@ "end": 112 }, "value": "rustling noise in the bushes", - "raw": "'rustling noise in the bushes'" + "raw": "'rustling noise in the bushes'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -496,7 +497,8 @@ "end": 456 }, "value": "RAWR!", - "raw": "'RAWR!'" + "raw": "'RAWR!'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json index 732c48bfd18b..2b61d1ba3ef0 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors4.json @@ -191,7 +191,8 @@ "end": 174 }, "value": "RAWR!", - "raw": "'RAWR!'" + "raw": "'RAWR!'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json index 9afa9091591d..41b4df0c0e62 100644 --- a/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json +++ b/crates/swc_ecma_parser/tests/tsc/propertyOverridesAccessors5.json @@ -68,7 +68,8 @@ "end": 92 }, "value": "oh no", - "raw": "'oh no'" + "raw": "'oh no'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json b/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json index cf43c83ba4cf..9e9e4685a623 100644 --- a/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/protectedInstanceMemberAccessibility.json @@ -108,7 +108,8 @@ "end": 86 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json index 0ffb1df72166..947b7d8b5970 100644 --- a/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json +++ b/crates/swc_ecma_parser/tests/tsc/prototypePropertyAssignmentMergedTypeReference.json @@ -137,7 +137,8 @@ "end": 233 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json b/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json index eecfd14f19ee..6fcccb308904 100644 --- a/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json +++ b/crates/swc_ecma_parser/tests/tsc/quotedConstructors.json @@ -39,7 +39,8 @@ "end": 28 }, "value": "constructor", - "raw": "\"constructor\"" + "raw": "\"constructor\"", + "loneSurrogates": false }, "params": [], "body": { @@ -149,7 +150,8 @@ "end": 96 }, "value": "constructor", - "raw": "'constructor'" + "raw": "'constructor'", + "loneSurrogates": false }, "params": [], "body": { @@ -264,7 +266,8 @@ "end": 165 }, "value": "constructor", - "raw": "'constructor'" + "raw": "'constructor'", + "loneSurrogates": false } }, "function": { @@ -394,7 +397,8 @@ "end": 236 }, "value": "constructor", - "raw": "\"constructor\"" + "raw": "\"constructor\"", + "loneSurrogates": false }, "params": [], "body": { @@ -517,7 +521,8 @@ "end": 301 }, "value": "constructor", - "raw": "\"constructor\"" + "raw": "\"constructor\"", + "loneSurrogates": false }, "params": [], "decorators": [], @@ -580,7 +585,8 @@ "end": 341 }, "value": "constructor", - "raw": "\"\\x63onstructor\"" + "raw": "\"\\x63onstructor\"", + "loneSurrogates": false }, "params": [], "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/reExportDefaultExport.json b/crates/swc_ecma_parser/tests/tsc/reExportDefaultExport.json index b098f617caa5..982ee43b779c 100644 --- a/crates/swc_ecma_parser/tests/tsc/reExportDefaultExport.json +++ b/crates/swc_ecma_parser/tests/tsc/reExportDefaultExport.json @@ -108,7 +108,8 @@ "end": 147 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -148,7 +149,8 @@ "end": 171 }, "value": "./m1", - "raw": "\"./m1\"" + "raw": "\"./m1\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json b/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json index 06eb0bbded8e..17489ede20da 100644 --- a/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json +++ b/crates/swc_ecma_parser/tests/tsc/reExportJsFromTs.json @@ -67,7 +67,8 @@ "end": 97 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ] @@ -106,7 +107,8 @@ "end": 182 }, "value": "../lib/constants", - "raw": "\"../lib/constants\"" + "raw": "\"../lib/constants\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json b/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json index 4cc6ec3afa22..5c8d105600b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyArraysAndTuples2.json @@ -801,7 +801,8 @@ "end": 554 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json b/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json index d5b0bd536bad..84deb77effdb 100644 --- a/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/readonlyRestParameters.json @@ -435,7 +435,8 @@ "end": 203 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -447,7 +448,8 @@ "end": 210 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ], @@ -487,7 +489,8 @@ "end": 225 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -753,7 +756,8 @@ "end": 336 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -765,7 +769,8 @@ "end": 343 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ], @@ -805,7 +810,8 @@ "end": 358 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -905,7 +911,8 @@ "end": 399 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -917,7 +924,8 @@ "end": 406 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ], @@ -957,7 +965,8 @@ "end": 421 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -1173,7 +1182,8 @@ "end": 524 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveInitializer.json b/crates/swc_ecma_parser/tests/tsc/recursiveInitializer.json index 6fc44fbc34df..a0b20638a7f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveInitializer.json @@ -238,7 +238,8 @@ "end": 161 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -418,7 +419,8 @@ "end": 229 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json b/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json index 6060402d8180..b14e4076f8ef 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveMappedTypes.json @@ -2862,7 +2862,8 @@ "end": 1497 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2885,7 +2886,8 @@ "end": 1505 }, "value": "list", - "raw": "\"list\"" + "raw": "\"list\"", + "loneSurrogates": false } } } @@ -2904,7 +2906,8 @@ "end": 1526 }, "value": "minimum_count", - "raw": "\"minimum_count\"" + "raw": "\"minimum_count\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2938,7 +2941,8 @@ "end": 1555 }, "value": "maximum_count", - "raw": "\"maximum_count\"" + "raw": "\"maximum_count\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2972,7 +2976,8 @@ "end": 1582 }, "value": "collapsable", - "raw": "\"collapsable\"" + "raw": "\"collapsable\"", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -3006,7 +3011,8 @@ "end": 1643 }, "value": "each", - "raw": "\"each\"" + "raw": "\"each\"", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json index d223ab958ed5..bb879075149d 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypeReferences1.json @@ -679,7 +679,8 @@ "end": 330 }, "value": "div", - "raw": "\"div\"" + "raw": "\"div\"", + "loneSurrogates": false } }, { @@ -708,7 +709,8 @@ "end": 346 }, "value": "parent", - "raw": "\"parent\"" + "raw": "\"parent\"", + "loneSurrogates": false } } ] @@ -732,7 +734,8 @@ "end": 364 }, "value": "div", - "raw": "\"div\"" + "raw": "\"div\"", + "loneSurrogates": false } }, { @@ -761,7 +764,8 @@ "end": 385 }, "value": "first-child", - "raw": "\"first-child\"" + "raw": "\"first-child\"", + "loneSurrogates": false } } ] @@ -776,7 +780,8 @@ "end": 410 }, "value": "I'm the first child", - "raw": "\"I'm the first child\"" + "raw": "\"I'm the first child\"", + "loneSurrogates": false } } ] @@ -800,7 +805,8 @@ "end": 427 }, "value": "div", - "raw": "\"div\"" + "raw": "\"div\"", + "loneSurrogates": false } }, { @@ -829,7 +835,8 @@ "end": 449 }, "value": "second-child", - "raw": "\"second-child\"" + "raw": "\"second-child\"", + "loneSurrogates": false } } ] @@ -844,7 +851,8 @@ "end": 475 }, "value": "I'm the second child", - "raw": "\"I'm the second child\"" + "raw": "\"I'm the second child\"", + "loneSurrogates": false } } ] @@ -1086,7 +1094,8 @@ "end": 605 }, "value": "Test", - "raw": "\"Test\"" + "raw": "\"Test\"", + "loneSurrogates": false } }, { @@ -3930,7 +3939,8 @@ "end": 1543 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -4039,7 +4049,8 @@ "end": 1592 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -4115,7 +4126,8 @@ "end": 1634 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -4358,7 +4370,8 @@ "end": 1742 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -4467,7 +4480,8 @@ "end": 1792 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -4543,7 +4557,8 @@ "end": 1835 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -4786,7 +4801,8 @@ "end": 1928 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -4895,7 +4911,8 @@ "end": 1978 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -4971,7 +4988,8 @@ "end": 2021 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -6759,7 +6777,8 @@ "end": 2829 }, "value": "ul", - "raw": "'ul'" + "raw": "'ul'", + "loneSurrogates": false } }, { @@ -6979,7 +6998,8 @@ "end": 2920 }, "value": "li", - "raw": "'li'" + "raw": "'li'", + "loneSurrogates": false } }, { @@ -7020,7 +7040,8 @@ "end": 2938 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -7084,7 +7105,8 @@ }, "tail": false, "cooked": "#", - "raw": "#" + "raw": "#", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7094,7 +7116,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7116,7 +7139,8 @@ "end": 2976 }, "value": "noopener", - "raw": "'noopener'" + "raw": "'noopener'", + "loneSurrogates": false } }, { @@ -7128,7 +7152,8 @@ "end": 2990 }, "value": "data-index", - "raw": "'data-index'" + "raw": "'data-index'", + "loneSurrogates": false }, "value": { "type": "CallExpression", @@ -7172,7 +7197,8 @@ "end": 3004 }, "value": ".", - "raw": "'.'" + "raw": "'.'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json b/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json index cc138cf9f6e9..98b240d92431 100644 --- a/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json +++ b/crates/swc_ecma_parser/tests/tsc/recursiveTypesWithTypeof.json @@ -2247,7 +2247,8 @@ "end": 860 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json b/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json index 300743fe93a2..1c84173f3ef3 100644 --- a/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json +++ b/crates/swc_ecma_parser/tests/tsc/reexportClassDefinition.json @@ -79,7 +79,8 @@ "end": 120 }, "value": "./foo1", - "raw": "'./foo1'" + "raw": "'./foo1'", + "loneSurrogates": false } } }, @@ -151,7 +152,8 @@ "end": 202 }, "value": "./foo2", - "raw": "'./foo2'" + "raw": "'./foo2'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json b/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json index a4acd52fa3cf..b8a02a9bf7a1 100644 --- a/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json +++ b/crates/swc_ecma_parser/tests/tsc/relativePathMustResolve.json @@ -83,7 +83,8 @@ "end": 121 }, "value": "./test/foo", - "raw": "'./test/foo'" + "raw": "'./test/foo'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json b/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json index 95688112c5c4..bae8179191fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json +++ b/crates/swc_ecma_parser/tests/tsc/relativePathToDeclarationFile.json @@ -312,7 +312,8 @@ "end": 349 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } }, @@ -347,7 +348,8 @@ "end": 384 }, "value": "./other", - "raw": "'./other'" + "raw": "'./other'", + "loneSurrogates": false } } }, @@ -382,7 +384,8 @@ "end": 425 }, "value": "./sub/relMod", - "raw": "'./sub/relMod'" + "raw": "'./sub/relMod'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/renamed.json b/crates/swc_ecma_parser/tests/tsc/renamed.json index 71a4aadea491..dcd21347afa3 100644 --- a/crates/swc_ecma_parser/tests/tsc/renamed.json +++ b/crates/swc_ecma_parser/tests/tsc/renamed.json @@ -155,7 +155,8 @@ "end": 139 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -203,7 +204,8 @@ "end": 195 }, "value": "./b", - "raw": "'./b'" + "raw": "'./b'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json b/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json index 818160c4f82f..5fd4c0e33803 100644 --- a/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json +++ b/crates/swc_ecma_parser/tests/tsc/requireAssertsFromTypescript.json @@ -392,7 +392,8 @@ "end": 349 }, "value": "./ex", - "raw": "'./ex'" + "raw": "'./ex'", + "loneSurrogates": false } } ], @@ -456,7 +457,8 @@ "end": 380 }, "value": "./ex2", - "raw": "'./ex2'" + "raw": "'./ex2'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json index f26536a28a40..8fd54f6a37ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/requireOfESWithPropertyAccess.json @@ -65,7 +65,8 @@ "end": 139 }, "value": "./ch", - "raw": "'./ch'" + "raw": "'./ch'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json b/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json index 8e7a905bad36..857dec1157f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json +++ b/crates/swc_ecma_parser/tests/tsc/requireTwoPropertyAccesses.json @@ -84,7 +84,8 @@ "end": 136 }, "value": "value", - "raw": "\"value\"" + "raw": "\"value\"", + "loneSurrogates": false } } ] @@ -160,7 +161,8 @@ "end": 218 }, "value": "./mod", - "raw": "\"./mod\"" + "raw": "\"./mod\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern1.json b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern1.json index 2cb3a1dfd0c6..dbc0659fa613 100644 --- a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern1.json +++ b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern1.json @@ -186,7 +186,8 @@ "end": 63 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern2.json b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern2.json index b17085e0e0be..2c96fcb24944 100644 --- a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern2.json +++ b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern2.json @@ -157,7 +157,8 @@ "end": 57 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -206,7 +207,8 @@ "end": 69 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern3.json b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern3.json index 07e6fe8234b9..2e549a083a2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern3.json +++ b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern3.json @@ -175,7 +175,8 @@ "end": 60 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern4.json b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern4.json index bde0f9a722d9..9fd6f103903d 100644 --- a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern4.json +++ b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern4.json @@ -175,7 +175,8 @@ "end": 60 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -268,7 +269,8 @@ "end": 81 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern5.json b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern5.json index 1e9cc83b1284..b91c5ea4527f 100644 --- a/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern5.json +++ b/crates/swc_ecma_parser/tests/tsc/restElementWithAssignmentPattern5.json @@ -170,7 +170,8 @@ "end": 46 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -182,7 +183,8 @@ "end": 50 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json b/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json index 3d531fda47fc..976563b80784 100644 --- a/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/restTuplesFromContextualTypes.json @@ -5318,7 +5318,8 @@ "end": 1580 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -6386,7 +6387,8 @@ "end": 1890 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, @@ -6583,7 +6585,8 @@ "end": 1943 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -6766,7 +6769,8 @@ "end": 2001 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -7231,7 +7235,8 @@ "end": 2221 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/returnStatements.json b/crates/swc_ecma_parser/tests/tsc/returnStatements.json index 284bd92b3fc9..7265d2b5cfd6 100644 --- a/crates/swc_ecma_parser/tests/tsc/returnStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/returnStatements.json @@ -111,7 +111,8 @@ "end": 109 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json b/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json index 467d7f9c06a6..c06bba12c333 100644 --- a/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json +++ b/crates/swc_ecma_parser/tests/tsc/returnTagTypeGuard.json @@ -272,7 +272,8 @@ "end": 323 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } } @@ -662,7 +663,8 @@ "end": 685 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } } @@ -883,7 +885,8 @@ "end": 936 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/scannerNonAsciiHorizontalWhitespace.json b/crates/swc_ecma_parser/tests/tsc/scannerNonAsciiHorizontalWhitespace.json index 6c70bed06d7d..37bfe6c7098c 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerNonAsciiHorizontalWhitespace.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerNonAsciiHorizontalWhitespace.json @@ -18,7 +18,8 @@ "end": 67 }, "value": "  function f() {}", - "raw": "\"  function f() {}\"" + "raw": "\"  function f() {}\"", + "loneSurrogates": false } }, { @@ -34,7 +35,8 @@ "end": 135 }, "value": "  function f() {}", - "raw": "\"  function f() {}\"" + "raw": "\"  function f() {}\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/scannerS7.2_A1.5_T2.json b/crates/swc_ecma_parser/tests/tsc/scannerS7.2_A1.5_T2.json index bf787279517d..4007713d4238 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerS7.2_A1.5_T2.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerS7.2_A1.5_T2.json @@ -38,7 +38,8 @@ "end": 353 }, "value": " var x = 1 ", - "raw": "\"\\u00A0var x\\u00A0= 1\\u00A0\"" + "raw": "\"\\u00A0var x\\u00A0= 1\\u00A0\"", + "loneSurrogates": false } } ], @@ -126,7 +127,8 @@ "end": 442 }, "value": "#1: eval(\"\\u00A0var x\\u00A0= 1\\u00A0\"); x === 1. Actual: ", - "raw": "'#1: eval(\"\\\\u00A0var x\\\\u00A0= 1\\\\u00A0\"); x === 1. Actual: '" + "raw": "'#1: eval(\"\\\\u00A0var x\\\\u00A0= 1\\\\u00A0\"); x === 1. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -276,7 +278,8 @@ "end": 543 }, "value": "#2:  var x = 1 ; x === 1. Actual: ", - "raw": "'#2:  var x = 1 ; x === 1. Actual: '" + "raw": "'#2:  var x = 1 ; x === 1. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/scannerS7.3_A1.1_T2.json b/crates/swc_ecma_parser/tests/tsc/scannerS7.3_A1.1_T2.json index 627d90fba168..9322fafd8dca 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerS7.3_A1.1_T2.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerS7.3_A1.1_T2.json @@ -126,7 +126,8 @@ "end": 387 }, "value": "#1: var\\nx\\n=\\n1\\n; x === 1. Actual: ", - "raw": "'#1: var\\\\nx\\\\n=\\\\n1\\\\n; x === 1. Actual: '" + "raw": "'#1: var\\\\nx\\\\n=\\\\n1\\\\n; x === 1. Actual: '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/scannerS7.6_A4.2_T1.json b/crates/swc_ecma_parser/tests/tsc/scannerS7.6_A4.2_T1.json index 63cabebccaee..cedf42ba0418 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerS7.6_A4.2_T1.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerS7.6_A4.2_T1.json @@ -119,7 +119,8 @@ "end": 333 }, "value": "#А", - "raw": "'#А'" + "raw": "'#А'", + "loneSurrogates": false } } ], @@ -244,7 +245,8 @@ "end": 384 }, "value": "#Б", - "raw": "'#Б'" + "raw": "'#Б'", + "loneSurrogates": false } } ], @@ -369,7 +371,8 @@ "end": 435 }, "value": "#В", - "raw": "'#В'" + "raw": "'#В'", + "loneSurrogates": false } } ], @@ -494,7 +497,8 @@ "end": 486 }, "value": "#Г", - "raw": "'#Г'" + "raw": "'#Г'", + "loneSurrogates": false } } ], @@ -619,7 +623,8 @@ "end": 537 }, "value": "#Д", - "raw": "'#Д'" + "raw": "'#Д'", + "loneSurrogates": false } } ], @@ -744,7 +749,8 @@ "end": 588 }, "value": "#Е", - "raw": "'#Е'" + "raw": "'#Е'", + "loneSurrogates": false } } ], @@ -869,7 +875,8 @@ "end": 639 }, "value": "#Ж", - "raw": "'#Ж'" + "raw": "'#Ж'", + "loneSurrogates": false } } ], @@ -994,7 +1001,8 @@ "end": 690 }, "value": "#З", - "raw": "'#З'" + "raw": "'#З'", + "loneSurrogates": false } } ], @@ -1119,7 +1127,8 @@ "end": 741 }, "value": "#И", - "raw": "'#И'" + "raw": "'#И'", + "loneSurrogates": false } } ], @@ -1244,7 +1253,8 @@ "end": 792 }, "value": "#Й", - "raw": "'#Й'" + "raw": "'#Й'", + "loneSurrogates": false } } ], @@ -1369,7 +1379,8 @@ "end": 843 }, "value": "#К", - "raw": "'#К'" + "raw": "'#К'", + "loneSurrogates": false } } ], @@ -1494,7 +1505,8 @@ "end": 894 }, "value": "#Л", - "raw": "'#Л'" + "raw": "'#Л'", + "loneSurrogates": false } } ], @@ -1619,7 +1631,8 @@ "end": 945 }, "value": "#М", - "raw": "'#М'" + "raw": "'#М'", + "loneSurrogates": false } } ], @@ -1744,7 +1757,8 @@ "end": 996 }, "value": "#Н", - "raw": "'#Н'" + "raw": "'#Н'", + "loneSurrogates": false } } ], @@ -1869,7 +1883,8 @@ "end": 1047 }, "value": "#О", - "raw": "'#О'" + "raw": "'#О'", + "loneSurrogates": false } } ], @@ -1994,7 +2009,8 @@ "end": 1098 }, "value": "#П", - "raw": "'#П'" + "raw": "'#П'", + "loneSurrogates": false } } ], @@ -2119,7 +2135,8 @@ "end": 1149 }, "value": "#Р", - "raw": "'#Р'" + "raw": "'#Р'", + "loneSurrogates": false } } ], @@ -2244,7 +2261,8 @@ "end": 1200 }, "value": "#С", - "raw": "'#С'" + "raw": "'#С'", + "loneSurrogates": false } } ], @@ -2369,7 +2387,8 @@ "end": 1251 }, "value": "#Т", - "raw": "'#Т'" + "raw": "'#Т'", + "loneSurrogates": false } } ], @@ -2494,7 +2513,8 @@ "end": 1302 }, "value": "#У", - "raw": "'#У'" + "raw": "'#У'", + "loneSurrogates": false } } ], @@ -2619,7 +2639,8 @@ "end": 1353 }, "value": "#Ф", - "raw": "'#Ф'" + "raw": "'#Ф'", + "loneSurrogates": false } } ], @@ -2744,7 +2765,8 @@ "end": 1404 }, "value": "#Х", - "raw": "'#Х'" + "raw": "'#Х'", + "loneSurrogates": false } } ], @@ -2869,7 +2891,8 @@ "end": 1455 }, "value": "#Ц", - "raw": "'#Ц'" + "raw": "'#Ц'", + "loneSurrogates": false } } ], @@ -2994,7 +3017,8 @@ "end": 1506 }, "value": "#Ч", - "raw": "'#Ч'" + "raw": "'#Ч'", + "loneSurrogates": false } } ], @@ -3119,7 +3143,8 @@ "end": 1557 }, "value": "#Ш", - "raw": "'#Ш'" + "raw": "'#Ш'", + "loneSurrogates": false } } ], @@ -3244,7 +3269,8 @@ "end": 1608 }, "value": "#Щ", - "raw": "'#Щ'" + "raw": "'#Щ'", + "loneSurrogates": false } } ], @@ -3369,7 +3395,8 @@ "end": 1659 }, "value": "#Ъ", - "raw": "'#Ъ'" + "raw": "'#Ъ'", + "loneSurrogates": false } } ], @@ -3494,7 +3521,8 @@ "end": 1710 }, "value": "#Ы", - "raw": "'#Ы'" + "raw": "'#Ы'", + "loneSurrogates": false } } ], @@ -3619,7 +3647,8 @@ "end": 1761 }, "value": "#Ь", - "raw": "'#Ь'" + "raw": "'#Ь'", + "loneSurrogates": false } } ], @@ -3744,7 +3773,8 @@ "end": 1812 }, "value": "#Э", - "raw": "'#Э'" + "raw": "'#Э'", + "loneSurrogates": false } } ], @@ -3869,7 +3899,8 @@ "end": 1863 }, "value": "#Ю", - "raw": "'#Ю'" + "raw": "'#Ю'", + "loneSurrogates": false } } ], @@ -3994,7 +4025,8 @@ "end": 1914 }, "value": "#Я", - "raw": "'#Я'" + "raw": "'#Я'", + "loneSurrogates": false } } ], @@ -4119,7 +4151,8 @@ "end": 1965 }, "value": "#Ё", - "raw": "'#Ё'" + "raw": "'#Ё'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/scannerStringLiteralWithContainingNullCharacter1.json b/crates/swc_ecma_parser/tests/tsc/scannerStringLiteralWithContainingNullCharacter1.json index fa897ffd44f8..d2ce095687c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/scannerStringLiteralWithContainingNullCharacter1.json +++ b/crates/swc_ecma_parser/tests/tsc/scannerStringLiteralWithContainingNullCharacter1.json @@ -18,7 +18,8 @@ "end": 6 }, "value": " \u0000 ", - "raw": "\" \u0000 \"" + "raw": "\" \u0000 \"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/scopedPackagesClassic.json b/crates/swc_ecma_parser/tests/tsc/scopedPackagesClassic.json index 58ee4a52f255..182c5d2ab20d 100644 --- a/crates/swc_ecma_parser/tests/tsc/scopedPackagesClassic.json +++ b/crates/swc_ecma_parser/tests/tsc/scopedPackagesClassic.json @@ -86,7 +86,8 @@ "end": 234 }, "value": "@see/saw", - "raw": "\"@see/saw\"" + "raw": "\"@see/saw\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/seeTag1.json b/crates/swc_ecma_parser/tests/tsc/seeTag1.json index b5f327766584..21a3a0a22c3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/seeTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/seeTag1.json @@ -213,7 +213,8 @@ "end": 162 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -253,7 +254,8 @@ "end": 203 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -293,7 +295,8 @@ "end": 235 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/seeTag2.json b/crates/swc_ecma_parser/tests/tsc/seeTag2.json index 6497cd47bb36..02bd5c95b8d9 100644 --- a/crates/swc_ecma_parser/tests/tsc/seeTag2.json +++ b/crates/swc_ecma_parser/tests/tsc/seeTag2.json @@ -39,7 +39,8 @@ "end": 56 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -79,7 +80,8 @@ "end": 103 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -119,7 +121,8 @@ "end": 145 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -159,7 +162,8 @@ "end": 187 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -199,7 +203,8 @@ "end": 228 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -239,7 +244,8 @@ "end": 256 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -279,7 +285,8 @@ "end": 282 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json index 579c70c3fb51..0960d515f197 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsNotSubtypeOfNonSpecializedSignature.json @@ -54,7 +54,8 @@ "end": 43 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -212,7 +213,8 @@ "end": 99 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -462,7 +464,8 @@ "end": 173 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -752,7 +755,8 @@ "end": 257 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1049,7 +1053,8 @@ "end": 323 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1141,7 +1146,8 @@ "end": 357 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1292,7 +1298,8 @@ "end": 412 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1394,7 +1401,8 @@ "end": 441 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1572,7 +1580,8 @@ "end": 506 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1674,7 +1683,8 @@ "end": 535 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1817,7 +1827,8 @@ "end": 576 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1909,7 +1920,8 @@ "end": 610 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2048,7 +2060,8 @@ "end": 657 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2180,7 +2193,8 @@ "end": 689 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2359,7 +2373,8 @@ "end": 734 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2491,7 +2506,8 @@ "end": 766 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json index 97c70cbfb1f0..37910ab9e6d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureIsSubtypeOfNonSpecializedSignature.json @@ -54,7 +54,8 @@ "end": 134 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -272,7 +273,8 @@ "end": 212 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -522,7 +524,8 @@ "end": 286 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -881,7 +884,8 @@ "end": 390 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1247,7 +1251,8 @@ "end": 476 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1375,7 +1380,8 @@ "end": 527 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1574,7 +1580,8 @@ "end": 602 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1712,7 +1719,8 @@ "end": 648 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1938,7 +1946,8 @@ "end": 733 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2076,7 +2085,8 @@ "end": 779 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2303,7 +2313,8 @@ "end": 857 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2443,7 +2454,8 @@ "end": 911 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2582,7 +2594,8 @@ "end": 958 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2798,7 +2811,8 @@ "end": 1027 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -2977,7 +2991,8 @@ "end": 1072 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -3193,7 +3208,8 @@ "end": 1141 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json b/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json index 2f2971e00130..304501792974 100644 --- a/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json +++ b/crates/swc_ecma_parser/tests/tsc/specializedSignatureWithOptional.json @@ -54,7 +54,8 @@ "end": 28 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json b/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json index edfd4dd49c02..54195c3ccf06 100644 --- a/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json +++ b/crates/swc_ecma_parser/tests/tsc/spellingUncheckedJS.json @@ -275,7 +275,8 @@ "end": 272 }, "value": "this is fine", - "raw": "\"this is fine\"" + "raw": "\"this is fine\"", + "loneSurrogates": false } } ] @@ -326,7 +327,8 @@ "end": 305 }, "value": "oui", - "raw": "'oui'" + "raw": "'oui'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -899,7 +901,8 @@ "end": 829 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json b/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json index e7fda155d248..21b733ff5cc2 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadExcessProperty.json @@ -154,7 +154,8 @@ "end": 59 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -174,7 +175,8 @@ "end": 67 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -194,7 +196,8 @@ "end": 83 }, "value": "extra", - "raw": "\"extra\"" + "raw": "\"extra\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json b/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json index 0dc2b88a6f14..ee46f2b4d317 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadNonObject1.json @@ -54,7 +54,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -64,7 +65,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -155,7 +157,8 @@ "end": 137 }, "value": "4", - "raw": "\"4\"" + "raw": "\"4\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json index c606daae9473..8b8fc0fcb85e 100644 --- a/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json +++ b/crates/swc_ecma_parser/tests/tsc/spreadOverwritesPropertyStrict.json @@ -1378,7 +1378,8 @@ "end": 798 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -1511,7 +1512,8 @@ "end": 872 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ] @@ -1547,7 +1549,8 @@ "end": 896 }, "value": "bye", - "raw": "\"bye\"" + "raw": "\"bye\"", + "loneSurrogates": false } } ] @@ -1726,7 +1729,8 @@ "end": 984 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } }, { @@ -1938,7 +1942,8 @@ "end": 1102 }, "value": "zzz", - "raw": "'zzz'" + "raw": "'zzz'", + "loneSurrogates": false } }, { @@ -2096,7 +2101,8 @@ "end": 1192 }, "value": "zzz", - "raw": "'zzz'" + "raw": "'zzz'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json index 6c5da9b1f076..a7fd8a4b3f14 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature1.json @@ -184,7 +184,8 @@ "end": 80 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -304,7 +305,8 @@ "end": 116 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json index 7ff1c482e5aa..e563a15ab994 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature2.json @@ -184,7 +184,8 @@ "end": 98 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -304,7 +305,8 @@ "end": 134 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature3.json b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature3.json index 164e1ee1537e..2c1dc572ed08 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticIndexSignature3.json +++ b/crates/swc_ecma_parser/tests/tsc/staticIndexSignature3.json @@ -551,7 +551,8 @@ "end": 355 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, @@ -679,7 +680,8 @@ "end": 391 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, @@ -807,7 +809,8 @@ "end": 425 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, @@ -935,7 +938,8 @@ "end": 460 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json b/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json index 4f2e7e2de46b..9a43d5e365a3 100644 --- a/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json +++ b/crates/swc_ecma_parser/tests/tsc/staticPropertyNotInClassType.json @@ -446,7 +446,8 @@ "end": 299 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -1292,7 +1293,8 @@ "end": 758 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -1368,7 +1370,8 @@ "end": 821 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json index a65e9cbb1d53..2ca80aac6534 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json +++ b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply1.json @@ -650,7 +650,8 @@ "end": 315 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1018,7 +1019,8 @@ "end": 524 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1318,7 +1320,8 @@ "end": 662 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1443,7 +1446,8 @@ "end": 723 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -1779,7 +1783,8 @@ "end": 870 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2061,7 +2066,8 @@ "end": 1001 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -2961,7 +2967,8 @@ "end": 1297 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3484,7 +3491,8 @@ "end": 1549 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3829,7 +3837,8 @@ "end": 1669 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -3960,7 +3969,8 @@ "end": 1729 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4088,7 +4098,8 @@ "end": 1780 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4469,7 +4480,8 @@ "end": 1909 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -4612,7 +4624,8 @@ "end": 1972 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -4891,7 +4904,8 @@ "end": 2088 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -5078,7 +5092,8 @@ "end": 2160 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -5306,7 +5321,8 @@ "end": 2238 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -5407,7 +5423,8 @@ "end": 2279 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -5671,7 +5688,8 @@ "end": 2366 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json index c4cebe0662d1..d1a97e6eab6e 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json +++ b/crates/swc_ecma_parser/tests/tsc/strictBindCallApply2.json @@ -303,7 +303,8 @@ "end": 221 }, "value": "blub", - "raw": "\"blub\"" + "raw": "\"blub\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json b/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json index 003b3607d10f..8392835b95b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json +++ b/crates/swc_ecma_parser/tests/tsc/strictPropertyInitialization.json @@ -1171,7 +1171,8 @@ "end": 877 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -1300,7 +1301,8 @@ "end": 930 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", @@ -2318,7 +2320,8 @@ "end": 1664 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -3471,7 +3474,8 @@ "end": 2541 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "definite": false } @@ -3665,7 +3669,8 @@ "end": 2618 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, "value": null, @@ -3867,7 +3872,8 @@ "end": 2708 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } }, @@ -3936,7 +3942,8 @@ "end": 2744 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -3962,7 +3969,8 @@ "end": 2757 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json b/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json index 6192e581ad18..14050e9ab921 100644 --- a/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json +++ b/crates/swc_ecma_parser/tests/tsc/strictTupleLength.json @@ -732,7 +732,8 @@ "end": 265 }, "value": "length", - "raw": "'length'" + "raw": "'length'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumInElementAccess01.json b/crates/swc_ecma_parser/tests/tsc/stringEnumInElementAccess01.json index 5be4817ee0f6..b410b1414406 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumInElementAccess01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumInElementAccess01.json @@ -47,7 +47,8 @@ "end": 45 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -73,7 +74,8 @@ "end": 58 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -99,7 +101,8 @@ "end": 71 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json index e5eea29fd34a..091f67997052 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes1.json @@ -47,7 +47,8 @@ "end": 33 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -73,7 +74,8 @@ "end": 46 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } }, { @@ -99,7 +101,8 @@ "end": 57 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } ] @@ -2686,7 +2689,8 @@ "end": 1019 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -2848,7 +2852,8 @@ "end": 1105 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -2898,7 +2903,8 @@ "end": 1145 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -3046,7 +3052,8 @@ "end": 1236 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -3096,7 +3103,8 @@ "end": 1276 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json index 42749f026ba6..0cb6bd795fa0 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes2.json @@ -47,7 +47,8 @@ "end": 61 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -73,7 +74,8 @@ "end": 74 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } }, { @@ -99,7 +101,8 @@ "end": 85 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } ] @@ -2686,7 +2689,8 @@ "end": 1047 }, "value": "Unexpected value", - "raw": "\"Unexpected value\"" + "raw": "\"Unexpected value\"", + "loneSurrogates": false } } ], @@ -2848,7 +2852,8 @@ "end": 1133 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -2898,7 +2903,8 @@ "end": 1173 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] @@ -3046,7 +3052,8 @@ "end": 1264 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -3096,7 +3103,8 @@ "end": 1304 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json index 9d8746a8ef78..8733111d2a2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/stringEnumLiteralTypes3.json @@ -47,7 +47,8 @@ "end": 33 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -73,7 +74,8 @@ "end": 46 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } }, { @@ -99,7 +101,8 @@ "end": 57 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json index c6221ac9f389..1a26d9b31aaf 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations.json @@ -336,7 +336,8 @@ "end": 289 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -377,7 +378,8 @@ "end": 312 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -500,7 +502,8 @@ "end": 389 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -541,7 +544,8 @@ "end": 414 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -662,7 +666,8 @@ "end": 497 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -785,7 +790,8 @@ "end": 567 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1204,7 +1210,8 @@ "end": 833 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1238,7 +1245,8 @@ "end": 856 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1436,7 +1444,8 @@ "end": 1005 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1470,7 +1479,8 @@ "end": 1030 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1762,7 +1772,8 @@ "end": 1190 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1796,7 +1807,8 @@ "end": 1213 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1994,7 +2006,8 @@ "end": 1362 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2028,7 +2041,8 @@ "end": 1387 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -2219,7 +2233,8 @@ "end": 1489 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2284,7 +2299,8 @@ "end": 1528 }, "value": "d", - "raw": "\"d\"" + "raw": "\"d\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2293,7 +2309,8 @@ "end": 1532 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2305,7 +2322,8 @@ "end": 1542 }, "value": "e", - "raw": "\"e\"" + "raw": "\"e\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -2335,7 +2353,8 @@ "end": 1559 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2368,7 +2387,8 @@ "end": 1583 }, "value": "3.0", - "raw": "\"3.0\"" + "raw": "\"3.0\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -2377,7 +2397,8 @@ "end": 1587 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2389,7 +2410,8 @@ "end": 1599 }, "value": "4.0", - "raw": "\"4.0\"" + "raw": "\"4.0\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -2480,7 +2502,8 @@ "end": 1662 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -2560,7 +2583,8 @@ "end": 1720 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json index 6cf5f6aa452a..b8a0053ef868 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringIndexerConstrainsPropertyDeclarations2.json @@ -68,7 +68,8 @@ "end": 105 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -169,7 +170,8 @@ "end": 161 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json b/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json index f98637ec2ec9..5344ead19049 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json +++ b/crates/swc_ecma_parser/tests/tsc/stringIndexingResults.json @@ -97,7 +97,8 @@ "end": 46 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -229,7 +230,8 @@ "end": 75 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } }, @@ -293,7 +295,8 @@ "end": 93 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -592,7 +595,8 @@ "end": 193 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } }, @@ -656,7 +660,8 @@ "end": 210 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -917,7 +922,8 @@ "end": 296 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } }, @@ -981,7 +987,8 @@ "end": 313 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, @@ -1170,7 +1177,8 @@ "end": 372 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1235,7 +1243,8 @@ "end": 391 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } }, @@ -1299,7 +1308,8 @@ "end": 409 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json index d5eaf767c05f..8ce76f919783 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf01.json @@ -43,7 +43,8 @@ "end": 14 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 20 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -238,7 +240,8 @@ "end": 81 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "consequent": { @@ -298,7 +301,8 @@ "end": 135 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json index 4be92598d034..c37ea029acd3 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralCheckedInIf02.json @@ -43,7 +43,8 @@ "end": 14 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 20 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -245,7 +247,8 @@ "end": 90 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, "right": { @@ -272,7 +275,8 @@ "end": 103 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralMatchedInSwitch01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralMatchedInSwitch01.json index 7bdad0c4b2d9..6fcf441fe46c 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralMatchedInSwitch01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralMatchedInSwitch01.json @@ -43,7 +43,8 @@ "end": 14 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 20 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -222,7 +224,8 @@ "end": 80 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "consequent": [] }, @@ -239,7 +242,8 @@ "end": 94 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "consequent": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json index 5153251ea686..8a4630ea0929 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralType.json @@ -49,7 +49,8 @@ "end": 12 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -108,7 +109,8 @@ "end": 33 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeAssertion01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeAssertion01.json index 093e9a4337ce..e5c1e4cd916f 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeAssertion01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeAssertion01.json @@ -43,7 +43,8 @@ "end": 14 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 20 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json index 906b7bd509dc..d00d457a987a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypeIsSubtypeOfString.json @@ -54,7 +54,8 @@ "end": 78 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -250,7 +251,8 @@ "end": 157 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -446,7 +448,8 @@ "end": 234 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -652,7 +655,8 @@ "end": 304 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -848,7 +852,8 @@ "end": 370 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1044,7 +1049,8 @@ "end": 440 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1240,7 +1246,8 @@ "end": 511 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1446,7 +1453,8 @@ "end": 579 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1652,7 +1660,8 @@ "end": 649 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -4150,7 +4159,8 @@ "end": 1944 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -4439,7 +4449,8 @@ "end": 2075 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -4645,7 +4656,8 @@ "end": 2146 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -4941,7 +4953,8 @@ "end": 2238 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -5327,7 +5340,8 @@ "end": 2355 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -5533,7 +5547,8 @@ "end": 2439 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -5946,7 +5961,8 @@ "end": 2570 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndLogicalOrExpressions01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndLogicalOrExpressions01.json index 66986ad7f697..1c8887c48696 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndLogicalOrExpressions01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndLogicalOrExpressions01.json @@ -89,7 +89,8 @@ "end": 77 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -101,7 +102,8 @@ "end": 85 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "definite": false } @@ -158,7 +160,8 @@ "end": 105 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "definite": false @@ -209,7 +212,8 @@ "end": 119 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -279,7 +283,8 @@ "end": 143 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "definite": false @@ -337,7 +342,8 @@ "end": 157 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -353,7 +359,8 @@ "end": 165 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndParenthesizedExpressions01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndParenthesizedExpressions01.json index 649892ce4628..5cf81bdd91d4 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndParenthesizedExpressions01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndParenthesizedExpressions01.json @@ -89,7 +89,8 @@ "end": 77 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -107,7 +108,8 @@ "end": 86 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "definite": false @@ -165,7 +167,8 @@ "end": 101 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -181,7 +184,8 @@ "end": 109 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -201,7 +205,8 @@ "end": 118 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "definite": false @@ -252,7 +257,8 @@ "end": 133 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -286,7 +292,8 @@ "end": 155 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "alternate": { "type": "ParenthesisExpression", @@ -301,7 +308,8 @@ "end": 164 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -361,7 +369,8 @@ "end": 180 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -377,7 +386,8 @@ "end": 188 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -413,7 +423,8 @@ "end": 210 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "alternate": { "type": "ParenthesisExpression", @@ -428,7 +439,8 @@ "end": 219 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json index 58c18a67d0b1..293caa9ce653 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAndTuples01.json @@ -92,7 +92,8 @@ "end": 94 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -104,7 +105,8 @@ "end": 103 }, "value": "Brave", - "raw": "\"Brave\"" + "raw": "\"Brave\"", + "loneSurrogates": false } }, { @@ -116,7 +118,8 @@ "end": 110 }, "value": "New", - "raw": "\"New\"" + "raw": "\"New\"", + "loneSurrogates": false } }, { @@ -128,7 +131,8 @@ "end": 119 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ] @@ -175,7 +179,8 @@ "end": 149 }, "value": "t-rex", - "raw": "\"t-rex\"" + "raw": "\"t-rex\"", + "loneSurrogates": false } }, { @@ -191,7 +196,8 @@ "end": 160 }, "value": "raptor", - "raw": "\"raptor\"" + "raw": "\"raptor\"", + "loneSurrogates": false } } ] @@ -288,7 +294,8 @@ "end": 190 }, "value": "I'm", - "raw": "\"I'm\"" + "raw": "\"I'm\"", + "loneSurrogates": false } } }, @@ -312,7 +319,8 @@ "end": 195 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -362,7 +370,8 @@ "end": 219 }, "value": "I'm", - "raw": "'I\\'m'" + "raw": "'I\\'m'", + "loneSurrogates": false } }, { @@ -374,7 +383,8 @@ "end": 224 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -386,7 +396,8 @@ "end": 233 }, "value": "t-rex", - "raw": "'t-rex'" + "raw": "'t-rex'", + "loneSurrogates": false } } ] @@ -538,7 +549,8 @@ "end": 313 }, "value": "t-rex", - "raw": "\"t-rex\"" + "raw": "\"t-rex\"", + "loneSurrogates": false } }, "consequent": { @@ -562,7 +574,8 @@ "end": 342 }, "value": "ROAAAAR!", - "raw": "\"ROAAAAR!\"" + "raw": "\"ROAAAAR!\"", + "loneSurrogates": false } } ] @@ -599,7 +612,8 @@ "end": 375 }, "value": "raptor", - "raw": "\"raptor\"" + "raw": "\"raptor\"", + "loneSurrogates": false } }, "consequent": { @@ -623,7 +637,8 @@ "end": 404 }, "value": "yip yip!", - "raw": "\"yip yip!\"" + "raw": "\"yip yip!\"", + "loneSurrogates": false } } ] @@ -650,7 +665,8 @@ "end": 436 }, "value": "Unexpected ", - "raw": "\"Unexpected \"" + "raw": "\"Unexpected \"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json index d77a2cc9a47b..f6034a65cd7f 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags01.json @@ -43,7 +43,8 @@ "end": 39 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 45 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -222,7 +224,8 @@ "end": 127 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -348,7 +351,8 @@ "end": 189 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -483,7 +487,8 @@ "end": 251 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -643,7 +648,8 @@ "end": 309 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -1134,7 +1140,8 @@ "end": 507 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -1209,7 +1216,8 @@ "end": 542 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } ], @@ -1371,7 +1379,8 @@ "end": 608 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json index 90eb903d3f65..d42a58e78576 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags02.json @@ -43,7 +43,8 @@ "end": 39 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 45 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -222,7 +224,8 @@ "end": 127 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -348,7 +351,8 @@ "end": 189 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -483,7 +487,8 @@ "end": 251 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -643,7 +648,8 @@ "end": 309 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -1041,7 +1047,8 @@ "end": 453 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -1116,7 +1123,8 @@ "end": 488 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } ], @@ -1278,7 +1286,8 @@ "end": 554 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json index 3484ff38f996..fbfa36cf4184 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTags03.json @@ -43,7 +43,8 @@ "end": 39 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 45 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -222,7 +224,8 @@ "end": 127 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -348,7 +351,8 @@ "end": 189 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -490,7 +494,8 @@ "end": 528 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -506,7 +511,8 @@ "end": 534 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } ] @@ -675,7 +681,8 @@ "end": 592 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } }, { @@ -691,7 +698,8 @@ "end": 598 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -1057,7 +1065,8 @@ "end": 741 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -1132,7 +1141,8 @@ "end": 776 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } ], @@ -1294,7 +1304,8 @@ "end": 842 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json index 4f546700f06f..20a61bd95877 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint01.json @@ -189,7 +189,8 @@ "end": 52 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "default": null @@ -389,7 +390,8 @@ "end": 117 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -405,7 +407,8 @@ "end": 125 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -560,7 +563,8 @@ "end": 204 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -721,7 +725,8 @@ "end": 252 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -875,7 +880,8 @@ "end": 298 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], @@ -936,7 +942,8 @@ "end": 318 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json index 04649078a204..18e4d209a318 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesAsTypeParameterConstraint02.json @@ -189,7 +189,8 @@ "end": 52 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "default": null @@ -288,7 +289,8 @@ "end": 110 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -304,7 +306,8 @@ "end": 118 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -342,7 +345,8 @@ "end": 134 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "consequent": { @@ -362,7 +366,8 @@ "end": 146 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "async": false, @@ -432,7 +437,8 @@ "end": 170 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json index db0a2b5de171..4c625e696e15 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures.json @@ -54,7 +54,8 @@ "end": 84 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -156,7 +157,8 @@ "end": 118 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -250,7 +252,8 @@ "end": 141 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -283,7 +286,8 @@ "end": 150 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -378,7 +382,8 @@ "end": 185 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -480,7 +485,8 @@ "end": 220 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -536,7 +542,8 @@ "end": 238 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -569,7 +576,8 @@ "end": 247 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -654,7 +662,8 @@ "end": 274 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -710,7 +719,8 @@ "end": 292 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -808,7 +818,8 @@ "end": 323 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -893,7 +904,8 @@ "end": 357 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -934,7 +946,8 @@ "end": 366 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1008,7 +1021,8 @@ "end": 388 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json index 69ef6e4796ae..49adfea0a59d 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInImplementationSignatures2.json @@ -114,7 +114,8 @@ "end": 106 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -281,7 +282,8 @@ "end": 158 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -383,7 +385,8 @@ "end": 192 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -427,7 +430,8 @@ "end": 207 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -483,7 +487,8 @@ "end": 224 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -516,7 +521,8 @@ "end": 232 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -572,7 +578,8 @@ "end": 250 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -605,7 +612,8 @@ "end": 259 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -690,7 +698,8 @@ "end": 286 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -734,7 +743,8 @@ "end": 300 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -790,7 +800,8 @@ "end": 318 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -846,7 +857,8 @@ "end": 335 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -944,7 +956,8 @@ "end": 366 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1017,7 +1030,8 @@ "end": 387 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes01.json index 594676c568ce..5b4ee9f165ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes01.json @@ -43,7 +43,8 @@ "end": 38 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 46 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -75,7 +77,8 @@ "end": 54 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ] @@ -132,7 +135,8 @@ "end": 69 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -148,7 +152,8 @@ "end": 77 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -164,7 +169,8 @@ "end": 85 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ] @@ -280,7 +286,8 @@ "end": 137 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "consequent": { @@ -364,7 +371,8 @@ "end": 178 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes02.json index 00826b8f5516..05082f8fcfa5 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes02.json @@ -51,7 +51,8 @@ "end": 47 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -67,7 +68,8 @@ "end": 55 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -83,7 +85,8 @@ "end": 63 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ] @@ -140,7 +143,8 @@ "end": 78 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -156,7 +160,8 @@ "end": 86 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -172,7 +177,8 @@ "end": 94 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } }, { @@ -296,7 +302,8 @@ "end": 155 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "consequent": { @@ -380,7 +387,8 @@ "end": 196 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes03.json index 184cc442312e..061bc737480c 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes03.json @@ -51,7 +51,8 @@ "end": 47 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -67,7 +68,8 @@ "end": 55 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -124,7 +126,8 @@ "end": 70 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -140,7 +143,8 @@ "end": 78 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -255,7 +259,8 @@ "end": 127 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "consequent": { @@ -339,7 +344,8 @@ "end": 168 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes04.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes04.json index d88741ae7887..33bd74e8cbf0 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes04.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesInUnionTypes04.json @@ -43,7 +43,8 @@ "end": 35 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -225,7 +227,8 @@ "end": 103 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { @@ -311,7 +314,8 @@ "end": 137 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { @@ -397,7 +401,8 @@ "end": 170 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { @@ -483,7 +488,8 @@ "end": 203 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json index 591166e6fc78..026372c892ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability01.json @@ -54,7 +54,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -235,7 +236,8 @@ "end": 122 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json index d4c7236721d6..36e2b7142748 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability02.json @@ -54,7 +54,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -136,7 +137,8 @@ "end": 73 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -243,7 +245,8 @@ "end": 121 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -325,7 +328,8 @@ "end": 151 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json index 54e0a99b14b7..8df3a431c83c 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability03.json @@ -54,7 +54,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -235,7 +236,8 @@ "end": 122 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json index abaf97c2b30e..265e97ff58b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability04.json @@ -54,7 +54,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -136,7 +137,8 @@ "end": 73 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -243,7 +245,8 @@ "end": 121 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -325,7 +328,8 @@ "end": 151 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json index 3cfa23a70f1c..a9f05c01fc2a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloadAssignability05.json @@ -54,7 +54,8 @@ "end": 43 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -309,7 +310,8 @@ "end": 153 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json index a970220fd6d4..c0c7f5327315 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads01.json @@ -43,7 +43,8 @@ "end": 53 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 64 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } }, { @@ -75,7 +77,8 @@ "end": 76 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } ] @@ -130,7 +133,8 @@ "end": 117 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -212,7 +216,8 @@ "end": 166 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -294,7 +299,8 @@ "end": 216 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } } @@ -383,7 +389,8 @@ "end": 267 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, { @@ -399,7 +406,8 @@ "end": 278 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -507,7 +515,8 @@ "end": 338 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, { @@ -523,7 +532,8 @@ "end": 349 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } ] @@ -631,7 +641,8 @@ "end": 408 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, { @@ -647,7 +658,8 @@ "end": 419 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -755,7 +767,8 @@ "end": 477 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, { @@ -771,7 +784,8 @@ "end": 488 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -787,7 +801,8 @@ "end": 500 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } ] @@ -949,7 +964,8 @@ "end": 626 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -973,7 +989,8 @@ "end": 647 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1010,7 +1027,8 @@ "end": 677 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1071,7 +1089,8 @@ "end": 728 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1114,7 +1133,8 @@ "end": 816 }, "value": "Invalid value", - "raw": "\"Invalid value\"" + "raw": "\"Invalid value\"", + "loneSurrogates": false } } ] @@ -1243,7 +1263,8 @@ "end": 892 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1307,7 +1328,8 @@ "end": 938 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } } ], @@ -1371,7 +1393,8 @@ "end": 986 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } ], @@ -1428,7 +1451,8 @@ "end": 1014 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -1440,7 +1464,8 @@ "end": 1025 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "definite": false } @@ -1490,7 +1515,8 @@ "end": 1048 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -1502,7 +1528,8 @@ "end": 1059 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "definite": false } @@ -1552,7 +1579,8 @@ "end": 1084 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } } @@ -1564,7 +1592,8 @@ "end": 1096 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json index 46639179d069..5ff353d139b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads02.json @@ -54,7 +54,8 @@ "end": 62 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -136,7 +137,8 @@ "end": 111 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -218,7 +220,8 @@ "end": 161 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } } @@ -307,7 +310,8 @@ "end": 212 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, { @@ -323,7 +327,8 @@ "end": 223 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -431,7 +436,8 @@ "end": 283 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, { @@ -447,7 +453,8 @@ "end": 294 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } ] @@ -555,7 +562,8 @@ "end": 353 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, { @@ -571,7 +579,8 @@ "end": 364 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ] @@ -679,7 +688,8 @@ "end": 422 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, { @@ -695,7 +705,8 @@ "end": 433 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -711,7 +722,8 @@ "end": 445 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } ] @@ -863,7 +875,8 @@ "end": 564 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -887,7 +900,8 @@ "end": 585 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -924,7 +938,8 @@ "end": 615 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -985,7 +1000,8 @@ "end": 666 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1028,7 +1044,8 @@ "end": 754 }, "value": "Invalid value", - "raw": "\"Invalid value\"" + "raw": "\"Invalid value\"", + "loneSurrogates": false } } ] @@ -1157,7 +1174,8 @@ "end": 830 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } ], @@ -1221,7 +1239,8 @@ "end": 876 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } } ], @@ -1285,7 +1304,8 @@ "end": 924 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } ], @@ -1332,7 +1352,8 @@ "end": 953 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "definite": false } @@ -1372,7 +1393,8 @@ "end": 977 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "definite": false } @@ -1412,7 +1434,8 @@ "end": 1003 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json index ae3726a030ad..75aff6709ad9 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads03.json @@ -397,7 +397,8 @@ "end": 260 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -451,7 +452,8 @@ "end": 280 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } } @@ -512,7 +514,8 @@ "end": 307 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -528,7 +531,8 @@ "end": 317 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -589,7 +593,8 @@ "end": 341 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -688,7 +693,8 @@ "end": 376 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -704,7 +710,8 @@ "end": 386 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -798,7 +805,8 @@ "end": 424 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } } @@ -1372,7 +1380,8 @@ "end": 659 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -1471,7 +1480,8 @@ "end": 694 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1487,7 +1497,8 @@ "end": 704 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ] @@ -1581,7 +1592,8 @@ "end": 742 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json index 857127485923..fa0f04e2f56f 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads04.json @@ -83,7 +83,8 @@ "end": 55 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -99,7 +100,8 @@ "end": 63 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -127,7 +129,8 @@ "end": 73 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -254,7 +257,8 @@ "end": 109 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json index 82fda95b582c..cdbe005e61f8 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesOverloads05.json @@ -374,7 +374,8 @@ "end": 210 }, "value": "dog", - "raw": "\"dog\"" + "raw": "\"dog\"", + "loneSurrogates": false } } } @@ -466,7 +467,8 @@ "end": 243 }, "value": "cat", - "raw": "\"cat\"" + "raw": "\"cat\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json index f435f9826b2f..69329b9e2ffe 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesTypePredicates01.json @@ -43,7 +43,8 @@ "end": 39 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 45 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -157,7 +159,8 @@ "end": 82 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -216,7 +219,8 @@ "end": 96 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -315,7 +319,8 @@ "end": 133 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -374,7 +379,8 @@ "end": 147 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -663,7 +669,8 @@ "end": 268 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } ], @@ -825,7 +832,8 @@ "end": 333 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings01.json index 732633956dfe..0dff7117c552 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings01.json @@ -49,7 +49,8 @@ "end": 38 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } } } @@ -70,7 +71,8 @@ }, "tail": true, "cooked": "ABC", - "raw": "ABC" + "raw": "ABC", + "loneSurrogates": false } ] }, @@ -122,7 +124,8 @@ "end": 73 }, "value": "DE\nF", - "raw": "\"DE\\nF\"" + "raw": "\"DE\\nF\"", + "loneSurrogates": false } } } @@ -143,7 +146,8 @@ }, "tail": true, "cooked": "DE\nF", - "raw": "DE\nF" + "raw": "DE\nF", + "loneSurrogates": false } ] }, @@ -195,7 +199,8 @@ "end": 106 }, "value": "G\"HI", - "raw": "'G\"HI'" + "raw": "'G\"HI'", + "loneSurrogates": false } } } @@ -249,7 +254,8 @@ "end": 133 }, "value": "JK`L", - "raw": "\"JK`L\"" + "raw": "\"JK`L\"", + "loneSurrogates": false } } } @@ -270,7 +276,8 @@ }, "tail": true, "cooked": "JK`L", - "raw": "JK\\`L" + "raw": "JK\\`L", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings02.json index bd058b575810..216aa9d9dfaa 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithTemplateStrings02.json @@ -49,7 +49,8 @@ "end": 42 }, "value": "AB\r\nC", - "raw": "\"AB\\r\\nC\"" + "raw": "\"AB\\r\\nC\"", + "loneSurrogates": false } } } @@ -70,7 +71,8 @@ }, "tail": true, "cooked": "AB\nC", - "raw": "AB\nC" + "raw": "AB\nC", + "loneSurrogates": false } ] }, @@ -122,7 +124,8 @@ "end": 78 }, "value": "DE\nF", - "raw": "\"DE\\nF\"" + "raw": "\"DE\\nF\"", + "loneSurrogates": false } } } @@ -141,7 +144,8 @@ "end": 90 }, "value": "\n", - "raw": "\"\\n\"" + "raw": "\"\\n\"", + "loneSurrogates": false } ], "quasis": [ @@ -153,7 +157,8 @@ }, "tail": false, "cooked": "DE", - "raw": "DE" + "raw": "DE", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -163,7 +168,8 @@ }, "tail": true, "cooked": "F", - "raw": "F" + "raw": "F", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators01.json index 2c8eca337d11..500c2c7d744e 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators01.json @@ -49,7 +49,8 @@ "end": 38 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } } } @@ -61,7 +62,8 @@ "end": 46 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false }, "definite": false } @@ -111,7 +113,8 @@ "end": 62 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false } } } @@ -123,7 +126,8 @@ "end": 70 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false }, "definite": false } @@ -180,7 +184,8 @@ "end": 91 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } }, { @@ -196,7 +201,8 @@ "end": 99 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false } } ] @@ -286,7 +292,8 @@ "end": 141 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } }, { @@ -302,7 +309,8 @@ "end": 149 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false } }, { @@ -389,7 +397,8 @@ "end": 189 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -457,7 +466,8 @@ "end": 213 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -1097,7 +1107,8 @@ "end": 455 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -1145,7 +1156,8 @@ "end": 467 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators02.json index 6383d9114586..fd519fda03a4 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralTypesWithVariousOperators02.json @@ -49,7 +49,8 @@ "end": 38 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } } } @@ -61,7 +62,8 @@ "end": 46 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false }, "definite": false } @@ -111,7 +113,8 @@ "end": 62 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false } } } @@ -123,7 +126,8 @@ "end": 70 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false }, "definite": false } @@ -180,7 +184,8 @@ "end": 91 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } }, { @@ -196,7 +201,8 @@ "end": 99 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false } } ] @@ -286,7 +292,8 @@ "end": 141 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } }, { @@ -302,7 +309,8 @@ "end": 149 }, "value": "XYZ", - "raw": "\"XYZ\"" + "raw": "\"XYZ\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons01.json index 47664171fb17..cdf1a9c86009 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons01.json @@ -46,7 +46,8 @@ "end": 14 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "TsAsExpression", @@ -61,7 +62,8 @@ "end": 24 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -118,7 +120,8 @@ "end": 49 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -139,7 +142,8 @@ "end": 60 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -197,7 +201,8 @@ "end": 86 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -218,7 +223,8 @@ "end": 101 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons02.json index d298f9540d27..d2758db5afee 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssertionsInEqualityComparisons02.json @@ -126,7 +126,8 @@ "end": 69 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "TsAsExpression", @@ -141,7 +142,8 @@ "end": 79 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -156,7 +158,8 @@ "end": 88 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } } @@ -206,7 +209,8 @@ "end": 103 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -227,7 +231,8 @@ "end": 114 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -242,7 +247,8 @@ "end": 123 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -293,7 +299,8 @@ "end": 139 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -314,7 +321,8 @@ "end": 157 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -372,7 +380,8 @@ "end": 173 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -393,7 +402,8 @@ "end": 184 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeReference", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssignedToStringMappings.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssignedToStringMappings.json index 3e3eecf6a99f..038ce357fe24 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssignedToStringMappings.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsAssignedToStringMappings.json @@ -134,7 +134,8 @@ "end": 62 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } }, @@ -169,7 +170,8 @@ "end": 79 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -281,7 +283,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -291,7 +294,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -340,7 +344,8 @@ "end": 148 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } }, @@ -375,7 +380,8 @@ "end": 165 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -410,7 +416,8 @@ "end": 174 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks01.json index 228ddd161b79..bb1879cc4982 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks01.json @@ -49,7 +49,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -110,7 +111,8 @@ "end": 27 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -126,7 +128,8 @@ "end": 35 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -276,7 +279,8 @@ "end": 76 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -339,7 +343,8 @@ "end": 98 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -382,7 +387,8 @@ "end": 109 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -391,7 +397,8 @@ "end": 119 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -434,7 +441,8 @@ "end": 130 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -497,7 +505,8 @@ "end": 153 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -550,7 +559,8 @@ "end": 170 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -593,7 +603,8 @@ "end": 181 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -700,7 +711,8 @@ "end": 212 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -763,7 +775,8 @@ "end": 234 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -806,7 +819,8 @@ "end": 245 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -815,7 +829,8 @@ "end": 255 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -858,7 +873,8 @@ "end": 266 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -921,7 +937,8 @@ "end": 289 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -974,7 +991,8 @@ "end": 306 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -1017,7 +1035,8 @@ "end": 317 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks02.json index 02a3a6297590..e08f8fd373d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks02.json @@ -49,7 +49,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -110,7 +111,8 @@ "end": 27 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -126,7 +128,8 @@ "end": 35 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -276,7 +279,8 @@ "end": 75 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -339,7 +343,8 @@ "end": 95 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -382,7 +387,8 @@ "end": 106 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -391,7 +397,8 @@ "end": 115 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -434,7 +441,8 @@ "end": 126 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -497,7 +505,8 @@ "end": 147 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -550,7 +559,8 @@ "end": 163 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -593,7 +603,8 @@ "end": 174 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -700,7 +711,8 @@ "end": 203 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -763,7 +775,8 @@ "end": 223 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -806,7 +819,8 @@ "end": 234 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -815,7 +829,8 @@ "end": 243 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -858,7 +873,8 @@ "end": 254 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -921,7 +937,8 @@ "end": 275 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -974,7 +991,8 @@ "end": 291 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -1017,7 +1035,8 @@ "end": 302 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks03.json index 603993bf14b5..8261d078c5ec 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks03.json @@ -249,7 +249,8 @@ "end": 151 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -417,7 +418,8 @@ "end": 207 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -480,7 +482,8 @@ "end": 229 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -523,7 +526,8 @@ "end": 240 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -532,7 +536,8 @@ "end": 250 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -575,7 +580,8 @@ "end": 261 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -638,7 +644,8 @@ "end": 284 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -691,7 +698,8 @@ "end": 301 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -734,7 +742,8 @@ "end": 312 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -841,7 +850,8 @@ "end": 343 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -904,7 +914,8 @@ "end": 365 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -947,7 +958,8 @@ "end": 376 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -956,7 +968,8 @@ "end": 386 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -999,7 +1012,8 @@ "end": 397 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1062,7 +1076,8 @@ "end": 420 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -1115,7 +1130,8 @@ "end": 437 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -1158,7 +1174,8 @@ "end": 448 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks04.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks04.json index 6c17fc34a317..2438507c0858 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks04.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithEqualityChecks04.json @@ -249,7 +249,8 @@ "end": 151 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -417,7 +418,8 @@ "end": 206 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -480,7 +482,8 @@ "end": 226 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -523,7 +526,8 @@ "end": 237 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -532,7 +536,8 @@ "end": 246 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -575,7 +580,8 @@ "end": 257 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -638,7 +644,8 @@ "end": 278 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -691,7 +698,8 @@ "end": 294 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -734,7 +742,8 @@ "end": 305 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -841,7 +850,8 @@ "end": 334 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -904,7 +914,8 @@ "end": 354 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -947,7 +958,8 @@ "end": 365 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -956,7 +968,8 @@ "end": 374 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -999,7 +1012,8 @@ "end": 385 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1062,7 +1076,8 @@ "end": 406 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -1115,7 +1130,8 @@ "end": 422 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -1158,7 +1174,8 @@ "end": 433 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements01.json index 9900b0c48b2e..3852dc37ec1b 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements01.json @@ -49,7 +49,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -110,7 +111,8 @@ "end": 27 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -126,7 +128,8 @@ "end": 35 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -168,7 +171,8 @@ "end": 66 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "consequent": [ { @@ -194,7 +198,8 @@ "end": 97 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "consequent": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements02.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements02.json index f8685fa24282..18e48894c15c 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements02.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements02.json @@ -49,7 +49,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -110,7 +111,8 @@ "end": 27 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -126,7 +128,8 @@ "end": 35 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -276,7 +279,8 @@ "end": 75 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -339,7 +343,8 @@ "end": 95 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -382,7 +387,8 @@ "end": 106 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -391,7 +397,8 @@ "end": 115 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -488,7 +495,8 @@ "end": 139 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -551,7 +559,8 @@ "end": 159 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -594,7 +603,8 @@ "end": 170 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -603,7 +613,8 @@ "end": 179 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements03.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements03.json index bc1bb5e750d2..7f666c9dda4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements03.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements03.json @@ -49,7 +49,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -110,7 +111,8 @@ "end": 27 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -126,7 +128,8 @@ "end": 35 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -182,7 +185,8 @@ "end": 50 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -288,7 +292,8 @@ "end": 132 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -297,7 +302,8 @@ "end": 140 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } }, "consequent": [ @@ -362,7 +368,8 @@ "end": 186 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "alternate": { @@ -378,7 +385,8 @@ "end": 195 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, "consequent": { "type": "StringLiteral", @@ -387,7 +395,8 @@ "end": 203 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -396,7 +405,8 @@ "end": 211 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } } @@ -437,7 +447,8 @@ "end": 245 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, @@ -504,7 +515,8 @@ "end": 286 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } ] @@ -587,7 +599,8 @@ "end": 343 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -602,7 +615,8 @@ "end": 353 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -651,7 +665,8 @@ "end": 389 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -666,7 +681,8 @@ "end": 399 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } } @@ -713,7 +729,8 @@ "end": 438 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } }, "consequent": [] @@ -738,7 +755,8 @@ "end": 454 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements04.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements04.json index c41da4b55e6b..f9a191c89328 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements04.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithSwitchStatements04.json @@ -49,7 +49,8 @@ "end": 13 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -110,7 +111,8 @@ "end": 27 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -126,7 +128,8 @@ "end": 35 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -215,7 +218,8 @@ "end": 105 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, { "type": "Identifier", @@ -270,7 +274,8 @@ "end": 142 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } ] }, @@ -315,7 +320,8 @@ "end": 176 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } ] }, @@ -350,7 +356,8 @@ "end": 207 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, { "type": "Identifier", @@ -395,7 +402,8 @@ "end": 241 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -404,7 +412,8 @@ "end": 250 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "consequent": [ @@ -438,7 +447,8 @@ "end": 281 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -460,7 +470,8 @@ "end": 291 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -469,7 +480,8 @@ "end": 300 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -505,7 +517,8 @@ "end": 332 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -527,7 +540,8 @@ "end": 342 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -536,7 +550,8 @@ "end": 351 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithTypeAssertions01.json b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithTypeAssertions01.json index 9ce27f162081..a1a8097a2b2b 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithTypeAssertions01.json +++ b/crates/swc_ecma_parser/tests/tsc/stringLiteralsWithTypeAssertions01.json @@ -56,7 +56,8 @@ "end": 20 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -72,7 +73,8 @@ "end": 28 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -124,7 +126,8 @@ "end": 44 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -139,7 +142,8 @@ "end": 53 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, @@ -187,7 +191,8 @@ "end": 68 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -202,7 +207,8 @@ "end": 77 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -266,7 +272,8 @@ "end": 104 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, @@ -330,7 +337,8 @@ "end": 131 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, @@ -394,7 +402,8 @@ "end": 158 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, @@ -442,7 +451,8 @@ "end": 173 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeQuery", diff --git a/crates/swc_ecma_parser/tests/tsc/stringMappingDeferralInConditionalTypes.json b/crates/swc_ecma_parser/tests/tsc/stringMappingDeferralInConditionalTypes.json index 13406a2aa03f..6815dc365d71 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringMappingDeferralInConditionalTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/stringMappingDeferralInConditionalTypes.json @@ -133,7 +133,8 @@ "end": 140 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, "trueType": { @@ -237,7 +238,8 @@ "end": 165 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -404,7 +406,8 @@ }, "tail": false, "cooked": "f", - "raw": "f" + "raw": "f", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -414,7 +417,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -520,7 +524,8 @@ "end": 258 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -695,7 +700,8 @@ "end": 331 }, "value": "Foo", - "raw": "\"Foo\"" + "raw": "\"Foo\"", + "loneSurrogates": false } }, "trueType": { @@ -799,7 +805,8 @@ "end": 356 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -964,7 +971,8 @@ "end": 435 }, "value": "Foo", - "raw": "\"Foo\"" + "raw": "\"Foo\"", + "loneSurrogates": false } }, "trueType": { @@ -1068,7 +1076,8 @@ "end": 460 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -1225,7 +1234,8 @@ }, "tail": false, "cooked": "f", - "raw": "f" + "raw": "f", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1235,7 +1245,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1298,7 +1309,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1308,7 +1320,8 @@ }, "tail": true, "cooked": "f", - "raw": "f" + "raw": "f", + "loneSurrogates": false } ] } @@ -1379,7 +1392,8 @@ "end": 547 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -1398,7 +1412,8 @@ "end": 560 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } }, "trueType": { @@ -1546,7 +1561,8 @@ "end": 603 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } }, "trueType": { @@ -1650,7 +1666,8 @@ "end": 626 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json b/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json index eac62eb889c6..c91b69233390 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/stringMappingOverPatternLiterals.json @@ -36,7 +36,8 @@ "end": 30 }, "value": "aA", - "raw": "\"aA\"" + "raw": "\"aA\"", + "loneSurrogates": false } } }, @@ -215,7 +216,8 @@ }, "tail": false, "cooked": "aA", - "raw": "aA" + "raw": "aA", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -225,7 +227,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1366,7 +1369,8 @@ "end": 1035 }, "value": "ABC", - "raw": "\"ABC\"" + "raw": "\"ABC\"", + "loneSurrogates": false } } }, @@ -1401,7 +1405,8 @@ "end": 1051 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } }, @@ -1580,7 +1585,8 @@ "end": 1160 }, "value": "AbC", - "raw": "\"AbC\"" + "raw": "\"AbC\"", + "loneSurrogates": false } } }, @@ -1615,7 +1621,8 @@ "end": 1176 }, "value": "AbC", - "raw": "\"AbC\"" + "raw": "\"AbC\"", + "loneSurrogates": false } } } @@ -2530,7 +2537,8 @@ }, "tail": false, "cooked": "aA", - "raw": "aA" + "raw": "aA", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2540,7 +2548,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2550,7 +2559,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2560,7 +2570,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2654,7 +2665,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2664,7 +2676,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2726,7 +2739,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2736,7 +2750,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2798,7 +2813,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2808,7 +2824,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2826,7 +2843,8 @@ }, "tail": false, "cooked": "AA", - "raw": "AA" + "raw": "AA", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2836,7 +2854,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2846,7 +2865,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2856,7 +2876,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3123,7 +3144,8 @@ }, "tail": false, "cooked": "A", - "raw": "A" + "raw": "A", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3133,7 +3155,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3276,7 +3299,8 @@ }, "tail": false, "cooked": "A", - "raw": "A" + "raw": "A", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3286,7 +3310,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3373,7 +3398,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3383,7 +3409,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3447,7 +3474,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3457,7 +3485,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3600,7 +3629,8 @@ }, "tail": false, "cooked": "A", - "raw": "A" + "raw": "A", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3610,7 +3640,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3697,7 +3728,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3707,7 +3739,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json b/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json index 9be7f679178c..4e94bec5269a 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json +++ b/crates/swc_ecma_parser/tests/tsc/stringMappingReduction.json @@ -43,7 +43,8 @@ "end": 53 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } }, { @@ -103,7 +104,8 @@ }, "tail": false, "cooked": "p", - "raw": "p" + "raw": "p", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -113,7 +115,8 @@ }, "tail": true, "cooked": "p", - "raw": "p" + "raw": "p", + "loneSurrogates": false } ] } @@ -159,7 +162,8 @@ "end": 128 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } }, { @@ -237,7 +241,8 @@ "end": 189 }, "value": "PROP", - "raw": "\"PROP\"" + "raw": "\"PROP\"", + "loneSurrogates": false } }, { @@ -315,7 +320,8 @@ "end": 260 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } }, { @@ -375,7 +381,8 @@ }, "tail": false, "cooked": "p", - "raw": "p" + "raw": "p", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -385,7 +392,8 @@ }, "tail": true, "cooked": "p", - "raw": "p" + "raw": "p", + "loneSurrogates": false } ] } @@ -431,7 +439,8 @@ "end": 317 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } }, { @@ -509,7 +518,8 @@ "end": 367 }, "value": "PROP", - "raw": "\"PROP\"" + "raw": "\"PROP\"", + "loneSurrogates": false } }, { @@ -587,7 +597,8 @@ "end": 417 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } }, { @@ -665,7 +676,8 @@ "end": 489 }, "value": "Prop", - "raw": "\"Prop\"" + "raw": "\"Prop\"", + "loneSurrogates": false } }, { @@ -743,7 +755,8 @@ "end": 552 }, "value": "PROP", - "raw": "\"PROP\"" + "raw": "\"PROP\"", + "loneSurrogates": false } }, { @@ -821,7 +834,8 @@ "end": 616 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } }, { @@ -899,7 +913,8 @@ "end": 666 }, "value": "Prop", - "raw": "\"Prop\"" + "raw": "\"Prop\"", + "loneSurrogates": false } }, { @@ -977,7 +992,8 @@ "end": 717 }, "value": "PROP", - "raw": "\"PROP\"" + "raw": "\"PROP\"", + "loneSurrogates": false } }, { @@ -1272,7 +1288,8 @@ "end": 894 }, "value": "unrecognised event", - "raw": "\"unrecognised event\"" + "raw": "\"unrecognised event\"", + "loneSurrogates": false } } } @@ -1485,7 +1502,8 @@ "end": 1011 }, "value": "bivarianceHack", - "raw": "'bivarianceHack'" + "raw": "'bivarianceHack'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/stringNamedPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/stringNamedPropertyAccess.json index d0c005d27c4e..67b7b2c0cb81 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringNamedPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/stringNamedPropertyAccess.json @@ -38,7 +38,8 @@ "end": 20 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -79,7 +80,8 @@ "end": 46 }, "value": "c d", - "raw": "\"c d\"" + "raw": "\"c d\"", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -226,7 +228,8 @@ "end": 84 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, @@ -290,7 +293,8 @@ "end": 104 }, "value": "c d", - "raw": "'c d'" + "raw": "'c d'", + "loneSurrogates": false } } }, @@ -338,7 +342,8 @@ "end": 131 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -473,7 +478,8 @@ "end": 169 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, @@ -533,7 +539,8 @@ "end": 191 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -618,7 +625,8 @@ "end": 219 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, @@ -669,7 +677,8 @@ "end": 242 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false }, "value": { "type": "NumericLiteral", @@ -743,7 +752,8 @@ "end": 264 }, "value": "a b", - "raw": "\"a b\"" + "raw": "\"a b\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json index b7ec6474961b..b4559a1a1690 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/stringPropertyAccess.json @@ -39,7 +39,8 @@ "end": 11 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -193,7 +194,8 @@ "end": 67 }, "value": "charAt", - "raw": "'charAt'" + "raw": "'charAt'", + "loneSurrogates": false } } ], @@ -266,7 +268,8 @@ "end": 89 }, "value": "charAt", - "raw": "'charAt'" + "raw": "'charAt'", + "loneSurrogates": false } } }, @@ -353,7 +356,8 @@ "end": 121 }, "value": "hasOwnProperty", - "raw": "'hasOwnProperty'" + "raw": "'hasOwnProperty'", + "loneSurrogates": false } } }, @@ -367,7 +371,8 @@ "end": 132 }, "value": "toFixed", - "raw": "'toFixed'" + "raw": "'toFixed'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/stringPropertyAccessWithError.json b/crates/swc_ecma_parser/tests/tsc/stringPropertyAccessWithError.json index 3f04789d8016..60ba128deaa7 100644 --- a/crates/swc_ecma_parser/tests/tsc/stringPropertyAccessWithError.json +++ b/crates/swc_ecma_parser/tests/tsc/stringPropertyAccessWithError.json @@ -39,7 +39,8 @@ "end": 11 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -108,7 +109,8 @@ "end": 31 }, "value": "charAt", - "raw": "'charAt'" + "raw": "'charAt'", + "loneSurrogates": false } } }, @@ -122,7 +124,8 @@ "end": 42 }, "value": "invalid", - "raw": "'invalid'" + "raw": "'invalid'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json index 5ec0285e7a05..5b1d81bf35b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameter.json @@ -1719,7 +1719,8 @@ "end": 742 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "alternate": { "type": "Identifier", @@ -1794,7 +1795,8 @@ "end": 774 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json index d298cb89096f..b1920e4d03d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypesOfTypeParameterWithConstraints2.json @@ -2987,7 +2987,8 @@ "end": 1323 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "alternate": { "type": "Identifier", @@ -3062,7 +3063,8 @@ "end": 1361 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json index 3acf6c83e73c..947cdecb2fea 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures.json @@ -432,7 +432,8 @@ "end": 229 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -928,7 +929,8 @@ "end": 493 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json index 74a7fc6b131d..a4034b5f665f 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures2.json @@ -6346,7 +6346,8 @@ "end": 2977 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -6467,7 +6468,8 @@ "end": 3011 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -7344,7 +7346,8 @@ "end": 3317 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -7878,7 +7881,8 @@ "end": 3503 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json index d52e645e78a5..b3829c66c06f 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures3.json @@ -3952,7 +3952,8 @@ "end": 2119 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -4341,7 +4342,8 @@ "end": 2210 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -9719,7 +9721,8 @@ "end": 4490 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json index 4397e0d13799..81234a6c9dc1 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignatures4.json @@ -4651,7 +4651,8 @@ "end": 1768 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -4782,7 +4783,8 @@ "end": 1800 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -5594,7 +5596,8 @@ "end": 2058 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -5770,7 +5773,8 @@ "end": 2097 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json index acc83ea7fd23..efcbe58a2008 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesA.json @@ -219,7 +219,8 @@ "end": 93 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json index 89087d57bf9f..43b1f04cf24d 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithCallSignaturesWithSpecializedSignatures.json @@ -92,7 +92,8 @@ "end": 198 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -273,7 +274,8 @@ "end": 324 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -525,7 +527,8 @@ "end": 562 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -681,7 +684,8 @@ "end": 683 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1017,7 +1021,8 @@ "end": 1004 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1161,7 +1166,8 @@ "end": 1087 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1845,7 +1851,8 @@ "end": 1545 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json index a3ed9554ed43..6d341e68ab28 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithConstructSignaturesWithSpecializedSignatures.json @@ -92,7 +92,8 @@ "end": 202 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -273,7 +274,8 @@ "end": 336 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -525,7 +527,8 @@ "end": 589 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -681,7 +684,8 @@ "end": 718 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1017,7 +1021,8 @@ "end": 1051 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1161,7 +1166,8 @@ "end": 1142 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } @@ -1849,7 +1855,8 @@ "end": 1625 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json index 422969dc128b..691469956d14 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers.json @@ -767,7 +767,8 @@ "end": 554 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -818,7 +819,8 @@ "end": 571 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -896,7 +898,8 @@ "end": 611 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -947,7 +950,8 @@ "end": 637 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1560,7 +1564,8 @@ "end": 999 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1611,7 +1616,8 @@ "end": 1020 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1689,7 +1695,8 @@ "end": 1072 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1740,7 +1747,8 @@ "end": 1103 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers2.json index 2524cf88bef8..8e51bd9bdac5 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers2.json @@ -708,7 +708,8 @@ "end": 635 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -752,7 +753,8 @@ "end": 656 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -844,7 +846,8 @@ "end": 712 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -888,7 +891,8 @@ "end": 742 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1470,7 +1474,8 @@ "end": 1176 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1514,7 +1519,8 @@ "end": 1198 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1606,7 +1612,8 @@ "end": 1255 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1650,7 +1657,8 @@ "end": 1286 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers3.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers3.json index b7e9d99d065c..573bf640d850 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers3.json @@ -728,7 +728,8 @@ "end": 637 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -772,7 +773,8 @@ "end": 658 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -864,7 +866,8 @@ "end": 717 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -908,7 +911,8 @@ "end": 747 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1520,7 +1524,8 @@ "end": 1140 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1564,7 +1569,8 @@ "end": 1162 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1656,7 +1662,8 @@ "end": 1222 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1700,7 +1707,8 @@ "end": 1253 }, "value": "2.0", - "raw": "'2.0'" + "raw": "'2.0'", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json index f11ec3058594..7b93cde0c567 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers4.json @@ -509,7 +509,8 @@ "end": 327 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -587,7 +588,8 @@ "end": 369 }, "value": "1.1", - "raw": "'1.1'" + "raw": "'1.1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json index 838c3afb4a67..21ce29a171e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembers5.json @@ -558,7 +558,8 @@ "end": 544 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -624,7 +625,8 @@ "end": 601 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1097,7 +1099,8 @@ "end": 959 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1163,7 +1166,8 @@ "end": 1017 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json index 2e197470b373..ac742d0ebebc 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility.json @@ -509,7 +509,8 @@ "end": 358 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -587,7 +588,8 @@ "end": 406 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json index 125eb95fd89c..786b34946615 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersAccessibility2.json @@ -535,7 +535,8 @@ "end": 438 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -613,7 +614,8 @@ "end": 497 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1057,7 +1059,8 @@ "end": 803 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { @@ -1135,7 +1138,8 @@ "end": 855 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "value": null, "typeAnnotation": { diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json index 4804a9b5149f..5330bd7afcd1 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality.json @@ -607,7 +607,8 @@ "end": 989 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -699,7 +700,8 @@ "end": 1035 }, "value": "1.", - "raw": "'1.'" + "raw": "'1.'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1371,7 +1373,8 @@ "end": 1405 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -1463,7 +1466,8 @@ "end": 1463 }, "value": "1.", - "raw": "'1.'" + "raw": "'1.'", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality2.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality2.json index 6f980bdf399d..4238cf7d9864 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality2.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality2.json @@ -524,7 +524,8 @@ "end": 350 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -616,7 +617,8 @@ "end": 394 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality3.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality3.json index 3bbb18c55ec1..e7d5de91fcdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality3.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality3.json @@ -524,7 +524,8 @@ "end": 347 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": true, @@ -616,7 +617,8 @@ "end": 394 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality4.json b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality4.json index ffb291f2a309..70d9f3b0ec78 100644 --- a/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality4.json +++ b/crates/swc_ecma_parser/tests/tsc/subtypingWithObjectMembersOptionality4.json @@ -524,7 +524,8 @@ "end": 349 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -616,7 +617,8 @@ "end": 395 }, "value": "1.0", - "raw": "'1.0'" + "raw": "'1.0'", + "loneSurrogates": false }, "computed": false, "optional": true, diff --git a/crates/swc_ecma_parser/tests/tsc/superCalls.json b/crates/swc_ecma_parser/tests/tsc/superCalls.json index fcab27c0a3c3..5aa4531dc7c5 100644 --- a/crates/swc_ecma_parser/tests/tsc/superCalls.json +++ b/crates/swc_ecma_parser/tests/tsc/superCalls.json @@ -287,7 +287,8 @@ "end": 224 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -345,7 +346,8 @@ "end": 299 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -531,7 +533,8 @@ "end": 431 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json b/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json index 289791433188..346b0aecd829 100644 --- a/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json +++ b/crates/swc_ecma_parser/tests/tsc/superInStaticMembers1.json @@ -6296,7 +6296,8 @@ "end": 6203 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -6514,7 +6515,8 @@ "end": 6437 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -6733,7 +6735,8 @@ "end": 6666 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -6953,7 +6956,8 @@ "end": 6895 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -7181,7 +7185,8 @@ "end": 7142 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -7410,7 +7415,8 @@ "end": 7413 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -7638,7 +7644,8 @@ "end": 7698 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -7867,7 +7874,8 @@ "end": 7983 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -8095,7 +8103,8 @@ "end": 8254 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -8324,7 +8333,8 @@ "end": 8501 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -8543,7 +8553,8 @@ "end": 8743 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -8763,7 +8774,8 @@ "end": 8967 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -8980,7 +8992,8 @@ "end": 9176 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -9198,7 +9211,8 @@ "end": 9403 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -9415,7 +9429,8 @@ "end": 9643 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -9633,7 +9648,8 @@ "end": 9865 }, "value": "./external", - "raw": "\"./external\"" + "raw": "\"./external\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json b/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json index d680b1c1a3c6..75245f762f91 100644 --- a/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json +++ b/crates/swc_ecma_parser/tests/tsc/superPropertyAccessNoError.json @@ -68,7 +68,8 @@ "end": 559 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json index 47d80db44cb2..a65e68a1deff 100644 --- a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json +++ b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess1.json @@ -74,7 +74,8 @@ "end": 49 }, "value": "myThing", - "raw": "'myThing'" + "raw": "'myThing'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json index ce234a752053..03a39c2194b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json +++ b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess3.json @@ -74,7 +74,8 @@ "end": 49 }, "value": "myThing", - "raw": "'myThing'" + "raw": "'myThing'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json index a3803e744d7a..ee4b044e953a 100644 --- a/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json +++ b/crates/swc_ecma_parser/tests/tsc/superSymbolIndexedAccess4.json @@ -74,7 +74,8 @@ "end": 49 }, "value": "myThing", - "raw": "'myThing'" + "raw": "'myThing'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json b/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json index e979ce072a58..b8874be0cf01 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/switchBreakStatements.json @@ -18,7 +18,8 @@ "end": 71 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -34,7 +35,8 @@ "end": 87 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -78,7 +80,8 @@ "end": 122 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -94,7 +97,8 @@ "end": 138 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -164,7 +168,8 @@ "end": 184 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -180,7 +185,8 @@ "end": 200 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -235,7 +241,8 @@ "end": 242 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -251,7 +258,8 @@ "end": 258 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -283,7 +291,8 @@ "end": 292 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -299,7 +308,8 @@ "end": 316 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -342,7 +352,8 @@ "end": 369 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -358,7 +369,8 @@ "end": 385 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -390,7 +402,8 @@ "end": 418 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -406,7 +419,8 @@ "end": 442 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -464,7 +478,8 @@ "end": 501 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -480,7 +495,8 @@ "end": 517 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -496,7 +512,8 @@ "end": 537 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -512,7 +529,8 @@ "end": 561 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -528,7 +546,8 @@ "end": 589 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -544,7 +563,8 @@ "end": 621 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -593,7 +613,8 @@ "end": 725 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [ { @@ -609,7 +630,8 @@ "end": 765 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/switchStatements.json b/crates/swc_ecma_parser/tests/tsc/switchStatements.json index 727d96274434..fd22f44d38fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/switchStatements.json @@ -112,7 +112,8 @@ "end": 65 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -202,7 +203,8 @@ "end": 112 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "consequent": [] }, @@ -449,7 +451,8 @@ "end": 299 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -611,7 +614,8 @@ "end": 387 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -710,7 +714,8 @@ "end": 419 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1025,7 +1030,8 @@ "end": 645 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1075,7 +1081,8 @@ "end": 680 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "cases": [] }, @@ -1322,7 +1329,8 @@ "end": 902 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -1376,7 +1384,8 @@ "end": 937 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1485,7 +1494,8 @@ "end": 967 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json b/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json index c1c72cb37cad..bc51889569c4 100644 --- a/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json +++ b/crates/swc_ecma_parser/tests/tsc/switchWithConstrainedTypeVariable.json @@ -107,7 +107,8 @@ "end": 120 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { @@ -274,7 +275,8 @@ "end": 73 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -290,7 +292,8 @@ "end": 79 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json index 497929830c33..26a167b392dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit10.json @@ -99,7 +99,8 @@ "end": 98 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json index 471e876c7f71..1c51c4ff3384 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit11.json @@ -217,7 +217,8 @@ "end": 175 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json index 261c99866ab7..9bef7829fd88 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit13.json @@ -92,7 +92,8 @@ "end": 89 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json index 30142483e721..459e4ae4bb4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit14.json @@ -92,7 +92,8 @@ "end": 89 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -176,7 +177,8 @@ "end": 135 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json index b449cfb19464..a7b7d2c20342 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit2.json @@ -70,7 +70,8 @@ "end": 76 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json index 6765579e5aed..35986d7afa65 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolDeclarationEmit4.json @@ -92,7 +92,8 @@ "end": 89 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json index d885ea63ca0c..0ffaf2b8c228 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty17.json @@ -146,7 +146,8 @@ "end": 103 }, "value": "__@iterator", - "raw": "\"__@iterator\"" + "raw": "\"__@iterator\"", + "loneSurrogates": false }, "computed": false, "optional": false, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json index 8ae3b68e5ef0..367d96df9cc6 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty18.json @@ -145,7 +145,8 @@ "end": 90 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json index 81d7385f5bdb..4978949bd4e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty21.json @@ -551,7 +551,8 @@ "end": 202 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json index 9bf28f3f71c8..e6fb58a5a40a 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty22.json @@ -449,7 +449,8 @@ "end": 132 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json index 9f601e602de3..98f7fef19d9d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty24.json @@ -187,7 +187,8 @@ "end": 143 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json index 2c0c9cd8199f..a4a92b9c6724 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty25.json @@ -187,7 +187,8 @@ "end": 143 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json index 01e21850a633..6b3eeb659d54 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty26.json @@ -92,7 +92,8 @@ "end": 73 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -203,7 +204,8 @@ "end": 152 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json index 1b6ccce04428..689245e9d766 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty27.json @@ -202,7 +202,8 @@ "end": 152 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json index 082889dc09e0..6e69200a026f 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty28.json @@ -109,7 +109,8 @@ "end": 78 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json index fb088323ce39..1a760388b3ea 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty29.json @@ -109,7 +109,8 @@ "end": 78 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json index c673ddbe2798..d82cc3beb9f3 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty30.json @@ -109,7 +109,8 @@ "end": 78 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json index a4a2daa86766..c285d6a1c186 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty31.json @@ -109,7 +109,8 @@ "end": 78 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json index 167ba3ea54a4..83daf55b044a 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty32.json @@ -109,7 +109,8 @@ "end": 78 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json index f0597f287953..992f804c9dab 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty33.json @@ -109,7 +109,8 @@ "end": 89 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json index 5ba93b1dfb65..92b18316f7c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty34.json @@ -109,7 +109,8 @@ "end": 89 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json index 6a03fcf53c14..d4e732af3050 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty40.json @@ -488,7 +488,8 @@ "end": 213 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json index 522b1816afb8..978410c2a44d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty41.json @@ -243,7 +243,8 @@ "end": 107 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -603,7 +604,8 @@ "end": 243 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -682,7 +684,8 @@ "end": 272 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json index 16834e847d08..e649984fbe09 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty44.json @@ -92,7 +92,8 @@ "end": 76 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -176,7 +177,8 @@ "end": 134 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json index 2be98837d14a..e2017304d13d 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty45.json @@ -92,7 +92,8 @@ "end": 76 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -176,7 +177,8 @@ "end": 134 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json index e13265e990f7..8e2695b20136 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty46.json @@ -92,7 +92,8 @@ "end": 76 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -379,7 +380,8 @@ "end": 220 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json index 9b6c932a12f6..e94ed571b541 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty47.json @@ -92,7 +92,8 @@ "end": 76 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -393,7 +394,8 @@ "end": 228 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json index ed7090ee488e..16192524e2dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty56.json @@ -218,7 +218,8 @@ "end": 348 }, "value": "iterator", - "raw": "\"iterator\"" + "raw": "\"iterator\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json b/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json index 94ab9dc70af8..eca2e2d26b88 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolProperty57.json @@ -146,7 +146,8 @@ "end": 105 }, "value": "nonsense", - "raw": "\"nonsense\"" + "raw": "\"nonsense\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType10.json b/crates/swc_ecma_parser/tests/tsc/symbolType10.json index eff1bfa2e012..5041d6274337 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType10.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType10.json @@ -74,7 +74,8 @@ "end": 44 }, "value": "bitwise", - "raw": "\"bitwise\"" + "raw": "\"bitwise\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType11.json b/crates/swc_ecma_parser/tests/tsc/symbolType11.json index fb87a0f8d392..24fc54924f5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType11.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType11.json @@ -74,7 +74,8 @@ "end": 44 }, "value": "logical", - "raw": "\"logical\"" + "raw": "\"logical\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType12.json b/crates/swc_ecma_parser/tests/tsc/symbolType12.json index 3d09dfc3a18a..98dcbcb3e37f 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType12.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType12.json @@ -74,7 +74,8 @@ "end": 43 }, "value": "assign", - "raw": "\"assign\"" + "raw": "\"assign\"", + "loneSurrogates": false } } ], @@ -118,7 +119,8 @@ "end": 58 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -439,7 +441,8 @@ "end": 131 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType17.json b/crates/swc_ecma_parser/tests/tsc/symbolType17.json index 270a76699f05..8a5971ee7eec 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType17.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType17.json @@ -183,7 +183,8 @@ "end": 89 }, "value": "symbol", - "raw": "\"symbol\"" + "raw": "\"symbol\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType18.json b/crates/swc_ecma_parser/tests/tsc/symbolType18.json index 40ca1c6c14c1..bd41be82f0cb 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType18.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType18.json @@ -183,7 +183,8 @@ "end": 89 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType19.json b/crates/swc_ecma_parser/tests/tsc/symbolType19.json index 3458180ddeec..2c067f1e2d94 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType19.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType19.json @@ -153,7 +153,8 @@ "end": 75 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType2.json b/crates/swc_ecma_parser/tests/tsc/symbolType2.json index a8d160d872c5..6c16f014db9f 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType2.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType2.json @@ -73,7 +73,8 @@ "end": 51 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType4.json b/crates/swc_ecma_parser/tests/tsc/symbolType4.json index 958eecb72384..69b7ae93f9fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType4.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType4.json @@ -74,7 +74,8 @@ "end": 44 }, "value": "postfix", - "raw": "\"postfix\"" + "raw": "\"postfix\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType5.json b/crates/swc_ecma_parser/tests/tsc/symbolType5.json index 37d22e061e68..084ef888de55 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType5.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType5.json @@ -74,7 +74,8 @@ "end": 45 }, "value": "multiply", - "raw": "\"multiply\"" + "raw": "\"multiply\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType6.json b/crates/swc_ecma_parser/tests/tsc/symbolType6.json index 4149d15204b8..eff1a61064f0 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType6.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType6.json @@ -74,7 +74,8 @@ "end": 40 }, "value": "add", - "raw": "\"add\"" + "raw": "\"add\"", + "loneSurrogates": false } } ], @@ -230,7 +231,8 @@ "end": 75 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -323,7 +325,8 @@ "end": 93 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -517,7 +520,8 @@ "end": 136 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -528,7 +532,8 @@ "end": 142 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -552,7 +557,8 @@ "end": 146 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -584,7 +590,8 @@ "end": 157 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType7.json b/crates/swc_ecma_parser/tests/tsc/symbolType7.json index edda40725e77..1b6175598cfe 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType7.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType7.json @@ -74,7 +74,8 @@ "end": 42 }, "value": "shift", - "raw": "\"shift\"" + "raw": "\"shift\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType8.json b/crates/swc_ecma_parser/tests/tsc/symbolType8.json index a411481c372d..109611b83ea2 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType8.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType8.json @@ -74,7 +74,8 @@ "end": 44 }, "value": "compare", - "raw": "\"compare\"" + "raw": "\"compare\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/symbolType9.json b/crates/swc_ecma_parser/tests/tsc/symbolType9.json index ddda26bd272f..7eca558a922b 100644 --- a/crates/swc_ecma_parser/tests/tsc/symbolType9.json +++ b/crates/swc_ecma_parser/tests/tsc/symbolType9.json @@ -74,7 +74,8 @@ "end": 42 }, "value": "equal", - "raw": "\"equal\"" + "raw": "\"equal\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json index 29d947e7a8b3..d69a47a47301 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping1.json @@ -957,7 +957,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -967,7 +968,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -977,7 +979,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1251,7 +1254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1261,7 +1265,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1271,7 +1276,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1281,7 +1287,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1662,7 +1669,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1672,7 +1680,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1682,7 +1691,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1692,7 +1702,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2073,7 +2084,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2083,7 +2095,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2093,7 +2106,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2103,7 +2117,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json index acc511a65bb4..addf662f19e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateContextualTyping2.json @@ -1010,7 +1010,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1020,7 +1021,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1030,7 +1032,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1305,7 +1308,8 @@ "end": 807 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } ], "quasis": [ @@ -1317,7 +1321,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1327,7 +1332,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1337,7 +1343,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1347,7 +1354,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1518,7 +1526,8 @@ "end": 899 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } ], "quasis": [ @@ -1530,7 +1539,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1540,7 +1550,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1550,7 +1561,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1560,7 +1572,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.json index 5ccbf857b5f1..b50a20c0602a 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01.json @@ -132,7 +132,8 @@ }, "tail": true, "cooked": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", - "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n" + "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6.json index 24fc108b42e0..457d3909c7d2 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes01_ES6.json @@ -132,7 +132,8 @@ }, "tail": true, "cooked": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", - "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n" + "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02.json index 2f1c6e8e8674..c140c997f7b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02.json @@ -25,7 +25,8 @@ "end": 11 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -34,7 +35,8 @@ "end": 20 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -43,7 +45,8 @@ "end": 29 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -52,7 +55,8 @@ "end": 38 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -61,7 +65,8 @@ "end": 47 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -70,7 +75,8 @@ "end": 56 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -79,7 +85,8 @@ "end": 65 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -88,7 +95,8 @@ "end": 74 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -97,7 +105,8 @@ "end": 83 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -106,7 +115,8 @@ "end": 92 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -115,7 +125,8 @@ "end": 102 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -124,7 +135,8 @@ "end": 112 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -133,7 +145,8 @@ "end": 122 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -142,7 +155,8 @@ "end": 132 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -151,7 +165,8 @@ "end": 142 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -160,7 +175,8 @@ "end": 152 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -169,7 +185,8 @@ "end": 162 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -178,7 +195,8 @@ "end": 172 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -187,7 +205,8 @@ "end": 182 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -196,7 +215,8 @@ "end": 192 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -205,7 +225,8 @@ "end": 202 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -214,7 +235,8 @@ "end": 214 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -223,7 +245,8 @@ "end": 226 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -232,7 +255,8 @@ "end": 238 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -241,7 +265,8 @@ "end": 247 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -250,7 +275,8 @@ "end": 256 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -259,7 +285,8 @@ "end": 265 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -268,7 +295,8 @@ "end": 274 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -277,7 +305,8 @@ "end": 283 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -289,7 +318,8 @@ }, "tail": false, "cooked": "0", - "raw": "0" + "raw": "0", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -299,7 +329,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -309,7 +340,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -319,7 +351,8 @@ }, "tail": false, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -329,7 +362,8 @@ }, "tail": false, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -339,7 +373,8 @@ }, "tail": false, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -349,7 +384,8 @@ }, "tail": false, "cooked": "6", - "raw": "6" + "raw": "6", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -359,7 +395,8 @@ }, "tail": false, "cooked": "7", - "raw": "7" + "raw": "7", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -369,7 +406,8 @@ }, "tail": false, "cooked": "8", - "raw": "8" + "raw": "8", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -379,7 +417,8 @@ }, "tail": false, "cooked": "9", - "raw": "9" + "raw": "9", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -389,7 +428,8 @@ }, "tail": false, "cooked": "10", - "raw": "10" + "raw": "10", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -399,7 +439,8 @@ }, "tail": false, "cooked": "11", - "raw": "11" + "raw": "11", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -409,7 +450,8 @@ }, "tail": false, "cooked": "12", - "raw": "12" + "raw": "12", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -419,7 +461,8 @@ }, "tail": false, "cooked": "13", - "raw": "13" + "raw": "13", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -429,7 +472,8 @@ }, "tail": false, "cooked": "14", - "raw": "14" + "raw": "14", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -439,7 +483,8 @@ }, "tail": false, "cooked": "15", - "raw": "15" + "raw": "15", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -449,7 +494,8 @@ }, "tail": false, "cooked": "16", - "raw": "16" + "raw": "16", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -459,7 +505,8 @@ }, "tail": false, "cooked": "17", - "raw": "17" + "raw": "17", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -469,7 +516,8 @@ }, "tail": false, "cooked": "18", - "raw": "18" + "raw": "18", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -479,7 +527,8 @@ }, "tail": false, "cooked": "19", - "raw": "19" + "raw": "19", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -489,7 +538,8 @@ }, "tail": false, "cooked": "20", - "raw": "20" + "raw": "20", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -499,7 +549,8 @@ }, "tail": false, "cooked": "2028", - "raw": "2028" + "raw": "2028", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -509,7 +560,8 @@ }, "tail": false, "cooked": "2029", - "raw": "2029" + "raw": "2029", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -519,7 +571,8 @@ }, "tail": false, "cooked": "0085", - "raw": "0085" + "raw": "0085", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -529,7 +582,8 @@ }, "tail": false, "cooked": "t", - "raw": "t" + "raw": "t", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -539,7 +593,8 @@ }, "tail": false, "cooked": "v", - "raw": "v" + "raw": "v", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -549,7 +604,8 @@ }, "tail": false, "cooked": "f", - "raw": "f" + "raw": "f", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -559,7 +615,8 @@ }, "tail": false, "cooked": "b", - "raw": "b" + "raw": "b", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -569,7 +626,8 @@ }, "tail": false, "cooked": "r", - "raw": "r" + "raw": "r", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -579,7 +637,8 @@ }, "tail": true, "cooked": "n", - "raw": "n" + "raw": "n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6.json index fbaa3b6507c9..de95e9abc278 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsPlainCharactersThatArePartsOfEscapes02_ES6.json @@ -130,7 +130,8 @@ "end": 58 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -139,7 +140,8 @@ "end": 67 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -148,7 +150,8 @@ "end": 76 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -157,7 +160,8 @@ "end": 85 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -166,7 +170,8 @@ "end": 94 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -175,7 +180,8 @@ "end": 103 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -184,7 +190,8 @@ "end": 112 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -193,7 +200,8 @@ "end": 121 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -202,7 +210,8 @@ "end": 130 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -211,7 +220,8 @@ "end": 139 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -220,7 +230,8 @@ "end": 149 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -229,7 +240,8 @@ "end": 159 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -238,7 +250,8 @@ "end": 169 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -247,7 +260,8 @@ "end": 179 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -256,7 +270,8 @@ "end": 189 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -265,7 +280,8 @@ "end": 199 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -274,7 +290,8 @@ "end": 209 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -283,7 +300,8 @@ "end": 219 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -292,7 +310,8 @@ "end": 229 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -301,7 +320,8 @@ "end": 239 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -310,7 +330,8 @@ "end": 249 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -319,7 +340,8 @@ "end": 261 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -328,7 +350,8 @@ "end": 273 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -337,7 +360,8 @@ "end": 285 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -346,7 +370,8 @@ "end": 294 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -355,7 +380,8 @@ "end": 303 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -364,7 +390,8 @@ "end": 312 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -373,7 +400,8 @@ "end": 321 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -382,7 +410,8 @@ "end": 330 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -394,7 +423,8 @@ }, "tail": false, "cooked": "0", - "raw": "0" + "raw": "0", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -404,7 +434,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -414,7 +445,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -424,7 +456,8 @@ }, "tail": false, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -434,7 +467,8 @@ }, "tail": false, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -444,7 +478,8 @@ }, "tail": false, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -454,7 +489,8 @@ }, "tail": false, "cooked": "6", - "raw": "6" + "raw": "6", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -464,7 +500,8 @@ }, "tail": false, "cooked": "7", - "raw": "7" + "raw": "7", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -474,7 +511,8 @@ }, "tail": false, "cooked": "8", - "raw": "8" + "raw": "8", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -484,7 +522,8 @@ }, "tail": false, "cooked": "9", - "raw": "9" + "raw": "9", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -494,7 +533,8 @@ }, "tail": false, "cooked": "10", - "raw": "10" + "raw": "10", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -504,7 +544,8 @@ }, "tail": false, "cooked": "11", - "raw": "11" + "raw": "11", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -514,7 +555,8 @@ }, "tail": false, "cooked": "12", - "raw": "12" + "raw": "12", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -524,7 +566,8 @@ }, "tail": false, "cooked": "13", - "raw": "13" + "raw": "13", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -534,7 +577,8 @@ }, "tail": false, "cooked": "14", - "raw": "14" + "raw": "14", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -544,7 +588,8 @@ }, "tail": false, "cooked": "15", - "raw": "15" + "raw": "15", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -554,7 +599,8 @@ }, "tail": false, "cooked": "16", - "raw": "16" + "raw": "16", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -564,7 +610,8 @@ }, "tail": false, "cooked": "17", - "raw": "17" + "raw": "17", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -574,7 +621,8 @@ }, "tail": false, "cooked": "18", - "raw": "18" + "raw": "18", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -584,7 +632,8 @@ }, "tail": false, "cooked": "19", - "raw": "19" + "raw": "19", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -594,7 +643,8 @@ }, "tail": false, "cooked": "20", - "raw": "20" + "raw": "20", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -604,7 +654,8 @@ }, "tail": false, "cooked": "2028", - "raw": "2028" + "raw": "2028", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -614,7 +665,8 @@ }, "tail": false, "cooked": "2029", - "raw": "2029" + "raw": "2029", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -624,7 +676,8 @@ }, "tail": false, "cooked": "0085", - "raw": "0085" + "raw": "0085", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -634,7 +687,8 @@ }, "tail": false, "cooked": "t", - "raw": "t" + "raw": "t", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -644,7 +698,8 @@ }, "tail": false, "cooked": "v", - "raw": "v" + "raw": "v", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -654,7 +709,8 @@ }, "tail": false, "cooked": "f", - "raw": "f" + "raw": "f", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -664,7 +720,8 @@ }, "tail": false, "cooked": "b", - "raw": "b" + "raw": "b", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -674,7 +731,8 @@ }, "tail": false, "cooked": "r", - "raw": "r" + "raw": "r", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -684,7 +742,8 @@ }, "tail": true, "cooked": "n", - "raw": "n" + "raw": "n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json index 72bf89bbc96d..1bd7324e66ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInference.json @@ -153,7 +153,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -307,7 +308,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -526,7 +528,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -536,7 +539,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -765,7 +769,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -775,7 +780,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1064,7 +1070,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1074,7 +1081,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1445,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1455,7 +1464,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1674,7 +1684,8 @@ "end": 1059 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1691,7 +1702,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1701,7 +1713,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1771,7 +1784,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1781,7 +1795,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1850,7 +1865,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1860,7 +1876,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2194,7 +2211,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2204,7 +2222,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2214,7 +2233,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2258,7 +2278,8 @@ "end": 1410 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "ArrowFunctionExpression", @@ -2292,7 +2313,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2302,7 +2324,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2312,7 +2335,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2373,7 +2397,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2383,7 +2408,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2393,7 +2419,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2727,7 +2754,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2737,7 +2765,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2747,7 +2776,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2791,7 +2821,8 @@ "end": 1749 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "ArrowFunctionExpression", @@ -2825,7 +2856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2835,7 +2867,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2845,7 +2878,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2906,7 +2940,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2916,7 +2951,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2926,7 +2962,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3471,7 +3508,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3481,7 +3519,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3491,7 +3530,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3501,7 +3541,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3653,7 +3694,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3663,7 +3705,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3673,7 +3716,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3683,7 +3727,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3877,7 +3922,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3887,7 +3933,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3897,7 +3944,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3907,7 +3955,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4496,7 +4545,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4506,7 +4556,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4516,7 +4567,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4526,7 +4578,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4678,7 +4731,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4688,7 +4742,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4698,7 +4753,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4708,7 +4764,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4902,7 +4959,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4912,7 +4970,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4922,7 +4981,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4932,7 +4992,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5203,7 +5264,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5213,7 +5275,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5284,7 +5347,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5294,7 +5358,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5304,7 +5369,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5314,7 +5380,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5655,7 +5722,8 @@ "end": 3021 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -5684,7 +5752,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5694,7 +5763,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5704,7 +5774,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5714,7 +5785,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6143,7 +6215,8 @@ "end": 3338 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -6158,7 +6231,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6168,7 +6242,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6178,7 +6253,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6188,7 +6264,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6392,7 +6469,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6402,7 +6480,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6412,7 +6491,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6422,7 +6502,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6649,7 +6730,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6659,7 +6741,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6669,7 +6752,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6679,7 +6763,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6821,7 +6906,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6831,7 +6917,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6841,7 +6928,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6851,7 +6939,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json index 4941178d99fa..ea83b949e11d 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsTypeArgumentInferenceES6.json @@ -153,7 +153,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -307,7 +308,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -526,7 +528,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -536,7 +539,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -765,7 +769,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -775,7 +780,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1064,7 +1070,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1074,7 +1081,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1445,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1455,7 +1464,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1674,7 +1684,8 @@ "end": 1073 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -1691,7 +1702,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1701,7 +1713,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1771,7 +1784,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1781,7 +1795,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1850,7 +1865,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1860,7 +1876,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2194,7 +2211,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2204,7 +2222,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2214,7 +2233,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2258,7 +2278,8 @@ "end": 1424 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "ArrowFunctionExpression", @@ -2292,7 +2313,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2302,7 +2324,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2312,7 +2335,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2373,7 +2397,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2383,7 +2408,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2393,7 +2419,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2727,7 +2754,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2737,7 +2765,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2747,7 +2776,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2791,7 +2821,8 @@ "end": 1763 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "ArrowFunctionExpression", @@ -2825,7 +2856,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2835,7 +2867,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2845,7 +2878,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2906,7 +2940,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2916,7 +2951,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2926,7 +2962,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3471,7 +3508,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3481,7 +3519,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3491,7 +3530,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3501,7 +3541,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3653,7 +3694,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3663,7 +3705,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3673,7 +3716,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3683,7 +3727,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3877,7 +3922,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3887,7 +3933,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3897,7 +3944,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3907,7 +3955,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4496,7 +4545,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4506,7 +4556,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4516,7 +4567,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4526,7 +4578,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4678,7 +4731,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4688,7 +4742,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4698,7 +4753,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4708,7 +4764,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4902,7 +4959,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4912,7 +4970,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4922,7 +4981,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4932,7 +4992,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5203,7 +5264,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5213,7 +5275,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5284,7 +5347,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5294,7 +5358,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5304,7 +5369,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5314,7 +5380,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5655,7 +5722,8 @@ "end": 3035 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -5684,7 +5752,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5694,7 +5763,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5704,7 +5774,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5714,7 +5785,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6143,7 +6215,8 @@ "end": 3352 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -6158,7 +6231,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6168,7 +6242,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6178,7 +6253,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6188,7 +6264,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6392,7 +6469,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6402,7 +6480,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6412,7 +6491,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6422,7 +6502,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6649,7 +6730,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6659,7 +6741,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6669,7 +6752,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6679,7 +6763,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6821,7 +6906,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6831,7 +6917,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6841,7 +6928,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6851,7 +6939,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json index 94a00edc3858..e83da39838d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTags.json @@ -502,7 +502,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -567,7 +568,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -577,7 +579,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -587,7 +590,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -639,7 +643,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -719,7 +724,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -729,7 +735,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -739,7 +746,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -800,7 +808,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -818,7 +827,8 @@ "end": 279 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -888,7 +898,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -898,7 +909,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -908,7 +920,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -926,7 +939,8 @@ "end": 313 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -990,7 +1004,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1057,7 +1072,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1067,7 +1083,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1077,7 +1094,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1161,7 +1179,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1171,7 +1190,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1181,7 +1201,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1199,7 +1220,8 @@ "end": 387 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1248,7 +1270,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1258,7 +1281,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1268,7 +1292,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1350,7 +1375,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1360,7 +1386,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1370,7 +1397,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1388,7 +1416,8 @@ "end": 458 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1437,7 +1466,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1477,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1457,7 +1488,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1520,7 +1552,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1605,7 +1638,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1615,7 +1649,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1625,7 +1660,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json index 16790f6ba0dc..393e9990957e 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithIncompatibleTypedTagsES6.json @@ -502,7 +502,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -567,7 +568,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -577,7 +579,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -587,7 +590,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -639,7 +643,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -719,7 +724,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -729,7 +735,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -739,7 +746,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -800,7 +808,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -818,7 +827,8 @@ "end": 295 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -888,7 +898,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -898,7 +909,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -908,7 +920,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -926,7 +939,8 @@ "end": 329 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -990,7 +1004,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1057,7 +1072,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1067,7 +1083,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1077,7 +1094,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1161,7 +1179,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1171,7 +1190,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1181,7 +1201,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1199,7 +1220,8 @@ "end": 403 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1248,7 +1270,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1258,7 +1281,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1268,7 +1292,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1350,7 +1375,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1360,7 +1386,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1370,7 +1397,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1388,7 +1416,8 @@ "end": 474 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1437,7 +1466,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1447,7 +1477,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1457,7 +1488,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1520,7 +1552,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1605,7 +1638,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1615,7 +1649,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1625,7 +1660,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json index 468958ee1cdf..b9871418559e 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressions.json @@ -471,7 +471,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -481,7 +482,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } @@ -505,7 +507,8 @@ "end": 271 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json index f5884016d594..84b44952b008 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithManyCallAndMemberExpressionsES6.json @@ -471,7 +471,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -481,7 +482,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } @@ -505,7 +507,8 @@ "end": 287 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json index a9ee010770fe..5001a206133e 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1.json @@ -1013,7 +1013,8 @@ "end": 508 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } ], @@ -1183,7 +1184,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1263,7 +1265,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1273,7 +1276,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1362,7 +1366,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1372,7 +1377,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1382,7 +1388,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1470,7 +1477,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1480,7 +1488,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1490,7 +1499,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1567,7 +1577,8 @@ "end": 764 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } ], "quasis": [ @@ -1579,7 +1590,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1589,7 +1601,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1599,7 +1612,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1697,7 +1711,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1707,7 +1722,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1717,7 +1733,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1727,7 +1744,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json index 4dfe9d9ccc10..0fdb31f9445f 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution1_ES6.json @@ -1013,7 +1013,8 @@ "end": 523 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } } ], @@ -1183,7 +1184,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1263,7 +1265,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1273,7 +1276,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1362,7 +1366,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1372,7 +1377,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1382,7 +1388,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1470,7 +1477,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1480,7 +1488,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1490,7 +1499,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1567,7 +1577,8 @@ "end": 779 }, "value": "2", - "raw": "\"2\"" + "raw": "\"2\"", + "loneSurrogates": false } ], "quasis": [ @@ -1579,7 +1590,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1589,7 +1601,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1599,7 +1612,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1697,7 +1711,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1707,7 +1722,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1717,7 +1733,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1727,7 +1744,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json index 063ce5be1202..d370e5a844c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2.json @@ -426,7 +426,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -436,7 +437,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -941,7 +943,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -951,7 +954,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json index b4f359632bc4..584d53cceeef 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution2_ES6.json @@ -426,7 +426,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -436,7 +437,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -941,7 +943,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -951,7 +954,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json index 6bd6f29de0ca..60e084971db6 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3.json @@ -374,7 +374,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -384,7 +385,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -442,7 +444,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -452,7 +455,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -965,7 +969,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -975,7 +980,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -985,7 +991,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1075,7 +1082,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1085,7 +1093,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1095,7 +1104,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1220,7 +1230,8 @@ "end": 762 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -1232,7 +1243,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1242,7 +1254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1252,7 +1265,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1296,7 +1310,8 @@ "end": 869 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -1317,7 +1332,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1327,7 +1343,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1337,7 +1354,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2172,7 +2190,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2182,7 +2201,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2250,7 +2270,8 @@ "end": 1211 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -2268,7 +2289,8 @@ "end": 1224 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -2280,7 +2302,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2290,7 +2313,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2300,7 +2324,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2310,7 +2335,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2408,7 +2434,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2418,7 +2445,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2428,7 +2456,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2438,7 +2467,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2564,7 +2594,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2574,7 +2605,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2642,7 +2674,8 @@ "end": 1427 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -2651,7 +2684,8 @@ "end": 1434 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -2660,7 +2694,8 @@ "end": 1441 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -2672,7 +2707,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2682,7 +2718,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2692,7 +2729,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2702,7 +2740,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2770,7 +2809,8 @@ "end": 1464 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -2779,7 +2819,8 @@ "end": 1471 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -2800,7 +2841,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2810,7 +2852,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2820,7 +2863,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2830,7 +2874,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2879,7 +2924,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3471,7 +3517,8 @@ "end": 1977 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -3492,7 +3539,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3502,7 +3550,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3512,7 +3561,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3565,7 +3615,8 @@ "end": 2006 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -3577,7 +3628,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3587,7 +3639,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3597,7 +3650,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3663,7 +3717,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3673,7 +3728,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3683,7 +3739,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3727,7 +3784,8 @@ "end": 2050 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NullLiteral", @@ -3746,7 +3804,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3756,7 +3815,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3766,7 +3826,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3827,7 +3888,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3837,7 +3899,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3847,7 +3910,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3909,7 +3973,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3919,7 +3984,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3929,7 +3995,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3991,7 +4058,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4001,7 +4069,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4011,7 +4080,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4488,7 +4558,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4498,7 +4569,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4618,7 +4690,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4628,7 +4701,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json index 259649037f83..d95e39a6775c 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithOverloadResolution3_ES6.json @@ -374,7 +374,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -384,7 +385,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -442,7 +444,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -452,7 +455,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -965,7 +969,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -975,7 +980,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -985,7 +991,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1075,7 +1082,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1085,7 +1093,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1095,7 +1104,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1220,7 +1230,8 @@ "end": 770 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -1232,7 +1243,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1242,7 +1254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1252,7 +1265,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1296,7 +1310,8 @@ "end": 877 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -1317,7 +1332,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1327,7 +1343,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1337,7 +1354,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2172,7 +2190,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2182,7 +2201,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2250,7 +2270,8 @@ "end": 1219 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -2268,7 +2289,8 @@ "end": 1232 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -2280,7 +2302,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2290,7 +2313,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2300,7 +2324,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2310,7 +2335,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2408,7 +2434,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2418,7 +2445,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2428,7 +2456,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2438,7 +2467,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2564,7 +2594,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2574,7 +2605,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2642,7 +2674,8 @@ "end": 1435 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -2651,7 +2684,8 @@ "end": 1442 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -2660,7 +2694,8 @@ "end": 1449 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -2672,7 +2707,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2682,7 +2718,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2692,7 +2729,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2702,7 +2740,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2770,7 +2809,8 @@ "end": 1472 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -2779,7 +2819,8 @@ "end": 1479 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -2800,7 +2841,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2810,7 +2852,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2820,7 +2863,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2830,7 +2874,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2879,7 +2924,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3471,7 +3517,8 @@ "end": 1985 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NumericLiteral", @@ -3492,7 +3539,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3502,7 +3550,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3512,7 +3561,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3565,7 +3615,8 @@ "end": 2014 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } ], "quasis": [ @@ -3577,7 +3628,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3587,7 +3639,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3597,7 +3650,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3663,7 +3717,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3673,7 +3728,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3683,7 +3739,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3727,7 +3784,8 @@ "end": 2058 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, { "type": "NullLiteral", @@ -3746,7 +3804,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3756,7 +3815,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3766,7 +3826,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3827,7 +3888,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3837,7 +3899,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3847,7 +3910,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3909,7 +3973,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3919,7 +3984,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3929,7 +3995,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3991,7 +4058,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4001,7 +4069,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4011,7 +4080,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4488,7 +4558,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4498,7 +4569,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4618,7 +4690,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4628,7 +4701,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json index de406a208950..802e92424c90 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclare.json @@ -175,7 +175,8 @@ }, "tail": false, "cooked": "Hello ", - "raw": "Hello " + "raw": "Hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -185,7 +186,8 @@ }, "tail": true, "cooked": " world!", - "raw": " world!" + "raw": " world!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json index fdc1fbec2efa..d9645a26b1e8 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagNamedDeclareES6.json @@ -175,7 +175,8 @@ }, "tail": false, "cooked": "Hello ", - "raw": "Hello " + "raw": "Hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -185,7 +186,8 @@ }, "tail": true, "cooked": " world!", - "raw": " world!" + "raw": " world!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json index 2b8de4a67b7f..2eeddc2b6588 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAny.json @@ -91,7 +91,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -156,7 +157,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -166,7 +168,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -176,7 +179,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -252,7 +256,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -347,7 +352,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -357,7 +363,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -367,7 +374,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -419,7 +427,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -499,7 +508,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -509,7 +519,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -519,7 +530,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -580,7 +592,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -598,7 +611,8 @@ "end": 151 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -668,7 +682,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -678,7 +693,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -688,7 +704,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -706,7 +723,8 @@ "end": 185 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -770,7 +788,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -788,7 +807,8 @@ "end": 205 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -837,7 +857,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -847,7 +868,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -857,7 +879,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -941,7 +964,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -951,7 +975,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -961,7 +986,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -979,7 +1005,8 @@ "end": 272 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1028,7 +1055,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1038,7 +1066,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1048,7 +1077,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1111,7 +1141,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1196,7 +1227,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1206,7 +1238,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1216,7 +1249,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json index 0c6edf6535d8..e7b20a725b2d 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTagsTypedAsAnyES6.json @@ -91,7 +91,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -156,7 +157,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -166,7 +168,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -176,7 +179,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -252,7 +256,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -347,7 +352,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -357,7 +363,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -367,7 +374,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -419,7 +427,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -499,7 +508,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -509,7 +519,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -519,7 +530,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -580,7 +592,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -598,7 +611,8 @@ "end": 166 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -668,7 +682,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -678,7 +693,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -688,7 +704,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -706,7 +723,8 @@ "end": 200 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -770,7 +788,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -788,7 +807,8 @@ "end": 220 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -837,7 +857,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -847,7 +868,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -857,7 +879,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -941,7 +964,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -951,7 +975,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -961,7 +986,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -979,7 +1005,8 @@ "end": 287 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1028,7 +1055,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1038,7 +1066,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1048,7 +1077,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1111,7 +1141,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1196,7 +1227,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1206,7 +1238,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1216,7 +1249,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json index 7fef260af1cb..4904c2813531 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json @@ -206,7 +206,8 @@ "end": 76 }, "value": "bad", - "raw": "\"bad\"" + "raw": "\"bad\"", + "loneSurrogates": false } } } @@ -227,7 +228,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -237,7 +239,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json index 9fe49c3be9f1..115671842f51 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json @@ -206,7 +206,8 @@ "end": 90 }, "value": "bad", - "raw": "\"bad\"" + "raw": "\"bad\"", + "loneSurrogates": false } } } @@ -227,7 +228,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -237,7 +239,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json index c4d448859f4e..a073ac14eddc 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTags.json @@ -502,7 +502,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -567,7 +568,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -577,7 +579,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -587,7 +590,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -639,7 +643,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -719,7 +724,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -729,7 +735,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -739,7 +746,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -800,7 +808,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -818,7 +827,8 @@ "end": 278 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -888,7 +898,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -898,7 +909,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -908,7 +920,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -926,7 +939,8 @@ "end": 312 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -990,7 +1004,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1057,7 +1072,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1067,7 +1083,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1077,7 +1094,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1161,7 +1179,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1171,7 +1190,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1181,7 +1201,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1199,7 +1220,8 @@ "end": 386 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1248,7 +1270,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1258,7 +1281,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1268,7 +1292,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1331,7 +1356,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1416,7 +1442,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1426,7 +1453,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1436,7 +1464,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json index c742c9e9a0a0..6ba0f33a739f 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateStringsWithTypedTagsES6.json @@ -502,7 +502,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -567,7 +568,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -577,7 +579,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -587,7 +590,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -639,7 +643,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -719,7 +724,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -729,7 +735,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -739,7 +746,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -800,7 +808,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -818,7 +827,8 @@ "end": 294 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -888,7 +898,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -898,7 +909,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -908,7 +920,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -926,7 +939,8 @@ "end": 328 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } } @@ -990,7 +1004,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1057,7 +1072,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1067,7 +1083,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1077,7 +1094,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1161,7 +1179,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1171,7 +1190,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1181,7 +1201,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1199,7 +1220,8 @@ "end": 402 }, "value": "member", - "raw": "\"member\"" + "raw": "\"member\"", + "loneSurrogates": false } } }, @@ -1248,7 +1270,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1258,7 +1281,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1268,7 +1292,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } @@ -1331,7 +1356,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -1416,7 +1442,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1426,7 +1453,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1436,7 +1464,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateUntypedTagCall01.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateUntypedTagCall01.json index 47a8f27b9a5b..fb125f58e5d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateUntypedTagCall01.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateUntypedTagCall01.json @@ -101,7 +101,8 @@ }, "tail": true, "cooked": "Hello world!", - "raw": "Hello world!" + "raw": "Hello world!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag01.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag01.json index 144376d5b335..042dc67744d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag01.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag01.json @@ -71,7 +71,8 @@ }, "tail": true, "cooked": "Hello world!", - "raw": "Hello world!" + "raw": "Hello world!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag02.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag02.json index 66571f8c4bf9..30e3a5d9a0a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag02.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplateWithConstructableTag02.json @@ -223,7 +223,8 @@ }, "tail": true, "cooked": "Hello world!", - "raw": "Hello world!" + "raw": "Hello world!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json b/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json index 0a565393310a..6cae7853f348 100644 --- a/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json +++ b/crates/swc_ecma_parser/tests/tsc/taggedTemplatesWithTypeArguments1.json @@ -620,7 +620,8 @@ }, "tail": false, "cooked": "\n hello\n ", - "raw": "\n hello\n " + "raw": "\n hello\n ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -630,7 +631,8 @@ }, "tail": false, "cooked": "\n brave\n ", - "raw": "\n brave\n " + "raw": "\n brave\n ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -640,7 +642,8 @@ }, "tail": false, "cooked": "\n world\n ", - "raw": "\n world\n " + "raw": "\n world\n ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -650,7 +653,8 @@ }, "tail": true, "cooked": "\n", - "raw": "\n" + "raw": "\n", + "loneSurrogates": false } ] } @@ -1448,7 +1452,8 @@ }, "tail": false, "cooked": "\n hello\n ", - "raw": "\n hello\n " + "raw": "\n hello\n ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1458,7 +1463,8 @@ }, "tail": false, "cooked": "\n brave\n ", - "raw": "\n brave\n " + "raw": "\n brave\n ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1468,7 +1474,8 @@ }, "tail": false, "cooked": "\n world\n ", - "raw": "\n world\n " + "raw": "\n world\n ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1478,7 +1485,8 @@ }, "tail": true, "cooked": "\n", - "raw": "\n" + "raw": "\n", + "loneSurrogates": false } ] } @@ -1854,7 +1862,8 @@ "end": 767 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } } }, @@ -1960,7 +1969,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1970,7 +1980,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2279,7 +2290,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2289,7 +2301,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json index ab27e1b6bb9d..20be377bdbcd 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes2.json @@ -127,7 +127,8 @@ "end": 102 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -143,7 +144,8 @@ "end": 110 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } }, { @@ -159,7 +161,8 @@ "end": 118 }, "value": "baz", - "raw": "'baz'" + "raw": "'baz'", + "loneSurrogates": false } } ] @@ -279,7 +282,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -289,7 +293,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -351,7 +356,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -361,7 +367,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -423,7 +430,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -433,7 +441,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -495,7 +504,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -505,7 +515,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -575,7 +586,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -585,7 +597,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -619,7 +632,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -629,7 +643,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -699,7 +714,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -709,7 +725,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -743,7 +760,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -753,7 +771,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -825,7 +844,8 @@ "end": 341 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } }, { @@ -841,7 +861,8 @@ "end": 349 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } }, { @@ -857,7 +878,8 @@ "end": 357 }, "value": "baz", - "raw": "'baz'" + "raw": "'baz'", + "loneSurrogates": false } } ] @@ -872,7 +894,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -882,7 +905,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -916,7 +940,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -926,7 +951,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1006,7 +1032,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1016,7 +1043,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1050,7 +1078,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1060,7 +1089,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1207,7 +1237,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1217,7 +1248,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1345,7 +1377,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1355,7 +1388,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1548,7 +1582,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1558,7 +1593,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1592,7 +1628,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1602,7 +1639,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1713,7 +1751,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1723,7 +1762,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1957,7 +1997,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1967,7 +2008,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1998,7 +2040,8 @@ }, "tail": false, "cooked": "bar", - "raw": "bar" + "raw": "bar", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2008,7 +2051,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2086,7 +2130,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2096,7 +2141,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2132,7 +2178,8 @@ }, "tail": false, "cooked": "bar", - "raw": "bar" + "raw": "bar", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2142,7 +2189,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2313,7 +2361,8 @@ }, "tail": false, "cooked": "baz", - "raw": "baz" + "raw": "baz", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2323,7 +2372,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2401,7 +2451,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2411,7 +2462,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2447,7 +2499,8 @@ }, "tail": false, "cooked": "bar", - "raw": "bar" + "raw": "bar", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2457,7 +2510,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2493,7 +2547,8 @@ }, "tail": false, "cooked": "baz", - "raw": "baz" + "raw": "baz", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2503,7 +2558,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2854,7 +2910,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2864,7 +2921,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -2975,7 +3033,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2985,7 +3044,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3019,7 +3079,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3029,7 +3090,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3138,7 +3200,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3148,7 +3211,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3183,7 +3247,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3193,7 +3258,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3304,7 +3370,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3314,7 +3381,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3349,7 +3417,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3359,7 +3428,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3470,7 +3540,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3480,7 +3551,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3986,7 +4058,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3996,7 +4069,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4078,7 +4152,8 @@ "end": 1955 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "alternate": { "type": "TemplateLiteral", @@ -4107,7 +4182,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4117,7 +4193,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4204,7 +4281,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4214,7 +4292,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4296,7 +4375,8 @@ "end": 2042 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "alternate": { "type": "TemplateLiteral", @@ -4325,7 +4405,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4335,7 +4416,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4419,7 +4501,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4429,7 +4512,8 @@ }, "tail": true, "cooked": "px", - "raw": "px" + "raw": "px", + "loneSurrogates": false } ] } @@ -4504,7 +4588,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4514,7 +4599,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5266,7 +5352,8 @@ }, "tail": false, "cooked": "xyz-", - "raw": "xyz-" + "raw": "xyz-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5276,7 +5363,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5362,7 +5450,8 @@ }, "tail": false, "cooked": "xyz-", - "raw": "xyz-" + "raw": "xyz-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5372,7 +5461,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5578,7 +5668,8 @@ }, "tail": false, "cooked": "foo.bar.", - "raw": "foo.bar." + "raw": "foo.bar.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5588,7 +5679,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5676,7 +5768,8 @@ "end": 2629 }, "value": "foo.bar.baz", - "raw": "\"foo.bar.baz\"" + "raw": "\"foo.bar.baz\"", + "loneSurrogates": false } } ], @@ -5720,7 +5813,8 @@ "end": 2666 }, "value": "foo.bar.baz", - "raw": "\"foo.bar.baz\"" + "raw": "\"foo.bar.baz\"", + "loneSurrogates": false }, "definite": false } @@ -5911,7 +6005,8 @@ }, "tail": false, "cooked": "foo.bar.", - "raw": "foo.bar." + "raw": "foo.bar.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5921,7 +6016,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5987,7 +6083,8 @@ }, "tail": false, "cooked": "foo.bar.", - "raw": "foo.bar." + "raw": "foo.bar.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5997,7 +6094,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -6121,7 +6219,8 @@ "end": 2914 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -6137,7 +6236,8 @@ "end": 2922 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } }, { @@ -6153,7 +6253,8 @@ "end": 2930 }, "value": "ghi", - "raw": "'ghi'" + "raw": "'ghi'", + "loneSurrogates": false } } ] @@ -6239,7 +6340,8 @@ }, "tail": false, "cooked": "foo.bar.", - "raw": "foo.bar." + "raw": "foo.bar.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6249,7 +6351,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6364,7 +6467,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6374,7 +6478,8 @@ }, "tail": true, "cooked": "px", - "raw": "px" + "raw": "px", + "loneSurrogates": false } ] } @@ -6447,7 +6552,8 @@ }, "tail": true, "cooked": "22px", - "raw": "22px" + "raw": "22px", + "loneSurrogates": false } ] }, @@ -6533,7 +6639,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6543,7 +6650,8 @@ }, "tail": true, "cooked": "px", - "raw": "px" + "raw": "px", + "loneSurrogates": false } ] }, @@ -6646,7 +6754,8 @@ }, "tail": false, "cooked": "test-", - "raw": "test-" + "raw": "test-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6656,7 +6765,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6703,7 +6813,8 @@ }, "tail": false, "cooked": "test-", - "raw": "test-" + "raw": "test-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6713,7 +6824,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6836,7 +6948,8 @@ "end": 3424 }, "value": "-moz-initial", - "raw": "\"-moz-initial\"" + "raw": "\"-moz-initial\"", + "loneSurrogates": false } }, { @@ -6982,7 +7095,8 @@ }, "tail": false, "cooked": "rotate(", - "raw": "rotate(" + "raw": "rotate(", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6992,7 +7106,8 @@ }, "tail": true, "cooked": "dig)", - "raw": "dig)" + "raw": "dig)", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json index f01329183234..f7425b98e694 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes3.json @@ -129,7 +129,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -139,7 +140,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -226,7 +228,8 @@ "end": 184 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -287,7 +290,8 @@ "end": 212 }, "value": "*hello*", - "raw": "'*hello*'" + "raw": "'*hello*'", + "loneSurrogates": false } } ] @@ -348,7 +352,8 @@ "end": 242 }, "value": "**hello**", - "raw": "'**hello**'" + "raw": "'**hello**'", + "loneSurrogates": false } } ] @@ -427,7 +432,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -437,7 +443,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -518,7 +525,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -528,7 +536,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -609,7 +618,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -619,7 +629,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -700,7 +711,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -710,7 +722,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -791,7 +804,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -801,7 +815,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -890,7 +905,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -900,7 +916,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -910,7 +927,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -993,7 +1011,8 @@ "end": 473 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1009,7 +1028,8 @@ "end": 479 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -1025,7 +1045,8 @@ "end": 485 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } } ] @@ -1040,7 +1061,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1050,7 +1072,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -1139,7 +1162,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1149,7 +1173,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1159,7 +1184,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -1245,7 +1271,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1255,7 +1282,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -1562,7 +1590,8 @@ "end": 697 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -1626,7 +1655,8 @@ "end": 737 }, "value": "*hello*", - "raw": "'*hello*'" + "raw": "'*hello*'", + "loneSurrogates": false } } ], @@ -1690,7 +1720,8 @@ "end": 769 }, "value": "**hello**", - "raw": "'**hello**'" + "raw": "'**hello**'", + "loneSurrogates": false } } ], @@ -1780,7 +1811,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1790,7 +1822,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -1883,7 +1916,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1893,7 +1927,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -1986,7 +2021,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1996,7 +2032,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -2089,7 +2126,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2099,7 +2137,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -2192,7 +2231,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2202,7 +2242,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -2344,7 +2385,8 @@ "end": 1135 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "trueType": { @@ -2460,7 +2502,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2470,7 +2513,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2480,7 +2524,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2653,7 +2698,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -2734,7 +2780,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2744,7 +2791,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -2825,7 +2873,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2835,7 +2884,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -2932,7 +2982,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2942,7 +2993,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2952,7 +3004,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2962,7 +3015,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -3077,7 +3131,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3087,7 +3142,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3097,7 +3153,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3107,7 +3164,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3150,7 +3208,8 @@ "end": 1445 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false } } }, @@ -3191,7 +3250,8 @@ "end": 1462 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -3224,7 +3284,8 @@ }, "tail": false, "cooked": "1.1.", - "raw": "1.1." + "raw": "1.1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3234,7 +3295,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3279,7 +3341,8 @@ "end": 1498 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -3312,7 +3375,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3322,7 +3386,8 @@ }, "tail": true, "cooked": ".1", - "raw": ".1" + "raw": ".1", + "loneSurrogates": false } ] } @@ -3367,7 +3432,8 @@ "end": 1534 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -3408,7 +3474,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3418,7 +3485,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3428,7 +3496,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3473,7 +3542,8 @@ "end": 1578 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -3506,7 +3576,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3516,7 +3587,8 @@ }, "tail": true, "cooked": ".1.1", - "raw": ".1.1" + "raw": ".1.1", + "loneSurrogates": false } ] } @@ -3561,7 +3633,8 @@ "end": 1614 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -3602,7 +3675,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3612,7 +3686,8 @@ }, "tail": false, "cooked": ".1.", - "raw": ".1." + "raw": ".1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3622,7 +3697,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3667,7 +3743,8 @@ "end": 1658 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -3708,7 +3785,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3718,7 +3796,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3728,7 +3807,8 @@ }, "tail": true, "cooked": ".1", - "raw": ".1" + "raw": ".1", + "loneSurrogates": false } ] } @@ -3773,7 +3853,8 @@ "end": 1702 }, "value": "1.1.1", - "raw": "'1.1.1'" + "raw": "'1.1.1'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -3822,7 +3903,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3832,7 +3914,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3842,7 +3925,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3852,7 +3936,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4100,7 +4185,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4110,7 +4196,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -4153,7 +4240,8 @@ "end": 1855 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } }, @@ -4188,7 +4276,8 @@ "end": 1884 }, "value": "*hello*", - "raw": "'*hello*'" + "raw": "'*hello*'", + "loneSurrogates": false } } }, @@ -4223,7 +4312,8 @@ "end": 1905 }, "value": "**hello**", - "raw": "'**hello**'" + "raw": "'**hello**'", + "loneSurrogates": false } } }, @@ -4284,7 +4374,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4294,7 +4385,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -4358,7 +4450,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4368,7 +4461,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -4432,7 +4526,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4442,7 +4537,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -4506,7 +4602,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4516,7 +4613,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -4580,7 +4678,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4590,7 +4689,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -4874,7 +4974,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4884,7 +4985,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -4927,7 +5029,8 @@ "end": 2158 }, "value": "123", - "raw": "'123'" + "raw": "'123'", + "loneSurrogates": false } } }, @@ -4962,7 +5065,8 @@ "end": 2185 }, "value": "*123*", - "raw": "'*123*'" + "raw": "'*123*'", + "loneSurrogates": false } } }, @@ -4997,7 +5101,8 @@ "end": 2204 }, "value": "**123**", - "raw": "'**123**'" + "raw": "'**123**'", + "loneSurrogates": false } } }, @@ -5058,7 +5163,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5068,7 +5174,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -5132,7 +5239,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5142,7 +5250,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -5206,7 +5315,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5216,7 +5326,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -5280,7 +5391,8 @@ }, "tail": false, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5290,7 +5402,8 @@ }, "tail": true, "cooked": "*", - "raw": "*" + "raw": "*", + "loneSurrogates": false } ] } @@ -5494,7 +5607,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5504,7 +5618,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5514,7 +5629,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5637,7 +5753,8 @@ }, "tail": true, "cooked": "test.1024", - "raw": "test.1024" + "raw": "test.1024", + "loneSurrogates": false } ] } @@ -5718,7 +5835,8 @@ }, "tail": false, "cooked": "test.", - "raw": "test." + "raw": "test.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5728,7 +5846,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5869,7 +5988,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5879,7 +5999,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5889,7 +6010,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5985,7 +6107,8 @@ }, "tail": true, "cooked": "test.1024", - "raw": "test.1024" + "raw": "test.1024", + "loneSurrogates": false } ] } @@ -6066,7 +6189,8 @@ }, "tail": false, "cooked": "test.", - "raw": "test." + "raw": "test.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6076,7 +6200,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6238,7 +6363,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6248,7 +6374,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6258,7 +6385,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6381,7 +6509,8 @@ }, "tail": true, "cooked": "test.hoge", - "raw": "test.hoge" + "raw": "test.hoge", + "loneSurrogates": false } ] } @@ -6462,7 +6591,8 @@ }, "tail": false, "cooked": "test.", - "raw": "test." + "raw": "test.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6472,7 +6602,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6613,7 +6744,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6623,7 +6755,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6633,7 +6766,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6729,7 +6863,8 @@ }, "tail": true, "cooked": "test.hoge", - "raw": "test.hoge" + "raw": "test.hoge", + "loneSurrogates": false } ] } @@ -6810,7 +6945,8 @@ }, "tail": false, "cooked": "test.", - "raw": "test." + "raw": "test.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6820,7 +6956,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6886,7 +7023,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6896,7 +7034,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6906,7 +7045,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6960,7 +7100,8 @@ "end": 3079 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "definite": false } @@ -7050,7 +7191,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7060,7 +7202,8 @@ }, "tail": true, "cooked": " abc", - "raw": " abc" + "raw": " abc", + "loneSurrogates": false } ] } @@ -7103,7 +7246,8 @@ "end": 3235 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false }, "definite": false } @@ -7193,7 +7337,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7203,7 +7348,8 @@ }, "tail": true, "cooked": " abc", - "raw": " abc" + "raw": " abc", + "loneSurrogates": false } ] } @@ -7250,7 +7396,8 @@ "end": 3337 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -7266,7 +7413,8 @@ "end": 3345 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -7310,7 +7458,8 @@ "end": 3378 }, "value": "foo:baz", - "raw": "\"foo:baz\"" + "raw": "\"foo:baz\"", + "loneSurrogates": false } }, { @@ -7326,7 +7475,8 @@ "end": 3390 }, "value": "bar:baz", - "raw": "\"bar:baz\"" + "raw": "\"bar:baz\"", + "loneSurrogates": false } } ] @@ -7438,7 +7588,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7448,7 +7599,8 @@ }, "tail": true, "cooked": ":baz", - "raw": ":baz" + "raw": ":baz", + "loneSurrogates": false } ] } @@ -7902,7 +8054,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7912,7 +8065,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7922,7 +8076,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8047,7 +8202,8 @@ "end": 3698 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -8121,7 +8277,8 @@ }, "tail": false, "cooked": "foo-", - "raw": "foo-" + "raw": "foo-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8131,7 +8288,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8192,7 +8350,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8202,7 +8361,8 @@ }, "tail": true, "cooked": "-bar", - "raw": "-bar" + "raw": "-bar", + "loneSurrogates": false } ] } @@ -8263,7 +8423,8 @@ }, "tail": false, "cooked": "baz-", - "raw": "baz-" + "raw": "baz-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8273,7 +8434,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8488,7 +8650,8 @@ }, "tail": false, "cooked": "foo-", - "raw": "foo-" + "raw": "foo-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8498,7 +8661,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8569,7 +8733,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8579,7 +8744,8 @@ }, "tail": true, "cooked": "-bar", - "raw": "-bar" + "raw": "-bar", + "loneSurrogates": false } ] } @@ -8650,7 +8816,8 @@ }, "tail": false, "cooked": "baz-", - "raw": "baz-" + "raw": "baz-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8660,7 +8827,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8942,7 +9110,8 @@ }, "tail": false, "cooked": "foo-", - "raw": "foo-" + "raw": "foo-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8952,7 +9121,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8970,7 +9140,8 @@ "end": 4110 }, "value": "bar", - "raw": "'bar'" + "raw": "'bar'", + "loneSurrogates": false } } ] @@ -9163,7 +9334,8 @@ }, "tail": false, "cooked": "foo-", - "raw": "foo-" + "raw": "foo-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9173,7 +9345,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9226,7 +9399,8 @@ "end": 4251 }, "value": "foo-test", - "raw": "'foo-test'" + "raw": "'foo-test'", + "loneSurrogates": false } }, "consequent": { @@ -9288,7 +9462,8 @@ "end": 4311 }, "value": "foo-test", - "raw": "'foo-test'" + "raw": "'foo-test'", + "loneSurrogates": false } }, "consequent": { @@ -9415,7 +9590,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9425,7 +9601,8 @@ }, "tail": true, "cooked": "_REQUEST", - "raw": "_REQUEST" + "raw": "_REQUEST", + "loneSurrogates": false } ] } @@ -9497,7 +9674,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9507,7 +9685,8 @@ }, "tail": true, "cooked": "_SUCCESS", - "raw": "_SUCCESS" + "raw": "_SUCCESS", + "loneSurrogates": false } ] } @@ -9671,7 +9850,8 @@ "end": 4550 }, "value": "FOO_SUCCESS", - "raw": "'FOO_SUCCESS'" + "raw": "'FOO_SUCCESS'", + "loneSurrogates": false } }, "consequent": { @@ -9822,7 +10002,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9832,7 +10013,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9842,7 +10024,8 @@ }, "tail": false, "cooked": ".", - "raw": "." + "raw": ".", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9852,7 +10035,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -10215,7 +10399,8 @@ "end": 4826 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } ], "quasis": [ @@ -10227,7 +10412,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10237,7 +10423,8 @@ }, "tail": true, "cooked": ".3", - "raw": ".3" + "raw": ".3", + "loneSurrogates": false } ] } @@ -10258,7 +10445,8 @@ "end": 4840 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } ], "quasis": [ @@ -10270,7 +10458,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10280,7 +10469,8 @@ }, "tail": true, "cooked": ".4", - "raw": ".4" + "raw": ".4", + "loneSurrogates": false } ] } @@ -10347,7 +10537,8 @@ "end": 4866 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -10368,7 +10559,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10378,7 +10570,8 @@ }, "tail": true, "cooked": ".3", - "raw": ".3" + "raw": ".3", + "loneSurrogates": false } ] } @@ -10405,7 +10598,8 @@ "end": 4890 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -10426,7 +10620,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10436,7 +10631,8 @@ }, "tail": true, "cooked": ".4", - "raw": ".4" + "raw": ".4", + "loneSurrogates": false } ] } @@ -10488,7 +10684,8 @@ "end": 4924 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } ], "quasis": [ @@ -10500,7 +10697,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10510,7 +10708,8 @@ }, "tail": true, "cooked": ".3", - "raw": ".3" + "raw": ".3", + "loneSurrogates": false } ] } @@ -10531,7 +10730,8 @@ "end": 4938 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } ], "quasis": [ @@ -10543,7 +10743,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10553,7 +10754,8 @@ }, "tail": true, "cooked": ".4", - "raw": ".4" + "raw": ".4", + "loneSurrogates": false } ] } @@ -10608,7 +10810,8 @@ "end": 4960 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -10629,7 +10832,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10639,7 +10843,8 @@ }, "tail": true, "cooked": ".3", - "raw": ".3" + "raw": ".3", + "loneSurrogates": false } ] } @@ -10666,7 +10871,8 @@ "end": 4984 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -10687,7 +10893,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10697,7 +10904,8 @@ }, "tail": true, "cooked": ".4", - "raw": ".4" + "raw": ".4", + "loneSurrogates": false } ] } @@ -10918,7 +11126,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10928,7 +11137,8 @@ }, "tail": true, "cooked": ".3", - "raw": ".3" + "raw": ".3", + "loneSurrogates": false } ] } @@ -11025,7 +11235,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11035,7 +11246,8 @@ }, "tail": true, "cooked": ".4", - "raw": ".4" + "raw": ".4", + "loneSurrogates": false } ] } @@ -11114,7 +11326,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11124,7 +11337,8 @@ }, "tail": true, "cooked": ".3", - "raw": ".3" + "raw": ".3", + "loneSurrogates": false } ] } @@ -11158,7 +11372,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11168,7 +11383,8 @@ }, "tail": true, "cooked": ".4", - "raw": ".4" + "raw": ".4", + "loneSurrogates": false } ] } @@ -11230,7 +11446,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11240,7 +11457,8 @@ }, "tail": true, "cooked": ".3", - "raw": ".3" + "raw": ".3", + "loneSurrogates": false } ] } @@ -11274,7 +11492,8 @@ }, "tail": false, "cooked": "1.", - "raw": "1." + "raw": "1.", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11284,7 +11503,8 @@ }, "tail": true, "cooked": ".4", - "raw": ".4" + "raw": ".4", + "loneSurrogates": false } ] } @@ -11429,7 +11649,8 @@ "end": 5246 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -11445,7 +11666,8 @@ "end": 5254 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } }, { @@ -11479,7 +11701,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11489,7 +11712,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11706,7 +11930,8 @@ }, "tail": false, "cooked": "-", - "raw": "-" + "raw": "-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11716,7 +11941,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11761,7 +11987,8 @@ "end": 5419 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } }, @@ -11796,7 +12023,8 @@ "end": 5434 }, "value": "-id", - "raw": "\"-id\"" + "raw": "\"-id\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json index 421b91d6f3fa..78f490e820bc 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes4.json @@ -42,7 +42,8 @@ "end": 102 }, "value": "100", - "raw": "\"100\"" + "raw": "\"100\"", + "loneSurrogates": false } }, "extendsType": { @@ -104,7 +105,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -114,7 +116,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -184,7 +187,8 @@ "end": 181 }, "value": "-100", - "raw": "\"-100\"" + "raw": "\"-100\"", + "loneSurrogates": false } }, "extendsType": { @@ -246,7 +250,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -256,7 +261,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -326,7 +332,8 @@ "end": 260 }, "value": "1.1", - "raw": "\"1.1\"" + "raw": "\"1.1\"", + "loneSurrogates": false } }, "extendsType": { @@ -388,7 +395,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -398,7 +406,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -468,7 +477,8 @@ "end": 340 }, "value": "8e-11", - "raw": "\"8e-11\"" + "raw": "\"8e-11\"", + "loneSurrogates": false } }, "extendsType": { @@ -530,7 +540,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -540,7 +551,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -610,7 +622,8 @@ "end": 437 }, "value": "0x10", - "raw": "\"0x10\"" + "raw": "\"0x10\"", + "loneSurrogates": false } }, "extendsType": { @@ -672,7 +685,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -682,7 +696,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -752,7 +767,8 @@ "end": 541 }, "value": "0o10", - "raw": "\"0o10\"" + "raw": "\"0o10\"", + "loneSurrogates": false } }, "extendsType": { @@ -814,7 +830,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -824,7 +841,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -894,7 +912,8 @@ "end": 645 }, "value": "0b10", - "raw": "\"0b10\"" + "raw": "\"0b10\"", + "loneSurrogates": false } }, "extendsType": { @@ -956,7 +975,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -966,7 +986,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1036,7 +1057,8 @@ "end": 749 }, "value": "10e2", - "raw": "\"10e2\"" + "raw": "\"10e2\"", + "loneSurrogates": false } }, "extendsType": { @@ -1098,7 +1120,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1108,7 +1131,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1178,7 +1202,8 @@ "end": 853 }, "value": "abcd", - "raw": "\"abcd\"" + "raw": "\"abcd\"", + "loneSurrogates": false } }, "extendsType": { @@ -1240,7 +1265,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1250,7 +1276,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1320,7 +1347,8 @@ "end": 955 }, "value": "100", - "raw": "\"100\"" + "raw": "\"100\"", + "loneSurrogates": false } }, "extendsType": { @@ -1382,7 +1410,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1392,7 +1421,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1462,7 +1492,8 @@ "end": 1035 }, "value": "-100", - "raw": "\"-100\"" + "raw": "\"-100\"", + "loneSurrogates": false } }, "extendsType": { @@ -1524,7 +1555,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1534,7 +1566,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1604,7 +1637,8 @@ "end": 1116 }, "value": "0x10", - "raw": "\"0x10\"" + "raw": "\"0x10\"", + "loneSurrogates": false } }, "extendsType": { @@ -1666,7 +1700,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1676,7 +1711,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1746,7 +1782,8 @@ "end": 1220 }, "value": "0o10", - "raw": "\"0o10\"" + "raw": "\"0o10\"", + "loneSurrogates": false } }, "extendsType": { @@ -1808,7 +1845,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1818,7 +1856,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1888,7 +1927,8 @@ "end": 1324 }, "value": "0b10", - "raw": "\"0b10\"" + "raw": "\"0b10\"", + "loneSurrogates": false } }, "extendsType": { @@ -1950,7 +1990,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1960,7 +2001,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2030,7 +2072,8 @@ "end": 1427 }, "value": "1.1", - "raw": "\"1.1\"" + "raw": "\"1.1\"", + "loneSurrogates": false } }, "extendsType": { @@ -2092,7 +2135,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2102,7 +2146,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2172,7 +2217,8 @@ "end": 1508 }, "value": "10e2", - "raw": "\"10e2\"" + "raw": "\"10e2\"", + "loneSurrogates": false } }, "extendsType": { @@ -2234,7 +2280,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2244,7 +2291,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2314,7 +2362,8 @@ "end": 1589 }, "value": "abcd", - "raw": "\"abcd\"" + "raw": "\"abcd\"", + "loneSurrogates": false } }, "extendsType": { @@ -2376,7 +2425,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2386,7 +2436,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2456,7 +2507,8 @@ "end": 1694 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -2518,7 +2570,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2528,7 +2581,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2598,7 +2652,8 @@ "end": 1777 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -2660,7 +2715,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2670,7 +2726,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2740,7 +2797,8 @@ "end": 1860 }, "value": "abcd", - "raw": "\"abcd\"" + "raw": "\"abcd\"", + "loneSurrogates": false } }, "extendsType": { @@ -2802,7 +2860,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2812,7 +2871,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2882,7 +2942,8 @@ "end": 1960 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } }, "extendsType": { @@ -2944,7 +3005,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2954,7 +3016,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3024,7 +3087,8 @@ "end": 2036 }, "value": "abcd", - "raw": "\"abcd\"" + "raw": "\"abcd\"", + "loneSurrogates": false } }, "extendsType": { @@ -3086,7 +3150,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3096,7 +3161,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3166,7 +3232,8 @@ "end": 2148 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "extendsType": { @@ -3228,7 +3295,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3238,7 +3306,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3308,7 +3377,8 @@ "end": 2239 }, "value": "abcd", - "raw": "\"abcd\"" + "raw": "\"abcd\"", + "loneSurrogates": false } }, "extendsType": { @@ -3370,7 +3440,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3380,7 +3451,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3455,7 +3527,8 @@ "end": 2371 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -3481,7 +3554,8 @@ "end": 2386 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, { @@ -3507,7 +3581,8 @@ "end": 2403 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, { @@ -3533,7 +3608,8 @@ "end": 2428 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, { @@ -3559,7 +3635,8 @@ "end": 2443 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } } ] @@ -3601,7 +3678,8 @@ "end": 2476 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -3673,7 +3751,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3683,7 +3762,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3810,7 +3890,8 @@ "end": 2637 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -3882,7 +3963,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3892,7 +3974,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4067,7 +4150,8 @@ "end": 2873 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -4139,7 +4223,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4149,7 +4234,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4219,7 +4305,8 @@ "end": 3261 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -4308,7 +4395,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4318,7 +4406,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4388,7 +4477,8 @@ "end": 3378 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -4467,7 +4557,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4477,7 +4568,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4547,7 +4639,8 @@ "end": 3482 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -4636,7 +4729,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4646,7 +4740,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4716,7 +4811,8 @@ "end": 3628 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -4803,7 +4899,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4813,7 +4910,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4883,7 +4981,8 @@ "end": 3709 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -4972,7 +5071,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4982,7 +5082,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5052,7 +5153,8 @@ "end": 3826 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -5131,7 +5233,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5141,7 +5244,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5211,7 +5315,8 @@ "end": 3940 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -5301,7 +5406,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5311,7 +5417,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5381,7 +5488,8 @@ "end": 4046 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -5460,7 +5568,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5470,7 +5579,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5540,7 +5650,8 @@ "end": 4140 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -5619,7 +5730,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5629,7 +5741,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5699,7 +5812,8 @@ "end": 4284 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -5785,7 +5899,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5795,7 +5910,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5865,7 +5981,8 @@ "end": 4375 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -5951,7 +6068,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5961,7 +6079,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6031,7 +6150,8 @@ "end": 4472 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "extendsType": { @@ -6110,7 +6230,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6120,7 +6241,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6190,7 +6312,8 @@ "end": 4572 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } }, "extendsType": { @@ -6269,7 +6392,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6279,7 +6403,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6349,7 +6474,8 @@ "end": 4741 }, "value": "10", - "raw": "\"10\"" + "raw": "\"10\"", + "loneSurrogates": false } }, "extendsType": { @@ -6428,7 +6554,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6438,7 +6565,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6466,7 +6594,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6476,7 +6605,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6546,7 +6676,8 @@ "end": 4865 }, "value": "10", - "raw": "\"10\"" + "raw": "\"10\"", + "loneSurrogates": false } }, "extendsType": { @@ -6625,7 +6756,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6635,7 +6767,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6673,7 +6806,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6683,7 +6817,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6753,7 +6888,8 @@ "end": 5031 }, "value": "10", - "raw": "\"10\"" + "raw": "\"10\"", + "loneSurrogates": false } }, "extendsType": { @@ -6832,7 +6968,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6842,7 +6979,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6878,7 +7016,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6888,7 +7027,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6958,7 +7098,8 @@ "end": 5123 }, "value": "10", - "raw": "\"10\"" + "raw": "\"10\"", + "loneSurrogates": false } }, "extendsType": { @@ -7037,7 +7178,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7047,7 +7189,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7085,7 +7228,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7095,7 +7239,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7165,7 +7310,8 @@ "end": 5260 }, "value": "10", - "raw": "\"10\"" + "raw": "\"10\"", + "loneSurrogates": false } }, "extendsType": { @@ -7244,7 +7390,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7254,7 +7401,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7282,7 +7430,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7292,7 +7441,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7362,7 +7512,8 @@ "end": 5394 }, "value": "10", - "raw": "\"10\"" + "raw": "\"10\"", + "loneSurrogates": false } }, "extendsType": { @@ -7441,7 +7592,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7451,7 +7603,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7492,7 +7645,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7502,7 +7656,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7572,7 +7727,8 @@ "end": 5520 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -7651,7 +7807,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7661,7 +7818,8 @@ }, "tail": true, "cooked": "e", - "raw": "e" + "raw": "e", + "loneSurrogates": false } ] } @@ -7689,7 +7847,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7699,7 +7858,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7769,7 +7929,8 @@ "end": 5622 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -7848,7 +8009,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7858,7 +8020,8 @@ }, "tail": true, "cooked": "e", - "raw": "e" + "raw": "e", + "loneSurrogates": false } ] } @@ -7886,7 +8049,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7896,7 +8060,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7966,7 +8131,8 @@ "end": 5784 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -8040,7 +8206,8 @@ "end": 5818 }, "value": "t", - "raw": "\"t\"" + "raw": "\"t\"", + "loneSurrogates": false } }, { @@ -8061,7 +8228,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8071,7 +8239,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8081,7 +8250,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8116,7 +8286,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8126,7 +8297,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8196,7 +8368,8 @@ "end": 5888 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -8270,7 +8443,8 @@ "end": 5922 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } }, { @@ -8291,7 +8465,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8301,7 +8476,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8311,7 +8487,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8346,7 +8523,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8356,7 +8534,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8426,7 +8605,8 @@ "end": 5998 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "extendsType": { @@ -8500,7 +8680,8 @@ "end": 6032 }, "value": "u", - "raw": "\"u\"" + "raw": "\"u\"", + "loneSurrogates": false } }, { @@ -8521,7 +8702,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8531,7 +8713,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8541,7 +8724,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8569,7 +8753,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8579,7 +8764,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8649,7 +8835,8 @@ "end": 6111 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } }, "extendsType": { @@ -8723,7 +8910,8 @@ "end": 6145 }, "value": "n", - "raw": "\"n\"" + "raw": "\"n\"", + "loneSurrogates": false } }, { @@ -8744,7 +8932,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8754,7 +8943,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8764,7 +8954,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8792,7 +8983,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8802,7 +8994,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8872,7 +9065,8 @@ "end": 6301 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -8933,7 +9127,8 @@ "end": 6332 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -8959,7 +9154,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8969,7 +9165,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9039,7 +9236,8 @@ "end": 6417 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -9100,7 +9298,8 @@ "end": 6448 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -9136,7 +9335,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9146,7 +9346,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9216,7 +9417,8 @@ "end": 6575 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -9277,7 +9479,8 @@ "end": 6606 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -9311,7 +9514,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9321,7 +9525,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9391,7 +9596,8 @@ "end": 6660 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -9452,7 +9658,8 @@ "end": 6691 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -9488,7 +9695,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9498,7 +9706,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9568,7 +9777,8 @@ "end": 6789 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -9629,7 +9839,8 @@ "end": 6820 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -9655,7 +9866,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9665,7 +9877,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9735,7 +9948,8 @@ "end": 6915 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -9796,7 +10010,8 @@ "end": 6946 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, { @@ -9833,7 +10048,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9843,7 +10059,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9913,7 +10130,8 @@ "end": 7033 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -9974,7 +10192,8 @@ "end": 7067 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, { @@ -9990,7 +10209,8 @@ "end": 7077 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, { @@ -10016,7 +10236,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10026,7 +10247,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -10096,7 +10318,8 @@ "end": 7144 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -10157,7 +10380,8 @@ "end": 7178 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, { @@ -10173,7 +10397,8 @@ "end": 7188 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, { @@ -10199,7 +10424,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10209,7 +10435,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -10279,7 +10506,8 @@ "end": 7313 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -10340,7 +10568,8 @@ "end": 7347 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, { @@ -10373,7 +10602,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10383,7 +10613,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -10453,7 +10684,8 @@ "end": 7411 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -10514,7 +10746,8 @@ "end": 7446 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, { @@ -10547,7 +10780,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10557,7 +10791,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -10627,7 +10862,8 @@ "end": 7516 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "extendsType": { @@ -10688,7 +10924,8 @@ "end": 7555 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, { @@ -10714,7 +10951,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10724,7 +10962,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -10794,7 +11033,8 @@ "end": 7628 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } }, "extendsType": { @@ -10855,7 +11095,8 @@ "end": 7662 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } }, { @@ -10881,7 +11122,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -10891,7 +11133,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -10961,7 +11204,8 @@ "end": 7819 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -11050,7 +11294,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11060,7 +11305,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11130,7 +11376,8 @@ "end": 7977 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -11229,7 +11476,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11239,7 +11487,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11309,7 +11558,8 @@ "end": 8177 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -11406,7 +11656,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11416,7 +11667,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11486,7 +11738,8 @@ "end": 8299 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -11585,7 +11838,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11595,7 +11849,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11665,7 +11920,8 @@ "end": 8470 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -11754,7 +12010,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11764,7 +12021,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -11834,7 +12092,8 @@ "end": 8638 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -11934,7 +12193,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -11944,7 +12204,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -12014,7 +12275,8 @@ "end": 8798 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -12103,7 +12365,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -12113,7 +12376,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -12183,7 +12447,8 @@ "end": 8930 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -12272,7 +12537,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -12282,7 +12548,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -12352,7 +12619,8 @@ "end": 9125 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, "extendsType": { @@ -12448,7 +12716,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -12458,7 +12727,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -12528,7 +12798,8 @@ "end": 9254 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } }, "extendsType": { @@ -12624,7 +12895,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -12634,7 +12906,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -12704,7 +12977,8 @@ "end": 9389 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "extendsType": { @@ -12793,7 +13067,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -12803,7 +13078,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -12873,7 +13149,8 @@ "end": 9527 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } }, "extendsType": { @@ -12962,7 +13239,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -12972,7 +13250,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -13042,7 +13321,8 @@ "end": 9710 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -13131,7 +13411,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -13141,7 +13422,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -13211,7 +13493,8 @@ "end": 9834 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -13300,7 +13583,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -13310,7 +13594,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -13380,7 +13665,8 @@ "end": 9948 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -13459,7 +13745,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -13469,7 +13756,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -13539,7 +13827,8 @@ "end": 10059 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -13629,7 +13918,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -13639,7 +13929,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -13709,7 +14000,8 @@ "end": 10204 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -13808,7 +14100,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -13818,7 +14111,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -13888,7 +14182,8 @@ "end": 10322 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -13977,7 +14272,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -13987,7 +14283,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -14057,7 +14354,8 @@ "end": 10437 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -14157,7 +14455,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14167,7 +14466,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -14237,7 +14537,8 @@ "end": 10604 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -14324,7 +14625,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14334,7 +14636,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -14404,7 +14707,8 @@ "end": 10725 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -14502,7 +14806,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14512,7 +14817,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -14582,7 +14888,8 @@ "end": 10903 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -14671,7 +14978,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14681,7 +14989,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -14751,7 +15060,8 @@ "end": 11070 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -14851,7 +15161,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -14861,7 +15172,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -14931,7 +15243,8 @@ "end": 11260 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -14992,7 +15305,8 @@ "end": 11291 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -15018,7 +15332,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15028,7 +15343,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -15098,7 +15414,8 @@ "end": 11341 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -15177,7 +15494,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15187,7 +15505,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -15215,7 +15534,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15225,7 +15545,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -15295,7 +15616,8 @@ "end": 11431 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -15382,7 +15704,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15392,7 +15715,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -15462,7 +15786,8 @@ "end": 11511 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } }, "extendsType": { @@ -15566,7 +15891,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15576,7 +15902,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -15646,7 +15973,8 @@ "end": 11634 }, "value": "100000000000000000000000", - "raw": "\"100000000000000000000000\"" + "raw": "\"100000000000000000000000\"", + "loneSurrogates": false } }, "extendsType": { @@ -15725,7 +16053,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15735,7 +16064,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -15805,7 +16135,8 @@ "end": 11775 }, "value": "100", - "raw": "\"100\"" + "raw": "\"100\"", + "loneSurrogates": false } }, "extendsType": { @@ -15875,7 +16206,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15885,7 +16217,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -15895,7 +16228,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -15965,7 +16299,8 @@ "end": 11864 }, "value": "trueabc", - "raw": "\"trueabc\"" + "raw": "\"trueabc\"", + "loneSurrogates": false } }, "extendsType": { @@ -16035,7 +16370,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16045,7 +16381,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16055,7 +16392,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -16143,7 +16481,8 @@ }, "tail": false, "cooked": "100:", - "raw": "100:" + "raw": "100:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16153,7 +16492,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -16225,7 +16565,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16235,7 +16576,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16245,7 +16587,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -16447,7 +16790,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16457,7 +16801,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -16579,7 +16924,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16589,7 +16935,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -16736,7 +17083,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -16746,7 +17094,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -16836,7 +17185,8 @@ "end": 12481 }, "value": "100", - "raw": "\"100\"" + "raw": "\"100\"", + "loneSurrogates": false } } ] @@ -16897,7 +17247,8 @@ "end": 12546 }, "value": "1.1", - "raw": "\"1.1\"" + "raw": "\"1.1\"", + "loneSurrogates": false } } ] @@ -16958,7 +17309,8 @@ "end": 12605 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ] @@ -17103,7 +17455,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -17113,7 +17466,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -17387,7 +17741,8 @@ "end": 13027 }, "value": "i8", - "raw": "\"i8\"" + "raw": "\"i8\"", + "loneSurrogates": false } }, { @@ -17403,7 +17758,8 @@ "end": 13035 }, "value": "i16", - "raw": "\"i16\"" + "raw": "\"i16\"", + "loneSurrogates": false } }, { @@ -17419,7 +17775,8 @@ "end": 13043 }, "value": "i32", - "raw": "\"i32\"" + "raw": "\"i32\"", + "loneSurrogates": false } }, { @@ -17435,7 +17792,8 @@ "end": 13051 }, "value": "i64", - "raw": "\"i64\"" + "raw": "\"i64\"", + "loneSurrogates": false } }, { @@ -17451,7 +17809,8 @@ "end": 13058 }, "value": "u8", - "raw": "\"u8\"" + "raw": "\"u8\"", + "loneSurrogates": false } }, { @@ -17467,7 +17826,8 @@ "end": 13066 }, "value": "u16", - "raw": "\"u16\"" + "raw": "\"u16\"", + "loneSurrogates": false } }, { @@ -17483,7 +17843,8 @@ "end": 13074 }, "value": "u32", - "raw": "\"u32\"" + "raw": "\"u32\"", + "loneSurrogates": false } }, { @@ -17499,7 +17860,8 @@ "end": 13082 }, "value": "u64", - "raw": "\"u64\"" + "raw": "\"u64\"", + "loneSurrogates": false } }, { @@ -17515,7 +17877,8 @@ "end": 13090 }, "value": "f32", - "raw": "\"f32\"" + "raw": "\"f32\"", + "loneSurrogates": false } }, { @@ -17531,7 +17894,8 @@ "end": 13098 }, "value": "f64", - "raw": "\"f64\"" + "raw": "\"f64\"", + "loneSurrogates": false } } ] @@ -17622,7 +17986,8 @@ "end": 13150 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false } } }, @@ -17674,7 +18039,8 @@ "end": 13173 }, "value": "i8", - "raw": "\"i8\"" + "raw": "\"i8\"", + "loneSurrogates": false } }, { @@ -17690,7 +18056,8 @@ "end": 13181 }, "value": "i16", - "raw": "\"i16\"" + "raw": "\"i16\"", + "loneSurrogates": false } }, { @@ -17706,7 +18073,8 @@ "end": 13189 }, "value": "i32", - "raw": "\"i32\"" + "raw": "\"i32\"", + "loneSurrogates": false } }, { @@ -17722,7 +18090,8 @@ "end": 13196 }, "value": "u8", - "raw": "\"u8\"" + "raw": "\"u8\"", + "loneSurrogates": false } }, { @@ -17738,7 +18107,8 @@ "end": 13204 }, "value": "u16", - "raw": "\"u16\"" + "raw": "\"u16\"", + "loneSurrogates": false } }, { @@ -17754,7 +18124,8 @@ "end": 13212 }, "value": "u32", - "raw": "\"u32\"" + "raw": "\"u32\"", + "loneSurrogates": false } }, { @@ -17770,7 +18141,8 @@ "end": 13220 }, "value": "f32", - "raw": "\"f32\"" + "raw": "\"f32\"", + "loneSurrogates": false } }, { @@ -17786,7 +18158,8 @@ "end": 13228 }, "value": "f64", - "raw": "\"f64\"" + "raw": "\"f64\"", + "loneSurrogates": false } } ] @@ -17843,7 +18216,8 @@ "end": 13259 }, "value": "f32", - "raw": "\"f32\"" + "raw": "\"f32\"", + "loneSurrogates": false } }, { @@ -17859,7 +18233,8 @@ "end": 13267 }, "value": "f64", - "raw": "\"f64\"" + "raw": "\"f64\"", + "loneSurrogates": false } } ] @@ -18043,7 +18418,8 @@ "end": 13517 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } }, @@ -18208,7 +18584,8 @@ "end": 13581 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false } } } @@ -18403,7 +18780,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -18413,7 +18791,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -18556,7 +18935,8 @@ "end": 13885 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false } } } @@ -18871,7 +19251,8 @@ "end": 14124 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false } } } @@ -18959,7 +19340,8 @@ "end": 14052 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } }, @@ -19194,7 +19576,8 @@ "end": 14243 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false } } } @@ -19299,7 +19682,8 @@ "end": 14165 }, "value": "name", - "raw": "\"name\"" + "raw": "\"name\"", + "loneSurrogates": false } } }, @@ -19500,7 +19884,8 @@ "end": 14388 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false } } } @@ -19783,7 +20168,8 @@ "end": 14499 }, "value": "type", - "raw": "\"type\"" + "raw": "\"type\"", + "loneSurrogates": false } } } @@ -20208,7 +20594,8 @@ "end": 14852 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -20251,7 +20638,8 @@ "end": 14865 }, "value": "f64", - "raw": "\"f64\"" + "raw": "\"f64\"", + "loneSurrogates": false } } } @@ -20311,7 +20699,8 @@ "end": 14884 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } } @@ -20354,7 +20743,8 @@ "end": 14897 }, "value": "f64", - "raw": "\"f64\"" + "raw": "\"f64\"", + "loneSurrogates": false } } } @@ -20867,7 +21257,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -20877,7 +21268,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -21009,7 +21401,8 @@ "end": 15301 }, "value": "**123**", - "raw": "\"**123**\"" + "raw": "\"**123**\"", + "loneSurrogates": false } } ], @@ -21093,7 +21486,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -21103,7 +21497,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -21218,7 +21613,8 @@ "end": 15383 }, "value": "**123**", - "raw": "\"**123**\"" + "raw": "\"**123**\"", + "loneSurrogates": false } } ], @@ -21302,7 +21698,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -21312,7 +21709,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -21427,7 +21825,8 @@ "end": 15463 }, "value": "**123**", - "raw": "\"**123**\"" + "raw": "\"**123**\"", + "loneSurrogates": false } } ], @@ -21511,7 +21910,8 @@ }, "tail": false, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -21521,7 +21921,8 @@ }, "tail": true, "cooked": "**", - "raw": "**" + "raw": "**", + "loneSurrogates": false } ] } @@ -21636,7 +22037,8 @@ "end": 15546 }, "value": "**true**", - "raw": "\"**true**\"" + "raw": "\"**true**\"", + "loneSurrogates": false } } ], @@ -21676,7 +22078,8 @@ "end": 15580 }, "value": "**false**", - "raw": "\"**false**\"" + "raw": "\"**false**\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json index 7eaea71821a1..5760dc824b0b 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes5.json @@ -69,7 +69,8 @@ "end": 139 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -112,7 +113,8 @@ "end": 149 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -214,7 +216,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -224,7 +227,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -278,7 +282,8 @@ "end": 185 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -294,7 +299,8 @@ "end": 191 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -443,7 +449,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -453,7 +460,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -507,7 +515,8 @@ "end": 246 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -523,7 +532,8 @@ "end": 252 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -731,7 +741,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -741,7 +752,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -795,7 +807,8 @@ "end": 326 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -811,7 +824,8 @@ "end": 332 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -892,7 +906,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -902,7 +917,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1120,7 +1136,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1130,7 +1147,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1215,7 +1233,8 @@ "end": 484 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsLiteralType", @@ -1258,7 +1277,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1268,7 +1288,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1328,7 +1349,8 @@ "end": 410 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1344,7 +1366,8 @@ "end": 416 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json index d0709af98073..ffb42fdde6b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes6.json @@ -362,7 +362,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -372,7 +373,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -382,7 +384,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -759,7 +762,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -769,7 +773,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -779,7 +784,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json index a403997645a9..04c1b147b80d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypes7.json @@ -68,7 +68,8 @@ "end": 137 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -110,7 +111,8 @@ "end": 146 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -152,7 +154,8 @@ "end": 155 }, "value": "C", - "raw": "'C'" + "raw": "'C'", + "loneSurrogates": false } } } @@ -194,7 +197,8 @@ "end": 164 }, "value": "D", - "raw": "'D'" + "raw": "'D'", + "loneSurrogates": false } } } @@ -296,7 +300,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -306,7 +311,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -541,7 +547,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -551,7 +558,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -845,7 +853,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -855,7 +864,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1165,7 +1175,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1175,7 +1186,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json index 160facb1a654..899b8416c757 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatterns.json @@ -54,7 +54,8 @@ }, "tail": false, "cooked": "/", - "raw": "/" + "raw": "/", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -64,7 +65,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -128,7 +130,8 @@ "end": 105 }, "value": "/bin", - "raw": "\"/bin\"" + "raw": "\"/bin\"", + "loneSurrogates": false }, "definite": false } @@ -192,7 +195,8 @@ "end": 160 }, "value": "no slash", - "raw": "\"no slash\"" + "raw": "\"no slash\"", + "loneSurrogates": false }, "definite": false } @@ -341,7 +345,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -351,7 +356,8 @@ }, "tail": false, "cooked": "://", - "raw": "://" + "raw": "://", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -361,7 +367,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -446,7 +453,8 @@ "end": 273 }, "value": "http", - "raw": "\"http\"" + "raw": "\"http\"", + "loneSurrogates": false } }, { @@ -462,7 +470,8 @@ "end": 283 }, "value": "https", - "raw": "\"https\"" + "raw": "\"https\"", + "loneSurrogates": false } }, { @@ -478,7 +487,8 @@ "end": 291 }, "value": "ftp", - "raw": "\"ftp\"" + "raw": "\"ftp\"", + "loneSurrogates": false } } ] @@ -551,7 +561,8 @@ "end": 364 }, "value": "http://example.com/protocol", - "raw": "\"http://example.com/protocol\"" + "raw": "\"http://example.com/protocol\"", + "loneSurrogates": false } } ], @@ -591,7 +602,8 @@ "end": 430 }, "value": "example.com/noprotocol", - "raw": "\"example.com/noprotocol\"" + "raw": "\"example.com/noprotocol\"", + "loneSurrogates": false } } ], @@ -631,7 +643,8 @@ "end": 509 }, "value": "gopher://example.com/protocol", - "raw": "\"gopher://example.com/protocol\"" + "raw": "\"gopher://example.com/protocol\"", + "loneSurrogates": false } } ], @@ -813,7 +826,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -823,7 +837,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -891,7 +906,8 @@ "end": 647 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } ], @@ -931,7 +947,8 @@ "end": 663 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ], @@ -971,7 +988,8 @@ "end": 690 }, "value": "other", - "raw": "\"other\"" + "raw": "\"other\"", + "loneSurrogates": false } } ], @@ -1099,7 +1117,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1109,7 +1128,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1265,7 +1285,8 @@ "end": 831 }, "value": "null", - "raw": "\"null\"" + "raw": "\"null\"", + "loneSurrogates": false } } ], @@ -1305,7 +1326,8 @@ "end": 855 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } } ], @@ -1345,7 +1367,8 @@ "end": 882 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } ], @@ -1385,7 +1408,8 @@ "end": 902 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ], @@ -1425,7 +1449,8 @@ "end": 920 }, "value": "NaN", - "raw": "\"NaN\"" + "raw": "\"NaN\"", + "loneSurrogates": false } } ], @@ -1465,7 +1490,8 @@ "end": 935 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -1505,7 +1531,8 @@ "end": 955 }, "value": "other", - "raw": "\"other\"" + "raw": "\"other\"", + "loneSurrogates": false } } ], @@ -1579,7 +1606,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1589,7 +1617,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1657,7 +1686,8 @@ "end": 1047 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ], @@ -1697,7 +1727,8 @@ "end": 1062 }, "value": "-1", - "raw": "\"-1\"" + "raw": "\"-1\"", + "loneSurrogates": false } } ], @@ -1737,7 +1768,8 @@ "end": 1076 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } ], @@ -1777,7 +1809,8 @@ "end": 1092 }, "value": "0b1", - "raw": "\"0b1\"" + "raw": "\"0b1\"", + "loneSurrogates": false } } ], @@ -1817,7 +1850,8 @@ "end": 1108 }, "value": "0x1", - "raw": "\"0x1\"" + "raw": "\"0x1\"", + "loneSurrogates": false } } ], @@ -1857,7 +1891,8 @@ "end": 1124 }, "value": "0o1", - "raw": "\"0o1\"" + "raw": "\"0o1\"", + "loneSurrogates": false } } ], @@ -1897,7 +1932,8 @@ "end": 1141 }, "value": "1e21", - "raw": "\"1e21\"" + "raw": "\"1e21\"", + "loneSurrogates": false } } ], @@ -1937,7 +1973,8 @@ "end": 1158 }, "value": "1E21", - "raw": "\"1E21\"" + "raw": "\"1E21\"", + "loneSurrogates": false } } ], @@ -1977,7 +2014,8 @@ "end": 1176 }, "value": "1e-21", - "raw": "\"1e-21\"" + "raw": "\"1e-21\"", + "loneSurrogates": false } } ], @@ -2017,7 +2055,8 @@ "end": 1194 }, "value": "1E-21", - "raw": "\"1E-21\"" + "raw": "\"1E-21\"", + "loneSurrogates": false } } ], @@ -2057,7 +2096,8 @@ "end": 1210 }, "value": "1.1", - "raw": "\"1.1\"" + "raw": "\"1.1\"", + "loneSurrogates": false } } ], @@ -2097,7 +2137,8 @@ "end": 1227 }, "value": "-1.1", - "raw": "\"-1.1\"" + "raw": "\"-1.1\"", + "loneSurrogates": false } } ], @@ -2137,7 +2178,8 @@ "end": 1248 }, "value": "-1.1e-10", - "raw": "\"-1.1e-10\"" + "raw": "\"-1.1e-10\"", + "loneSurrogates": false } } ], @@ -2177,7 +2219,8 @@ "end": 1269 }, "value": "-1.1E-10", - "raw": "\"-1.1E-10\"" + "raw": "\"-1.1E-10\"", + "loneSurrogates": false } } ], @@ -2217,7 +2260,8 @@ "end": 1289 }, "value": "1.1e-10", - "raw": "\"1.1e-10\"" + "raw": "\"1.1e-10\"", + "loneSurrogates": false } } ], @@ -2257,7 +2301,8 @@ "end": 1364 }, "value": "?", - "raw": "\"?\"" + "raw": "\"?\"", + "loneSurrogates": false } } ], @@ -2297,7 +2342,8 @@ "end": 1380 }, "value": "NaN", - "raw": "\"NaN\"" + "raw": "\"NaN\"", + "loneSurrogates": false } } ], @@ -2337,7 +2383,8 @@ "end": 1401 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } ], @@ -2377,7 +2424,8 @@ "end": 1423 }, "value": "+Infinity", - "raw": "\"+Infinity\"" + "raw": "\"+Infinity\"", + "loneSurrogates": false } } ], @@ -2417,7 +2465,8 @@ "end": 1445 }, "value": "-Infinity", - "raw": "\"-Infinity\"" + "raw": "\"-Infinity\"", + "loneSurrogates": false } } ], @@ -2457,7 +2506,8 @@ "end": 1463 }, "value": "1_000", - "raw": "\"1_000\"" + "raw": "\"1_000\"", + "loneSurrogates": false } } ], @@ -2497,7 +2547,8 @@ "end": 1549 }, "value": "a10", - "raw": "\"a10\"" + "raw": "\"a10\"", + "loneSurrogates": false } } ], @@ -2537,7 +2588,8 @@ "end": 1565 }, "value": "10a", - "raw": "\"10a\"" + "raw": "\"10a\"", + "loneSurrogates": false } } ], @@ -2577,7 +2629,8 @@ "end": 1632 }, "value": "- 1", - "raw": "\"- 1\"" + "raw": "\"- 1\"", + "loneSurrogates": false } } ], @@ -2617,7 +2670,8 @@ "end": 1651 }, "value": "-/**/1", - "raw": "\"-/**/1\"" + "raw": "\"-/**/1\"", + "loneSurrogates": false } } ], @@ -2691,7 +2745,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2701,7 +2756,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2769,7 +2825,8 @@ "end": 1743 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } ], @@ -2809,7 +2866,8 @@ "end": 1758 }, "value": "-1", - "raw": "\"-1\"" + "raw": "\"-1\"", + "loneSurrogates": false } } ], @@ -2849,7 +2907,8 @@ "end": 1772 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } ], @@ -2889,7 +2948,8 @@ "end": 1788 }, "value": "0b1", - "raw": "\"0b1\"" + "raw": "\"0b1\"", + "loneSurrogates": false } } ], @@ -2929,7 +2989,8 @@ "end": 1804 }, "value": "0x1", - "raw": "\"0x1\"" + "raw": "\"0x1\"", + "loneSurrogates": false } } ], @@ -2969,7 +3030,8 @@ "end": 1820 }, "value": "0o1", - "raw": "\"0o1\"" + "raw": "\"0o1\"", + "loneSurrogates": false } } ], @@ -3009,7 +3071,8 @@ "end": 1933 }, "value": "1e21", - "raw": "\"1e21\"" + "raw": "\"1e21\"", + "loneSurrogates": false } } ], @@ -3049,7 +3112,8 @@ "end": 1950 }, "value": "1E21", - "raw": "\"1E21\"" + "raw": "\"1E21\"", + "loneSurrogates": false } } ], @@ -3089,7 +3153,8 @@ "end": 1968 }, "value": "1e-21", - "raw": "\"1e-21\"" + "raw": "\"1e-21\"", + "loneSurrogates": false } } ], @@ -3129,7 +3194,8 @@ "end": 1986 }, "value": "1E-21", - "raw": "\"1E-21\"" + "raw": "\"1E-21\"", + "loneSurrogates": false } } ], @@ -3169,7 +3235,8 @@ "end": 2057 }, "value": "1.0", - "raw": "\"1.0\"" + "raw": "\"1.0\"", + "loneSurrogates": false } } ], @@ -3209,7 +3276,8 @@ "end": 2073 }, "value": "1.1", - "raw": "\"1.1\"" + "raw": "\"1.1\"", + "loneSurrogates": false } } ], @@ -3249,7 +3317,8 @@ "end": 2090 }, "value": "-1.1", - "raw": "\"-1.1\"" + "raw": "\"-1.1\"", + "loneSurrogates": false } } ], @@ -3289,7 +3358,8 @@ "end": 2111 }, "value": "-1.1e-10", - "raw": "\"-1.1e-10\"" + "raw": "\"-1.1e-10\"", + "loneSurrogates": false } } ], @@ -3329,7 +3399,8 @@ "end": 2132 }, "value": "-1.1E-10", - "raw": "\"-1.1E-10\"" + "raw": "\"-1.1E-10\"", + "loneSurrogates": false } } ], @@ -3369,7 +3440,8 @@ "end": 2152 }, "value": "1.1e-10", - "raw": "\"1.1e-10\"" + "raw": "\"1.1e-10\"", + "loneSurrogates": false } } ], @@ -3409,7 +3481,8 @@ "end": 2227 }, "value": "?", - "raw": "\"?\"" + "raw": "\"?\"", + "loneSurrogates": false } } ], @@ -3449,7 +3522,8 @@ "end": 2243 }, "value": "NaN", - "raw": "\"NaN\"" + "raw": "\"NaN\"", + "loneSurrogates": false } } ], @@ -3489,7 +3563,8 @@ "end": 2264 }, "value": "Infinity", - "raw": "\"Infinity\"" + "raw": "\"Infinity\"", + "loneSurrogates": false } } ], @@ -3529,7 +3604,8 @@ "end": 2286 }, "value": "+Infinity", - "raw": "\"+Infinity\"" + "raw": "\"+Infinity\"", + "loneSurrogates": false } } ], @@ -3569,7 +3645,8 @@ "end": 2308 }, "value": "-Infinity", - "raw": "\"-Infinity\"" + "raw": "\"-Infinity\"", + "loneSurrogates": false } } ], @@ -3609,7 +3686,8 @@ "end": 2326 }, "value": "1_000", - "raw": "\"1_000\"" + "raw": "\"1_000\"", + "loneSurrogates": false } } ], @@ -3649,7 +3727,8 @@ "end": 2393 }, "value": "- 1", - "raw": "\"- 1\"" + "raw": "\"- 1\"", + "loneSurrogates": false } } ], @@ -3689,7 +3768,8 @@ "end": 2412 }, "value": "-/**/1", - "raw": "\"-/**/1\"" + "raw": "\"-/**/1\"", + "loneSurrogates": false } } ], @@ -3729,7 +3809,8 @@ "end": 2499 }, "value": "a10n", - "raw": "\"a10n\"" + "raw": "\"a10n\"", + "loneSurrogates": false } } ], @@ -3769,7 +3850,8 @@ "end": 2516 }, "value": "10an", - "raw": "\"10an\"" + "raw": "\"10an\"", + "loneSurrogates": false } } ], @@ -3809,7 +3891,8 @@ "end": 2676 }, "value": "1n", - "raw": "\"1n\"" + "raw": "\"1n\"", + "loneSurrogates": false } } ], @@ -3849,7 +3932,8 @@ "end": 2692 }, "value": "-1n", - "raw": "\"-1n\"" + "raw": "\"-1n\"", + "loneSurrogates": false } } ], @@ -3889,7 +3973,8 @@ "end": 2707 }, "value": "0n", - "raw": "\"0n\"" + "raw": "\"0n\"", + "loneSurrogates": false } } ], @@ -3929,7 +4014,8 @@ "end": 2724 }, "value": "0b1n", - "raw": "\"0b1n\"" + "raw": "\"0b1n\"", + "loneSurrogates": false } } ], @@ -3969,7 +4055,8 @@ "end": 2741 }, "value": "0x1n", - "raw": "\"0x1n\"" + "raw": "\"0x1n\"", + "loneSurrogates": false } } ], @@ -4009,7 +4096,8 @@ "end": 2758 }, "value": "0o1n", - "raw": "\"0o1n\"" + "raw": "\"0o1n\"", + "loneSurrogates": false } } ], @@ -4049,7 +4137,8 @@ "end": 2776 }, "value": "1e21n", - "raw": "\"1e21n\"" + "raw": "\"1e21n\"", + "loneSurrogates": false } } ], @@ -4089,7 +4178,8 @@ "end": 2794 }, "value": "1E21n", - "raw": "\"1E21n\"" + "raw": "\"1E21n\"", + "loneSurrogates": false } } ], @@ -4129,7 +4219,8 @@ "end": 2813 }, "value": "1e-21n", - "raw": "\"1e-21n\"" + "raw": "\"1e-21n\"", + "loneSurrogates": false } } ], @@ -4169,7 +4260,8 @@ "end": 2832 }, "value": "1E-21n", - "raw": "\"1E-21n\"" + "raw": "\"1E-21n\"", + "loneSurrogates": false } } ], @@ -4209,7 +4301,8 @@ "end": 2849 }, "value": "1.1n", - "raw": "\"1.1n\"" + "raw": "\"1.1n\"", + "loneSurrogates": false } } ], @@ -4249,7 +4342,8 @@ "end": 2867 }, "value": "-1.1n", - "raw": "\"-1.1n\"" + "raw": "\"-1.1n\"", + "loneSurrogates": false } } ], @@ -4289,7 +4383,8 @@ "end": 2889 }, "value": "-1.1e-10n", - "raw": "\"-1.1e-10n\"" + "raw": "\"-1.1e-10n\"", + "loneSurrogates": false } } ], @@ -4329,7 +4424,8 @@ "end": 2911 }, "value": "-1.1E-10n", - "raw": "\"-1.1E-10n\"" + "raw": "\"-1.1E-10n\"", + "loneSurrogates": false } } ], @@ -4369,7 +4465,8 @@ "end": 2932 }, "value": "1.1e-10n", - "raw": "\"1.1e-10n\"" + "raw": "\"1.1e-10n\"", + "loneSurrogates": false } } ], @@ -4425,7 +4522,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4435,7 +4533,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4490,7 +4589,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4500,7 +4600,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4555,7 +4656,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4565,7 +4667,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4815,7 +4918,8 @@ }, "tail": true, "cooked": "bno", - "raw": "bno" + "raw": "bno", + "loneSurrogates": false } ] } @@ -5041,7 +5145,8 @@ }, "tail": true, "cooked": "aok", - "raw": "aok" + "raw": "aok", + "loneSurrogates": false } ] } @@ -5192,7 +5297,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5202,7 +5308,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5343,7 +5450,8 @@ "end": 3387 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } } ] @@ -5537,7 +5645,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5547,7 +5656,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5630,7 +5740,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5640,7 +5751,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5650,7 +5762,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5714,7 +5827,8 @@ "end": 3569 }, "value": "anything", - "raw": "\"anything\"" + "raw": "\"anything\"", + "loneSurrogates": false }, "definite": false } @@ -5778,7 +5892,8 @@ "end": 3608 }, "value": "1 2", - "raw": "\"1 2\"" + "raw": "\"1 2\"", + "loneSurrogates": false }, "definite": false } @@ -5828,7 +5943,8 @@ "end": 3650 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false } } } @@ -5889,7 +6005,8 @@ "end": 3663 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false } }, { @@ -5923,7 +6040,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5933,7 +6051,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6016,7 +6135,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6026,7 +6146,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6044,7 +6165,8 @@ "end": 3782 }, "value": "foo1", - "raw": "'foo1'" + "raw": "'foo1'", + "loneSurrogates": false } }, { @@ -6060,7 +6182,8 @@ "end": 3791 }, "value": "1foo", - "raw": "'1foo'" + "raw": "'1foo'", + "loneSurrogates": false } } ] @@ -6132,7 +6255,8 @@ }, "tail": true, "cooked": "foo1", - "raw": "foo1" + "raw": "foo1", + "loneSurrogates": false } ] } @@ -6150,7 +6274,8 @@ "end": 3844 }, "value": "1foo", - "raw": "'1foo'" + "raw": "'1foo'", + "loneSurrogates": false } }, { @@ -6166,7 +6291,8 @@ "end": 3855 }, "value": "foofoo", - "raw": "'foofoo'" + "raw": "'foofoo'", + "loneSurrogates": false } }, { @@ -6200,7 +6326,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6210,7 +6337,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6228,7 +6356,8 @@ "end": 3881 }, "value": "foox", - "raw": "'foox'" + "raw": "'foox'", + "loneSurrogates": false } }, { @@ -6244,7 +6373,8 @@ "end": 3890 }, "value": "xfoo", - "raw": "'xfoo'" + "raw": "'xfoo'", + "loneSurrogates": false } } ] @@ -6316,7 +6446,8 @@ }, "tail": true, "cooked": "foo1", - "raw": "foo1" + "raw": "foo1", + "loneSurrogates": false } ] } @@ -6334,7 +6465,8 @@ "end": 3952 }, "value": "1foo", - "raw": "'1foo'" + "raw": "'1foo'", + "loneSurrogates": false } }, { @@ -6350,7 +6482,8 @@ "end": 3963 }, "value": "foofoo", - "raw": "'foofoo'" + "raw": "'foofoo'", + "loneSurrogates": false } }, { @@ -6384,7 +6517,8 @@ }, "tail": false, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6394,7 +6528,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6412,7 +6547,8 @@ "end": 3989 }, "value": "foox", - "raw": "'foox'" + "raw": "'foox'", + "loneSurrogates": false } }, { @@ -6428,7 +6564,8 @@ "end": 3998 }, "value": "xfoo", - "raw": "'xfoo'" + "raw": "'xfoo'", + "loneSurrogates": false } }, { @@ -6462,7 +6599,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6472,7 +6610,8 @@ }, "tail": true, "cooked": "foo", - "raw": "foo" + "raw": "foo", + "loneSurrogates": false } ] } @@ -6548,7 +6687,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6558,7 +6698,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6639,7 +6780,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6649,7 +6791,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6667,7 +6810,8 @@ "end": 4108 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false } } ] @@ -6822,7 +6966,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6832,7 +6977,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6842,7 +6988,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6897,7 +7044,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6907,7 +7055,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6978,7 +7127,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6988,7 +7138,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6998,7 +7149,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7008,7 +7160,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7150,7 +7303,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7160,7 +7314,8 @@ }, "tail": false, "cooked": "-", - "raw": "-" + "raw": "-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7170,7 +7325,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7465,7 +7621,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7475,7 +7632,8 @@ }, "tail": false, "cooked": "-", - "raw": "-" + "raw": "-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7485,7 +7643,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7922,7 +8081,8 @@ "end": 4843 }, "value": "downcast", - "raw": "\"downcast\"" + "raw": "\"downcast\"", + "loneSurrogates": false } }, { @@ -7938,7 +8098,8 @@ "end": 4860 }, "value": "dataDowncast", - "raw": "\"dataDowncast\"" + "raw": "\"dataDowncast\"", + "loneSurrogates": false } }, { @@ -7954,7 +8115,8 @@ "end": 4880 }, "value": "editingDowncast", - "raw": "\"editingDowncast\"" + "raw": "\"editingDowncast\"", + "loneSurrogates": false } }, { @@ -7995,7 +8157,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8005,7 +8168,8 @@ }, "tail": true, "cooked": "Downcast", - "raw": "Downcast" + "raw": "Downcast", + "loneSurrogates": false } ] } @@ -8079,7 +8243,8 @@ "end": 4941 }, "value": "testDowncast", - "raw": "\"testDowncast\"" + "raw": "\"testDowncast\"", + "loneSurrogates": false } } ], @@ -8142,7 +8307,8 @@ "end": 4992 }, "value": "downcast", - "raw": "\"downcast\"" + "raw": "\"downcast\"", + "loneSurrogates": false } }, { @@ -8158,7 +8324,8 @@ "end": 5009 }, "value": "dataDowncast", - "raw": "\"dataDowncast\"" + "raw": "\"dataDowncast\"", + "loneSurrogates": false } }, { @@ -8174,7 +8341,8 @@ "end": 5029 }, "value": "editingDowncast", - "raw": "\"editingDowncast\"" + "raw": "\"editingDowncast\"", + "loneSurrogates": false } }, { @@ -8223,7 +8391,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8233,7 +8402,8 @@ }, "tail": true, "cooked": "Downcast", - "raw": "Downcast" + "raw": "Downcast", + "loneSurrogates": false } ] } @@ -8299,7 +8469,8 @@ "end": 5091 }, "value": "testDowncast", - "raw": "\"testDowncast\"" + "raw": "\"testDowncast\"", + "loneSurrogates": false } } ], @@ -8362,7 +8533,8 @@ "end": 5142 }, "value": "downcast", - "raw": "\"downcast\"" + "raw": "\"downcast\"", + "loneSurrogates": false } }, { @@ -8378,7 +8550,8 @@ "end": 5159 }, "value": "dataDowncast", - "raw": "\"dataDowncast\"" + "raw": "\"dataDowncast\"", + "loneSurrogates": false } }, { @@ -8394,7 +8567,8 @@ "end": 5179 }, "value": "editingDowncast", - "raw": "\"editingDowncast\"" + "raw": "\"editingDowncast\"", + "loneSurrogates": false } }, { @@ -8445,7 +8619,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8455,7 +8630,8 @@ }, "tail": true, "cooked": "Downcast", - "raw": "Downcast" + "raw": "Downcast", + "loneSurrogates": false } ] } @@ -8519,7 +8695,8 @@ "end": 5241 }, "value": "testDowncast", - "raw": "\"testDowncast\"" + "raw": "\"testDowncast\"", + "loneSurrogates": false } } ], @@ -8582,7 +8759,8 @@ "end": 5292 }, "value": "downcast", - "raw": "\"downcast\"" + "raw": "\"downcast\"", + "loneSurrogates": false } }, { @@ -8598,7 +8776,8 @@ "end": 5309 }, "value": "dataDowncast", - "raw": "\"dataDowncast\"" + "raw": "\"dataDowncast\"", + "loneSurrogates": false } }, { @@ -8614,7 +8793,8 @@ "end": 5329 }, "value": "editingDowncast", - "raw": "\"editingDowncast\"" + "raw": "\"editingDowncast\"", + "loneSurrogates": false } }, { @@ -8665,7 +8845,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8675,7 +8856,8 @@ }, "tail": true, "cooked": "Downcast", - "raw": "Downcast" + "raw": "Downcast", + "loneSurrogates": false } ] } @@ -8739,7 +8921,8 @@ "end": 5391 }, "value": "testDowncast", - "raw": "\"testDowncast\"" + "raw": "\"testDowncast\"", + "loneSurrogates": false } } ], @@ -8833,7 +9016,8 @@ }, "tail": false, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8843,7 +9027,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8879,7 +9064,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8889,7 +9075,8 @@ }, "tail": true, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false } ] } @@ -8906,7 +9093,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8916,7 +9104,8 @@ }, "tail": true, "cooked": "Test", - "raw": "Test" + "raw": "Test", + "loneSurrogates": false } ] } @@ -8978,7 +9167,8 @@ "end": 5467 }, "value": "abaTest", - "raw": "\"abaTest\"" + "raw": "\"abaTest\"", + "loneSurrogates": false } } ], @@ -9018,7 +9208,8 @@ "end": 5489 }, "value": "abcTest", - "raw": "\"abcTest\"" + "raw": "\"abcTest\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatternsPrefixSuffixAssignability.json b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatternsPrefixSuffixAssignability.json index 3e2b709a4c5e..b83e35d74633 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatternsPrefixSuffixAssignability.json +++ b/crates/swc_ecma_parser/tests/tsc/templateLiteralTypesPatternsPrefixSuffixAssignability.json @@ -67,7 +67,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77,7 +78,8 @@ }, "tail": true, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false } ] } @@ -91,7 +93,8 @@ "end": 30 }, "value": ":", - "raw": "\":\"" + "raw": "\":\"", + "loneSurrogates": false }, "definite": false } @@ -159,7 +162,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -169,7 +173,8 @@ }, "tail": true, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false } ] } @@ -183,7 +188,8 @@ "end": 78 }, "value": "::", - "raw": "\"::\"" + "raw": "\"::\"", + "loneSurrogates": false }, "definite": false } @@ -259,7 +265,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -269,7 +276,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -279,7 +287,8 @@ }, "tail": true, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false } ] } @@ -293,7 +302,8 @@ "end": 126 }, "value": "::", - "raw": "\"::\"" + "raw": "\"::\"", + "loneSurrogates": false }, "definite": false } @@ -369,7 +379,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -379,7 +390,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -389,7 +401,8 @@ }, "tail": true, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false } ] } @@ -403,7 +416,8 @@ "end": 185 }, "value": ":::", - "raw": "\":::\"" + "raw": "\":::\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperations.json b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperations.json index b734dc33b92b..8d02e2888212 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperations.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperations.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -162,7 +164,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -172,7 +175,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -250,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -260,7 +265,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -338,7 +344,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -348,7 +355,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -417,7 +425,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -427,7 +436,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -505,7 +515,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -515,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -593,7 +605,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -603,7 +616,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -681,7 +695,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -691,7 +706,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -785,7 +801,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -795,7 +812,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -890,7 +908,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -900,7 +919,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -995,7 +1015,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1005,7 +1026,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1100,7 +1122,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1110,7 +1133,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1215,7 +1239,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1225,7 +1250,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1320,7 +1346,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1330,7 +1357,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1425,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1435,7 +1464,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -1530,7 +1560,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1540,7 +1571,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -1626,7 +1658,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1636,7 +1669,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1731,7 +1765,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1741,7 +1776,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1836,7 +1872,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1846,7 +1883,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -1941,7 +1979,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1951,7 +1990,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -2062,7 +2102,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2072,7 +2113,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2184,7 +2226,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2194,7 +2237,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2306,7 +2350,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2316,7 +2361,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2428,7 +2474,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2438,7 +2485,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2543,7 +2591,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2553,7 +2602,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2648,7 +2698,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2658,7 +2709,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2753,7 +2805,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2763,7 +2816,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2858,7 +2912,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2868,7 +2923,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2954,7 +3010,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2964,7 +3021,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3059,7 +3117,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3069,7 +3128,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3164,7 +3224,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3174,7 +3235,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3269,7 +3331,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3279,7 +3342,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3390,7 +3454,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3400,7 +3465,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3512,7 +3578,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3522,7 +3589,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3634,7 +3702,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3644,7 +3713,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3756,7 +3826,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3766,7 +3837,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3871,7 +3943,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3881,7 +3954,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3976,7 +4050,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3986,7 +4061,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4081,7 +4157,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4091,7 +4168,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4186,7 +4264,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4196,7 +4275,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4282,7 +4362,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4292,7 +4373,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4387,7 +4469,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4397,7 +4480,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4492,7 +4576,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4502,7 +4587,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4597,7 +4683,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4607,7 +4694,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4718,7 +4806,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4728,7 +4817,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4840,7 +4930,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4850,7 +4941,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4962,7 +5054,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4972,7 +5065,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5084,7 +5178,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5094,7 +5189,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6.json index 1d708ddb9a7b..f119e5c0bcd7 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -162,7 +164,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -172,7 +175,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -250,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -260,7 +265,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -338,7 +344,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -348,7 +355,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -417,7 +425,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -427,7 +436,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -505,7 +515,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -515,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -593,7 +605,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -603,7 +616,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -681,7 +695,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -691,7 +706,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -785,7 +801,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -795,7 +812,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -890,7 +908,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -900,7 +919,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -995,7 +1015,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1005,7 +1026,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1100,7 +1122,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1110,7 +1133,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1215,7 +1239,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1225,7 +1250,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1320,7 +1346,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1330,7 +1357,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1425,7 +1453,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1435,7 +1464,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -1530,7 +1560,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1540,7 +1571,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -1626,7 +1658,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1636,7 +1669,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1731,7 +1765,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1741,7 +1776,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1836,7 +1872,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1846,7 +1883,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -1941,7 +1979,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1951,7 +1990,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -2062,7 +2102,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2072,7 +2113,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2184,7 +2226,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2194,7 +2237,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2306,7 +2350,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2316,7 +2361,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2428,7 +2474,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2438,7 +2485,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2543,7 +2591,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2553,7 +2602,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2648,7 +2698,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2658,7 +2709,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2753,7 +2805,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2763,7 +2816,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2858,7 +2912,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2868,7 +2923,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2954,7 +3010,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2964,7 +3021,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3059,7 +3117,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3069,7 +3128,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3164,7 +3224,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3174,7 +3235,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3269,7 +3331,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3279,7 +3342,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3390,7 +3454,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3400,7 +3465,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3512,7 +3578,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3522,7 +3589,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3634,7 +3702,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3644,7 +3713,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3756,7 +3826,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3766,7 +3837,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3871,7 +3943,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3881,7 +3954,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3976,7 +4050,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3986,7 +4061,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4081,7 +4157,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4091,7 +4168,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4186,7 +4264,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4196,7 +4275,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4282,7 +4362,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4292,7 +4373,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4387,7 +4469,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4397,7 +4480,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4492,7 +4576,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4502,7 +4587,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4597,7 +4683,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4607,7 +4694,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4718,7 +4806,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4728,7 +4817,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4840,7 +4930,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4850,7 +4941,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4962,7 +5054,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4972,7 +5065,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5084,7 +5178,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5094,7 +5189,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6Invalid.json b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6Invalid.json index 495ddf177d05..24e4c4c87e42 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6Invalid.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsES6Invalid.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -162,7 +164,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -172,7 +175,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -250,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -260,7 +265,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -338,7 +344,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -348,7 +355,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -417,7 +425,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -427,7 +436,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -505,7 +515,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -515,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -593,7 +605,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -603,7 +616,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -681,7 +695,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -691,7 +706,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -778,7 +794,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -788,7 +805,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -866,7 +884,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -876,7 +895,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -954,7 +974,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -964,7 +985,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1042,7 +1064,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1052,7 +1075,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1121,7 +1145,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1156,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1209,7 +1235,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1219,7 +1246,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1297,7 +1325,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1307,7 +1336,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -1385,7 +1415,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1395,7 +1426,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -1482,7 +1514,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1492,7 +1525,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1570,7 +1604,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1580,7 +1615,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1658,7 +1694,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1668,7 +1705,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1746,7 +1784,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1756,7 +1795,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1825,7 +1865,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1835,7 +1876,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1913,7 +1955,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1923,7 +1966,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -2001,7 +2045,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2011,7 +2056,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -2089,7 +2135,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2099,7 +2146,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -2203,7 +2251,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2213,7 +2262,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2308,7 +2358,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2318,7 +2369,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2413,7 +2465,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2423,7 +2476,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2518,7 +2572,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2528,7 +2583,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2614,7 +2670,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2624,7 +2681,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -2719,7 +2777,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2729,7 +2788,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -2824,7 +2884,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2834,7 +2895,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -2929,7 +2991,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2939,7 +3002,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3043,7 +3107,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3053,7 +3118,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3148,7 +3214,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3158,7 +3225,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3253,7 +3321,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3263,7 +3332,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3358,7 +3428,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3368,7 +3439,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3454,7 +3526,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3464,7 +3537,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3559,7 +3633,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3569,7 +3644,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3664,7 +3740,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3674,7 +3751,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3769,7 +3847,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3779,7 +3858,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3883,7 +3963,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3893,7 +3974,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3988,7 +4070,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3998,7 +4081,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4093,7 +4177,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4103,7 +4188,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4198,7 +4284,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4208,7 +4295,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4294,7 +4382,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4304,7 +4393,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4399,7 +4489,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4409,7 +4500,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4504,7 +4596,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4514,7 +4607,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4609,7 +4703,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4619,7 +4714,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4723,7 +4819,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4733,7 +4830,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4828,7 +4926,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4838,7 +4937,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4933,7 +5033,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4943,7 +5044,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5038,7 +5140,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5048,7 +5151,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5134,7 +5238,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5144,7 +5249,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -5239,7 +5345,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5249,7 +5356,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -5344,7 +5452,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5354,7 +5463,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -5449,7 +5559,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5459,7 +5570,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -5563,7 +5675,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5573,7 +5686,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5668,7 +5782,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5678,7 +5793,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5773,7 +5889,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5783,7 +5900,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5878,7 +5996,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5888,7 +6007,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5974,7 +6094,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5984,7 +6105,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -6079,7 +6201,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6089,7 +6212,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -6184,7 +6308,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6194,7 +6319,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -6289,7 +6415,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6299,7 +6426,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -6403,7 +6531,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6413,7 +6542,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6508,7 +6638,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6518,7 +6649,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6613,7 +6745,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6623,7 +6756,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -6718,7 +6852,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6728,7 +6863,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -6814,7 +6950,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6824,7 +6961,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -6919,7 +7057,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6929,7 +7068,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -7024,7 +7164,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7034,7 +7175,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -7129,7 +7271,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7139,7 +7282,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -7243,7 +7387,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7253,7 +7398,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7348,7 +7494,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7358,7 +7505,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7453,7 +7601,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7463,7 +7612,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -7558,7 +7708,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7568,7 +7719,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -7654,7 +7806,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7664,7 +7817,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -7759,7 +7913,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7769,7 +7924,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -7864,7 +8020,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7874,7 +8031,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -7969,7 +8127,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7979,7 +8138,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -8083,7 +8243,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8093,7 +8254,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8188,7 +8350,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8198,7 +8361,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8293,7 +8457,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8303,7 +8468,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -8398,7 +8564,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8408,7 +8575,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -8494,7 +8662,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8504,7 +8673,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -8599,7 +8769,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8609,7 +8780,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -8704,7 +8876,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8714,7 +8887,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -8809,7 +8983,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8819,7 +8994,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -8923,7 +9099,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8933,7 +9110,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9028,7 +9206,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9038,7 +9217,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9133,7 +9313,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9143,7 +9324,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -9238,7 +9420,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9248,7 +9431,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -9334,7 +9518,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9344,7 +9529,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -9439,7 +9625,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9449,7 +9636,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -9544,7 +9732,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9554,7 +9743,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -9649,7 +9839,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9659,7 +9850,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsInvalid.json b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsInvalid.json index 461027307766..10a07ccf5c7e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsInvalid.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringBinaryOperationsInvalid.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -162,7 +164,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -172,7 +175,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -250,7 +254,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -260,7 +265,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -338,7 +344,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -348,7 +355,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -417,7 +425,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -427,7 +436,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -505,7 +515,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -515,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -593,7 +605,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -603,7 +616,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -681,7 +695,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -691,7 +706,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -778,7 +794,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -788,7 +805,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -866,7 +884,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -876,7 +895,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -954,7 +974,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -964,7 +985,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1042,7 +1064,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1052,7 +1075,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1121,7 +1145,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1131,7 +1156,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1209,7 +1235,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1219,7 +1246,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1297,7 +1325,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1307,7 +1336,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -1385,7 +1415,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1395,7 +1426,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -1482,7 +1514,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1492,7 +1525,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1570,7 +1604,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1580,7 +1615,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -1658,7 +1694,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1668,7 +1705,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1746,7 +1784,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1756,7 +1795,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] } @@ -1825,7 +1865,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1835,7 +1876,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -1913,7 +1955,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1923,7 +1966,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -2001,7 +2045,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2011,7 +2056,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -2089,7 +2135,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2099,7 +2146,8 @@ }, "tail": true, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false } ] }, @@ -2203,7 +2251,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2213,7 +2262,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2308,7 +2358,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2318,7 +2369,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -2413,7 +2465,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2423,7 +2476,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2518,7 +2572,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2528,7 +2583,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -2614,7 +2670,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2624,7 +2681,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -2719,7 +2777,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2729,7 +2788,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -2824,7 +2884,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2834,7 +2895,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -2929,7 +2991,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2939,7 +3002,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3043,7 +3107,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3053,7 +3118,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3148,7 +3214,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3158,7 +3225,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3253,7 +3321,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3263,7 +3332,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3358,7 +3428,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3368,7 +3439,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -3454,7 +3526,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3464,7 +3537,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3559,7 +3633,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3569,7 +3644,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -3664,7 +3740,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3674,7 +3751,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3769,7 +3847,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3779,7 +3858,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -3883,7 +3963,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3893,7 +3974,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -3988,7 +4070,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -3998,7 +4081,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4093,7 +4177,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4103,7 +4188,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4198,7 +4284,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4208,7 +4295,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -4294,7 +4382,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4304,7 +4393,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4399,7 +4489,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4409,7 +4500,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -4504,7 +4596,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4514,7 +4607,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4609,7 +4703,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4619,7 +4714,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -4723,7 +4819,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4733,7 +4830,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4828,7 +4926,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4838,7 +4937,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -4933,7 +5033,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -4943,7 +5044,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5038,7 +5140,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5048,7 +5151,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5134,7 +5238,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5144,7 +5249,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -5239,7 +5345,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5249,7 +5356,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -5344,7 +5452,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5354,7 +5463,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -5449,7 +5559,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5459,7 +5570,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -5563,7 +5675,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5573,7 +5686,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5668,7 +5782,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5678,7 +5793,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -5773,7 +5889,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5783,7 +5900,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5878,7 +5996,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5888,7 +6007,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -5974,7 +6094,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -5984,7 +6105,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -6079,7 +6201,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6089,7 +6212,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -6184,7 +6308,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6194,7 +6319,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -6289,7 +6415,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6299,7 +6426,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -6403,7 +6531,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6413,7 +6542,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6508,7 +6638,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6518,7 +6649,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -6613,7 +6745,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6623,7 +6756,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -6718,7 +6852,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6728,7 +6863,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -6814,7 +6950,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6824,7 +6961,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -6919,7 +7057,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -6929,7 +7068,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -7024,7 +7164,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7034,7 +7175,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -7129,7 +7271,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7139,7 +7282,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -7243,7 +7387,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7253,7 +7398,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7348,7 +7494,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7358,7 +7505,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -7453,7 +7601,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7463,7 +7612,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -7558,7 +7708,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7568,7 +7719,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -7654,7 +7806,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7664,7 +7817,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -7759,7 +7913,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7769,7 +7924,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -7864,7 +8020,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7874,7 +8031,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -7969,7 +8127,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -7979,7 +8138,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -8083,7 +8243,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8093,7 +8254,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8188,7 +8350,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8198,7 +8361,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8293,7 +8457,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8303,7 +8468,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -8398,7 +8564,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8408,7 +8575,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -8494,7 +8662,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8504,7 +8673,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -8599,7 +8769,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8609,7 +8780,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -8704,7 +8876,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8714,7 +8887,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -8809,7 +8983,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8819,7 +8994,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -8923,7 +9099,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8933,7 +9110,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9028,7 +9206,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9038,7 +9217,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9133,7 +9313,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9143,7 +9324,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -9238,7 +9420,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9248,7 +9431,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] } @@ -9334,7 +9518,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9344,7 +9529,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -9439,7 +9625,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9449,7 +9636,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -9544,7 +9732,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9554,7 +9743,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, @@ -9649,7 +9839,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -9659,7 +9850,8 @@ }, "tail": true, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01.json index eb2fa37d8df2..c8e44804e344 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000\u0000\u0000 0 00 0000", - "raw": "\\0\\x00\\u0000 0 00 0000" + "raw": "\\0\\x00\\u0000 0 00 0000", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01_ES6.json index a186262ce013..b9a88215cd99 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes01_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000\u0000\u0000 0 00 0000", - "raw": "\\0\\x00\\u0000 0 00 0000" + "raw": "\\0\\x00\\u0000 0 00 0000", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02.json index 8448284bc031..187a8464a3e2 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0019\u0019 19", - "raw": "\\x19\\u0019 19" + "raw": "\\x19\\u0019 19", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02_ES6.json index b111f840db59..d986a1c2494e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes02_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0019\u0019 19", - "raw": "\\x19\\u0019 19" + "raw": "\\x19\\u0019 19", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03.json index 245ce8b66cdc..aa7b528887de 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u001f\u001f 1F 1f", - "raw": "\\x1F\\u001f 1F 1f" + "raw": "\\x1F\\u001f 1F 1f", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03_ES6.json index aacb645b6136..b37f58e2892d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes03_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u001f\u001f 1F 1f", - "raw": "\\x1F\\u001f 1F 1f" + "raw": "\\x1F\\u001f 1F 1f", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04.json index 82dcea6d4938..b59c2faa8910 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": " 20", - "raw": "\\x20\\u0020 20" + "raw": "\\x20\\u0020 20", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04_ES6.json index 6e5573ed0025..e69ae3f492dc 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringControlCharacterEscapes04_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": " 20", - "raw": "\\x20\\u0020 20" + "raw": "\\x20\\u0020 20", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInArray.json b/crates/swc_ecma_parser/tests/tsc/templateStringInArray.json index 93990696b1d1..bd14278008be 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInArray.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInArray.json @@ -91,7 +91,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -101,7 +102,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunction.json b/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunction.json index 2c4593d40b26..19bb30dd528f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunction.json @@ -79,7 +79,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -89,7 +90,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunctionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunctionES6.json index 0f6154e8cfb6..c3b61c0faa2e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunctionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInArrowFunctionES6.json @@ -79,7 +79,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -89,7 +90,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpression.json index 4c2254211835..9143ca9b09f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpression.json @@ -44,7 +44,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -54,7 +55,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -87,7 +89,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -97,7 +100,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -120,7 +124,8 @@ }, "tail": true, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false } ] } @@ -153,7 +158,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -163,7 +169,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpressionES6.json index cd432407ff5b..2c8e3370f74b 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInCallExpressionES6.json @@ -44,7 +44,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -54,7 +55,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -87,7 +89,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -97,7 +100,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -120,7 +124,8 @@ }, "tail": true, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false } ] } @@ -153,7 +158,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -163,7 +169,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInConditional.json b/crates/swc_ecma_parser/tests/tsc/templateStringInConditional.json index 222754e565cb..d20798e021dd 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInConditional.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInConditional.json @@ -52,7 +52,8 @@ "end": 19 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -64,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, @@ -92,7 +95,8 @@ "end": 38 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -104,7 +108,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -114,7 +119,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, @@ -132,7 +138,8 @@ "end": 57 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -144,7 +151,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -154,7 +162,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInConditionalES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInConditionalES6.json index cb66003a0277..fc547899f45d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInConditionalES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInConditionalES6.json @@ -52,7 +52,8 @@ "end": 35 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -64,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, @@ -92,7 +95,8 @@ "end": 54 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -104,7 +108,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -114,7 +119,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, @@ -132,7 +138,8 @@ "end": 73 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -144,7 +151,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -154,7 +162,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpression.json index 0c311c5f9b2b..2893fb3a00fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpression.json @@ -44,7 +44,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -54,7 +55,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpressionES6.json index c0f48b046aaf..90072e222b0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInDeleteExpressionES6.json @@ -44,7 +44,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -54,7 +55,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInDivision.json b/crates/swc_ecma_parser/tests/tsc/templateStringInDivision.json index f0a42bd1b649..65a69af62ea8 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInDivision.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInDivision.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecks.json b/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecks.json index 9c3cdca9c04b..1b290aaacc62 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecks.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecks.json @@ -72,7 +72,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -82,7 +83,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -102,7 +104,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -144,7 +147,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -174,7 +178,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -184,7 +189,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -222,7 +228,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -232,7 +239,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -243,7 +251,8 @@ "end": 102 }, "value": "abc0abc", - "raw": "\"abc0abc\"" + "raw": "\"abc0abc\"", + "loneSurrogates": false } } }, @@ -261,7 +270,8 @@ "end": 123 }, "value": "abc0abc", - "raw": "\"abc0abc\"" + "raw": "\"abc0abc\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -289,7 +299,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -299,7 +310,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecksES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecksES6.json index a6c943db3536..e35916fc4f40 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecksES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInEqualityChecksES6.json @@ -72,7 +72,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -82,7 +83,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -102,7 +104,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -144,7 +147,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -174,7 +178,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -184,7 +189,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } @@ -222,7 +228,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -232,7 +239,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -243,7 +251,8 @@ "end": 118 }, "value": "abc0abc", - "raw": "\"abc0abc\"" + "raw": "\"abc0abc\"", + "loneSurrogates": false } } }, @@ -261,7 +270,8 @@ "end": 139 }, "value": "abc0abc", - "raw": "\"abc0abc\"" + "raw": "\"abc0abc\"", + "loneSurrogates": false }, "right": { "type": "TemplateLiteral", @@ -289,7 +299,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -299,7 +310,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpression.json index 626b14cea92d..41b63b5bdefc 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpression.json @@ -91,7 +91,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -101,7 +102,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } @@ -138,7 +140,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -148,7 +151,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpressionES6.json index 09eaa4b16603..0adfcbddc97d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInFunctionExpressionES6.json @@ -91,7 +91,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -101,7 +102,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } @@ -138,7 +140,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -148,7 +151,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json index 421f9c5b171f..5ffae2238b8b 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperator.json @@ -53,7 +53,8 @@ "end": 17 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } ], "quasis": [ @@ -65,7 +66,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +77,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json index 5d4ab500b0d4..2af6c73c60fc 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInInOperatorES6.json @@ -53,7 +53,8 @@ "end": 33 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } ], "quasis": [ @@ -65,7 +66,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +77,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpression.json index c3a544767348..0b6a7c21a4c7 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpression.json @@ -43,7 +43,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -53,7 +54,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -79,7 +81,8 @@ }, "tail": true, "cooked": "0", - "raw": "0" + "raw": "0", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpressionES6.json index 2491dd323116..8868f88850ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInIndexExpressionES6.json @@ -43,7 +43,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -53,7 +54,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -79,7 +81,8 @@ }, "tail": true, "cooked": "0", - "raw": "0" + "raw": "0", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOf.json b/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOf.json index cd2a76e41afc..2138dcbc13fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOf.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOf.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOfES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOfES6.json index e24862d23dd9..afd11741b72e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOfES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInInstanceOfES6.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInModulo.json b/crates/swc_ecma_parser/tests/tsc/templateStringInModulo.json index 31ac50c46f1c..b6341af528ce 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInModulo.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInModulo.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInModuloES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInModuloES6.json index 3c0aa1778010..df9738afee31 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInModuloES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInModuloES6.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplication.json b/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplication.json index 9144c4cb73f2..b612f5b808cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplication.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplication.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplicationES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplicationES6.json index 0200ef21a507..7d8fac3f5468 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplicationES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInMultiplicationES6.json @@ -74,7 +74,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -84,7 +85,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpression.json index d6ef60a69d6e..31afe1b197a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpression.json @@ -44,7 +44,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -54,7 +55,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -87,7 +89,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -97,7 +100,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -120,7 +124,8 @@ }, "tail": true, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false } ] } @@ -153,7 +158,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -163,7 +169,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpressionES6.json index 749f483d1173..d10c7180e414 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInNewExpressionES6.json @@ -44,7 +44,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -54,7 +55,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -87,7 +89,8 @@ }, "tail": false, "cooked": "hello ", - "raw": "hello " + "raw": "hello ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -97,7 +100,8 @@ }, "tail": true, "cooked": " world", - "raw": " world" + "raw": " world", + "loneSurrogates": false } ] } @@ -120,7 +124,8 @@ }, "tail": true, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false } ] } @@ -153,7 +158,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -163,7 +169,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperator.json b/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperator.json index 979ea5171f0c..df0193be4abd 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperator.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperatorES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperatorES6.json index 758ffe13a05c..f05d4d215c27 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperatorES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInNewOperatorES6.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInParentheses.json b/crates/swc_ecma_parser/tests/tsc/templateStringInParentheses.json index 449634a1ab41..2e151688bb1e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInParentheses.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInParentheses.json @@ -64,7 +64,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74,7 +75,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInParenthesesES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInParenthesesES6.json index 2f061defd79e..59ee12ecf09a 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInParenthesesES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInParenthesesES6.json @@ -64,7 +64,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74,7 +75,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json index cd1020368a01..dd3d26ae321a 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignment.json @@ -84,7 +84,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -94,7 +95,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -104,7 +106,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json index ed3ed345e13c..0554ff926fe3 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInPropertyAssignmentES6.json @@ -84,7 +84,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -94,7 +95,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -104,7 +106,8 @@ }, "tail": true, "cooked": "ghi", - "raw": "ghi" + "raw": "ghi", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCase.json b/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCase.json index ad810f0088df..fa8ea2db73ee 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCase.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCase.json @@ -37,7 +37,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -47,7 +48,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -74,7 +76,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -102,7 +105,8 @@ }, "tail": true, "cooked": "123", - "raw": "123" + "raw": "123", + "loneSurrogates": false } ] }, @@ -140,7 +144,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -150,7 +155,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -187,7 +193,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -197,7 +204,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCaseES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCaseES6.json index 527a960ea25d..df096a82ed45 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCaseES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInSwitchAndCaseES6.json @@ -37,7 +37,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -47,7 +48,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -74,7 +76,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -102,7 +105,8 @@ }, "tail": true, "cooked": "123", - "raw": "123" + "raw": "123", + "loneSurrogates": false } ] }, @@ -140,7 +144,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -150,7 +155,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -187,7 +193,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -197,7 +204,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplate.json b/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplate.json index f31c2428cde0..bed619207249 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplate.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplate.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "TAG", - "raw": "TAG" + "raw": "TAG", + "loneSurrogates": false } ] } @@ -62,7 +63,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -72,7 +74,8 @@ }, "tail": true, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false } ] } @@ -86,7 +89,8 @@ }, "tail": false, "cooked": "I AM THE ", - "raw": "I AM THE " + "raw": "I AM THE ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -96,7 +100,8 @@ }, "tail": true, "cooked": " PORTION", - "raw": " PORTION" + "raw": " PORTION", + "loneSurrogates": false } ] }, @@ -115,7 +120,8 @@ "end": 52 }, "value": "AM", - "raw": "\"AM\"" + "raw": "\"AM\"", + "loneSurrogates": false } ], "quasis": [ @@ -127,7 +133,8 @@ }, "tail": false, "cooked": "I ", - "raw": "I " + "raw": "I ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -137,7 +144,8 @@ }, "tail": true, "cooked": " THE TEMPLATE PORTION", - "raw": " THE TEMPLATE PORTION" + "raw": " THE TEMPLATE PORTION", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplateES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplateES6.json index a193dd689d0c..68ee5a7f3271 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplateES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInTaggedTemplateES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "TAG", - "raw": "TAG" + "raw": "TAG", + "loneSurrogates": false } ] } @@ -62,7 +63,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -72,7 +74,8 @@ }, "tail": true, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false } ] } @@ -86,7 +89,8 @@ }, "tail": false, "cooked": "I AM THE ", - "raw": "I AM THE " + "raw": "I AM THE ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -96,7 +100,8 @@ }, "tail": true, "cooked": " PORTION", - "raw": " PORTION" + "raw": " PORTION", + "loneSurrogates": false } ] }, @@ -115,7 +120,8 @@ "end": 68 }, "value": "AM", - "raw": "\"AM\"" + "raw": "\"AM\"", + "loneSurrogates": false } ], "quasis": [ @@ -127,7 +133,8 @@ }, "tail": false, "cooked": "I ", - "raw": "I " + "raw": "I ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -137,7 +144,8 @@ }, "tail": true, "cooked": " THE TEMPLATE PORTION", - "raw": " THE TEMPLATE PORTION" + "raw": " THE TEMPLATE PORTION", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertion.json b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertion.json index 83fd1ee215cf..0b8c0051e7b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertion.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertion.json @@ -64,7 +64,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74,7 +75,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertionES6.json index f2fbda6a3d14..696437f1bd59 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeAssertionES6.json @@ -64,7 +64,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74,7 +75,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOf.json b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOf.json index 7109f4ecaf36..fe6a3c162241 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOf.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOf.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOfES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOfES6.json index 8e535302f498..b669eb33072f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOfES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInTypeOfES6.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlus.json b/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlus.json index 8f6424516b21..e5474bccf3f5 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlus.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlus.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlusES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlusES6.json index 81ac4d675823..fcb7d399be56 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlusES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInUnaryPlusES6.json @@ -65,7 +65,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +76,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInWhile.json b/crates/swc_ecma_parser/tests/tsc/templateStringInWhile.json index a10a1c3f4674..d8e7c40252a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInWhile.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInWhile.json @@ -37,7 +37,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -47,7 +48,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -91,7 +93,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -101,7 +104,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInWhileES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringInWhileES6.json index b5ac142768e5..ca6421b5fc87 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInWhileES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInWhileES6.json @@ -37,7 +37,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -47,7 +48,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -91,7 +93,8 @@ }, "tail": false, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -101,7 +104,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringInYieldKeyword.json b/crates/swc_ecma_parser/tests/tsc/templateStringInYieldKeyword.json index e8248edf45a9..525489d10465 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringInYieldKeyword.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringInYieldKeyword.json @@ -93,7 +93,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -103,7 +104,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1.json b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1.json index d33de7ef7064..b295e72c8203 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\n", - "raw": "\n\\\n" + "raw": "\n\\\n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1_ES6.json index 8a38316b76db..3642c2302613 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline1_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\n", - "raw": "\n\\\n" + "raw": "\n\\\n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2.json b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2.json index 32969d148633..d2c87e882643 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\n", - "raw": "\n\\\n" + "raw": "\n\\\n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2_ES6.json index 46d45330d171..3a470ba7aef4 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringMultiline2_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\n", - "raw": "\n\\\n" + "raw": "\n\\\n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01.json b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01.json index 95261af3adee..9e423b7778c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", - "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n" + "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01_ES6.json index 159d08ad3a9e..d7941194c491 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes01_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", - "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n" + "raw": "0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2028 2029 0085 t v f b r n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02.json b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02.json index 2f1c6e8e8674..c140c997f7b8 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02.json @@ -25,7 +25,8 @@ "end": 11 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -34,7 +35,8 @@ "end": 20 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -43,7 +45,8 @@ "end": 29 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -52,7 +55,8 @@ "end": 38 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -61,7 +65,8 @@ "end": 47 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -70,7 +75,8 @@ "end": 56 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -79,7 +85,8 @@ "end": 65 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -88,7 +95,8 @@ "end": 74 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -97,7 +105,8 @@ "end": 83 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -106,7 +115,8 @@ "end": 92 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -115,7 +125,8 @@ "end": 102 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -124,7 +135,8 @@ "end": 112 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -133,7 +145,8 @@ "end": 122 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -142,7 +155,8 @@ "end": 132 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -151,7 +165,8 @@ "end": 142 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -160,7 +175,8 @@ "end": 152 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -169,7 +185,8 @@ "end": 162 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -178,7 +195,8 @@ "end": 172 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -187,7 +205,8 @@ "end": 182 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -196,7 +215,8 @@ "end": 192 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -205,7 +225,8 @@ "end": 202 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -214,7 +235,8 @@ "end": 214 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -223,7 +245,8 @@ "end": 226 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -232,7 +255,8 @@ "end": 238 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -241,7 +265,8 @@ "end": 247 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -250,7 +275,8 @@ "end": 256 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -259,7 +285,8 @@ "end": 265 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -268,7 +295,8 @@ "end": 274 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -277,7 +305,8 @@ "end": 283 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -289,7 +318,8 @@ }, "tail": false, "cooked": "0", - "raw": "0" + "raw": "0", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -299,7 +329,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -309,7 +340,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -319,7 +351,8 @@ }, "tail": false, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -329,7 +362,8 @@ }, "tail": false, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -339,7 +373,8 @@ }, "tail": false, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -349,7 +384,8 @@ }, "tail": false, "cooked": "6", - "raw": "6" + "raw": "6", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -359,7 +395,8 @@ }, "tail": false, "cooked": "7", - "raw": "7" + "raw": "7", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -369,7 +406,8 @@ }, "tail": false, "cooked": "8", - "raw": "8" + "raw": "8", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -379,7 +417,8 @@ }, "tail": false, "cooked": "9", - "raw": "9" + "raw": "9", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -389,7 +428,8 @@ }, "tail": false, "cooked": "10", - "raw": "10" + "raw": "10", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -399,7 +439,8 @@ }, "tail": false, "cooked": "11", - "raw": "11" + "raw": "11", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -409,7 +450,8 @@ }, "tail": false, "cooked": "12", - "raw": "12" + "raw": "12", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -419,7 +461,8 @@ }, "tail": false, "cooked": "13", - "raw": "13" + "raw": "13", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -429,7 +472,8 @@ }, "tail": false, "cooked": "14", - "raw": "14" + "raw": "14", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -439,7 +483,8 @@ }, "tail": false, "cooked": "15", - "raw": "15" + "raw": "15", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -449,7 +494,8 @@ }, "tail": false, "cooked": "16", - "raw": "16" + "raw": "16", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -459,7 +505,8 @@ }, "tail": false, "cooked": "17", - "raw": "17" + "raw": "17", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -469,7 +516,8 @@ }, "tail": false, "cooked": "18", - "raw": "18" + "raw": "18", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -479,7 +527,8 @@ }, "tail": false, "cooked": "19", - "raw": "19" + "raw": "19", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -489,7 +538,8 @@ }, "tail": false, "cooked": "20", - "raw": "20" + "raw": "20", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -499,7 +549,8 @@ }, "tail": false, "cooked": "2028", - "raw": "2028" + "raw": "2028", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -509,7 +560,8 @@ }, "tail": false, "cooked": "2029", - "raw": "2029" + "raw": "2029", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -519,7 +571,8 @@ }, "tail": false, "cooked": "0085", - "raw": "0085" + "raw": "0085", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -529,7 +582,8 @@ }, "tail": false, "cooked": "t", - "raw": "t" + "raw": "t", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -539,7 +593,8 @@ }, "tail": false, "cooked": "v", - "raw": "v" + "raw": "v", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -549,7 +604,8 @@ }, "tail": false, "cooked": "f", - "raw": "f" + "raw": "f", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -559,7 +615,8 @@ }, "tail": false, "cooked": "b", - "raw": "b" + "raw": "b", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -569,7 +626,8 @@ }, "tail": false, "cooked": "r", - "raw": "r" + "raw": "r", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -579,7 +637,8 @@ }, "tail": true, "cooked": "n", - "raw": "n" + "raw": "n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02_ES6.json index 2e8977bf9ed3..da3adb36e31e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringPlainCharactersThatArePartsOfEscapes02_ES6.json @@ -25,7 +25,8 @@ "end": 26 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -34,7 +35,8 @@ "end": 35 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -43,7 +45,8 @@ "end": 44 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -52,7 +55,8 @@ "end": 53 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -61,7 +65,8 @@ "end": 62 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -70,7 +75,8 @@ "end": 71 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -79,7 +85,8 @@ "end": 80 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -88,7 +95,8 @@ "end": 89 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -97,7 +105,8 @@ "end": 98 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -106,7 +115,8 @@ "end": 107 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -115,7 +125,8 @@ "end": 117 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -124,7 +135,8 @@ "end": 127 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -133,7 +145,8 @@ "end": 137 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -142,7 +155,8 @@ "end": 147 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -151,7 +165,8 @@ "end": 157 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -160,7 +175,8 @@ "end": 167 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -169,7 +185,8 @@ "end": 177 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -178,7 +195,8 @@ "end": 187 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -187,7 +205,8 @@ "end": 197 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -196,7 +215,8 @@ "end": 207 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -205,7 +225,8 @@ "end": 217 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -214,7 +235,8 @@ "end": 229 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -223,7 +245,8 @@ "end": 241 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -232,7 +255,8 @@ "end": 253 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -241,7 +265,8 @@ "end": 262 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -250,7 +275,8 @@ "end": 271 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -259,7 +285,8 @@ "end": 280 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -268,7 +295,8 @@ "end": 289 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false }, { "type": "StringLiteral", @@ -277,7 +305,8 @@ "end": 298 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } ], "quasis": [ @@ -289,7 +318,8 @@ }, "tail": false, "cooked": "0", - "raw": "0" + "raw": "0", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -299,7 +329,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -309,7 +340,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -319,7 +351,8 @@ }, "tail": false, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -329,7 +362,8 @@ }, "tail": false, "cooked": "4", - "raw": "4" + "raw": "4", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -339,7 +373,8 @@ }, "tail": false, "cooked": "5", - "raw": "5" + "raw": "5", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -349,7 +384,8 @@ }, "tail": false, "cooked": "6", - "raw": "6" + "raw": "6", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -359,7 +395,8 @@ }, "tail": false, "cooked": "7", - "raw": "7" + "raw": "7", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -369,7 +406,8 @@ }, "tail": false, "cooked": "8", - "raw": "8" + "raw": "8", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -379,7 +417,8 @@ }, "tail": false, "cooked": "9", - "raw": "9" + "raw": "9", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -389,7 +428,8 @@ }, "tail": false, "cooked": "10", - "raw": "10" + "raw": "10", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -399,7 +439,8 @@ }, "tail": false, "cooked": "11", - "raw": "11" + "raw": "11", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -409,7 +450,8 @@ }, "tail": false, "cooked": "12", - "raw": "12" + "raw": "12", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -419,7 +461,8 @@ }, "tail": false, "cooked": "13", - "raw": "13" + "raw": "13", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -429,7 +472,8 @@ }, "tail": false, "cooked": "14", - "raw": "14" + "raw": "14", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -439,7 +483,8 @@ }, "tail": false, "cooked": "15", - "raw": "15" + "raw": "15", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -449,7 +494,8 @@ }, "tail": false, "cooked": "16", - "raw": "16" + "raw": "16", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -459,7 +505,8 @@ }, "tail": false, "cooked": "17", - "raw": "17" + "raw": "17", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -469,7 +516,8 @@ }, "tail": false, "cooked": "18", - "raw": "18" + "raw": "18", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -479,7 +527,8 @@ }, "tail": false, "cooked": "19", - "raw": "19" + "raw": "19", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -489,7 +538,8 @@ }, "tail": false, "cooked": "20", - "raw": "20" + "raw": "20", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -499,7 +549,8 @@ }, "tail": false, "cooked": "2028", - "raw": "2028" + "raw": "2028", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -509,7 +560,8 @@ }, "tail": false, "cooked": "2029", - "raw": "2029" + "raw": "2029", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -519,7 +571,8 @@ }, "tail": false, "cooked": "0085", - "raw": "0085" + "raw": "0085", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -529,7 +582,8 @@ }, "tail": false, "cooked": "t", - "raw": "t" + "raw": "t", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -539,7 +593,8 @@ }, "tail": false, "cooked": "v", - "raw": "v" + "raw": "v", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -549,7 +604,8 @@ }, "tail": false, "cooked": "f", - "raw": "f" + "raw": "f", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -559,7 +615,8 @@ }, "tail": false, "cooked": "b", - "raw": "b" + "raw": "b", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -569,7 +626,8 @@ }, "tail": false, "cooked": "r", - "raw": "r" + "raw": "r", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -579,7 +637,8 @@ }, "tail": true, "cooked": "n", - "raw": "n" + "raw": "n", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination1.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination1.json index 9416485ed4be..3554130579c2 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination1.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination1.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination1_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination1_ES6.json index e7627a699615..38b6fb86a5ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination1_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination2.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination2.json index 3bb6d922537e..7938f41638b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination2.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination2.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\\", - "raw": "\\\\" + "raw": "\\\\", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination2_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination2_ES6.json index 2d89aaf8e5f1..e9d0b6db53fe 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination2_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\\", - "raw": "\\\\" + "raw": "\\\\", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination3.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination3.json index e22cb88ef81f..0c17c4a16780 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination3.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination3.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "`", - "raw": "\\`" + "raw": "\\`", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination3_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination3_ES6.json index 9a933a1ee741..db389d1d9329 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination3_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination3_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "`", - "raw": "\\`" + "raw": "\\`", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination4.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination4.json index 85cd68600195..6ab863f2acce 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination4.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination4.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\\\\", - "raw": "\\\\\\\\" + "raw": "\\\\\\\\", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination4_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination4_ES6.json index 5e32f5c5b9ef..50ad30258753 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination4_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination4_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\\\\", - "raw": "\\\\\\\\" + "raw": "\\\\\\\\", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination5.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination5.json index b054352d0778..62c332c95a6d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination5.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination5.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\\\\\\", - "raw": "\\\\\\\\\\\\" + "raw": "\\\\\\\\\\\\", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringTermination5_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringTermination5_ES6.json index 516f77f216ce..ebc5e06fa932 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringTermination5_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringTermination5_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\\\\\\", - "raw": "\\\\\\\\\\\\" + "raw": "\\\\\\\\\\\\", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1.json b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1.json index c685c041d28b..fb9924dd7779 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\t\n\u000b\f\r", - "raw": "\\t\\n\\v\\f\\r" + "raw": "\\t\\n\\v\\f\\r", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1_ES6.json index 5bb36e465dd5..432f907b593f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes1_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\t\n\u000b\f\r", - "raw": "\\t\\n\\v\\f\\r" + "raw": "\\t\\n\\v\\f\\r", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2.json b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2.json index 1503e547e6e1..33e34fc7e32d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\t\u000b\f  ", - "raw": "\\u0009\\u000B\\u000C\\u0020\\u00A0\\uFEFF" + "raw": "\\u0009\\u000B\\u000C\\u0020\\u00A0\\uFEFF", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2_ES6.json index 4d0d71a3730e..e12681b9e66e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWhitespaceEscapes2_ES6.json @@ -27,7 +27,8 @@ }, "tail": true, "cooked": "\t\u000b\f  ", - "raw": "\\u0009\\u000B\\u000C\\u0020\\u00A0\\uFEFF" + "raw": "\\u0009\\u000B\\u000C\\u0020\\u00A0\\uFEFF", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01.json index 76824341e0b9..83fb323f7bb9 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "helloworld", - "raw": "hello\\world" + "raw": "hello\\world", + "loneSurrogates": false } ] }, @@ -99,7 +100,8 @@ }, "tail": true, "cooked": "hello\\world", - "raw": "hello\\\\world" + "raw": "hello\\\\world", + "loneSurrogates": false } ] }, @@ -150,7 +152,8 @@ }, "tail": true, "cooked": "hello\\world", - "raw": "hello\\\\\\world" + "raw": "hello\\\\\\world", + "loneSurrogates": false } ] }, @@ -201,7 +204,8 @@ }, "tail": true, "cooked": "hello\\\\world", - "raw": "hello\\\\\\\\world" + "raw": "hello\\\\\\\\world", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01_ES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01_ES6.json index f5f9fcd921da..fd1cc842466b 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithBackslashEscapes01_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "helloworld", - "raw": "hello\\world" + "raw": "hello\\world", + "loneSurrogates": false } ] }, @@ -99,7 +100,8 @@ }, "tail": true, "cooked": "hello\\world", - "raw": "hello\\\\world" + "raw": "hello\\\\world", + "loneSurrogates": false } ] }, @@ -150,7 +152,8 @@ }, "tail": true, "cooked": "hello\\world", - "raw": "hello\\\\\\world" + "raw": "hello\\\\\\world", + "loneSurrogates": false } ] }, @@ -201,7 +204,8 @@ }, "tail": true, "cooked": "hello\\\\world", - "raw": "hello\\\\\\\\world" + "raw": "hello\\\\\\\\world", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithCommentsInArrowFunction.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithCommentsInArrowFunction.json index 830b910c4747..5a7538ac87aa 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithCommentsInArrowFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithCommentsInArrowFunction.json @@ -107,7 +107,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -117,7 +118,8 @@ }, "tail": true, "cooked": "a", - "raw": "a" + "raw": "a", + "loneSurrogates": false } ] }, @@ -192,7 +194,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -202,7 +205,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAddition.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAddition.json index 7ced67a22956..74c590338130 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAddition.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAddition.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAdditionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAdditionES6.json index 6819ed06f269..70ab358d80e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAdditionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedAdditionES6.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArray.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArray.json index a5e3d8c827d6..16752ef7291d 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArray.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArray.json @@ -94,7 +94,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -104,7 +105,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrayES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrayES6.json index 2bcedd27c001..879a684c9860 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrayES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrayES6.json @@ -94,7 +94,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -104,7 +105,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunction.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunction.json index 3a5e3ba0591b..6b5e1c4c1845 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunction.json @@ -84,7 +84,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -94,7 +95,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunctionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunctionES6.json index 19bc9782fa84..dfd7568306e1 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunctionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedArrowFunctionES6.json @@ -84,7 +84,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -94,7 +95,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedComments.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedComments.json index c7b5977e47d0..bcf9f21b9dfb 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedComments.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedComments.json @@ -46,7 +46,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -56,7 +57,8 @@ }, "tail": false, "cooked": "\nmiddle", - "raw": "\nmiddle" + "raw": "\nmiddle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -66,7 +68,8 @@ }, "tail": true, "cooked": "\ntail", - "raw": "\ntail" + "raw": "\ntail", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedCommentsES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedCommentsES6.json index 5e3972a2f07f..04ec85e5ae43 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedCommentsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedCommentsES6.json @@ -46,7 +46,8 @@ }, "tail": false, "cooked": "head", - "raw": "head" + "raw": "head", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -56,7 +57,8 @@ }, "tail": false, "cooked": "\nmiddle", - "raw": "\nmiddle" + "raw": "\nmiddle", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -66,7 +68,8 @@ }, "tail": true, "cooked": "\ntail", - "raw": "\ntail" + "raw": "\ntail", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditional.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditional.json index 2fa42a3f2c19..88fef11b419a 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditional.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditional.json @@ -68,7 +68,8 @@ "end": 34 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } ], @@ -81,7 +82,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -91,7 +93,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditionalES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditionalES6.json index 7b9f4f8dd7c6..3fd93f1c1dd9 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditionalES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedConditionalES6.json @@ -68,7 +68,8 @@ "end": 50 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } ], @@ -81,7 +82,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -91,7 +93,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivision.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivision.json index a963b75debfc..9d732904c82b 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivision.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivision.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivisionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivisionES6.json index 935744702c52..471f704e1935 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivisionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedDivisionES6.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpression.json index 1e7600292e70..beffe768e192 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpression.json @@ -100,7 +100,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -110,7 +111,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpressionES6.json index 3a830b7b33f0..e09efd576b74 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedFunctionExpressionES6.json @@ -100,7 +100,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -110,7 +111,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json index 13cab741cafc..8e90ccb81967 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperator.json @@ -53,7 +53,8 @@ "end": 20 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", @@ -115,7 +116,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -125,7 +127,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json index e90cbbe8237e..41ba52214bac 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInOperatorES6.json @@ -53,7 +53,8 @@ "end": 36 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", @@ -115,7 +116,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -125,7 +127,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOf.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOf.json index 1dfb0ed91428..0bef12507ae8 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOf.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOf.json @@ -53,7 +53,8 @@ "end": 23 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -76,7 +77,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -86,7 +88,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOfES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOfES6.json index 4d0c4c8360b3..702c7263f672 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOfES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedInstanceOfES6.json @@ -53,7 +53,8 @@ "end": 39 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -76,7 +77,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -86,7 +88,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModulo.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModulo.json index 7abb128174a9..5548d2298084 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModulo.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModulo.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModuloES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModuloES6.json index bdc0ebf8c7ca..9f6913e0060b 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModuloES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedModuloES6.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplication.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplication.json index 56344d05a4e1..c1a6e7ecb59f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplication.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplication.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplicationES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplicationES6.json index 3c80b7a700e7..51a5308e2b24 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplicationES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedMultiplicationES6.json @@ -75,7 +75,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -85,7 +86,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperator.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperator.json index bdc603d0777a..22b0bdfef3b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperator.json @@ -66,7 +66,8 @@ "end": 31 }, "value": "Hi", - "raw": "\"Hi\"" + "raw": "\"Hi\"", + "loneSurrogates": false } } ], @@ -82,7 +83,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -92,7 +94,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperatorES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperatorES6.json index bdd8e6a38966..2c759690480f 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperatorES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedNewOperatorES6.json @@ -66,7 +66,8 @@ "end": 47 }, "value": "Hi", - "raw": "\"Hi\"" + "raw": "\"Hi\"", + "loneSurrogates": false } } ], @@ -82,7 +83,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -92,7 +94,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json index f155af83a217..3a3b175b6a63 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteral.json @@ -98,7 +98,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -108,7 +109,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json index ac3923719b6f..6d50eb0d4411 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedObjectLiteralES6.json @@ -98,7 +98,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -108,7 +109,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateString.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateString.json index 8749eb01e00e..50e325a7149c 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateString.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateString.json @@ -53,7 +53,8 @@ "end": 29 }, "value": " | ", - "raw": "\" | \"" + "raw": "\" | \"", + "loneSurrogates": false } ], "quasis": [ @@ -65,7 +66,8 @@ }, "tail": false, "cooked": "456 ", - "raw": "456 " + "raw": "456 ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +77,8 @@ }, "tail": true, "cooked": " 654", - "raw": " 654" + "raw": " 654", + "loneSurrogates": false } ] }, @@ -93,7 +96,8 @@ "end": 61 }, "value": " | ", - "raw": "\" | \"" + "raw": "\" | \"", + "loneSurrogates": false } ], "quasis": [ @@ -105,7 +109,8 @@ }, "tail": false, "cooked": "456 ", - "raw": "456 " + "raw": "456 ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -115,7 +120,8 @@ }, "tail": true, "cooked": " 654", - "raw": " 654" + "raw": " 654", + "loneSurrogates": false } ] } @@ -129,7 +135,8 @@ }, "tail": false, "cooked": "123", - "raw": "123" + "raw": "123", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -139,7 +146,8 @@ }, "tail": false, "cooked": "321 123", - "raw": "321 123" + "raw": "321 123", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -149,7 +157,8 @@ }, "tail": true, "cooked": "321", - "raw": "321" + "raw": "321", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateStringES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateStringES6.json index 3da3c5994939..222a8ad33cce 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateStringES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTemplateStringES6.json @@ -53,7 +53,8 @@ "end": 45 }, "value": " | ", - "raw": "\" | \"" + "raw": "\" | \"", + "loneSurrogates": false } ], "quasis": [ @@ -65,7 +66,8 @@ }, "tail": false, "cooked": "456 ", - "raw": "456 " + "raw": "456 ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -75,7 +77,8 @@ }, "tail": true, "cooked": " 654", - "raw": " 654" + "raw": " 654", + "loneSurrogates": false } ] }, @@ -93,7 +96,8 @@ "end": 77 }, "value": " | ", - "raw": "\" | \"" + "raw": "\" | \"", + "loneSurrogates": false } ], "quasis": [ @@ -105,7 +109,8 @@ }, "tail": false, "cooked": "456 ", - "raw": "456 " + "raw": "456 ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -115,7 +120,8 @@ }, "tail": true, "cooked": " 654", - "raw": " 654" + "raw": " 654", + "loneSurrogates": false } ] } @@ -129,7 +135,8 @@ }, "tail": false, "cooked": "123", - "raw": "123" + "raw": "123", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -139,7 +146,8 @@ }, "tail": false, "cooked": "321 123", - "raw": "321 123" + "raw": "321 123", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -149,7 +157,8 @@ }, "tail": true, "cooked": "321", - "raw": "321" + "raw": "321", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAddition.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAddition.json index f32e9b19e1e4..c343daa2a502 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAddition.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAddition.json @@ -97,7 +97,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -107,7 +108,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAdditionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAdditionES6.json index f7ac6e2d8a8e..5fc33ccd6a6b 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAdditionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeAssertionOnAdditionES6.json @@ -97,7 +97,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -107,7 +108,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperator.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperator.json index a204527812df..b0afe47ca583 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperator.json @@ -53,7 +53,8 @@ "end": 27 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ], @@ -66,7 +67,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -76,7 +78,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperatorES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperatorES6.json index 6f633a5e9544..417d82e06bee 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperatorES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedTypeOfOperatorES6.json @@ -53,7 +53,8 @@ "end": 43 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ], @@ -66,7 +67,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -76,7 +78,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlus.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlus.json index 0d365915e3fe..e4d2e65c438e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlus.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlus.json @@ -67,7 +67,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77,7 +78,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlusES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlusES6.json index dc80dfaca3b8..6f82ab1dfacd 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlusES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedUnaryPlusES6.json @@ -67,7 +67,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77,7 +78,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedYieldKeywordES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedYieldKeywordES6.json index 3b20ff56ade3..2a4b94def9a8 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedYieldKeywordES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmbeddedYieldKeywordES6.json @@ -94,7 +94,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -104,7 +105,8 @@ }, "tail": true, "cooked": "def", - "raw": "def" + "raw": "def", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortions.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortions.json index c91f098134d7..a627e1ef7359 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortions.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortions.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -109,7 +110,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -119,7 +121,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -180,7 +183,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -190,7 +194,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -251,7 +256,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -261,7 +267,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] }, @@ -322,7 +329,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -332,7 +340,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] }, @@ -402,7 +411,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -412,7 +422,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -422,7 +433,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -492,7 +504,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -502,7 +515,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -512,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -582,7 +597,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -592,7 +608,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -602,7 +619,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -672,7 +690,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -682,7 +701,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -692,7 +712,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -762,7 +783,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -772,7 +794,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -782,7 +805,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, @@ -852,7 +876,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -862,7 +887,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -872,7 +898,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, @@ -942,7 +969,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -952,7 +980,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -962,7 +991,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, @@ -1032,7 +1062,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1042,7 +1073,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1052,7 +1084,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortionsES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortionsES6.json index 2dab51d5f895..6d4a9d36012e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortionsES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithEmptyLiteralPortionsES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -109,7 +110,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -119,7 +121,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -180,7 +183,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -190,7 +194,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -251,7 +256,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -261,7 +267,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] }, @@ -322,7 +329,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -332,7 +340,8 @@ }, "tail": true, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false } ] }, @@ -402,7 +411,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -412,7 +422,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -422,7 +433,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -492,7 +504,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -502,7 +515,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -512,7 +526,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -582,7 +597,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -592,7 +608,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -602,7 +619,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -672,7 +690,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -682,7 +701,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -692,7 +712,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -762,7 +783,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -772,7 +794,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -782,7 +805,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, @@ -852,7 +876,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -862,7 +887,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -872,7 +898,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, @@ -942,7 +969,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -952,7 +980,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -962,7 +991,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, @@ -1032,7 +1062,8 @@ }, "tail": false, "cooked": "1", - "raw": "1" + "raw": "1", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1042,7 +1073,8 @@ }, "tail": false, "cooked": "2", - "raw": "2" + "raw": "2", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -1052,7 +1084,8 @@ }, "tail": true, "cooked": "3", - "raw": "3" + "raw": "3", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortion.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortion.json index 9b8cc7156acc..a8d41218a556 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortion.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortion.json @@ -46,7 +46,8 @@ }, "tail": false, "cooked": " /**head ", - "raw": " /**head " + "raw": " /**head ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -56,7 +57,8 @@ }, "tail": false, "cooked": " // still middle ", - "raw": " // still middle " + "raw": " // still middle ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -66,7 +68,8 @@ }, "tail": true, "cooked": " /* still tail ", - "raw": " /* still tail " + "raw": " /* still tail ", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortionES6.json index e85b29a0d09d..35a529b1e36e 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithOpenCommentInStringPortionES6.json @@ -46,7 +46,8 @@ }, "tail": false, "cooked": " /**head ", - "raw": " /**head " + "raw": " /**head ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -56,7 +57,8 @@ }, "tail": false, "cooked": " // still middle ", - "raw": " // still middle " + "raw": " // still middle ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -66,7 +68,8 @@ }, "tail": true, "cooked": " /* still tail ", - "raw": " /* still tail " + "raw": " /* still tail ", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json index 97af23a0e282..0d9ff6c36009 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccess.json @@ -50,7 +50,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -60,7 +61,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -92,7 +94,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json index 5211af48cc2f..0d2542d89342 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringWithPropertyAccessES6.json @@ -50,7 +50,8 @@ }, "tail": false, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -60,7 +61,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] }, @@ -92,7 +94,8 @@ }, "tail": true, "cooked": "abc", - "raw": "abc" + "raw": "abc", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json index 5b9891d915db..5374c666934a 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpression.json @@ -101,7 +101,8 @@ "end": 38 }, "value": "bad", - "raw": "\"bad\"" + "raw": "\"bad\"", + "loneSurrogates": false } } } @@ -122,7 +123,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -132,7 +134,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json index 69695546b058..e7e96dddd7a7 100644 --- a/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json +++ b/crates/swc_ecma_parser/tests/tsc/templateStringsWithTypeErrorInFunctionExpressionsInSubstitutionExpressionES6.json @@ -101,7 +101,8 @@ "end": 52 }, "value": "bad", - "raw": "\"bad\"" + "raw": "\"bad\"", + "loneSurrogates": false } } } @@ -122,7 +123,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -132,7 +134,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json index c8a560a3d31d..e67e8a63cb47 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers1.json @@ -516,7 +516,8 @@ "end": 349 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -602,7 +603,8 @@ "end": 382 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -710,7 +712,8 @@ "end": 438 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -829,7 +832,8 @@ "end": 493 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, @@ -1876,7 +1880,8 @@ "end": 929 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2009,7 +2014,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json index 831f87f27d59..1d29336bf4c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers2.json @@ -516,7 +516,8 @@ "end": 350 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -602,7 +603,8 @@ "end": 383 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -710,7 +712,8 @@ "end": 439 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -829,7 +832,8 @@ "end": 494 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, @@ -1876,7 +1880,8 @@ "end": 930 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2009,7 +2014,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json index 1de1f4e6490b..63453fc5db31 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers3.json @@ -516,7 +516,8 @@ "end": 330 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -602,7 +603,8 @@ "end": 363 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -727,7 +729,8 @@ "end": 421 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json index d4d80dd39464..a1fa37eb3b57 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json +++ b/crates/swc_ecma_parser/tests/tsc/thisAndSuperInStaticMembers4.json @@ -516,7 +516,8 @@ "end": 331 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -602,7 +603,8 @@ "end": 364 }, "value": "x", - "raw": "\"x\"" + "raw": "\"x\"", + "loneSurrogates": false } } } @@ -727,7 +729,8 @@ "end": 422 }, "value": "f", - "raw": "\"f\"" + "raw": "\"f\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json index 557ffd1da198..087469aa213f 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignment.json @@ -149,7 +149,8 @@ "end": 537 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } }, @@ -208,7 +209,8 @@ "end": 553 }, "value": "y", - "raw": "\"y\"" + "raw": "\"y\"", + "loneSurrogates": false } } }, @@ -225,7 +227,8 @@ "end": 558 }, "value": "z", - "raw": "\"z\"" + "raw": "\"z\"", + "loneSurrogates": false } } }, @@ -411,7 +414,8 @@ "end": 644 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -470,7 +474,8 @@ "end": 662 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -487,7 +492,8 @@ "end": 667 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json index 46379bf5c214..bfb4853de31f 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentCircular.json @@ -97,7 +97,8 @@ "end": 202 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentComputed.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentComputed.json index 8a59381d2033..a6d814ecf05e 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentComputed.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentComputed.json @@ -51,7 +51,8 @@ "end": 127 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -60,7 +61,8 @@ "end": 133 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json index 5ee4a8db198b..585cb5291029 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json +++ b/crates/swc_ecma_parser/tests/tsc/thisPropertyAssignmentInherited.json @@ -74,7 +74,8 @@ "end": 231 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/thisTag1.json b/crates/swc_ecma_parser/tests/tsc/thisTag1.json index 582c70b0e7ea..43f90ade1a02 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTag1.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTag1.json @@ -240,7 +240,8 @@ "end": 281 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/thisTag3.json b/crates/swc_ecma_parser/tests/tsc/thisTag3.json index 25d055952406..f7c4d1b62389 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTag3.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTag3.json @@ -105,7 +105,8 @@ "end": 215 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json index 3c3efa4e2d2e..c42b26e52164 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInAccessorsNegative.json @@ -175,7 +175,8 @@ "end": 148 }, "value": "place", - "raw": "\"place\"" + "raw": "\"place\"", + "loneSurrogates": false } }, { @@ -191,7 +192,8 @@ "end": 157 }, "value": "time", - "raw": "\"time\"" + "raw": "\"time\"", + "loneSurrogates": false } }, { @@ -207,7 +209,8 @@ "end": 168 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } }, { @@ -223,7 +226,8 @@ "end": 182 }, "value": "technique", - "raw": "\"technique\"" + "raw": "\"technique\"", + "loneSurrogates": false } } ] @@ -452,7 +456,8 @@ "end": 304 }, "value": "method", - "raw": "\"method\"" + "raw": "\"method\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json index 15f133c7b1b7..fccc6b666545 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInFunctions.json @@ -10205,7 +10205,8 @@ "end": 5715 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } } @@ -10320,7 +10321,8 @@ "end": 5766 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json index 108797df35f2..d4c954094682 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals.json @@ -56,7 +56,8 @@ "end": 73 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json index ebe0294df46c..4632102b8419 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInObjectLiterals2.json @@ -137,7 +137,8 @@ "end": 241 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -6016,7 +6017,8 @@ "end": 3376 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -6207,7 +6209,8 @@ "end": 3448 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, { @@ -8618,7 +8621,8 @@ "end": 4541 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ] @@ -8806,7 +8810,8 @@ "end": 4649 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json index aa3ecded3333..6c893481736e 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInTaggedTemplateCall.json @@ -306,7 +306,8 @@ }, "tail": true, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false } ] } @@ -374,7 +375,8 @@ }, "tail": true, "cooked": "test", - "raw": "test" + "raw": "test", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json index c1e6fa52f473..349dda450a74 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInTuples.json @@ -201,7 +201,8 @@ "end": 82 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json b/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json index 744d04b4ff4c..c72cd471b2fa 100644 --- a/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json +++ b/crates/swc_ecma_parser/tests/tsc/thisTypeInTypePredicate.json @@ -309,7 +309,8 @@ "end": 128 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json b/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json index e29578bb72b2..cd8b30e62c7c 100644 --- a/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/throwInEnclosingStatements.json @@ -266,7 +266,8 @@ "end": 133 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false }, "consequent": [ { diff --git a/crates/swc_ecma_parser/tests/tsc/throwStatements.json b/crates/swc_ecma_parser/tests/tsc/throwStatements.json index 7343aca131cf..66708fc9496d 100644 --- a/crates/swc_ecma_parser/tests/tsc/throwStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/throwStatements.json @@ -865,7 +865,8 @@ "end": 435 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "definite": false } @@ -1553,7 +1554,8 @@ "end": 873 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2045,7 +2047,8 @@ "end": 1243 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false } }, { @@ -2085,7 +2088,8 @@ "end": 1282 }, "value": "a string", - "raw": "'a string'" + "raw": "'a string'", + "loneSurrogates": false } } ] @@ -2284,7 +2288,8 @@ "end": 1352 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -2305,7 +2310,8 @@ "end": 1358 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json b/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json index ea72f7169749..29806db19093 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelAmbientModule.json @@ -21,7 +21,8 @@ "end": 65 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -117,7 +118,8 @@ "end": 176 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json b/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json index 29d86c0e7dcf..9bf5616bb366 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelFileModule.json @@ -142,7 +142,8 @@ "end": 184 }, "value": "./vs/foo_0", - "raw": "\"./vs/foo_0\"" + "raw": "\"./vs/foo_0\"", + "loneSurrogates": false } } }, @@ -177,7 +178,8 @@ "end": 218 }, "value": "./vs/fum", - "raw": "\"./vs/fum\"" + "raw": "\"./vs/fum\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json b/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json index f17d478708aa..681953abede9 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelFileModuleMissing.json @@ -89,7 +89,8 @@ "end": 123 }, "value": "vs/foo", - "raw": "\"vs/foo\"" + "raw": "\"vs/foo\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json b/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json index 2c88ca70aa3f..73ce2602b940 100644 --- a/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json +++ b/crates/swc_ecma_parser/tests/tsc/topLevelModuleDeclarationAndFile.json @@ -82,7 +82,8 @@ "end": 130 }, "value": "vs/foo_0", - "raw": "\"vs/foo_0\"" + "raw": "\"vs/foo_0\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -194,7 +195,8 @@ "end": 253 }, "value": "vs/foo_0", - "raw": "\"vs/foo_0\"" + "raw": "\"vs/foo_0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json b/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json index a63844e10897..b772aa1c6b38 100644 --- a/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json +++ b/crates/swc_ecma_parser/tests/tsc/ts-expect-error.json @@ -53,7 +53,8 @@ "end": 91 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -107,7 +108,8 @@ "end": 187 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -161,7 +163,8 @@ "end": 278 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -215,7 +218,8 @@ "end": 371 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -269,7 +273,8 @@ "end": 442 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -323,7 +328,8 @@ "end": 516 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -377,7 +383,8 @@ "end": 585 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -431,7 +438,8 @@ "end": 657 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -485,7 +493,8 @@ "end": 729 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -539,7 +548,8 @@ "end": 765 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -593,7 +603,8 @@ "end": 799 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -995,7 +1006,8 @@ "end": 1162 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -1049,7 +1061,8 @@ "end": 1278 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/ts-ignore.json b/crates/swc_ecma_parser/tests/tsc/ts-ignore.json index 8d7819e69d3e..c2150ee8bd19 100644 --- a/crates/swc_ecma_parser/tests/tsc/ts-ignore.json +++ b/crates/swc_ecma_parser/tests/tsc/ts-ignore.json @@ -53,7 +53,8 @@ "end": 84 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -107,7 +108,8 @@ "end": 168 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -161,7 +163,8 @@ "end": 227 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -215,7 +218,8 @@ "end": 284 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -269,7 +273,8 @@ "end": 320 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -323,7 +328,8 @@ "end": 354 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -377,7 +383,8 @@ "end": 441 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } @@ -431,7 +438,8 @@ "end": 526 }, "value": "nope", - "raw": "'nope'" + "raw": "'nope'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json index 15356fc8f8cf..3cbb1b0796cf 100644 --- a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json +++ b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescript.json @@ -186,7 +186,8 @@ "end": 320 }, "value": "lol", - "raw": "\"lol\"" + "raw": "\"lol\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", diff --git a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json index 225c8c7ee6ff..c4dc6501a926 100644 --- a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json +++ b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments1.json @@ -186,7 +186,8 @@ "end": 336 }, "value": "lol", - "raw": "'lol'" + "raw": "'lol'", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", diff --git a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json index ff2fa5a8c48e..fbf22456fce6 100644 --- a/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json +++ b/crates/swc_ecma_parser/tests/tsc/tsNoCheckForTypescriptComments2.json @@ -186,7 +186,8 @@ "end": 341 }, "value": "lol", - "raw": "\"lol\"" + "raw": "\"lol\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsTypeAnnotation", diff --git a/crates/swc_ecma_parser/tests/tsc/typeAliases.json b/crates/swc_ecma_parser/tests/tsc/typeAliases.json index 458ab39faba0..00fd999e59fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAliases.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAliases.json @@ -2540,7 +2540,8 @@ "end": 1037 }, "value": "click", - "raw": "\"click\"" + "raw": "\"click\"", + "loneSurrogates": false } } } @@ -3301,7 +3302,8 @@ "end": 1394 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json b/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json index 557b58ad18d6..79e257adfe83 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json +++ b/crates/swc_ecma_parser/tests/tsc/typeAndNamespaceExportMerge.json @@ -198,7 +198,8 @@ "end": 175 }, "value": "./constants", - "raw": "\"./constants\"" + "raw": "\"./constants\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -237,7 +238,8 @@ "end": 233 }, "value": "./drink", - "raw": "\"./drink\"" + "raw": "\"./drink\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json index 6f668cbc03ca..a13b4b762ddd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInference.json @@ -313,7 +313,8 @@ "end": 238 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -353,7 +354,8 @@ "end": 267 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -409,7 +411,8 @@ "end": 292 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1933,7 +1936,8 @@ "end": 1184 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2405,7 +2409,8 @@ "end": 1519 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2844,7 +2849,8 @@ "end": 1836 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -5340,7 +5346,8 @@ "end": 3014 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -5522,7 +5529,8 @@ "end": 3107 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -6124,7 +6132,8 @@ "end": 3432 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -6350,7 +6359,8 @@ "end": 3528 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json index 06a52b9b114f..a97b7bb0d221 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceConstructSignatures.json @@ -427,7 +427,8 @@ "end": 338 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -467,7 +468,8 @@ "end": 371 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -523,7 +525,8 @@ "end": 400 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2327,7 +2330,8 @@ "end": 1562 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2844,7 +2848,8 @@ "end": 1960 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2933,7 +2938,8 @@ "end": 2008 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2979,7 +2985,8 @@ "end": 2027 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -3443,7 +3450,8 @@ "end": 2401 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3532,7 +3540,8 @@ "end": 2449 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3578,7 +3587,8 @@ "end": 2468 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -6385,7 +6395,8 @@ "end": 3929 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -6567,7 +6578,8 @@ "end": 4026 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -7159,7 +7171,8 @@ "end": 4353 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -7375,7 +7388,8 @@ "end": 4449 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json index 833b2193292f..2cf0b0cb388a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceErrors.json @@ -492,7 +492,8 @@ "end": 422 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -538,7 +539,8 @@ "end": 441 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -822,7 +824,8 @@ "end": 685 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -868,7 +871,8 @@ "end": 704 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json index 9d45dd8e794c..ac6415f62dec 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression1.json @@ -268,7 +268,8 @@ "end": 110 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json index 541ec9fce3d0..0109710a4374 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression2.json @@ -268,7 +268,8 @@ "end": 162 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": true, diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json index 6e87a425c635..3e45c4504fef 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithClassExpression3.json @@ -268,7 +268,8 @@ "end": 96 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json index 07af380fb9b3..0f980a748a31 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentInferenceWithConstraints.json @@ -327,7 +327,8 @@ "end": 264 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -367,7 +368,8 @@ "end": 302 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -423,7 +425,8 @@ "end": 327 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -2154,7 +2157,8 @@ "end": 1399 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2633,7 +2637,8 @@ "end": 1778 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2722,7 +2727,8 @@ "end": 1822 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -2768,7 +2774,8 @@ "end": 1841 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -3194,7 +3201,8 @@ "end": 2182 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3283,7 +3291,8 @@ "end": 2226 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -3329,7 +3338,8 @@ "end": 2245 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, @@ -6049,7 +6059,8 @@ "end": 3667 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -6231,7 +6242,8 @@ "end": 3760 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -6823,7 +6835,8 @@ "end": 4083 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -7039,7 +7052,8 @@ "end": 4175 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json b/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json index ed10f8931c24..d5ffc1599423 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json +++ b/crates/swc_ecma_parser/tests/tsc/typeArgumentsWithStringLiteralTypes01.json @@ -168,7 +168,8 @@ "end": 163 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } } @@ -204,7 +205,8 @@ "end": 173 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } } @@ -265,7 +267,8 @@ "end": 225 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -281,7 +284,8 @@ "end": 235 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ] @@ -326,7 +330,8 @@ "end": 245 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -342,7 +347,8 @@ "end": 255 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ] @@ -1080,7 +1086,8 @@ "end": 698 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1092,7 +1099,8 @@ "end": 707 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -1163,7 +1171,8 @@ "end": 741 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1175,7 +1184,8 @@ "end": 750 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ], @@ -1246,7 +1256,8 @@ "end": 784 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1258,7 +1269,8 @@ "end": 793 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -1329,7 +1341,8 @@ "end": 827 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1341,7 +1354,8 @@ "end": 836 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ], @@ -1412,7 +1426,8 @@ "end": 870 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1424,7 +1439,8 @@ "end": 879 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -1436,7 +1452,8 @@ "end": 888 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } }, { @@ -1448,7 +1465,8 @@ "end": 895 }, "value": "Foo", - "raw": "\"Foo\"" + "raw": "\"Foo\"", + "loneSurrogates": false } } ], @@ -2448,7 +2466,8 @@ "end": 1659 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2460,7 +2479,8 @@ "end": 1668 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ], @@ -2484,7 +2504,8 @@ "end": 1650 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -2555,7 +2576,8 @@ "end": 1711 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2567,7 +2589,8 @@ "end": 1720 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -2591,7 +2614,8 @@ "end": 1702 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -2662,7 +2686,8 @@ "end": 1772 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2674,7 +2699,8 @@ "end": 1781 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ], @@ -2698,7 +2724,8 @@ "end": 1754 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2714,7 +2741,8 @@ "end": 1763 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -2785,7 +2813,8 @@ "end": 1833 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2797,7 +2826,8 @@ "end": 1842 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -2821,7 +2851,8 @@ "end": 1815 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2837,7 +2868,8 @@ "end": 1824 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -2908,7 +2940,8 @@ "end": 1885 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -2920,7 +2953,8 @@ "end": 1894 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -2944,7 +2978,8 @@ "end": 1876 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -3944,7 +3979,8 @@ "end": 2690 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -3956,7 +3992,8 @@ "end": 2699 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -3980,7 +4017,8 @@ "end": 2672 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -3996,7 +4034,8 @@ "end": 2681 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ] @@ -4067,7 +4106,8 @@ "end": 2751 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } }, { @@ -4079,7 +4119,8 @@ "end": 2760 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ], @@ -4103,7 +4144,8 @@ "end": 2733 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -4119,7 +4161,8 @@ "end": 2742 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ] @@ -4190,7 +4233,8 @@ "end": 2812 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -4202,7 +4246,8 @@ "end": 2821 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ], @@ -4226,7 +4271,8 @@ "end": 2794 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } }, { @@ -4242,7 +4288,8 @@ "end": 2803 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -4313,7 +4360,8 @@ "end": 2873 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } }, { @@ -4325,7 +4373,8 @@ "end": 2882 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -4349,7 +4398,8 @@ "end": 2855 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } }, { @@ -4365,7 +4415,8 @@ "end": 2864 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } ] @@ -4436,7 +4487,8 @@ "end": 2935 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -4448,7 +4500,8 @@ "end": 2944 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ], @@ -4479,7 +4532,8 @@ "end": 2916 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -4495,7 +4549,8 @@ "end": 2926 }, "value": "World", - "raw": "\"World\"" + "raw": "\"World\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json b/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json index 422ea3286d13..1cc093bffa6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromJSConstructor.json @@ -212,7 +212,8 @@ "end": 329 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -425,7 +426,8 @@ "end": 465 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -471,7 +473,8 @@ "end": 498 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -610,7 +613,8 @@ "end": 608 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1096,7 +1100,8 @@ "end": 937 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json index e36b142ec12b..8e6555bcccee 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer.json @@ -417,7 +417,8 @@ "end": 353 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -611,7 +612,8 @@ "end": 428 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -886,7 +888,8 @@ "end": 498 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], @@ -1260,7 +1263,8 @@ "end": 741 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } }, @@ -1366,7 +1370,8 @@ "end": 833 }, "value": "error", - "raw": "'error'" + "raw": "'error'", + "loneSurrogates": false } } }, @@ -1473,7 +1478,8 @@ "end": 889 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } ], @@ -1737,7 +1743,8 @@ "end": 1012 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } }, @@ -1789,7 +1796,8 @@ "end": 1025 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json index a45f4d9a16ea..2bf968c26fdd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromJSInitializer4.json @@ -372,7 +372,8 @@ "end": 350 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } }, @@ -478,7 +479,8 @@ "end": 442 }, "value": "error", - "raw": "'error'" + "raw": "'error'", + "loneSurrogates": false } } }, @@ -585,7 +587,8 @@ "end": 498 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json b/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json index 42c681644eda..f38884786eb8 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromParamTagForFunction.json @@ -343,7 +343,8 @@ "end": 301 }, "value": "./a-ext", - "raw": "\"./a-ext\"" + "raw": "\"./a-ext\"", + "loneSurrogates": false } } ], @@ -645,7 +646,8 @@ "end": 492 }, "value": "./b-ext", - "raw": "\"./b-ext\"" + "raw": "\"./b-ext\"", + "loneSurrogates": false } } ], @@ -903,7 +905,8 @@ "end": 654 }, "value": "./c-ext", - "raw": "\"./c-ext\"" + "raw": "\"./c-ext\"", + "loneSurrogates": false } } ], @@ -1182,7 +1185,8 @@ "end": 823 }, "value": "./d-ext", - "raw": "\"./d-ext\"" + "raw": "\"./d-ext\"", + "loneSurrogates": false } } ], @@ -1461,7 +1465,8 @@ "end": 1010 }, "value": "./e-ext", - "raw": "\"./e-ext\"" + "raw": "\"./e-ext\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json index 20db46445f2c..15f2d17bd750 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment12.json @@ -345,7 +345,8 @@ "end": 293 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json index 428f466894d5..4ad232e341e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment17.json @@ -612,7 +612,8 @@ "end": 520 }, "value": "./minimatch", - "raw": "'./minimatch'" + "raw": "'./minimatch'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json index 3aed6758614a..6e271b0fd04f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment19.json @@ -393,7 +393,8 @@ "end": 357 }, "value": "./semver", - "raw": "\"./semver\"" + "raw": "\"./semver\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json index fb8c96629e56..4805e3df4942 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment21.json @@ -118,7 +118,8 @@ "end": 272 }, "value": "nope, not going to happen", - "raw": "'nope, not going to happen'" + "raw": "'nope, not going to happen'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json index aecd16a97db6..8957fcf70421 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment22.json @@ -253,7 +253,8 @@ "end": 305 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json index b26667b69567..a6f00c3f2fe7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment23.json @@ -410,7 +410,8 @@ "end": 355 }, "value": "not checked, so no error", - "raw": "'not checked, so no error'" + "raw": "'not checked, so no error'", + "loneSurrogates": false } } } @@ -639,7 +640,8 @@ "end": 614 }, "value": "normal", - "raw": "'normal'" + "raw": "'normal'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json index 87103904e669..52e56ed95fe4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment24.json @@ -376,7 +376,8 @@ "end": 363 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json index 5ca6dd37e35b..d4c8ee4a6979 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment29.json @@ -729,7 +729,8 @@ "end": 359 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json index 9962c4445b4f..5456a42cf506 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment36.json @@ -691,7 +691,8 @@ "end": 366 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1659,7 +1660,8 @@ "end": 817 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json index 90a22ae62ba6..8ae090425305 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment37.json @@ -256,7 +256,8 @@ "end": 219 }, "value": "./mod", - "raw": "'./mod'" + "raw": "'./mod'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment38.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment38.json index d516adc3243e..ada13a13c205 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment38.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment38.json @@ -81,7 +81,8 @@ "end": 82 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } } }, @@ -193,7 +194,8 @@ "end": 124 }, "value": "prop", - "raw": "\"prop\"" + "raw": "\"prop\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment39.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment39.json index 9cee51b123aa..445dde13fe8a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment39.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment39.json @@ -86,7 +86,8 @@ "end": 151 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, @@ -148,7 +149,8 @@ "end": 168 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } }, @@ -165,7 +167,8 @@ "end": 176 }, "value": "blah", - "raw": "\"blah\"" + "raw": "\"blah\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json index 46df2ff69501..64e283e6ae40 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment5.json @@ -174,7 +174,8 @@ "end": 205 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json index 695765a19d1b..74b2bb9151b2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9.json @@ -792,7 +792,8 @@ "end": 455 }, "value": "none", - "raw": "'none'" + "raw": "'none'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json index bd051ee23ecc..adcc985b4a3d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPropertyAssignment9_1.json @@ -792,7 +792,8 @@ "end": 458 }, "value": "none", - "raw": "'none'" + "raw": "'none'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json index 7337398a78b1..d16859626cbd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment3.json @@ -246,7 +246,8 @@ "end": 298 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -383,7 +384,8 @@ "end": 386 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json index 3fc807cc8275..d1569e294841 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json +++ b/crates/swc_ecma_parser/tests/tsc/typeFromPrototypeAssignment4.json @@ -134,7 +134,8 @@ "end": 191 }, "value": "prototype", - "raw": "\"prototype\"" + "raw": "\"prototype\"", + "loneSurrogates": false } } }, @@ -254,7 +255,8 @@ "end": 312 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } @@ -319,7 +321,8 @@ "end": 344 }, "value": "prototype", - "raw": "\"prototype\"" + "raw": "\"prototype\"", + "loneSurrogates": false } } }, @@ -336,7 +339,8 @@ "end": 354 }, "value": "add-on", - "raw": "\"add-on\"" + "raw": "\"add-on\"", + "loneSurrogates": false } } }, @@ -414,7 +418,8 @@ "end": 394 }, "value": "prototype", - "raw": "\"prototype\"" + "raw": "\"prototype\"", + "loneSurrogates": false } } }, @@ -431,7 +436,8 @@ "end": 403 }, "value": "addon", - "raw": "\"addon\"" + "raw": "\"addon\"", + "loneSurrogates": false } } }, @@ -509,7 +515,8 @@ "end": 443 }, "value": "prototype", - "raw": "\"prototype\"" + "raw": "\"prototype\"", + "loneSurrogates": false } } }, @@ -526,7 +533,8 @@ "end": 462 }, "value": "__underscores__", - "raw": "\"__underscores__\"" + "raw": "\"__underscores__\"", + "loneSurrogates": false } } }, @@ -655,7 +663,8 @@ "end": 523 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -704,7 +713,8 @@ "end": 539 }, "value": "add-on", - "raw": "\"add-on\"" + "raw": "\"add-on\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardEnums.json b/crates/swc_ecma_parser/tests/tsc/typeGuardEnums.json index c63ea9a4b612..ae24f2c07485 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardEnums.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardEnums.json @@ -182,7 +182,8 @@ "end": 74 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -278,7 +279,8 @@ "end": 153 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json b/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json index 84059eca00a4..a46fdacf53ff 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardInClass.json @@ -106,7 +106,8 @@ "end": 51 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json b/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json index 24882695e934..79c6876e54ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardIntersectionTypes.json @@ -1887,7 +1887,8 @@ "end": 1107 }, "value": "number", - "raw": "'number'" + "raw": "'number'", + "loneSurrogates": false } } } @@ -2408,7 +2409,8 @@ }, "tail": true, "cooked": "pegasus - 4 legs, wings", - "raw": "pegasus - 4 legs, wings" + "raw": "pegasus - 4 legs, wings", + "loneSurrogates": false } ] } @@ -2517,7 +2519,8 @@ }, "tail": true, "cooked": "bird - 2 legs, wings", - "raw": "bird - 2 legs, wings" + "raw": "bird - 2 legs, wings", + "loneSurrogates": false } ] } @@ -2604,7 +2607,8 @@ }, "tail": false, "cooked": "unknown - ", - "raw": "unknown - " + "raw": "unknown - ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2614,7 +2618,8 @@ }, "tail": true, "cooked": " legs, wings", - "raw": " legs, wings" + "raw": " legs, wings", + "loneSurrogates": false } ] } @@ -2705,7 +2710,8 @@ }, "tail": false, "cooked": "manbearpig - ", - "raw": "manbearpig - " + "raw": "manbearpig - ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2715,7 +2721,8 @@ }, "tail": true, "cooked": " legs, no wings", - "raw": " legs, no wings" + "raw": " legs, no wings", + "loneSurrogates": false } ] } @@ -2827,7 +2834,8 @@ }, "tail": true, "cooked": "quetzalcoatl - no legs, wings", - "raw": "quetzalcoatl - no legs, wings" + "raw": "quetzalcoatl - no legs, wings", + "loneSurrogates": false } ] } @@ -2888,7 +2896,8 @@ }, "tail": true, "cooked": "snake - no legs, no wings", - "raw": "snake - no legs, no wings" + "raw": "snake - no legs, no wings", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json index d8bdfb3b5960..d70dc95188df 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralType.json @@ -105,7 +105,8 @@ "end": 55 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -161,7 +162,8 @@ "end": 93 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json index 36c986fc9184..fa6883b54fa9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardNarrowsToLiteralTypeUnion.json @@ -118,7 +118,8 @@ "end": 56 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -134,7 +135,8 @@ "end": 64 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -200,7 +202,8 @@ "end": 103 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -216,7 +219,8 @@ "end": 111 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardNesting.json b/crates/swc_ecma_parser/tests/tsc/typeGuardNesting.json index 1f001bc40013..852b08e8b793 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardNesting.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardNesting.json @@ -126,7 +126,8 @@ "end": 67 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } }, "right": { @@ -181,7 +182,8 @@ "end": 115 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -278,7 +280,8 @@ "end": 170 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -299,7 +302,8 @@ "end": 194 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -391,7 +395,8 @@ "end": 248 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } }, @@ -503,7 +508,8 @@ "end": 324 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } }, @@ -524,7 +530,8 @@ "end": 348 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -616,7 +623,8 @@ "end": 402 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -705,7 +713,8 @@ "end": 462 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } }, "right": { @@ -760,7 +769,8 @@ "end": 511 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } }, @@ -857,7 +867,8 @@ "end": 566 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, @@ -878,7 +889,8 @@ "end": 590 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -970,7 +982,8 @@ "end": 644 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } }, @@ -1082,7 +1095,8 @@ "end": 720 }, "value": "boolean", - "raw": "'boolean'" + "raw": "'boolean'", + "loneSurrogates": false } } }, @@ -1103,7 +1117,8 @@ "end": 744 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "definite": false @@ -1195,7 +1210,8 @@ "end": 798 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json index 2c159e930fac..17280d6a046f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1AndExpr2.json @@ -656,7 +656,8 @@ "end": 677 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -691,7 +692,8 @@ "end": 715 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -840,7 +842,8 @@ "end": 903 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -875,7 +878,8 @@ "end": 944 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -911,7 +915,8 @@ "end": 986 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -1060,7 +1065,8 @@ "end": 1203 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1095,7 +1101,8 @@ "end": 1244 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -1131,7 +1138,8 @@ "end": 1283 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -1451,7 +1459,8 @@ "end": 1604 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json index 4bfd6d777052..910813c7870a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormExpr1OrExpr2.json @@ -656,7 +656,8 @@ "end": 678 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -691,7 +692,8 @@ "end": 716 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -840,7 +842,8 @@ "end": 904 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -875,7 +878,8 @@ "end": 945 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -911,7 +915,8 @@ "end": 987 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -1060,7 +1065,8 @@ "end": 1204 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1095,7 +1101,8 @@ "end": 1245 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -1131,7 +1138,8 @@ "end": 1284 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -1451,7 +1459,8 @@ "end": 1605 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json index 91a23ff77ee7..130f3bbb1f74 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormFunctionEquality.json @@ -301,7 +301,8 @@ "end": 141 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -341,7 +342,8 @@ "end": 167 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -433,7 +435,8 @@ "end": 209 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -466,7 +469,8 @@ "end": 227 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormNotExpr.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormNotExpr.json index 69ff46ea6432..afa9f4466418 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormNotExpr.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormNotExpr.json @@ -391,7 +391,8 @@ "end": 369 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -546,7 +547,8 @@ "end": 518 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -581,7 +583,8 @@ "end": 556 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -738,7 +741,8 @@ "end": 734 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -788,7 +792,8 @@ "end": 775 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -945,7 +950,8 @@ "end": 950 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -980,7 +986,8 @@ "end": 988 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -1137,7 +1144,8 @@ "end": 1166 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -1187,7 +1195,8 @@ "end": 1207 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } } @@ -1344,7 +1353,8 @@ "end": 1382 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json index 44851ec66437..149cef13e9d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfBoolean.json @@ -790,7 +790,8 @@ "end": 610 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -924,7 +925,8 @@ "end": 723 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1058,7 +1060,8 @@ "end": 841 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1192,7 +1195,8 @@ "end": 976 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1326,7 +1330,8 @@ "end": 1078 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1515,7 +1520,8 @@ "end": 1435 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1649,7 +1655,8 @@ "end": 1548 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1783,7 +1790,8 @@ "end": 1666 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1917,7 +1925,8 @@ "end": 1801 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2051,7 +2060,8 @@ "end": 1903 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json index 729f6c6e5315..7d2b45e474e3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfEqualEqualHasNoEffect.json @@ -379,7 +379,8 @@ "end": 230 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -523,7 +524,8 @@ "end": 363 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -667,7 +669,8 @@ "end": 499 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -811,7 +814,8 @@ "end": 633 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json index 3ec262fa4dd1..341fffd1f5b4 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfFunction.json @@ -105,7 +105,8 @@ "end": 55 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -244,7 +245,8 @@ "end": 144 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -383,7 +385,8 @@ "end": 233 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -532,7 +535,8 @@ "end": 324 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -737,7 +741,8 @@ "end": 428 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -892,7 +897,8 @@ "end": 524 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -1071,7 +1077,8 @@ "end": 639 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -1312,7 +1319,8 @@ "end": 800 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -1566,7 +1574,8 @@ "end": 967 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -1913,7 +1922,8 @@ "end": 1243 }, "value": "function", - "raw": "'function'" + "raw": "'function'", + "loneSurrogates": false } }, "consequent": { @@ -2345,7 +2355,8 @@ "end": 1471 }, "value": "function", - "raw": "'function'" + "raw": "'function'", + "loneSurrogates": false } }, "consequent": { @@ -2598,7 +2609,8 @@ "end": 1596 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfIsOrderIndependent.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfIsOrderIndependent.json index d0f063fb5e5c..74b777d44063 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfIsOrderIndependent.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfIsOrderIndependent.json @@ -500,7 +500,8 @@ "end": 223 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", @@ -634,7 +635,8 @@ "end": 312 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", @@ -768,7 +770,8 @@ "end": 403 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", @@ -902,7 +905,8 @@ "end": 495 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json index 7972752f8cec..451df03d6bf9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNotEqualHasNoEffect.json @@ -379,7 +379,8 @@ "end": 230 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -523,7 +524,8 @@ "end": 363 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -667,7 +669,8 @@ "end": 499 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -811,7 +814,8 @@ "end": 632 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json index b8094f2d8f50..3487a3a859ed 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfNumber.json @@ -790,7 +790,8 @@ "end": 608 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -923,7 +924,8 @@ "end": 718 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1093,7 +1095,8 @@ "end": 863 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1227,7 +1230,8 @@ "end": 996 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1361,7 +1365,8 @@ "end": 1094 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1550,7 +1555,8 @@ "end": 1452 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1683,7 +1689,8 @@ "end": 1562 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1853,7 +1860,8 @@ "end": 1707 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1987,7 +1995,8 @@ "end": 1840 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -2121,7 +2130,8 @@ "end": 1938 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json index 6edbaf475805..1d9ce22af88a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfOther.json @@ -836,7 +836,8 @@ "end": 637 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { @@ -989,7 +990,8 @@ "end": 742 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { @@ -1142,7 +1144,8 @@ "end": 849 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { @@ -1301,7 +1304,8 @@ "end": 958 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsKeywordType", @@ -1463,7 +1467,8 @@ "end": 1162 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { @@ -1660,7 +1665,8 @@ "end": 1546 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { @@ -1813,7 +1819,8 @@ "end": 1651 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { @@ -1966,7 +1973,8 @@ "end": 1757 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { @@ -2119,7 +2127,8 @@ "end": 1875 }, "value": "Object", - "raw": "\"Object\"" + "raw": "\"Object\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfPrimitiveSubtype.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfPrimitiveSubtype.json index 323659796f04..ee7fd14cce95 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfPrimitiveSubtype.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfPrimitiveSubtype.json @@ -172,7 +172,8 @@ "end": 66 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -280,7 +281,8 @@ "end": 120 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -388,7 +390,8 @@ "end": 175 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -496,7 +499,8 @@ "end": 231 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -604,7 +608,8 @@ "end": 285 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -712,7 +717,8 @@ "end": 340 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json index f7a6e2035c84..d3614bbb62f9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFormTypeOfString.json @@ -790,7 +790,8 @@ "end": 608 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -923,7 +924,8 @@ "end": 718 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1057,7 +1059,8 @@ "end": 835 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1191,7 +1194,8 @@ "end": 968 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1325,7 +1329,8 @@ "end": 1066 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1514,7 +1519,8 @@ "end": 1424 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1647,7 +1653,8 @@ "end": 1534 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1781,7 +1788,8 @@ "end": 1651 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1915,7 +1923,8 @@ "end": 1784 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2049,7 +2058,8 @@ "end": 1882 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json index bd1f4b379c73..6776d309aa4b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardOfFromPropNameInUnionType.json @@ -412,7 +412,8 @@ "end": 137 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -478,7 +479,8 @@ "end": 163 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } } @@ -706,7 +708,8 @@ "end": 260 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1112,7 +1115,8 @@ "end": 440 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1546,7 +1550,8 @@ "end": 716 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1612,7 +1617,8 @@ "end": 742 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } } } @@ -1885,7 +1891,8 @@ "end": 917 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -2269,7 +2276,8 @@ "end": 1107 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -2664,7 +2672,8 @@ "end": 1332 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -3082,7 +3091,8 @@ "end": 1535 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -3423,7 +3433,8 @@ "end": 1760 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "ThisExpression", @@ -3713,7 +3724,8 @@ "end": 1925 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -3788,7 +3800,8 @@ "end": 1976 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -3873,7 +3886,8 @@ "end": 2025 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json b/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json index 239976656caa..7315119525cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardRedundancy.json @@ -140,7 +140,8 @@ "end": 54 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -175,7 +176,8 @@ "end": 79 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -319,7 +321,8 @@ "end": 137 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -354,7 +357,8 @@ "end": 162 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } @@ -487,7 +491,8 @@ "end": 219 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -522,7 +527,8 @@ "end": 244 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } }, @@ -666,7 +672,8 @@ "end": 302 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -701,7 +708,8 @@ "end": 327 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardTautologicalConsistiency.json b/crates/swc_ecma_parser/tests/tsc/typeGuardTautologicalConsistiency.json index 354dfe47f2df..ad1f2a12c5c0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardTautologicalConsistiency.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardTautologicalConsistiency.json @@ -106,7 +106,8 @@ "end": 77 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -155,7 +156,8 @@ "end": 123 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -236,7 +238,8 @@ "end": 198 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "right": { @@ -271,7 +274,8 @@ "end": 236 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json b/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json index b856e7193964..2c43947326c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardTypeOfUndefined.json @@ -105,7 +105,8 @@ "end": 111 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -154,7 +155,8 @@ "end": 149 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -349,7 +351,8 @@ "end": 312 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -398,7 +401,8 @@ "end": 350 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -600,7 +604,8 @@ "end": 513 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -635,7 +640,8 @@ "end": 539 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -808,7 +814,8 @@ "end": 642 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -843,7 +850,8 @@ "end": 668 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -1026,7 +1034,8 @@ "end": 782 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -1075,7 +1084,8 @@ "end": 820 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1287,7 +1297,8 @@ "end": 994 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -1336,7 +1347,8 @@ "end": 1032 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1555,7 +1567,8 @@ "end": 1206 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -1590,7 +1603,8 @@ "end": 1232 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -1780,7 +1794,8 @@ "end": 1346 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -1815,7 +1830,8 @@ "end": 1372 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -1998,7 +2014,8 @@ "end": 1488 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -2047,7 +2064,8 @@ "end": 1526 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2259,7 +2277,8 @@ "end": 1703 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -2308,7 +2327,8 @@ "end": 1741 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2527,7 +2547,8 @@ "end": 1918 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -2562,7 +2583,8 @@ "end": 1944 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -2752,7 +2774,8 @@ "end": 2061 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -2787,7 +2810,8 @@ "end": 2087 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -2978,7 +3002,8 @@ "end": 2211 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -3027,7 +3052,8 @@ "end": 2249 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -3247,7 +3273,8 @@ "end": 2433 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -3296,7 +3323,8 @@ "end": 2471 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -3523,7 +3551,8 @@ "end": 2655 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -3558,7 +3587,8 @@ "end": 2681 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, @@ -3756,7 +3786,8 @@ "end": 2805 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "right": { @@ -3791,7 +3822,8 @@ "end": 2831 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json index a6b5569d5176..9edc633a72f2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsAsAssertions.json @@ -441,7 +441,8 @@ "end": 247 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -575,7 +576,8 @@ "end": 335 }, "value": "some", - "raw": "'some'" + "raw": "'some'", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1515,7 +1517,8 @@ "end": 846 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1560,7 +1563,8 @@ "end": 866 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } } @@ -1812,7 +1816,8 @@ "end": 1080 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1925,7 +1930,8 @@ "end": 1157 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } } @@ -2333,7 +2339,8 @@ "end": 1557 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2745,7 +2752,8 @@ "end": 1938 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2925,7 +2933,8 @@ "end": 2089 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2960,7 +2969,8 @@ "end": 2114 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -3222,7 +3232,8 @@ "end": 2325 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -3596,7 +3607,8 @@ "end": 2491 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsUnionType", @@ -3712,7 +3724,8 @@ "end": 2534 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsUnionType", diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json index 8d4840cef8bb..2cdf1d59570e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsDefeat.json @@ -192,7 +192,8 @@ "end": 235 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -425,7 +426,8 @@ "end": 407 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -603,7 +605,8 @@ "end": 551 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -758,7 +761,8 @@ "end": 629 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -917,7 +921,8 @@ "end": 735 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json index 5ece39558936..ecd80d05205b 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassAccessors.json @@ -290,7 +290,8 @@ "end": 417 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -447,7 +448,8 @@ "end": 563 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -653,7 +655,8 @@ "end": 781 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -747,7 +750,8 @@ "end": 893 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -904,7 +908,8 @@ "end": 1040 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1042,7 +1047,8 @@ "end": 1220 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1199,7 +1205,8 @@ "end": 1366 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1405,7 +1412,8 @@ "end": 1594 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1499,7 +1507,8 @@ "end": 1706 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1656,7 +1665,8 @@ "end": 1853 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1794,7 +1804,8 @@ "end": 2030 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1951,7 +1962,8 @@ "end": 2176 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2157,7 +2169,8 @@ "end": 2401 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2251,7 +2264,8 @@ "end": 2513 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2408,7 +2422,8 @@ "end": 2660 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2546,7 +2561,8 @@ "end": 2854 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2703,7 +2719,8 @@ "end": 3000 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2909,7 +2926,8 @@ "end": 3242 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -3003,7 +3021,8 @@ "end": 3354 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -3160,7 +3179,8 @@ "end": 3501 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json index 1a3994323d1c..5c3bcee54bfb 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInClassMethods.json @@ -272,7 +272,8 @@ "end": 344 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -429,7 +430,8 @@ "end": 490 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -523,7 +525,8 @@ "end": 603 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -703,7 +706,8 @@ "end": 798 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -860,7 +864,8 @@ "end": 944 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -954,7 +959,8 @@ "end": 1057 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1143,7 +1149,8 @@ "end": 1244 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1300,7 +1307,8 @@ "end": 1390 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1394,7 +1402,8 @@ "end": 1503 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1583,7 +1592,8 @@ "end": 1705 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1740,7 +1750,8 @@ "end": 1851 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1834,7 +1845,8 @@ "end": 1964 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2023,7 +2035,8 @@ "end": 2158 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2180,7 +2193,8 @@ "end": 2304 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2274,7 +2288,8 @@ "end": 2417 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json index fd72da04fa26..27cb2409e2e6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInConditionalExpression.json @@ -128,7 +128,8 @@ "end": 552 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -307,7 +308,8 @@ "end": 677 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -354,7 +356,8 @@ "end": 701 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -512,7 +515,8 @@ "end": 812 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -717,7 +721,8 @@ "end": 942 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -922,7 +927,8 @@ "end": 1072 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -979,7 +985,8 @@ "end": 1118 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -1127,7 +1134,8 @@ "end": 1238 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1234,7 +1242,8 @@ "end": 1298 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -1390,7 +1399,8 @@ "end": 1397 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1417,7 +1427,8 @@ "end": 1421 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "alternate": { @@ -1458,7 +1469,8 @@ "end": 1465 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1702,7 +1714,8 @@ "end": 1628 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1729,7 +1742,8 @@ "end": 1652 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "alternate": { @@ -1825,7 +1839,8 @@ "end": 1727 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2041,7 +2056,8 @@ "end": 1964 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2132,7 +2148,8 @@ "end": 2007 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -2367,7 +2384,8 @@ "end": 2186 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2468,7 +2486,8 @@ "end": 2285 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -2720,7 +2739,8 @@ "end": 2471 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2828,7 +2848,8 @@ "end": 2570 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -3091,7 +3112,8 @@ "end": 2784 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -3282,7 +3304,8 @@ "end": 2915 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json index b05d8dde2ed6..aa0534f3e3fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInDoStatement.json @@ -210,7 +210,8 @@ "end": 174 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "body": { @@ -460,7 +461,8 @@ "end": 387 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "body": { @@ -687,7 +689,8 @@ "end": 461 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -729,7 +732,8 @@ "end": 575 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json index f8faee9c32a0..999d36885424 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInExternalModule.json @@ -152,7 +152,8 @@ "end": 268 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -434,7 +435,8 @@ "end": 476 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json index 10414a2b0b81..237e04d3e5b6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInForStatement.json @@ -197,7 +197,8 @@ "end": 98 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "update": { @@ -427,7 +428,8 @@ "end": 241 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "update": { @@ -683,7 +685,8 @@ "end": 412 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "update": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json index 5cd4bcbfde00..f2049473c50e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunction.json @@ -256,7 +256,8 @@ "end": 352 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -413,7 +414,8 @@ "end": 486 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -507,7 +509,8 @@ "end": 591 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -829,7 +832,8 @@ "end": 848 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -923,7 +927,8 @@ "end": 967 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1017,7 +1022,8 @@ "end": 1077 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1174,7 +1180,8 @@ "end": 1196 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1268,7 +1275,8 @@ "end": 1263 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1621,7 +1629,8 @@ "end": 1608 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1715,7 +1724,8 @@ "end": 1727 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1809,7 +1819,8 @@ "end": 1837 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1966,7 +1977,8 @@ "end": 1956 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2060,7 +2072,8 @@ "end": 2023 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2430,7 +2443,8 @@ "end": 2369 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2524,7 +2538,8 @@ "end": 2488 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2618,7 +2633,8 @@ "end": 2598 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2775,7 +2791,8 @@ "end": 2717 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2869,7 +2886,8 @@ "end": 2784 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -3196,7 +3214,8 @@ "end": 3031 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json index a786cddfb63c..d5a7cce1636e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInFunctionAndModuleBlock.json @@ -136,7 +136,8 @@ "end": 129 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -268,7 +269,8 @@ "end": 251 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -493,7 +495,8 @@ "end": 430 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -676,7 +679,8 @@ "end": 583 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -915,7 +919,8 @@ "end": 805 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1042,7 +1047,8 @@ "end": 933 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1268,7 +1274,8 @@ "end": 1112 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1438,7 +1445,8 @@ "end": 1259 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1672,7 +1680,8 @@ "end": 1536 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2059,7 +2068,8 @@ "end": 1827 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2178,7 +2188,8 @@ "end": 1915 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2529,7 +2540,8 @@ "end": 2195 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2648,7 +2660,8 @@ "end": 2283 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json index c68537347716..26080736b89c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInGlobal.json @@ -152,7 +152,8 @@ "end": 234 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json index e4fb609eda3c..38c469ab4654 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInIfStatement.json @@ -122,7 +122,8 @@ "end": 381 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -328,7 +329,8 @@ "end": 540 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -545,7 +547,8 @@ "end": 706 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -587,7 +590,8 @@ "end": 729 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } }, @@ -762,7 +766,8 @@ "end": 877 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -979,7 +984,8 @@ "end": 1043 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1048,7 +1054,8 @@ "end": 1111 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -1196,7 +1203,8 @@ "end": 1214 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1300,7 +1308,8 @@ "end": 1298 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -1456,7 +1465,8 @@ "end": 1411 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1497,7 +1507,8 @@ "end": 1443 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -1541,7 +1552,8 @@ "end": 1496 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -1749,7 +1761,8 @@ "end": 1663 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1790,7 +1803,8 @@ "end": 1695 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -1914,7 +1928,8 @@ "end": 1816 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -2156,7 +2171,8 @@ "end": 2015 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2248,7 +2264,8 @@ "end": 2169 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -2431,7 +2448,8 @@ "end": 2404 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2472,7 +2490,8 @@ "end": 2436 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -2634,7 +2653,8 @@ "end": 2573 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -2811,7 +2831,8 @@ "end": 2901 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -3005,7 +3026,8 @@ "end": 3180 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -3302,7 +3324,8 @@ "end": 3701 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -3485,7 +3508,8 @@ "end": 3907 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json index 3268bfcf002d..a5f14a4f1b45 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInModule.json @@ -266,7 +266,8 @@ "end": 343 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -398,7 +399,8 @@ "end": 473 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -617,7 +619,8 @@ "end": 677 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -964,7 +967,8 @@ "end": 992 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1058,7 +1062,8 @@ "end": 1115 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1152,7 +1157,8 @@ "end": 1237 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1269,7 +1275,8 @@ "end": 1381 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1488,7 +1495,8 @@ "end": 1617 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1697,7 +1705,8 @@ "end": 1869 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1829,7 +1838,8 @@ "end": 1999 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -2048,7 +2058,8 @@ "end": 2203 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json index 094b86d24e2e..b63c408aeefd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInProperties.json @@ -414,7 +414,8 @@ "end": 420 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -517,7 +518,8 @@ "end": 500 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -620,7 +622,8 @@ "end": 580 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -803,7 +806,8 @@ "end": 670 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -912,7 +916,8 @@ "end": 738 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1120,7 +1125,8 @@ "end": 845 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json index 91e89583bd17..6bc83df522a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfAndAndOperator.json @@ -129,7 +129,8 @@ "end": 212 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -307,7 +308,8 @@ "end": 351 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -503,7 +505,8 @@ "end": 523 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -550,7 +553,8 @@ "end": 540 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -714,7 +718,8 @@ "end": 648 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -749,7 +754,8 @@ "end": 710 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -967,7 +973,8 @@ "end": 963 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1064,7 +1071,8 @@ "end": 1038 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "right": { @@ -1222,7 +1230,8 @@ "end": 1257 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1269,7 +1278,8 @@ "end": 1320 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1594,7 +1604,8 @@ "end": 1583 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1690,7 +1701,8 @@ "end": 1657 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json index 44e3e00b5888..692327d445b5 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInRightOperandOfOrOrOperator.json @@ -129,7 +129,8 @@ "end": 298 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -307,7 +308,8 @@ "end": 437 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -503,7 +505,8 @@ "end": 609 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -550,7 +553,8 @@ "end": 626 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, @@ -714,7 +718,8 @@ "end": 734 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -749,7 +754,8 @@ "end": 796 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -967,7 +973,8 @@ "end": 1049 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1064,7 +1071,8 @@ "end": 1124 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "right": { @@ -1222,7 +1230,8 @@ "end": 1279 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1269,7 +1278,8 @@ "end": 1342 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1594,7 +1604,8 @@ "end": 1605 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1690,7 +1701,8 @@ "end": 1679 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json index 624c5b2223c7..c0705d277d49 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsInWhileStatement.json @@ -168,7 +168,8 @@ "end": 85 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "body": { @@ -376,7 +377,8 @@ "end": 223 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "body": { @@ -610,7 +612,8 @@ "end": 389 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "body": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json index 322d1e21e02a..ccb82537bef0 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsNestedAssignments.json @@ -1120,7 +1120,8 @@ "end": 697 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -1351,7 +1352,8 @@ "end": 822 }, "value": "xxx", - "raw": "\"xxx\"" + "raw": "\"xxx\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json index fde7779984cd..94219b4ccc89 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsObjectMethods.json @@ -350,7 +350,8 @@ "end": 409 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -507,7 +508,8 @@ "end": 555 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -601,7 +603,8 @@ "end": 668 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -742,7 +745,8 @@ "end": 831 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -899,7 +903,8 @@ "end": 977 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1078,7 +1083,8 @@ "end": 1161 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1235,7 +1241,8 @@ "end": 1307 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1329,7 +1336,8 @@ "end": 1420 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1471,7 +1479,8 @@ "end": 1544 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -1604,7 +1613,8 @@ "end": 1642 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json index 92be158d41f7..f09ceca65739 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsOnClassProperty.json @@ -216,7 +216,8 @@ "end": 372 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -271,7 +272,8 @@ "end": 395 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } ], @@ -379,7 +381,8 @@ "end": 466 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -458,7 +461,8 @@ "end": 499 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } ], @@ -657,7 +661,8 @@ "end": 602 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -745,7 +750,8 @@ "end": 663 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -911,7 +917,8 @@ "end": 743 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json index 3394662a1f42..7d27bee0b81c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsTypeParameters.json @@ -499,7 +499,8 @@ "end": 301 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -1077,7 +1078,8 @@ "end": 589 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json index fa1b9c11fe0a..e29ee39ad9f6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithAny.json @@ -236,7 +236,8 @@ "end": 223 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -362,7 +363,8 @@ "end": 378 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, "consequent": { @@ -488,7 +490,8 @@ "end": 534 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false } }, "consequent": { @@ -614,7 +617,8 @@ "end": 689 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json index f920a2dc1f57..542c31fe31b1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfByConstructorSignature.json @@ -1031,7 +1031,8 @@ "end": 540 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -1080,7 +1081,8 @@ "end": 562 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } } @@ -1221,7 +1223,8 @@ "end": 627 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -1319,7 +1322,8 @@ "end": 667 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json index 08ec21354b4c..71beb3d539a2 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/typeGuardsWithInstanceOfBySymbolHasInstance.json @@ -1271,7 +1271,8 @@ "end": 670 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -1320,7 +1321,8 @@ "end": 692 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } } @@ -1461,7 +1463,8 @@ "end": 757 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } }, @@ -1559,7 +1562,8 @@ "end": 797 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json b/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json index f2835d1f1afe..8e1c5368dedb 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeInferenceWithTupleType.json @@ -342,7 +342,8 @@ "end": 104 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -1379,7 +1380,8 @@ "end": 555 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1391,7 +1393,8 @@ "end": 562 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -2049,7 +2052,8 @@ "end": 836 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2152,7 +2156,8 @@ "end": 869 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2183,7 +2188,8 @@ "end": 876 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -2290,7 +2296,8 @@ "end": 913 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -2321,7 +2328,8 @@ "end": 920 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json index 756127c7563e..7be97485fdb3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers.json @@ -1053,7 +1053,8 @@ "end": 588 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json index f2ee47da29c5..a929c719bfbc 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInStaticMembers5.json @@ -71,7 +71,8 @@ "end": 89 }, "value": "yep", - "raw": "\"yep\"" + "raw": "\"yep\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json b/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json index 615314338b2d..493eebbac62f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOfThisInstanceMemberNarrowedWithLoopAntecedent.json @@ -75,7 +75,8 @@ "end": 51 }, "value": "numberVariant", - "raw": "\"numberVariant\"" + "raw": "\"numberVariant\"", + "loneSurrogates": false } } } @@ -162,7 +163,8 @@ "end": 102 }, "value": "stringVariant", - "raw": "\"stringVariant\"" + "raw": "\"stringVariant\"", + "loneSurrogates": false } } } @@ -433,7 +435,8 @@ "end": 272 }, "value": "stringVariant", - "raw": "\"stringVariant\"" + "raw": "\"stringVariant\"", + "loneSurrogates": false } }, "consequent": { @@ -773,7 +776,8 @@ "end": 489 }, "value": "numberVariant", - "raw": "\"numberVariant\"" + "raw": "\"numberVariant\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge1.json b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge1.json index b8b7bfe3bde0..41fbec47a5ab 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge1.json @@ -98,7 +98,8 @@ "end": 97 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -209,7 +210,8 @@ "end": 169 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge2.json b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge2.json index 2bde68f6a7a1..1a95afc87ee7 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge2.json @@ -109,7 +109,8 @@ "end": 90 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -207,7 +208,8 @@ "end": 168 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -306,7 +308,8 @@ "end": 242 }, "value": "./c", - "raw": "\"./c\"" + "raw": "\"./c\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json index 043b4dbb7809..fec58284f20e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeOnlyMerge3.json @@ -104,7 +104,8 @@ "end": 98 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -176,7 +177,8 @@ "end": 146 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "definite": false } @@ -251,7 +253,8 @@ "end": 207 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json index d37a18f3f902..932bedbca62d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint.json @@ -1150,7 +1150,8 @@ "end": 458 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -1425,7 +1426,8 @@ "end": 546 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json index d349ba8ba70f..8399d3ffea85 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraint2.json @@ -282,7 +282,8 @@ "end": 217 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -862,7 +863,8 @@ "end": 446 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -996,7 +998,8 @@ "end": 488 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json index fc3cef5b03fc..b31f67dadb78 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively.json @@ -849,7 +849,8 @@ "end": 412 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -901,7 +902,8 @@ "end": 429 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1093,7 +1095,8 @@ "end": 484 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1801,7 +1804,8 @@ "end": 764 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -1821,7 +1825,8 @@ "end": 772 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json index 1efff3386966..4f2e83fd231d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterAsTypeParameterConstraintTransitively2.json @@ -740,7 +740,8 @@ "end": 466 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -849,7 +850,8 @@ "end": 496 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1080,7 +1082,8 @@ "end": 564 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json index c474a3066c7d..92688011f8d1 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersReverseMappedTypes.json @@ -326,7 +326,8 @@ "end": 158 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -363,7 +364,8 @@ "end": 193 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -700,7 +702,8 @@ "end": 336 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -737,7 +740,8 @@ "end": 371 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1074,7 +1078,8 @@ "end": 515 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -1111,7 +1116,8 @@ "end": 550 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -1419,7 +1425,8 @@ "end": 686 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -1756,7 +1763,8 @@ "end": 836 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json index 8f9ef0276012..624acfefdf4f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json +++ b/crates/swc_ecma_parser/tests/tsc/typeParameterConstModifiersWithIntersection.json @@ -570,7 +570,8 @@ "end": 361 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } @@ -613,7 +614,8 @@ "end": 394 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeQuery.json b/crates/swc_ecma_parser/tests/tsc/typeQuery.json index 6fa9f774c65d..ae5366501977 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeQuery.json +++ b/crates/swc_ecma_parser/tests/tsc/typeQuery.json @@ -72,7 +72,8 @@ "end": 89 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json b/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json index 65f1d6fb2c4e..70ad3bbe0671 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json +++ b/crates/swc_ecma_parser/tests/tsc/typeQueryOnClass.json @@ -775,7 +775,8 @@ "end": 395 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json index 42593ca914e1..05eb75134eb6 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_contextualTyping3.json @@ -87,7 +87,8 @@ "end": 161 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } } ], @@ -310,7 +311,8 @@ "end": 275 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } } ], @@ -564,7 +566,8 @@ "end": 410 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json index f36dc4a49015..0439715f79fd 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propNameConstraining.json @@ -43,7 +43,8 @@ "end": 16 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 22 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -75,7 +77,8 @@ "end": 28 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -91,7 +94,8 @@ "end": 34 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } ] @@ -174,7 +178,8 @@ "end": 73 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json index 182a7fbaeb3e..1f076217e90d 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyNameFulfillment.json @@ -43,7 +43,8 @@ "end": 16 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -59,7 +60,8 @@ "end": 22 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } }, { @@ -75,7 +77,8 @@ "end": 28 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -91,7 +94,8 @@ "end": 34 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } ] @@ -174,7 +178,8 @@ "end": 73 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json index 56a89aaadae2..6c381f860363 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance1.json @@ -681,7 +681,8 @@ "end": 505 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json index 95f0eb7df271..ab565c847f20 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_propertyValueConformance2.json @@ -681,7 +681,8 @@ "end": 486 }, "value": "false", - "raw": "\"false\"" + "raw": "\"false\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json index 16e585d4f38c..c092c2ad327c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json +++ b/crates/swc_ecma_parser/tests/tsc/typeSatisfaction_vacuousIntersectionOfContextualTypes.json @@ -49,7 +49,8 @@ "end": 15 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } } @@ -67,7 +68,8 @@ "end": 23 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeAnnotation": { "type": "TsUnionType", @@ -89,7 +91,8 @@ "end": 39 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -105,7 +108,8 @@ "end": 47 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -191,7 +195,8 @@ "end": 70 }, "value": "baz", - "raw": "\"baz\"" + "raw": "\"baz\"", + "loneSurrogates": false } } } @@ -230,7 +235,8 @@ "end": 87 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } ] @@ -287,7 +293,8 @@ "end": 112 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -303,7 +310,8 @@ "end": 120 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeTagNoErasure.json b/crates/swc_ecma_parser/tests/tsc/typeTagNoErasure.json index 0e8df079b033..f40bfd2f745a 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeTagNoErasure.json +++ b/crates/swc_ecma_parser/tests/tsc/typeTagNoErasure.json @@ -144,7 +144,8 @@ "end": 247 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json b/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json index 8d341b2cd50e..15814be2cf6c 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json +++ b/crates/swc_ecma_parser/tests/tsc/typeTagOnPropertyAssignment.json @@ -56,7 +56,8 @@ "end": 138 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -84,7 +85,8 @@ "end": 185 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/typeValueMerge1.json b/crates/swc_ecma_parser/tests/tsc/typeValueMerge1.json index be725cb63227..e5833d1cec63 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeValueMerge1.json +++ b/crates/swc_ecma_parser/tests/tsc/typeValueMerge1.json @@ -262,7 +262,8 @@ "end": 200 }, "value": "./other", - "raw": "\"./other\"" + "raw": "\"./other\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json index d09acd7ad991..d09a985f40ba 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule.json @@ -468,7 +468,8 @@ "end": 850 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json index 73ae1c02a263..8526fef3d80e 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefCrossModule2.json @@ -375,7 +375,8 @@ "end": 487 }, "value": "./mod1.js", - "raw": "'./mod1.js'" + "raw": "'./mod1.js'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json b/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json index 3b2e82f4995b..281b2a7062e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefOnSemicolonClassElement.json @@ -59,7 +59,8 @@ "end": 195 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, diff --git a/crates/swc_ecma_parser/tests/tsc/typedefScope1.json b/crates/swc_ecma_parser/tests/tsc/typedefScope1.json index 2bd8705353ca..4293fa441084 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefScope1.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefScope1.json @@ -142,7 +142,8 @@ "end": 280 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json b/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json index a7947fe06fc1..b0c34fb630da 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefTagExtraneousProperty.json @@ -56,7 +56,8 @@ "end": 252 }, "value": "no", - "raw": "\"no\"" + "raw": "\"no\"", + "loneSurrogates": false } } ] @@ -127,7 +128,8 @@ "end": 315 }, "value": "ok but just because of the index signature", - "raw": "\"ok but just because of the index signature\"" + "raw": "\"ok but just because of the index signature\"", + "loneSurrogates": false } } }, @@ -173,7 +175,8 @@ "end": 322 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -184,7 +187,8 @@ "end": 331 }, "value": "yes", - "raw": "\"yes\"" + "raw": "\"yes\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json b/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json index 2c538c8406e6..92993d26da41 100644 --- a/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json +++ b/crates/swc_ecma_parser/tests/tsc/typedefTagNested.json @@ -88,7 +88,8 @@ "end": 306 }, "value": "name", - "raw": "'name'" + "raw": "'name'", + "loneSurrogates": false } }, { @@ -125,7 +126,8 @@ "end": 345 }, "value": "x.png", - "raw": "'x.png'" + "raw": "'x.png'", + "loneSurrogates": false } }, { @@ -145,7 +147,8 @@ "end": 371 }, "value": "y.png", - "raw": "'y.png'" + "raw": "'y.png'", + "loneSurrogates": false } } ] @@ -280,7 +283,8 @@ "end": 734 }, "value": "uppsala", - "raw": "'uppsala'" + "raw": "'uppsala'", + "loneSurrogates": false } }, { @@ -320,7 +324,8 @@ "end": 756 }, "value": "ok", - "raw": "\"ok\"" + "raw": "\"ok\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json b/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json index abe8df50eda2..e338942ef8e5 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofANonExportedType.json @@ -159,7 +159,8 @@ "end": 54 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -981,7 +982,8 @@ "end": 366 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json b/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json index 25db279231c1..ef8cea40001f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofAnExportedType.json @@ -172,7 +172,8 @@ "end": 68 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -1015,7 +1016,8 @@ "end": 401 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json b/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json index 04816255727c..b67a137314b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofImportTypeOnlyExport.json @@ -39,7 +39,8 @@ "end": 81 }, "value": "./lit.js", - "raw": "'./lit.js'" + "raw": "'./lit.js'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json index 026d1705c82b..e190592daf0f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithAnyOtherType.json @@ -147,7 +147,8 @@ "end": 79 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -159,7 +160,8 @@ "end": 83 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -281,7 +283,8 @@ "end": 123 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json index 7036f5f9475c..4f1439a0c403 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithEnumType.json @@ -100,7 +100,8 @@ "end": 100 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -274,7 +275,8 @@ "end": 257 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -392,7 +394,8 @@ "end": 309 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -680,7 +683,8 @@ "end": 523 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json index 7316b076bfe4..2c6c9ad863ae 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofOperatorWithStringType.json @@ -115,7 +115,8 @@ "end": 83 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 90 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 131 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 196 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -600,7 +604,8 @@ "end": 412 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -665,7 +670,8 @@ "end": 450 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -685,7 +691,8 @@ "end": 457 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -753,7 +760,8 @@ "end": 497 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1501,7 +1509,8 @@ "end": 1024 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -2002,7 +2011,8 @@ "end": 1240 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -2022,7 +2032,8 @@ "end": 1247 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/typeofThis.json b/crates/swc_ecma_parser/tests/tsc/typeofThis.json index db2c4162e000..a16928208530 100644 --- a/crates/swc_ecma_parser/tests/tsc/typeofThis.json +++ b/crates/swc_ecma_parser/tests/tsc/typeofThis.json @@ -230,7 +230,8 @@ "end": 176 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -265,7 +266,8 @@ "end": 191 }, "value": "this", - "raw": "'this'" + "raw": "'this'", + "loneSurrogates": false } }, "value": { @@ -275,7 +277,8 @@ "end": 197 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "typeAnnotation": null, "isStatic": false, @@ -402,7 +405,8 @@ "end": 265 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -499,7 +503,8 @@ "end": 311 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } @@ -672,7 +677,8 @@ "end": 410 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json b/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json index 533410f413ad..5fd3e1f5a425 100644 --- a/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json +++ b/crates/swc_ecma_parser/tests/tsc/types.asyncGenerators.es2018.2.json @@ -375,7 +375,8 @@ "end": 350 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -520,7 +521,8 @@ "end": 452 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -532,7 +534,8 @@ "end": 457 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -714,7 +717,8 @@ "end": 588 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -864,7 +868,8 @@ "end": 686 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -1009,7 +1014,8 @@ "end": 780 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1021,7 +1027,8 @@ "end": 785 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -1203,7 +1210,8 @@ "end": 908 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -1353,7 +1361,8 @@ "end": 1006 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -1498,7 +1507,8 @@ "end": 1100 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1510,7 +1520,8 @@ "end": 1105 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -1692,7 +1703,8 @@ "end": 1228 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -1769,7 +1781,8 @@ "end": 1324 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -1877,7 +1890,8 @@ "end": 1415 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1889,7 +1903,8 @@ "end": 1420 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2034,7 +2049,8 @@ "end": 1540 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -2147,7 +2163,8 @@ "end": 1627 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -2255,7 +2272,8 @@ "end": 1710 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2267,7 +2285,8 @@ "end": 1715 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2412,7 +2431,8 @@ "end": 1827 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -2525,7 +2545,8 @@ "end": 1914 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } @@ -2633,7 +2654,8 @@ "end": 1997 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -2645,7 +2667,8 @@ "end": 2002 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -2790,7 +2813,8 @@ "end": 2114 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "delegate": false } diff --git a/crates/swc_ecma_parser/tests/tsc/typesOnlyExternalModuleStillHasInstance.json b/crates/swc_ecma_parser/tests/tsc/typesOnlyExternalModuleStillHasInstance.json index e6beece22643..d6e69718a066 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesOnlyExternalModuleStillHasInstance.json +++ b/crates/swc_ecma_parser/tests/tsc/typesOnlyExternalModuleStillHasInstance.json @@ -259,7 +259,8 @@ "end": 218 }, "value": "./foo_0", - "raw": "'./foo_0'" + "raw": "'./foo_0'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json b/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json index 93c3f6ff98e3..f2f39f9f7768 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithOptionalProperty.json @@ -344,7 +344,8 @@ "end": 213 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -404,7 +405,8 @@ "end": 234 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -484,7 +486,8 @@ "end": 263 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, { @@ -532,7 +535,8 @@ "end": 286 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json index 3116f951ab68..438ef692c8cc 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedCallSignatures.json @@ -295,7 +295,8 @@ "end": 198 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -396,7 +397,8 @@ "end": 227 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } } @@ -751,7 +753,8 @@ "end": 352 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -831,7 +834,8 @@ "end": 381 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } } @@ -1080,7 +1084,8 @@ "end": 457 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -1160,7 +1165,8 @@ "end": 486 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } } @@ -1583,7 +1589,8 @@ "end": 603 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], @@ -1686,7 +1693,8 @@ "end": 636 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } ], @@ -1789,7 +1797,8 @@ "end": 664 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json index d83a53045788..8acf755cd28f 100644 --- a/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/typesWithSpecializedConstructSignatures.json @@ -295,7 +295,8 @@ "end": 206 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -357,7 +358,8 @@ "end": 233 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } } @@ -549,7 +551,8 @@ "end": 328 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -620,7 +623,8 @@ "end": 361 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -688,7 +692,8 @@ "end": 390 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } } @@ -913,7 +918,8 @@ "end": 466 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } } @@ -981,7 +987,8 @@ "end": 495 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } } @@ -1281,7 +1288,8 @@ "end": 588 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } ], @@ -1369,7 +1377,8 @@ "end": 621 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } ], @@ -1457,7 +1466,8 @@ "end": 649 }, "value": "hm", - "raw": "'hm'" + "raw": "'hm'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/typingsLookupAmd.json b/crates/swc_ecma_parser/tests/tsc/typingsLookupAmd.json index cf93cde9dfe1..d0cb8ac9c995 100644 --- a/crates/swc_ecma_parser/tests/tsc/typingsLookupAmd.json +++ b/crates/swc_ecma_parser/tests/tsc/typingsLookupAmd.json @@ -72,7 +72,8 @@ "end": 243 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -154,7 +155,8 @@ "end": 327 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES5.json index 253e829cbf5f..1122963fa23e 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES5.json @@ -39,7 +39,8 @@ "end": 33 }, "value": "\u0000", - "raw": "\"\\u{0}\"" + "raw": "\"\\u{0}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES6.json index 253e829cbf5f..1122963fa23e 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings01_ES6.json @@ -39,7 +39,8 @@ "end": 33 }, "value": "\u0000", - "raw": "\"\\u{0}\"" + "raw": "\"\\u{0}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES5.json index de8873bfcd39..34cea414ac0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES5.json @@ -39,7 +39,8 @@ "end": 34 }, "value": "\u0000", - "raw": "\"\\u{00}\"" + "raw": "\"\\u{00}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES6.json index de8873bfcd39..34cea414ac0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings02_ES6.json @@ -39,7 +39,8 @@ "end": 34 }, "value": "\u0000", - "raw": "\"\\u{00}\"" + "raw": "\"\\u{00}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES5.json index 8233eae43750..9b553c984b5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES5.json @@ -39,7 +39,8 @@ "end": 36 }, "value": "\u0000", - "raw": "\"\\u{0000}\"" + "raw": "\"\\u{0000}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES6.json index 8233eae43750..9b553c984b5a 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings03_ES6.json @@ -39,7 +39,8 @@ "end": 36 }, "value": "\u0000", - "raw": "\"\\u{0000}\"" + "raw": "\"\\u{0000}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES5.json index f7bf4099f465..15928311ce24 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES5.json @@ -39,7 +39,8 @@ "end": 40 }, "value": "\u0000", - "raw": "\"\\u{00000000}\"" + "raw": "\"\\u{00000000}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES6.json index f7bf4099f465..15928311ce24 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings04_ES6.json @@ -39,7 +39,8 @@ "end": 40 }, "value": "\u0000", - "raw": "\"\\u{00000000}\"" + "raw": "\"\\u{00000000}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES5.json index 51b26a337c30..96c7e323da30 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES5.json @@ -39,7 +39,8 @@ "end": 94 }, "value": "Hello world", - "raw": "\"\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}\"" + "raw": "\"\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES6.json index 51b26a337c30..96c7e323da30 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings05_ES6.json @@ -39,7 +39,8 @@ "end": 94 }, "value": "Hello world", - "raw": "\"\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}\"" + "raw": "\"\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES5.json index cc9ef06e9450..1ec05cc1b3b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES5.json @@ -39,7 +39,8 @@ "end": 134 }, "value": "􏿿", - "raw": "\"\\u{10FFFF}\"" + "raw": "\"\\u{10FFFF}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES6.json index cc9ef06e9450..1ec05cc1b3b7 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings06_ES6.json @@ -39,7 +39,8 @@ "end": 134 }, "value": "􏿿", - "raw": "\"\\u{10FFFF}\"" + "raw": "\"\\u{10FFFF}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES5.json index a2786092b962..0c14ea977378 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES5.json @@ -39,7 +39,8 @@ "end": 148 }, "value": "￿", - "raw": "\"\\u{FFFF}\"" + "raw": "\"\\u{FFFF}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES6.json index a2786092b962..0c14ea977378 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings08_ES6.json @@ -39,7 +39,8 @@ "end": 148 }, "value": "￿", - "raw": "\"\\u{FFFF}\"" + "raw": "\"\\u{FFFF}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES5.json index b5d8cc94f97b..c5a126827315 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES5.json @@ -39,7 +39,8 @@ "end": 150 }, "value": "𐀀", - "raw": "\"\\u{10000}\"" + "raw": "\"\\u{10000}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES6.json index b5d8cc94f97b..c5a126827315 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings09_ES6.json @@ -39,7 +39,8 @@ "end": 150 }, "value": "𐀀", - "raw": "\"\\u{10000}\"" + "raw": "\"\\u{10000}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES5.json index e5730b71f350..dec6d0ca99fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES5.json @@ -39,7 +39,8 @@ "end": 37 }, "value": "󝷝", - "raw": "\"\\u{DDDDD}\"" + "raw": "\"\\u{DDDDD}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES6.json index e5730b71f350..dec6d0ca99fb 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings13_ES6.json @@ -39,7 +39,8 @@ "end": 37 }, "value": "󝷝", - "raw": "\"\\u{DDDDD}\"" + "raw": "\"\\u{DDDDD}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES5.json index 12b0a2010d78..743bc84f6890 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES5.json @@ -39,7 +39,8 @@ "end": 60 }, "value": "ꯍ㑖碐", - "raw": "\"\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}\"" + "raw": "\"\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES6.json index 12b0a2010d78..743bc84f6890 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings15_ES6.json @@ -39,7 +39,8 @@ "end": 60 }, "value": "ꯍ㑖碐", - "raw": "\"\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}\"" + "raw": "\"\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES5.json index 0e86d27217b6..e51203153728 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES5.json @@ -39,7 +39,8 @@ "end": 60 }, "value": "ꯍ㑖碐", - "raw": "\"\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}\"" + "raw": "\"\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES6.json index 0e86d27217b6..e51203153728 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings16_ES6.json @@ -39,7 +39,8 @@ "end": 60 }, "value": "ꯍ㑖碐", - "raw": "\"\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}\"" + "raw": "\"\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES5.json index 3757ff4c2d4f..a1b8af3b2a61 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES5.json @@ -39,7 +39,8 @@ "end": 40 }, "value": "ee", - "raw": "\"\\u{65}\\u{65}\"" + "raw": "\"\\u{65}\\u{65}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES6.json index 3757ff4c2d4f..a1b8af3b2a61 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings18_ES6.json @@ -39,7 +39,8 @@ "end": 40 }, "value": "ee", - "raw": "\"\\u{65}\\u{65}\"" + "raw": "\"\\u{65}\\u{65}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES5.json index dbd8bb67bd49..84d6a70bc355 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES5.json @@ -39,7 +39,8 @@ "end": 46 }, "value": "g", - "raw": "\"\\u{00000000000067}\"" + "raw": "\"\\u{00000000000067}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES6.json index dbd8bb67bd49..84d6a70bc355 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInStrings23_ES6.json @@ -39,7 +39,8 @@ "end": 46 }, "value": "g", - "raw": "\"\\u{00000000000067}\"" + "raw": "\"\\u{00000000000067}\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES5.json index b34431413d7a..32cf5389d548 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{0}" + "raw": "\\u{0}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES6.json index b34431413d7a..32cf5389d548 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates01_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{0}" + "raw": "\\u{0}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES5.json index 01d2a6537aad..c3ac37c01efe 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{00}" + "raw": "\\u{00}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES6.json index 01d2a6537aad..c3ac37c01efe 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates02_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{00}" + "raw": "\\u{00}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES5.json index 30f174c35c6b..2c251ef0b64b 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{0000}" + "raw": "\\u{0000}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES6.json index 30f174c35c6b..2c251ef0b64b 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates03_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{0000}" + "raw": "\\u{0000}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES5.json index c8c8e1eb2d49..2adaea79c0e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{00000000}" + "raw": "\\u{00000000}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES6.json index c8c8e1eb2d49..2adaea79c0e9 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates04_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\u0000", - "raw": "\\u{00000000}" + "raw": "\\u{00000000}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES5.json index 4cdf33a860cc..fdda8e95e36c 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "Hello world", - "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}" + "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES6.json index 4cdf33a860cc..fdda8e95e36c 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates05_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "Hello world", - "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}" + "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}\\u{20}\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES5.json index 719cb1f827d4..c903029d4352 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "􏿿", - "raw": "\\u{10FFFF}" + "raw": "\\u{10FFFF}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES6.json index 719cb1f827d4..c903029d4352 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates06_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "􏿿", - "raw": "\\u{10FFFF}" + "raw": "\\u{10FFFF}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES5.json index 9eafb99d80f1..5e1d35e34c8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "￿", - "raw": "\\u{FFFF}" + "raw": "\\u{FFFF}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES6.json index 9eafb99d80f1..5e1d35e34c8c 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates08_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "￿", - "raw": "\\u{FFFF}" + "raw": "\\u{FFFF}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES5.json index 4c8bd77f3c97..a73448bfd2a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "𐀀", - "raw": "\\u{10000}" + "raw": "\\u{10000}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES6.json index 4c8bd77f3c97..a73448bfd2a6 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates09_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "𐀀", - "raw": "\\u{10000}" + "raw": "\\u{10000}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES5.json index 184e9b2392ae..aa56692656c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "󝷝", - "raw": "\\u{DDDDD}" + "raw": "\\u{DDDDD}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES6.json index 184e9b2392ae..aa56692656c1 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates13_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "󝷝", - "raw": "\\u{DDDDD}" + "raw": "\\u{DDDDD}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES5.json index 073f3d302db6..9b3a0f2b61b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "ꯍ㑖碐", - "raw": "\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}" + "raw": "\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES6.json index 073f3d302db6..9b3a0f2b61b3 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates15_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "ꯍ㑖碐", - "raw": "\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}" + "raw": "\\u{abcd}\\u{ef12}\\u{3456}\\u{7890}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES5.json index b666152319ba..bc020a58a5e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "ꯍ㑖碐", - "raw": "\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}" + "raw": "\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES6.json index b666152319ba..bc020a58a5e7 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates16_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "ꯍ㑖碐", - "raw": "\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}" + "raw": "\\u{ABCD}\\u{EF12}\\u{3456}\\u{7890}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES5.json index 0771e9dd67d9..360689eabe26 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES5.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "ee", - "raw": "\\u{65}\\u{65}" + "raw": "\\u{65}\\u{65}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES6.json index 0771e9dd67d9..360689eabe26 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates18_ES6.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "ee", - "raw": "\\u{65}\\u{65}" + "raw": "\\u{65}\\u{65}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES5.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES5.json index 2316d8d2032c..4e04941d906b 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES5.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES5.json @@ -55,7 +55,8 @@ }, "tail": true, "cooked": " ", - "raw": "\\u{20}\\u{020}\\u{0020}\\u{000020}" + "raw": "\\u{20}\\u{020}\\u{0020}\\u{000020}", + "loneSurrogates": false } ] } @@ -69,7 +70,8 @@ }, "tail": false, "cooked": "Hello", - "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}" + "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -79,7 +81,8 @@ }, "tail": true, "cooked": "world", - "raw": "\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}" + "raw": "\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES6.json b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES6.json index 2316d8d2032c..4e04941d906b 100644 --- a/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES6.json +++ b/crates/swc_ecma_parser/tests/tsc/unicodeExtendedEscapesInTemplates20_ES6.json @@ -55,7 +55,8 @@ }, "tail": true, "cooked": " ", - "raw": "\\u{20}\\u{020}\\u{0020}\\u{000020}" + "raw": "\\u{20}\\u{020}\\u{0020}\\u{000020}", + "loneSurrogates": false } ] } @@ -69,7 +70,8 @@ }, "tail": false, "cooked": "Hello", - "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}" + "raw": "\\u{48}\\u{65}\\u{6c}\\u{6c}\\u{6f}", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -79,7 +81,8 @@ }, "tail": true, "cooked": "world", - "raw": "\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}" + "raw": "\\u{77}\\u{6f}\\u{72}\\u{6c}\\u{64}", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json index 0c2640e9ffec..73bb56759956 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json +++ b/crates/swc_ecma_parser/tests/tsc/unionAndIntersectionInference1.json @@ -45,7 +45,8 @@ "end": 82 }, "value": "i am a very certain type", - "raw": "'i am a very certain type'" + "raw": "'i am a very certain type'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -767,7 +768,8 @@ "end": 337 }, "value": "hey!", - "raw": "'hey!'" + "raw": "'hey!'", + "loneSurrogates": false }, "alternate": { "type": "TsTypeAssertion", @@ -896,7 +898,8 @@ "end": 403 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false }, "async": false, "generator": false, @@ -933,7 +936,8 @@ "end": 421 }, "value": "other one", - "raw": "'other one'" + "raw": "'other one'", + "loneSurrogates": false }, "async": false, "generator": false, @@ -2807,7 +2811,8 @@ "end": 1480 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } } @@ -2948,7 +2953,8 @@ "end": 1574 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } ] @@ -3095,7 +3101,8 @@ "end": 1637 }, "value": "test", - "raw": "'test'" + "raw": "'test'", + "loneSurrogates": false } } ] @@ -3620,7 +3627,8 @@ "end": 1757 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ], @@ -3698,7 +3706,8 @@ "end": 1783 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -3710,7 +3719,8 @@ "end": 1788 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json index 8539b4b1af18..b7e3fa6b3d48 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures.json @@ -489,7 +489,8 @@ "end": 541 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -921,7 +922,8 @@ "end": 842 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1243,7 +1245,8 @@ "end": 1159 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1602,7 +1605,8 @@ "end": 1548 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1859,7 +1863,8 @@ "end": 1779 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1899,7 +1904,8 @@ "end": 1840 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2184,7 +2190,8 @@ "end": 2009 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -2243,7 +2250,8 @@ "end": 2058 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2314,7 +2322,8 @@ "end": 2111 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2326,7 +2335,8 @@ "end": 2120 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2646,7 +2656,8 @@ "end": 2356 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -2705,7 +2716,8 @@ "end": 2432 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2776,7 +2788,8 @@ "end": 2512 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2788,7 +2801,8 @@ "end": 2521 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3083,7 +3097,8 @@ "end": 2765 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -3142,7 +3157,8 @@ "end": 2814 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3213,7 +3229,8 @@ "end": 2873 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3225,7 +3242,8 @@ "end": 2882 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3583,7 +3601,8 @@ "end": 3125 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -3642,7 +3661,8 @@ "end": 3170 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3713,7 +3733,8 @@ "end": 3219 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3796,7 +3817,8 @@ "end": 3272 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3808,7 +3830,8 @@ "end": 3281 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4147,7 +4170,8 @@ "end": 3509 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -4206,7 +4230,8 @@ "end": 3581 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4277,7 +4302,8 @@ "end": 3657 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4360,7 +4386,8 @@ "end": 3737 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4372,7 +4399,8 @@ "end": 3746 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4686,7 +4714,8 @@ "end": 3981 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -4745,7 +4774,8 @@ "end": 4026 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4816,7 +4846,8 @@ "end": 4102 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4899,7 +4930,8 @@ "end": 4182 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4911,7 +4943,8 @@ "end": 4191 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -5225,7 +5258,8 @@ "end": 4423 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -5284,7 +5318,8 @@ "end": 4529 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -5296,7 +5331,8 @@ "end": 4538 }, "value": "world", - "raw": "\"world\"" + "raw": "\"world\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json index 44ea98b4adfc..abe69e29ae89 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures2.json @@ -1167,7 +1167,8 @@ "end": 426 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1482,7 +1483,8 @@ "end": 585 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1797,7 +1799,8 @@ "end": 744 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json index d5c65229d56a..7a07ed0fa263 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures3.json @@ -876,7 +876,8 @@ "end": 365 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json index 0cf223320fc0..c373a2565483 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures4.json @@ -679,7 +679,8 @@ "end": 279 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -719,7 +720,8 @@ "end": 289 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -731,7 +733,8 @@ "end": 294 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ], @@ -771,7 +774,8 @@ "end": 304 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -783,7 +787,8 @@ "end": 309 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -795,7 +800,8 @@ "end": 314 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ], @@ -918,7 +924,8 @@ "end": 350 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -958,7 +965,8 @@ "end": 360 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -970,7 +978,8 @@ "end": 365 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ], @@ -1010,7 +1019,8 @@ "end": 375 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1022,7 +1032,8 @@ "end": 380 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -1034,7 +1045,8 @@ "end": 385 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ], @@ -1193,7 +1205,8 @@ "end": 428 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -1233,7 +1246,8 @@ "end": 440 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1245,7 +1259,8 @@ "end": 445 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ], @@ -1285,7 +1300,8 @@ "end": 457 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1297,7 +1313,8 @@ "end": 462 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -1309,7 +1326,8 @@ "end": 467 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ], @@ -1486,7 +1504,8 @@ "end": 524 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } ], @@ -1526,7 +1545,8 @@ "end": 547 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1538,7 +1558,8 @@ "end": 552 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ], @@ -1578,7 +1599,8 @@ "end": 565 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -1590,7 +1612,8 @@ "end": 570 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -1602,7 +1625,8 @@ "end": 575 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json index 832b6e8c3dec..375757b33521 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeCallSignatures7.json @@ -122,7 +122,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -132,7 +133,8 @@ }, "tail": true, "cooked": " without id", - "raw": " without id" + "raw": " without id", + "loneSurrogates": false } ] } @@ -220,7 +222,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -230,7 +233,8 @@ }, "tail": true, "cooked": " with id", - "raw": " with id" + "raw": " with id", + "loneSurrogates": false } ] } @@ -315,7 +319,8 @@ "end": 230 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } ] @@ -357,7 +362,8 @@ "end": 246 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json b/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json index 3f9a80ac2334..5cab4b19a544 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeConstructSignatures.json @@ -489,7 +489,8 @@ "end": 576 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -921,7 +922,8 @@ "end": 904 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1243,7 +1245,8 @@ "end": 1245 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1602,7 +1605,8 @@ "end": 1662 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1859,7 +1863,8 @@ "end": 1908 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -1899,7 +1904,8 @@ "end": 1973 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -2184,7 +2190,8 @@ "end": 2154 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -2243,7 +2250,8 @@ "end": 2207 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2314,7 +2322,8 @@ "end": 2264 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2326,7 +2335,8 @@ "end": 2273 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -2646,7 +2656,8 @@ "end": 2525 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -2705,7 +2716,8 @@ "end": 2605 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2776,7 +2788,8 @@ "end": 2689 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2788,7 +2801,8 @@ "end": 2698 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3083,7 +3097,8 @@ "end": 2958 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -3142,7 +3157,8 @@ "end": 3038 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3213,7 +3229,8 @@ "end": 3101 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3225,7 +3242,8 @@ "end": 3110 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -3583,7 +3601,8 @@ "end": 3368 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -3642,7 +3661,8 @@ "end": 3417 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3713,7 +3733,8 @@ "end": 3470 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3796,7 +3817,8 @@ "end": 3527 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -3808,7 +3830,8 @@ "end": 3536 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4147,7 +4170,8 @@ "end": 3780 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -4206,7 +4230,8 @@ "end": 3856 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4277,7 +4302,8 @@ "end": 3936 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4360,7 +4386,8 @@ "end": 4020 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4372,7 +4399,8 @@ "end": 4029 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -4686,7 +4714,8 @@ "end": 4280 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -4745,7 +4774,8 @@ "end": 4356 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4816,7 +4846,8 @@ "end": 4415 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4899,7 +4930,8 @@ "end": 4478 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4911,7 +4943,8 @@ "end": 4487 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -5161,7 +5194,8 @@ "end": 4712 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json b/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json index 239e7a94f2da..f481321a911a 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeFromArrayLiteral.json @@ -112,7 +112,8 @@ "end": 569 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -234,7 +235,8 @@ "end": 646 }, "value": "three", - "raw": "\"three\"" + "raw": "\"three\"", + "loneSurrogates": false } } ] @@ -345,7 +347,8 @@ "end": 714 }, "value": "three", - "raw": "\"three\"" + "raw": "\"three\"", + "loneSurrogates": false } }, { @@ -357,7 +360,8 @@ "end": 723 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] @@ -531,7 +535,8 @@ "end": 832 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -565,7 +570,8 @@ "end": 855 }, "value": " hello", - "raw": "\" hello\"" + "raw": "\" hello\"", + "loneSurrogates": false } }, { @@ -600,7 +606,8 @@ "end": 872 }, "value": "any", - "raw": "\"any\"" + "raw": "\"any\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/unionTypeIndexSignature.json index f002502e751c..8f9ddf880000 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeIndexSignature.json @@ -354,7 +354,8 @@ "end": 349 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -587,7 +588,8 @@ "end": 572 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -882,7 +884,8 @@ "end": 947 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } @@ -1115,7 +1118,8 @@ "end": 1163 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json b/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json index a96dc7e2f729..c9c311323173 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeInference.json @@ -486,7 +486,8 @@ "end": 229 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], @@ -640,7 +641,8 @@ "end": 301 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -704,7 +706,8 @@ "end": 337 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -716,7 +719,8 @@ "end": 344 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ], @@ -854,7 +858,8 @@ "end": 418 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, { @@ -1096,7 +1101,8 @@ "end": 504 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -1587,7 +1593,8 @@ "end": 708 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], @@ -1792,7 +1799,8 @@ "end": 784 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json b/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json index 8d25e3835911..bbe8c2434cb9 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeMembers.json @@ -2239,7 +2239,8 @@ "end": 2048 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json b/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json index 7ba535494676..c990a22e7e80 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeReduction2.json @@ -372,7 +372,8 @@ "end": 161 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -796,7 +797,8 @@ "end": 330 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -1105,7 +1107,8 @@ "end": 465 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -1457,7 +1460,8 @@ "end": 621 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -1634,7 +1638,8 @@ "end": 690 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } } @@ -1817,7 +1822,8 @@ "end": 779 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -1909,7 +1915,8 @@ "end": 811 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -2177,7 +2184,8 @@ "end": 958 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -2668,7 +2676,8 @@ "end": 1138 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ], @@ -3145,7 +3154,8 @@ "end": 1418 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json b/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json index 83119ea6a407..7bdb86cd4820 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json +++ b/crates/swc_ecma_parser/tests/tsc/unionTypeWithIndexSignature.json @@ -323,7 +323,8 @@ "end": 141 }, "value": "bye", - "raw": "'bye'" + "raw": "'bye'", + "loneSurrogates": false } } }, @@ -372,7 +373,8 @@ "end": 154 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -991,7 +993,8 @@ "end": 395 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } } }, @@ -1260,7 +1263,8 @@ "end": 504 }, "value": "not allowed", - "raw": "'not allowed'" + "raw": "'not allowed'", + "loneSurrogates": false } } }, @@ -1310,7 +1314,8 @@ "end": 521 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1550,7 +1555,8 @@ "end": 597 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false } } }, @@ -1561,7 +1567,8 @@ "end": 605 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } }, @@ -1697,7 +1704,8 @@ "end": 655 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1983,7 +1991,8 @@ "end": 769 }, "value": "s", - "raw": "'s'" + "raw": "'s'", + "loneSurrogates": false } } }, @@ -1994,7 +2003,8 @@ "end": 777 }, "value": "ok", - "raw": "'ok'" + "raw": "'ok'", + "loneSurrogates": false } } }, @@ -2165,7 +2175,8 @@ "end": 830 }, "value": "not ok", - "raw": "'not ok'" + "raw": "'not ok'", + "loneSurrogates": false } } }, @@ -2223,7 +2234,8 @@ "end": 851 }, "value": "not ok", - "raw": "'not ok'" + "raw": "'not ok'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json b/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json index ddc2f9a60081..e460850a1684 100644 --- a/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json +++ b/crates/swc_ecma_parser/tests/tsc/unionsOfTupleTypes1.json @@ -3521,7 +3521,8 @@ "end": 1989 }, "value": "hi", - "raw": "\"hi\"" + "raw": "\"hi\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json index 2b3d9eb973f3..2e6286648f88 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbols.json @@ -3194,7 +3194,8 @@ "end": 3664 }, "value": "readonlyCall", - "raw": "\"readonlyCall\"" + "raw": "\"readonlyCall\"", + "loneSurrogates": false } } } @@ -3298,7 +3299,8 @@ "end": 3751 }, "value": "readwriteCall", - "raw": "\"readwriteCall\"" + "raw": "\"readwriteCall\"", + "loneSurrogates": false } } } @@ -3681,7 +3683,8 @@ "end": 4065 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -4338,7 +4341,8 @@ "end": 4636 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -4449,7 +4453,8 @@ "end": 4721 }, "value": "nested", - "raw": "\"nested\"" + "raw": "\"nested\"", + "loneSurrogates": false } } }, @@ -4466,7 +4471,8 @@ "end": 4743 }, "value": "readonlyNestedType", - "raw": "\"readonlyNestedType\"" + "raw": "\"readonlyNestedType\"", + "loneSurrogates": false } } } @@ -4862,7 +4868,8 @@ "end": 5047 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -4920,7 +4927,8 @@ "end": 5059 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -5393,7 +5401,8 @@ "end": 5242 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -5519,7 +5528,8 @@ "end": 5291 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -5657,7 +5667,8 @@ "end": 5375 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -6114,7 +6125,8 @@ "end": 5668 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -6257,7 +6269,8 @@ "end": 5730 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -6400,7 +6413,8 @@ "end": 5798 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -6543,7 +6557,8 @@ "end": 5839 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -7077,7 +7092,8 @@ "end": 6071 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -7303,7 +7319,8 @@ "end": 6159 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -7505,7 +7522,8 @@ "end": 6184 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -7544,7 +7562,8 @@ "end": 6217 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -7593,7 +7612,8 @@ "end": 6228 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -7639,7 +7659,8 @@ "end": 6235 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -7650,7 +7671,8 @@ "end": 6242 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -7735,7 +7757,8 @@ "end": 6288 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -7835,7 +7858,8 @@ "end": 6319 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -7932,7 +7956,8 @@ "end": 6346 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -7943,7 +7968,8 @@ "end": 6353 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -7992,7 +8018,8 @@ "end": 6398 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -8036,7 +8063,8 @@ "end": 6414 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -8106,7 +8134,8 @@ "end": 6451 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -8178,7 +8207,8 @@ "end": 6474 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -8235,7 +8265,8 @@ "end": 6489 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -8307,7 +8338,8 @@ "end": 6505 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -9285,7 +9317,8 @@ "end": 7411 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -9373,7 +9406,8 @@ "end": 7431 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -9627,7 +9661,8 @@ "end": 7575 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -9715,7 +9750,8 @@ "end": 7595 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json index f116b7bea8aa..57f7035bd3c6 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarations.json @@ -3118,7 +3118,8 @@ "end": 3541 }, "value": "readonlyCall", - "raw": "\"readonlyCall\"" + "raw": "\"readonlyCall\"", + "loneSurrogates": false } } } @@ -3222,7 +3223,8 @@ "end": 3628 }, "value": "readwriteCall", - "raw": "\"readwriteCall\"" + "raw": "\"readwriteCall\"", + "loneSurrogates": false } } } @@ -3605,7 +3607,8 @@ "end": 3942 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -4262,7 +4265,8 @@ "end": 4513 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -4373,7 +4377,8 @@ "end": 4598 }, "value": "nested", - "raw": "\"nested\"" + "raw": "\"nested\"", + "loneSurrogates": false } } }, @@ -4390,7 +4395,8 @@ "end": 4620 }, "value": "readonlyNestedType", - "raw": "\"readonlyNestedType\"" + "raw": "\"readonlyNestedType\"", + "loneSurrogates": false } } } @@ -4786,7 +4792,8 @@ "end": 4924 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } @@ -4844,7 +4851,8 @@ "end": 4936 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } } @@ -5317,7 +5325,8 @@ "end": 5119 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -5443,7 +5452,8 @@ "end": 5168 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -5581,7 +5591,8 @@ "end": 5252 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -6038,7 +6049,8 @@ "end": 5544 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -6181,7 +6193,8 @@ "end": 5606 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -6324,7 +6337,8 @@ "end": 5674 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -6467,7 +6481,8 @@ "end": 5715 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -7001,7 +7016,8 @@ "end": 5947 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -7227,7 +7243,8 @@ "end": 6035 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -7429,7 +7446,8 @@ "end": 6060 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } } @@ -7468,7 +7486,8 @@ "end": 6093 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -7517,7 +7536,8 @@ "end": 6104 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -7563,7 +7583,8 @@ "end": 6111 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -7574,7 +7595,8 @@ "end": 6118 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -7659,7 +7681,8 @@ "end": 6164 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -7759,7 +7782,8 @@ "end": 6195 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -7856,7 +7880,8 @@ "end": 6222 }, "value": "s", - "raw": "\"s\"" + "raw": "\"s\"", + "loneSurrogates": false } } }, @@ -7867,7 +7892,8 @@ "end": 6229 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -7916,7 +7942,8 @@ "end": 6274 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -7960,7 +7987,8 @@ "end": 6290 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } ] @@ -8030,7 +8058,8 @@ "end": 6327 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -8102,7 +8131,8 @@ "end": 6350 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, @@ -8159,7 +8189,8 @@ "end": 6365 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } }, @@ -8231,7 +8262,8 @@ "end": 6381 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json index 93e4da2d6cf8..a11d0ad11ab3 100644 --- a/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json +++ b/crates/swc_ecma_parser/tests/tsc/uniqueSymbolsDeclarationsErrors.json @@ -359,7 +359,8 @@ "end": 359 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -447,7 +448,8 @@ "end": 379 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -708,7 +710,8 @@ "end": 542 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } @@ -796,7 +799,8 @@ "end": 562 }, "value": "readonlyType", - "raw": "\"readonlyType\"" + "raw": "\"readonlyType\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json b/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json index a0bc196e211e..5bfda2a363d0 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownControlFlow.json @@ -95,7 +95,8 @@ "end": 100 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } } ] @@ -3897,7 +3898,8 @@ "end": 3057 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -4046,7 +4048,8 @@ "end": 3145 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -4133,7 +4136,8 @@ "end": 3226 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } } }, @@ -4211,7 +4215,8 @@ "end": 3291 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "right": { @@ -4401,7 +4406,8 @@ "end": 3411 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -7051,7 +7057,8 @@ "end": 5087 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } }, "right": { @@ -7086,7 +7093,8 @@ "end": 5112 }, "value": "object", - "raw": "'object'" + "raw": "'object'", + "loneSurrogates": false } } }, @@ -8685,7 +8693,8 @@ "end": 5995 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], @@ -8735,7 +8744,8 @@ "end": 6023 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], @@ -8785,7 +8795,8 @@ "end": 6051 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], @@ -8835,7 +8846,8 @@ "end": 6069 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], @@ -11047,7 +11059,8 @@ "end": 7694 }, "value": "utf8", - "raw": "'utf8'" + "raw": "'utf8'", + "loneSurrogates": false } } }, @@ -11092,7 +11105,8 @@ "end": 7732 }, "value": "encoding", - "raw": "'encoding'" + "raw": "'encoding'", + "loneSurrogates": false } } ], @@ -11343,7 +11357,8 @@ "end": 7941 }, "value": "Meaning of life value", - "raw": "'Meaning of life value'" + "raw": "'Meaning of life value'", + "loneSurrogates": false } } ], @@ -11701,7 +11716,8 @@ "end": 8165 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -11744,7 +11760,8 @@ "end": 8177 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -11815,7 +11832,8 @@ "end": 8207 }, "value": "A", - "raw": "'A'" + "raw": "'A'", + "loneSurrogates": false } } } @@ -11858,7 +11876,8 @@ "end": 8219 }, "value": "B", - "raw": "'B'" + "raw": "'B'", + "loneSurrogates": false } } } @@ -11901,7 +11920,8 @@ "end": 8231 }, "value": "C", - "raw": "'C'" + "raw": "'C'", + "loneSurrogates": false } } } @@ -12490,7 +12510,8 @@ "end": 8486 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -12506,7 +12527,8 @@ "end": 8492 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -12816,7 +12838,8 @@ "end": 8641 }, "value": "left", - "raw": "'left'" + "raw": "'left'", + "loneSurrogates": false } } }, @@ -12858,7 +12881,8 @@ "end": 8663 }, "value": "right", - "raw": "'right'" + "raw": "'right'", + "loneSurrogates": false } }, { @@ -12906,7 +12930,8 @@ "end": 8682 }, "value": "right", - "raw": "'right'" + "raw": "'right'", + "loneSurrogates": false } } } @@ -13075,7 +13100,8 @@ "end": 8782 }, "value": "never", - "raw": "'never'" + "raw": "'never'", + "loneSurrogates": false } } ], @@ -13205,7 +13231,8 @@ "end": 8843 }, "value": "left", - "raw": "'left'" + "raw": "'left'", + "loneSurrogates": false } }, "consequent": { @@ -13260,7 +13287,8 @@ "end": 8872 }, "value": "left", - "raw": "'left'" + "raw": "'left'", + "loneSurrogates": false } } } @@ -13311,7 +13339,8 @@ "end": 8918 }, "value": "right", - "raw": "'right'" + "raw": "'right'", + "loneSurrogates": false } }, "consequent": { @@ -13366,7 +13395,8 @@ "end": 8948 }, "value": "right", - "raw": "'right'" + "raw": "'right'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/unknownType1.json b/crates/swc_ecma_parser/tests/tsc/unknownType1.json index a74b5db51248..8e175a58ff74 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownType1.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownType1.json @@ -2631,7 +2631,8 @@ "end": 2107 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "right": { @@ -2666,7 +2667,8 @@ "end": 2132 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } }, @@ -3308,7 +3310,8 @@ "end": 2590 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/unknownType2.json b/crates/swc_ecma_parser/tests/tsc/unknownType2.json index aa82c4ca5674..dd42c98e48f4 100644 --- a/crates/swc_ecma_parser/tests/tsc/unknownType2.json +++ b/crates/swc_ecma_parser/tests/tsc/unknownType2.json @@ -236,7 +236,8 @@ "end": 132 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } }, { @@ -252,7 +253,8 @@ "end": 139 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } }, { @@ -268,7 +270,8 @@ "end": 147 }, "value": "idk", - "raw": "'idk'" + "raw": "'idk'", + "loneSurrogates": false } } ] @@ -430,7 +433,8 @@ "end": 211 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false } }, "right": { @@ -457,7 +461,8 @@ "end": 225 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false } } } @@ -479,7 +484,8 @@ "end": 238 }, "value": "idk", - "raw": "'idk'" + "raw": "'idk'", + "loneSurrogates": false } }, "async": false, @@ -3489,7 +3495,8 @@ "end": 1864 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -3515,7 +3522,8 @@ "end": 1877 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } }, { @@ -3541,7 +3549,8 @@ "end": 1890 }, "value": "C", - "raw": "\"C\"" + "raw": "\"C\"", + "loneSurrogates": false } } ] @@ -5750,7 +5759,8 @@ "end": 3274 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "consequent": [ { @@ -5797,7 +5807,8 @@ "end": 3300 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -6906,7 +6917,8 @@ "end": 4184 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false }, "consequent": [] }, @@ -6923,7 +6935,8 @@ "end": 4203 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false }, "consequent": [] }, @@ -6940,7 +6953,8 @@ "end": 4223 }, "value": "idk", - "raw": "'idk'" + "raw": "'idk'", + "loneSurrogates": false }, "consequent": [ { @@ -7003,7 +7017,8 @@ "end": 4310 }, "value": "unknown response", - "raw": "'unknown response'" + "raw": "'unknown response'", + "loneSurrogates": false } } ], @@ -7226,7 +7241,8 @@ "end": 4495 }, "value": "yes", - "raw": "'yes'" + "raw": "'yes'", + "loneSurrogates": false }, "consequent": [] }, @@ -7243,7 +7259,8 @@ "end": 4514 }, "value": "no", - "raw": "'no'" + "raw": "'no'", + "loneSurrogates": false }, "consequent": [] }, @@ -7260,7 +7277,8 @@ "end": 4536 }, "value": "maybe", - "raw": "'maybe'" + "raw": "'maybe'", + "loneSurrogates": false }, "consequent": [ { @@ -7323,7 +7341,8 @@ "end": 4644 }, "value": "Can you repeat the question?", - "raw": "'Can you repeat the question?'" + "raw": "'Can you repeat the question?'", + "loneSurrogates": false } } ], @@ -7589,7 +7608,8 @@ "end": 4851 }, "value": "string", - "raw": "'string'" + "raw": "'string'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json b/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json index a64c053be3f0..2ea3c0aa86f1 100644 --- a/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json +++ b/crates/swc_ecma_parser/tests/tsc/untypedModuleImport_allowJs.json @@ -134,7 +134,8 @@ "end": 321 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json index e64ee11b874f..f24329c6c82d 100644 --- a/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json +++ b/crates/swc_ecma_parser/tests/tsc/useObjectValuesAndEntries1.json @@ -978,7 +978,8 @@ "end": 694 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } }, { @@ -990,7 +991,8 @@ "end": 699 }, "value": "b", - "raw": "\"b\"" + "raw": "\"b\"", + "loneSurrogates": false } }, { @@ -1002,7 +1004,8 @@ "end": 704 }, "value": "c", - "raw": "\"c\"" + "raw": "\"c\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json b/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json index 0e77f3d13dae..e473313e863c 100644 --- a/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json +++ b/crates/swc_ecma_parser/tests/tsc/useRegexpGroups.json @@ -114,7 +114,8 @@ "end": 129 }, "value": "2015-01-02", - "raw": "\"2015-01-02\"" + "raw": "\"2015-01-02\"", + "loneSurrogates": false } } ], @@ -658,7 +659,8 @@ "end": 339 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "property": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json b/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json index 10f29059267f..12edbeb09c96 100644 --- a/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json +++ b/crates/swc_ecma_parser/tests/tsc/validMultipleVariableDeclarations.json @@ -333,7 +333,8 @@ "end": 258 }, "value": "this is a string", - "raw": "'this is a string'" + "raw": "'this is a string'", + "loneSurrogates": false }, "definite": false } @@ -1787,7 +1788,8 @@ "end": 776 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -1799,7 +1801,8 @@ "end": 781 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/validStringAssignments.json b/crates/swc_ecma_parser/tests/tsc/validStringAssignments.json index d410caf77689..034f3d371824 100644 --- a/crates/swc_ecma_parser/tests/tsc/validStringAssignments.json +++ b/crates/swc_ecma_parser/tests/tsc/validStringAssignments.json @@ -39,7 +39,8 @@ "end": 11 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json b/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json index 13ce196e641d..19929988e1de 100644 --- a/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json +++ b/crates/swc_ecma_parser/tests/tsc/valuesMergingAcrossModules.json @@ -104,7 +104,8 @@ "end": 93 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -210,7 +211,8 @@ "end": 164 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -282,7 +284,8 @@ "end": 212 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json b/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json index 265b8580c7cf..f90656292bcd 100644 --- a/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json +++ b/crates/swc_ecma_parser/tests/tsc/varRequireFromJavascript.json @@ -262,7 +262,8 @@ "end": 273 }, "value": "./ex", - "raw": "'./ex'" + "raw": "'./ex'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json b/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json index 0147a67d8c6f..db64d5f70d51 100644 --- a/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json +++ b/crates/swc_ecma_parser/tests/tsc/varRequireFromTypescript.json @@ -314,7 +314,8 @@ "end": 253 }, "value": "./ex", - "raw": "'./ex'" + "raw": "'./ex'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json b/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json index cfad88ce61e1..ba8586f41b00 100644 --- a/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json +++ b/crates/swc_ecma_parser/tests/tsc/variadicTuples1.json @@ -1523,7 +1523,8 @@ "end": 704 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -2140,7 +2141,8 @@ "end": 929 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -3253,7 +3255,8 @@ "end": 1495 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -4069,7 +4072,8 @@ "end": 1841 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -4160,7 +4164,8 @@ "end": 1875 }, "value": "hi", - "raw": "'hi'" + "raw": "'hi'", + "loneSurrogates": false } }, { @@ -4976,7 +4981,8 @@ "end": 2196 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -5040,7 +5046,8 @@ "end": 2240 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -5104,7 +5111,8 @@ "end": 2293 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -5168,7 +5176,8 @@ "end": 2334 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -7901,7 +7910,8 @@ "end": 4050 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ] @@ -7972,7 +7982,8 @@ "end": 4073 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ] @@ -8319,7 +8330,8 @@ "end": 4322 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ], @@ -8359,7 +8371,8 @@ "end": 4345 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -8415,7 +8428,8 @@ "end": 4373 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -8471,7 +8485,8 @@ "end": 4409 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -8553,7 +8568,8 @@ "end": 4440 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -9036,7 +9052,8 @@ "end": 4632 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ], @@ -9076,7 +9093,8 @@ "end": 4655 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -9132,7 +9150,8 @@ "end": 4683 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -9188,7 +9207,8 @@ "end": 4719 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -9270,7 +9290,8 @@ "end": 4750 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -12381,7 +12402,8 @@ "end": 6063 }, "value": "length", - "raw": "'length'" + "raw": "'length'", + "loneSurrogates": false } } }, @@ -12416,7 +12438,8 @@ "end": 6082 }, "value": "length", - "raw": "'length'" + "raw": "'length'", + "loneSurrogates": false } } }, @@ -12451,7 +12474,8 @@ "end": 6101 }, "value": "length", - "raw": "'length'" + "raw": "'length'", + "loneSurrogates": false } } }, @@ -12486,7 +12510,8 @@ "end": 6119 }, "value": "slice", - "raw": "'slice'" + "raw": "'slice'", + "loneSurrogates": false } } }, @@ -12521,7 +12546,8 @@ "end": 6137 }, "value": "slice", - "raw": "'slice'" + "raw": "'slice'", + "loneSurrogates": false } } }, @@ -12556,7 +12582,8 @@ "end": 6155 }, "value": "slice", - "raw": "'slice'" + "raw": "'slice'", + "loneSurrogates": false } } }, @@ -12591,7 +12618,8 @@ "end": 6169 }, "value": "0", - "raw": "'0'" + "raw": "'0'", + "loneSurrogates": false } } }, @@ -12626,7 +12654,8 @@ "end": 6183 }, "value": "1", - "raw": "'1'" + "raw": "'1'", + "loneSurrogates": false } } }, @@ -12661,7 +12690,8 @@ "end": 6197 }, "value": "2", - "raw": "'2'" + "raw": "'2'", + "loneSurrogates": false } } } @@ -21254,7 +21284,8 @@ "end": 10233 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } } ], @@ -21343,7 +21374,8 @@ "end": 10306 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -21443,7 +21475,8 @@ "end": 10373 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -21475,7 +21508,8 @@ "end": 10385 }, "value": "x", - "raw": "'x'" + "raw": "'x'", + "loneSurrogates": false } }, { @@ -21487,7 +21521,8 @@ "end": 10390 }, "value": "y", - "raw": "'y'" + "raw": "'y'", + "loneSurrogates": false } } ] @@ -21968,7 +22003,8 @@ "end": 10732 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -21980,7 +22016,8 @@ "end": 10739 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ], @@ -22220,7 +22257,8 @@ "end": 10902 }, "value": "abc", - "raw": "'abc'" + "raw": "'abc'", + "loneSurrogates": false } }, { @@ -22232,7 +22270,8 @@ "end": 10909 }, "value": "def", - "raw": "'def'" + "raw": "'def'", + "loneSurrogates": false } } ], @@ -23021,7 +23060,8 @@ "end": 11312 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -23121,7 +23161,8 @@ "end": 11349 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } } ] @@ -23696,7 +23737,8 @@ "end": 11579 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -23708,7 +23750,8 @@ "end": 11584 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -23732,7 +23775,8 @@ "end": 11591 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -23744,7 +23788,8 @@ "end": 11596 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } } ] @@ -23796,7 +23841,8 @@ "end": 11606 }, "value": "a", - "raw": "'a'" + "raw": "'a'", + "loneSurrogates": false } }, { @@ -23808,7 +23854,8 @@ "end": 11611 }, "value": "b", - "raw": "'b'" + "raw": "'b'", + "loneSurrogates": false } } ] @@ -23832,7 +23879,8 @@ "end": 11618 }, "value": "c", - "raw": "'c'" + "raw": "'c'", + "loneSurrogates": false } }, { @@ -23844,7 +23892,8 @@ "end": 11623 }, "value": "d", - "raw": "'d'" + "raw": "'d'", + "loneSurrogates": false } }, { @@ -24228,7 +24277,8 @@ "end": 11775 }, "value": "hello", - "raw": "'hello'" + "raw": "'hello'", + "loneSurrogates": false } }, { @@ -24827,7 +24877,8 @@ "end": 12089 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -24839,7 +24890,8 @@ "end": 12096 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -24915,7 +24967,8 @@ "end": 12136 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -25585,7 +25638,8 @@ "end": 12409 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -25597,7 +25651,8 @@ "end": 12416 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } ] @@ -25673,7 +25728,8 @@ "end": 12464 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } }, { @@ -26551,7 +26607,8 @@ "end": 12779 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -28032,7 +28089,8 @@ "end": 13545 }, "value": "length", - "raw": "'length'" + "raw": "'length'", + "loneSurrogates": false } } } @@ -28046,7 +28104,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -28056,7 +28115,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -28199,7 +28259,8 @@ "end": 13608 }, "value": "length", - "raw": "'length'" + "raw": "'length'", + "loneSurrogates": false } } } @@ -28213,7 +28274,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -28223,7 +28285,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json index 29bc50e1a34c..86cff67daece 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxConstEnumUsage.json @@ -129,7 +129,8 @@ "end": 168 }, "value": "./foo.js", - "raw": "'./foo.js'" + "raw": "'./foo.js'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionCJS.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionCJS.json index b66a558fca5e..a715b4870aaa 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionCJS.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionCJS.json @@ -81,7 +81,8 @@ "end": 192 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false } } }, @@ -237,7 +238,8 @@ "end": 328 }, "value": "./c", - "raw": "\"./c\"" + "raw": "\"./c\"", + "loneSurrogates": false } } }, @@ -272,7 +274,8 @@ "end": 360 }, "value": "./c", - "raw": "\"./c\"" + "raw": "\"./c\"", + "loneSurrogates": false } } }, @@ -369,7 +372,8 @@ "end": 475 }, "value": "./e", - "raw": "\"./e\"" + "raw": "\"./e\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionESM.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionESM.json index cb5554602286..157bbf4e4e57 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionESM.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxNoElisionESM.json @@ -201,7 +201,8 @@ "end": 223 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -278,7 +279,8 @@ "end": 275 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -327,7 +329,8 @@ "end": 315 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -407,7 +410,8 @@ "end": 361 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -455,7 +459,8 @@ "end": 397 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -503,7 +508,8 @@ "end": 433 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -542,7 +548,8 @@ "end": 468 }, "value": "./a", - "raw": "\"./a\"" + "raw": "\"./a\"", + "loneSurrogates": false }, "typeOnly": true, "with": null @@ -581,7 +588,8 @@ "end": 519 }, "value": "./b", - "raw": "\"./b\"" + "raw": "\"./b\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -712,7 +720,8 @@ "end": 747 }, "value": "./main5", - "raw": "\"./main5\"" + "raw": "\"./main5\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json index ebcd6c03aa31..cb1ac3f42a0a 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsCJS.json @@ -125,7 +125,8 @@ "end": 298 }, "value": "ambient", - "raw": "\"ambient\"" + "raw": "\"ambient\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -232,7 +233,8 @@ "end": 409 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -270,7 +272,8 @@ "end": 451 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -310,7 +313,8 @@ "end": 495 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -359,7 +363,8 @@ "end": 557 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -396,7 +401,8 @@ "end": 589 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false } } ], @@ -440,7 +446,8 @@ "end": 632 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, @@ -1085,7 +1092,8 @@ "end": 1323 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsESM.json b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsESM.json index 21d8f3933c9c..ffbf4b05c58b 100644 --- a/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsESM.json +++ b/crates/swc_ecma_parser/tests/tsc/verbatimModuleSyntaxRestrictionsESM.json @@ -64,7 +64,8 @@ "end": 246 }, "value": "ambient", - "raw": "\"ambient\"" + "raw": "\"ambient\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -229,7 +230,8 @@ "end": 421 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false } } }, @@ -264,7 +266,8 @@ "end": 469 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false } } }, @@ -300,7 +303,8 @@ "end": 513 }, "value": "./decl", - "raw": "\"./decl\"" + "raw": "\"./decl\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -338,7 +342,8 @@ "end": 572 }, "value": "./types", - "raw": "\"./types\"" + "raw": "\"./types\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json index e4a0aa88457f..6fc715e386db 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithAnyOtherType.json @@ -147,7 +147,8 @@ "end": 77 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -159,7 +160,8 @@ "end": 81 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -281,7 +283,8 @@ "end": 118 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json index ebcc545ac3a8..69e9627df56f 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithEnumType.json @@ -100,7 +100,8 @@ "end": 69 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "init": null } @@ -274,7 +275,8 @@ "end": 211 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } } } @@ -392,7 +394,8 @@ "end": 258 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } @@ -680,7 +683,8 @@ "end": 448 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json index 81ffd3de2538..f9a17e8730da 100644 --- a/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json +++ b/crates/swc_ecma_parser/tests/tsc/voidOperatorWithStringType.json @@ -115,7 +115,8 @@ "end": 81 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -127,7 +128,8 @@ "end": 88 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -177,7 +179,8 @@ "end": 129 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -304,7 +307,8 @@ "end": 194 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -600,7 +604,8 @@ "end": 395 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -665,7 +670,8 @@ "end": 428 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -685,7 +691,8 @@ "end": 435 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -753,7 +760,8 @@ "end": 470 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -1501,7 +1509,8 @@ "end": 942 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/weakTypesAndLiterals01.json b/crates/swc_ecma_parser/tests/tsc/weakTypesAndLiterals01.json index 2e3f094d60e7..0f989f5616ca 100644 --- a/crates/swc_ecma_parser/tests/tsc/weakTypesAndLiterals01.json +++ b/crates/swc_ecma_parser/tests/tsc/weakTypesAndLiterals01.json @@ -247,7 +247,8 @@ "end": 247 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -263,7 +264,8 @@ "end": 257 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } }, { @@ -338,7 +340,8 @@ "end": 297 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, { @@ -354,7 +357,8 @@ "end": 303 }, "value": "B", - "raw": "\"B\"" + "raw": "\"B\"", + "loneSurrogates": false } } ] @@ -475,7 +479,8 @@ "end": 367 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, "consequent": { @@ -653,7 +658,8 @@ "end": 488 }, "value": "A", - "raw": "\"A\"" + "raw": "\"A\"", + "loneSurrogates": false } }, "consequent": { diff --git a/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json b/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json index c45eb758feab..350abbfc8a0d 100644 --- a/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json +++ b/crates/swc_ecma_parser/tests/tsc/wideningTuples1.json @@ -270,7 +270,8 @@ "end": 106 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/wideningTuples2.json b/crates/swc_ecma_parser/tests/tsc/wideningTuples2.json index a0528a3d8043..424a1f37dd20 100644 --- a/crates/swc_ecma_parser/tests/tsc/wideningTuples2.json +++ b/crates/swc_ecma_parser/tests/tsc/wideningTuples2.json @@ -197,7 +197,8 @@ "end": 116 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/wideningTuples4.json b/crates/swc_ecma_parser/tests/tsc/wideningTuples4.json index 0c6208dedffa..78c962f67636 100644 --- a/crates/swc_ecma_parser/tests/tsc/wideningTuples4.json +++ b/crates/swc_ecma_parser/tests/tsc/wideningTuples4.json @@ -190,7 +190,8 @@ "end": 54 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -202,7 +203,8 @@ "end": 58 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/tsc/wideningTuples6.json b/crates/swc_ecma_parser/tests/tsc/wideningTuples6.json index 13d790dba42e..b717f4456d47 100644 --- a/crates/swc_ecma_parser/tests/tsc/wideningTuples6.json +++ b/crates/swc_ecma_parser/tests/tsc/wideningTuples6.json @@ -121,7 +121,8 @@ "end": 39 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -156,7 +157,8 @@ "end": 47 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/tsc/withStatements.json b/crates/swc_ecma_parser/tests/tsc/withStatements.json index 8974e9fe2130..e59148eb7a4d 100644 --- a/crates/swc_ecma_parser/tests/tsc/withStatements.json +++ b/crates/swc_ecma_parser/tests/tsc/withStatements.json @@ -100,7 +100,8 @@ "end": 43 }, "value": "twelve", - "raw": "'twelve'" + "raw": "'twelve'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/tsc/witness.json b/crates/swc_ecma_parser/tests/tsc/witness.json index 8fd18d3ef6e8..568762117f77 100644 --- a/crates/swc_ecma_parser/tests/tsc/witness.json +++ b/crates/swc_ecma_parser/tests/tsc/witness.json @@ -1506,7 +1506,8 @@ "end": 712 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -1515,7 +1516,8 @@ "end": 717 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "alternate": { @@ -1525,7 +1527,8 @@ "end": 722 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1629,7 +1632,8 @@ "end": 768 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -1723,7 +1727,8 @@ "end": 796 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -1942,7 +1947,8 @@ "end": 883 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } }, "definite": false @@ -2036,7 +2042,8 @@ "end": 916 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false }, "right": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json index 13caa649ad09..4c8004a2f183 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints2.json @@ -315,7 +315,8 @@ "end": 105 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json index ea2012d8ca3c..efd41c9be753 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints3.json @@ -710,7 +710,8 @@ "end": 306 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] @@ -785,7 +786,8 @@ "end": 326 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json index 9642e2841e24..cb0a79535808 100644 --- a/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json +++ b/crates/swc_ecma_parser/tests/tsc/wrappedAndRecursiveConstraints4.json @@ -625,7 +625,8 @@ "end": 245 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ], @@ -774,7 +775,8 @@ "end": 299 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/amaro-194/input.ts.json b/crates/swc_ecma_parser/tests/typescript/amaro-194/input.ts.json index ab75f60e78a5..713441a649c6 100644 --- a/crates/swc_ecma_parser/tests/typescript/amaro-194/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/amaro-194/input.ts.json @@ -876,7 +876,8 @@ "end": 434 }, "value": "Hello, World!", - "raw": "\"Hello, World!\"" + "raw": "\"Hello, World!\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json index 004f5c7bcee9..010790f0b068 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/method-return-type/input.ts.json @@ -220,7 +220,8 @@ "end": 103 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -316,7 +317,8 @@ "end": 139 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json index 9109b0c36133..72dcb649f2a0 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/property-declare/input.ts.json @@ -171,7 +171,8 @@ "end": 115 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json b/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json index 27629a47967d..0afd5fd3689c 100644 --- a/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/class/property-private/input.ts.json @@ -163,7 +163,8 @@ "end": 90 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json b/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json index 6476f34b1121..62862b536f0f 100644 --- a/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json +++ b/crates/swc_ecma_parser/tests/typescript/cts/1.cts.json @@ -59,7 +59,8 @@ "end": 28 }, "value": "path", - "raw": "'path'" + "raw": "'path'", + "loneSurrogates": false } } ], @@ -117,7 +118,8 @@ "end": 59 }, "value": "hello, world!", - "raw": "\"hello, world!\"" + "raw": "\"hello, world!\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json index 13b8b7e73dea..7ef42875eec1 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/arrow/complex-tsc/input.ts.json @@ -376,7 +376,8 @@ "end": 266 }, "value": "Unexpected node.", - "raw": "\"Unexpected node.\"" + "raw": "\"Unexpected node.\"", + "loneSurrogates": false } } }, @@ -441,7 +442,8 @@ }, "tail": false, "cooked": "Node array did not pass test '", - "raw": "Node array did not pass test '" + "raw": "Node array did not pass test '", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -451,7 +453,8 @@ }, "tail": true, "cooked": "'.", - "raw": "'." + "raw": "'.", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/arrow/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/arrow/input.ts.json index 5e30911825e6..5755d6c9b575 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/arrow/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/arrow/input.ts.json @@ -78,7 +78,8 @@ "end": 36 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } }, { @@ -158,7 +159,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -168,7 +170,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -178,7 +181,8 @@ }, "tail": true, "cooked": "!", - "raw": "!" + "raw": "!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json index 641a7a77859a..6b1dacc0172e 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/default-followed-by-type/function/input.ts.json @@ -64,7 +64,8 @@ "end": 41 }, "value": "Hello", - "raw": "\"Hello\"" + "raw": "\"Hello\"", + "loneSurrogates": false } } }, @@ -159,7 +160,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -169,7 +171,8 @@ }, "tail": false, "cooked": " ", - "raw": " " + "raw": " ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -179,7 +182,8 @@ }, "tail": true, "cooked": "!", - "raw": "!" + "raw": "!", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json index 1b0899905b93..90dd5ebb1316 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-expr-ctx/input.ts.json @@ -70,7 +70,8 @@ "end": 26 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], @@ -164,7 +165,8 @@ "end": 71 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json index 229e5a0b2aa0..d7ef6c24e479 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/dynamic-import-top-level/input.ts.json @@ -49,7 +49,8 @@ "end": 13 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/as/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/as/input.ts.json index eed74d9ac5af..b7972383fcf7 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/as/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/as/input.ts.json @@ -65,7 +65,8 @@ "end": 26 }, "value": "tty", - "raw": "\"tty\"" + "raw": "\"tty\"", + "loneSurrogates": false } } ], @@ -90,7 +91,8 @@ "end": 50 }, "value": "tty", - "raw": "\"tty\"" + "raw": "\"tty\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/simple/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/simple/input.ts.json index f251e706f381..1472ca322607 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/simple/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/import-type/typeof/simple/input.ts.json @@ -55,7 +55,8 @@ "end": 32 }, "value": "readline", - "raw": "\"readline\"" + "raw": "\"readline\"", + "loneSurrogates": false }, "qualifier": null, "typeArguments": null, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json index 3aff96d0e04b..611ec178350b 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-259/input.ts.json @@ -53,7 +53,8 @@ "end": 28 }, "value": "routeWillChange", - "raw": "'routeWillChange'" + "raw": "'routeWillChange'", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json index b6ec73b071da..363dbbf1aed9 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-1/input.ts.json @@ -148,7 +148,8 @@ "end": 50 }, "value": "bas", - "raw": "\"bas\"" + "raw": "\"bas\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -157,7 +158,8 @@ "end": 58 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, @@ -168,7 +170,8 @@ "end": 67 }, "value": "bat", - "raw": "\"bat\"" + "raw": "\"bat\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json index dba93d254f89..035edbd9aa8e 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-327-2/input.ts.json @@ -148,7 +148,8 @@ "end": 52 }, "value": "bas", - "raw": "\"bas\"" + "raw": "\"bas\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -157,7 +158,8 @@ "end": 60 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } }, @@ -168,7 +170,8 @@ "end": 69 }, "value": "bat", - "raw": "\"bat\"" + "raw": "\"bat\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json index a517b4c2e7a1..975fd0ba6dec 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-374/input.ts.json @@ -53,7 +53,8 @@ "end": 40 }, "value": "this is a string", - "raw": "\"this is a string\"" + "raw": "\"this is a string\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal-ts/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal-ts/input.ts.json index b6428c1eb304..4fe999f05b36 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal-ts/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal-ts/input.ts.json @@ -45,7 +45,8 @@ "end": 23 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal/input.ts.json index c84e827d5f57..34c7e2e043ce 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-literal/input.ts.json @@ -45,7 +45,8 @@ "end": 16 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } }, "definite": false diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json index f648d2253ead..229f22400e61 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object-ts/input.ts.json @@ -62,7 +62,8 @@ "end": 31 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json index a0e0efd2a31a..10b8ff9de60f 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-401-const-assertion-object/input.ts.json @@ -62,7 +62,8 @@ "end": 24 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-461/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-461/input.ts.json index 4692f9243acf..aac9bf790c6a 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-461/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-461/input.ts.json @@ -59,7 +59,8 @@ "end": 18 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-535/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-535/input.ts.json index 6f20b969d225..8e35e378c546 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-535/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-535/input.ts.json @@ -18,7 +18,8 @@ "end": 21 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "typeOnly": false, "with": null @@ -37,7 +38,8 @@ "end": 37 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -75,7 +77,8 @@ "end": 63 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-623/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-623/input.ts.json index 3fda29a49c4c..060e24b2080f 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-623/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-623/input.ts.json @@ -21,7 +21,8 @@ "end": 35 }, "value": "@dsherret/package", - "raw": "\"@dsherret/package\"" + "raw": "\"@dsherret/package\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json index c98a9a4322e1..f526b0f7aa56 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/issue-716/input.ts.json @@ -389,7 +389,8 @@ "end": 500 }, "value": " || ", - "raw": "' || '" + "raw": "' || '", + "loneSurrogates": false }, "right": { "type": "ParenthesisExpression", @@ -416,7 +417,8 @@ "end": 527 }, "value": " === null || ", - "raw": "' === null || '" + "raw": "' === null || '", + "loneSurrogates": false } }, "right": { @@ -444,7 +446,8 @@ "end": 551 }, "value": " === '' ", - "raw": "' === \\'\\' '" + "raw": "' === \\'\\' '", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/custom/tsx-unary/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/custom/tsx-unary/input.tsx.json index 04610ef9f95d..1db5d028d3fa 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/tsx-unary/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/tsx-unary/input.tsx.json @@ -37,7 +37,8 @@ "end": 26 }, "value": "react", - "raw": "'react'" + "raw": "'react'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/aliased/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/aliased/input.ts.json index fb0650402a5e..54d5fac65efc 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/aliased/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/aliased/input.ts.json @@ -48,7 +48,8 @@ "end": 38 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/default/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/default/input.ts.json index 692361d1e0bf..a4a390614e6a 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/default/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/default/input.ts.json @@ -37,7 +37,8 @@ "end": 27 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -75,7 +76,8 @@ "end": 51 }, "value": "./a", - "raw": "'./a'" + "raw": "'./a'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/specific/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/specific/input.ts.json index aa9a14384780..f22120a5db4a 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/specific/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/specific/input.ts.json @@ -39,7 +39,8 @@ "end": 31 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -59,7 +60,8 @@ "end": 58 }, "value": "foo", - "raw": "'foo'" + "raw": "'foo'", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/type-only-specifier/input.ts.json b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/type-only-specifier/input.ts.json index 2ad998298486..ead0d3e08c1c 100644 --- a/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/type-only-specifier/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/custom/type-only/import/type-only-specifier/input.ts.json @@ -39,7 +39,8 @@ "end": 27 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -79,7 +80,8 @@ "end": 59 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": true, "with": null, @@ -119,7 +121,8 @@ "end": 90 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -159,7 +162,8 @@ "end": 120 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -208,7 +212,8 @@ "end": 158 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -257,7 +262,8 @@ "end": 195 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -306,7 +312,8 @@ "end": 228 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -355,7 +362,8 @@ "end": 262 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -404,7 +412,8 @@ "end": 297 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -453,7 +462,8 @@ "end": 334 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -502,7 +512,8 @@ "end": 370 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -551,7 +562,8 @@ "end": 408 }, "value": "mod", - "raw": "'mod'" + "raw": "'mod'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/deno-9620/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/deno-9620/case1/input.ts.json index 54f12f4551e5..29194eccdd87 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno-9620/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/deno-9620/case1/input.ts.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "--------------------------366796e1c748a2fb\r\nContent-Disposition: form-data; name=\"payload\"\r\nContent-Type: text/plain\r\n\r\nCONTENT\r\n--------------------------366796e1c748a2fb--", - "raw": "--------------------------366796e1c748a2fb\\r\nContent-Disposition: form-data; name=\"payload\"\\r\nContent-Type: text/plain\\r\n\\r\nCONTENT\\r\n--------------------------366796e1c748a2fb--" + "raw": "--------------------------366796e1c748a2fb\\r\nContent-Disposition: form-data; name=\"payload\"\\r\nContent-Type: text/plain\\r\n\\r\nCONTENT\\r\n--------------------------366796e1c748a2fb--", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json b/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json index 1dee1e9974b4..e81018692d4a 100644 --- a/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/deno/dso/reflect/input.ts.json @@ -919,7 +919,8 @@ "end": 1374 }, "value": "@@iterator", - "raw": "\"@@iterator\"" + "raw": "\"@@iterator\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -1094,7 +1095,8 @@ "end": 1474 }, "value": "@@iterator", - "raw": "\"@@iterator\"" + "raw": "\"@@iterator\"", + "loneSurrogates": false }, "computed": false, "optional": false, @@ -8280,7 +8282,8 @@ "end": 24818 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -8331,7 +8334,8 @@ "end": 24878 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -8379,7 +8383,8 @@ "end": 24944 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -8423,7 +8428,8 @@ "end": 25017 }, "value": "return this;", - "raw": "\"return this;\"" + "raw": "\"return this;\"", + "loneSurrogates": false } } ], @@ -8557,7 +8563,8 @@ "end": 25116 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -9214,7 +9221,8 @@ "end": 25689 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -9679,7 +9687,8 @@ "end": 26172 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "definite": false @@ -9783,7 +9792,8 @@ "end": 26279 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } } }, @@ -9819,7 +9829,8 @@ "end": 26350 }, "value": "@@toPrimitive", - "raw": "\"@@toPrimitive\"" + "raw": "\"@@toPrimitive\"", + "loneSurrogates": false } }, "definite": false @@ -9923,7 +9934,8 @@ "end": 26451 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } } }, @@ -9959,7 +9971,8 @@ "end": 26516 }, "value": "@@iterator", - "raw": "\"@@iterator\"" + "raw": "\"@@iterator\"", + "loneSurrogates": false } }, "definite": false @@ -10040,7 +10053,8 @@ "end": 26584 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "definite": false @@ -11946,7 +11960,8 @@ "end": 27959 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "right": { @@ -12026,7 +12041,8 @@ "end": 28049 }, "value": "REFLECT_METADATA_USE_MAP_POLYFILL", - "raw": "\"REFLECT_METADATA_USE_MAP_POLYFILL\"" + "raw": "\"REFLECT_METADATA_USE_MAP_POLYFILL\"", + "loneSurrogates": false } } }, @@ -12037,7 +12053,8 @@ "end": 28061 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } } }, @@ -12166,7 +12183,8 @@ "end": 28149 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } }, @@ -12232,7 +12250,8 @@ "end": 28208 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } }, @@ -12392,7 +12411,8 @@ "end": 28348 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } }, @@ -12458,7 +12478,8 @@ "end": 28407 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } }, @@ -12611,7 +12632,8 @@ "end": 28559 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } }, @@ -14798,7 +14820,8 @@ "end": 32578 }, "value": "decorate", - "raw": "\"decorate\"" + "raw": "\"decorate\"", + "loneSurrogates": false } }, { @@ -15605,7 +15628,8 @@ "end": 34897 }, "value": "metadata", - "raw": "\"metadata\"" + "raw": "\"metadata\"", + "loneSurrogates": false } }, { @@ -16454,7 +16478,8 @@ "end": 37699 }, "value": "defineMetadata", - "raw": "\"defineMetadata\"" + "raw": "\"defineMetadata\"", + "loneSurrogates": false } }, { @@ -17191,7 +17216,8 @@ "end": 40091 }, "value": "hasMetadata", - "raw": "\"hasMetadata\"" + "raw": "\"hasMetadata\"", + "loneSurrogates": false } }, { @@ -17928,7 +17954,8 @@ "end": 42470 }, "value": "hasOwnMetadata", - "raw": "\"hasOwnMetadata\"" + "raw": "\"hasOwnMetadata\"", + "loneSurrogates": false } }, { @@ -18665,7 +18692,8 @@ "end": 44807 }, "value": "getMetadata", - "raw": "\"getMetadata\"" + "raw": "\"getMetadata\"", + "loneSurrogates": false } }, { @@ -19402,7 +19430,8 @@ "end": 47154 }, "value": "getOwnMetadata", - "raw": "\"getOwnMetadata\"" + "raw": "\"getOwnMetadata\"", + "loneSurrogates": false } }, { @@ -20048,7 +20077,8 @@ "end": 49162 }, "value": "getMetadataKeys", - "raw": "\"getMetadataKeys\"" + "raw": "\"getMetadataKeys\"", + "loneSurrogates": false } }, { @@ -20694,7 +20724,8 @@ "end": 51222 }, "value": "getOwnMetadataKeys", - "raw": "\"getOwnMetadataKeys\"" + "raw": "\"getOwnMetadataKeys\"", + "loneSurrogates": false } }, { @@ -21927,7 +21958,8 @@ "end": 54049 }, "value": "deleteMetadata", - "raw": "\"deleteMetadata\"" + "raw": "\"deleteMetadata\"", + "loneSurrogates": false } }, { @@ -29443,7 +29475,8 @@ "end": 61770 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false }, "consequent": [ { @@ -29493,7 +29526,8 @@ "end": 61844 }, "value": "boolean", - "raw": "\"boolean\"" + "raw": "\"boolean\"", + "loneSurrogates": false }, "consequent": [ { @@ -29543,7 +29577,8 @@ "end": 61915 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "consequent": [ { @@ -29593,7 +29628,8 @@ "end": 61985 }, "value": "symbol", - "raw": "\"symbol\"" + "raw": "\"symbol\"", + "loneSurrogates": false }, "consequent": [ { @@ -29643,7 +29679,8 @@ "end": 62055 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "consequent": [ { @@ -29693,7 +29730,8 @@ "end": 62125 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false }, "consequent": [ { @@ -30392,7 +30430,8 @@ "end": 63205 }, "value": "symbol", - "raw": "\"symbol\"" + "raw": "\"symbol\"", + "loneSurrogates": false } } } @@ -30615,7 +30654,8 @@ "end": 63478 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } }, "consequent": { @@ -30675,7 +30715,8 @@ "end": 63517 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } } @@ -31271,7 +31312,8 @@ "end": 64377 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -31287,7 +31329,8 @@ "end": 64388 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, { @@ -31303,7 +31346,8 @@ "end": 64400 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } } ] @@ -31366,7 +31410,8 @@ "end": 64458 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false }, "alternate": { "type": "ConditionalExpression", @@ -31424,7 +31469,8 @@ "end": 64536 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -31433,7 +31479,8 @@ "end": 64568 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } } }, @@ -31813,7 +31860,8 @@ "end": 64919 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } }, "consequent": { @@ -31823,7 +31871,8 @@ "end": 64930 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "alternate": { "type": "Identifier", @@ -32000,7 +32049,8 @@ "end": 65150 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, { @@ -32016,7 +32066,8 @@ "end": 65161 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } } ] @@ -32069,7 +32120,8 @@ "end": 65263 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -33408,7 +33460,8 @@ "end": 66571 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -34039,7 +34092,8 @@ "end": 67443 }, "value": "[object Array]", - "raw": "\"[object Array]\"" + "raw": "\"[object Array]\"", + "loneSurrogates": false } } } @@ -34198,7 +34252,8 @@ "end": 67763 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } } @@ -34358,7 +34413,8 @@ "end": 68097 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } } } @@ -36288,7 +36344,8 @@ "end": 70200 }, "value": "return", - "raw": "\"return\"" + "raw": "\"return\"", + "loneSurrogates": false } } }, @@ -36594,7 +36651,8 @@ "end": 70679 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "right": { @@ -37057,7 +37115,8 @@ "end": 71952 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -38016,7 +38075,8 @@ "end": 72977 }, "value": "@@iterator", - "raw": "\"@@iterator\"" + "raw": "\"@@iterator\"", + "loneSurrogates": false }, "function": { "params": [], @@ -42776,7 +42836,8 @@ "end": 76955 }, "value": "@@iterator", - "raw": "\"@@iterator\"" + "raw": "\"@@iterator\"", + "loneSurrogates": false }, "function": { "params": [], @@ -45542,7 +45603,8 @@ "end": 78976 }, "value": "@@iterator", - "raw": "\"@@iterator\"" + "raw": "\"@@iterator\"", + "loneSurrogates": false }, "function": { "params": [], @@ -47762,7 +47824,8 @@ "end": 80795 }, "value": "@@WeakMap@@", - "raw": "\"@@WeakMap@@\"" + "raw": "\"@@WeakMap@@\"", + "loneSurrogates": false }, "right": { "type": "CallExpression", @@ -49268,7 +49331,8 @@ "end": 81976 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -49317,7 +49381,8 @@ "end": 82033 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -49475,7 +49540,8 @@ "end": 82205 }, "value": "undefined", - "raw": "\"undefined\"" + "raw": "\"undefined\"", + "loneSurrogates": false } }, "consequent": { @@ -50157,7 +50223,8 @@ "end": 82769 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -50463,7 +50530,8 @@ "end": 82970 }, "value": "-", - "raw": "\"-\"" + "raw": "\"-\"", + "loneSurrogates": false } } }, @@ -50533,7 +50601,8 @@ "end": 83020 }, "value": "0", - "raw": "\"0\"" + "raw": "\"0\"", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/enum/members-strings/input.ts.json b/crates/swc_ecma_parser/tests/typescript/enum/members-strings/input.ts.json index 60776826d2b8..ad38983c5cc1 100644 --- a/crates/swc_ecma_parser/tests/typescript/enum/members-strings/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/enum/members-strings/input.ts.json @@ -37,7 +37,8 @@ "end": 19 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "init": null }, @@ -54,7 +55,8 @@ "end": 30 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false }, "init": { "type": "NumericLiteral", diff --git a/crates/swc_ecma_parser/tests/typescript/estree-compat/shorthand-ambient-module/input.ts.json b/crates/swc_ecma_parser/tests/typescript/estree-compat/shorthand-ambient-module/input.ts.json index 8ca39e1db2d3..5c28478af9c0 100644 --- a/crates/swc_ecma_parser/tests/typescript/estree-compat/shorthand-ambient-module/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/estree-compat/shorthand-ambient-module/input.ts.json @@ -21,7 +21,8 @@ "end": 32 }, "value": "hot-new-module", - "raw": "\"hot-new-module\"" + "raw": "\"hot-new-module\"", + "loneSurrogates": false }, "body": null } diff --git a/crates/swc_ecma_parser/tests/typescript/export/namespace-from/input.ts.json b/crates/swc_ecma_parser/tests/typescript/export/namespace-from/input.ts.json index 4e1da5bd7059..2708a7549134 100644 --- a/crates/swc_ecma_parser/tests/typescript/export/namespace-from/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/export/namespace-from/input.ts.json @@ -37,7 +37,8 @@ "end": 30 }, "value": "package", - "raw": "\"package\"" + "raw": "\"package\"", + "loneSurrogates": false }, "typeOnly": false, "with": null diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json index 8d2014985abd..192274be2d0a 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/expr/input.ts.json @@ -56,7 +56,8 @@ "end": 20 }, "value": "./lazy", - "raw": "'./lazy'" + "raw": "'./lazy'", + "loneSurrogates": false } }, { @@ -102,7 +103,8 @@ "end": 46 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json index 1fe36c762b88..8fb3de7a3dd2 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/dynamic-import/top/input.ts.json @@ -49,7 +49,8 @@ "end": 16 }, "value": "./lazy", - "raw": "'./lazy'" + "raw": "'./lazy'", + "loneSurrogates": false } }, { @@ -95,7 +96,8 @@ "end": 42 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json index 6248894628be..071d5fcc3124 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test1/input.ts.json @@ -39,7 +39,8 @@ "end": 31 }, "value": "./foo.js", - "raw": "'./foo.js'" + "raw": "'./foo.js'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 59 }, "value": "javascript", - "raw": "\"javascript\"" + "raw": "\"javascript\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json index 3e9f7ce7d84e..1e15d5110f40 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test2/input.tsx.json @@ -39,7 +39,8 @@ "end": 34 }, "value": "./foo.js.js", - "raw": "'./foo.js.js'" + "raw": "'./foo.js.js'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -66,7 +67,8 @@ "end": 62 }, "value": "javascript", - "raw": "\"javascript\"" + "raw": "\"javascript\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json index 1119e5389130..c589709e3174 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/export/test3/input.ts.json @@ -18,7 +18,8 @@ "end": 25 }, "value": "./foo.js", - "raw": "'./foo.js'" + "raw": "'./foo.js'", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -45,7 +46,8 @@ "end": 53 }, "value": "javascript", - "raw": "\"javascript\"" + "raw": "\"javascript\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json index 1de44b0d5d88..56ad6a8a49a7 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test1/input.ts.json @@ -37,7 +37,8 @@ "end": 30 }, "value": "./foo.json", - "raw": "\"./foo.json\"" + "raw": "\"./foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -64,7 +65,8 @@ "end": 52 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json index eb7a4529ea01..fe2b51ba5c8e 100644 --- a/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import-assertions/stmt/test2/input.ts.json @@ -19,7 +19,8 @@ "end": 20 }, "value": "./foo.json", - "raw": "\"./foo.json\"" + "raw": "\"./foo.json\"", + "loneSurrogates": false }, "typeOnly": false, "with": { @@ -46,7 +47,8 @@ "end": 42 }, "value": "json", - "raw": "\"json\"" + "raw": "\"json\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/import/equals-require/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import/equals-require/input.ts.json index 2ba5ee4e23b8..3b9615ca7049 100644 --- a/crates/swc_ecma_parser/tests/typescript/import/equals-require/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import/equals-require/input.ts.json @@ -36,7 +36,8 @@ "end": 23 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/import/equals-type-only/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import/equals-type-only/input.ts.json index 8b65795a9092..a1d42c38cf09 100644 --- a/crates/swc_ecma_parser/tests/typescript/import/equals-type-only/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import/equals-type-only/input.ts.json @@ -36,7 +36,8 @@ "end": 48 }, "value": "commonjs-package", - "raw": "'commonjs-package'" + "raw": "'commonjs-package'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/import/export-import-require/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import/export-import-require/input.ts.json index 3b9ef8397801..92ce12b6bce5 100644 --- a/crates/swc_ecma_parser/tests/typescript/import/export-import-require/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import/export-import-require/input.ts.json @@ -36,7 +36,8 @@ "end": 30 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/import/export-import-type-require/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import/export-import-type-require/input.ts.json index 3f3491ef7f72..d3bdf44cb042 100644 --- a/crates/swc_ecma_parser/tests/typescript/import/export-import-type-require/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import/export-import-type-require/input.ts.json @@ -36,7 +36,8 @@ "end": 43 }, "value": "react", - "raw": "\"react\"" + "raw": "\"react\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/import/not-top-level/input.ts.json b/crates/swc_ecma_parser/tests/typescript/import/not-top-level/input.ts.json index 872e96e88ba2..7e2540e1eb78 100644 --- a/crates/swc_ecma_parser/tests/typescript/import/not-top-level/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/import/not-top-level/input.ts.json @@ -21,7 +21,8 @@ "end": 19 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", @@ -62,7 +63,8 @@ "end": 48 }, "value": "a", - "raw": "\"a\"" + "raw": "\"a\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json index 563ec22523aa..6c78a2678d06 100644 --- a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/base/input.ts.json @@ -471,7 +471,8 @@ "end": 145 }, "value": "g", - "raw": "'g'" + "raw": "'g'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/relational/input.ts.json b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/relational/input.ts.json index d5bdc40686b0..63dc446ec13c 100644 --- a/crates/swc_ecma_parser/tests/typescript/instantiation-expr/relational/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/instantiation-expr/relational/input.ts.json @@ -83,7 +83,8 @@ "end": 60 }, "value": "g", - "raw": "'g'" + "raw": "'g'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json index d238e79aa4df..439070a2797c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1505/case1/input.tsx.json @@ -303,7 +303,8 @@ }, "tail": true, "cooked": "x", - "raw": "x" + "raw": "x", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json index f81525261423..ad5033ab36c4 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1505/case2/input.tsx.json @@ -192,7 +192,8 @@ }, "tail": false, "cooked": "withUsersTeams(", - "raw": "withUsersTeams(" + "raw": "withUsersTeams(", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -202,7 +203,8 @@ }, "tail": true, "cooked": ")", - "raw": ")" + "raw": ")", + "loneSurrogates": false } ] }, @@ -570,7 +572,8 @@ "end": 639 }, "value": "user-teams-fetch-start", - "raw": "\"user-teams-fetch-start\"" + "raw": "\"user-teams-fetch-start\"", + "loneSurrogates": false } } ] @@ -918,7 +921,8 @@ "end": 991 }, "value": "app.component.perf", - "raw": "\"app.component.perf\"" + "raw": "\"app.component.perf\"", + "loneSurrogates": false } }, { @@ -938,7 +942,8 @@ "end": 1038 }, "value": "user-teams-fetch-start", - "raw": "\"user-teams-fetch-start\"" + "raw": "\"user-teams-fetch-start\"", + "loneSurrogates": false } }, { @@ -975,7 +980,8 @@ "end": 1096 }, "value": "user-teams", - "raw": "\"user-teams\"" + "raw": "\"user-teams\"", + "loneSurrogates": false } }, { @@ -995,7 +1001,8 @@ "end": 1155 }, "value": "/organizations/:orgid/user-teams", - "raw": "\"/organizations/:orgid/user-teams\"" + "raw": "\"/organizations/:orgid/user-teams\"", + "loneSurrogates": false } }, { @@ -1465,7 +1472,8 @@ "end": 1531 }, "value": "user", - "raw": "\"user\"" + "raw": "\"user\"", + "loneSurrogates": false } } ], @@ -2082,7 +2090,8 @@ }, "tail": false, "cooked": "/organizations/", - "raw": "/organizations/" + "raw": "/organizations/", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -2092,7 +2101,8 @@ }, "tail": true, "cooked": "/user-teams/", - "raw": "/user-teams/" + "raw": "/user-teams/", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1512/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1512/case1/input.ts.json index 1681ca58f305..ad6873f94a4e 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1512/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1512/case1/input.ts.json @@ -37,7 +37,8 @@ "end": 29 }, "value": "./index", - "raw": "'./index'" + "raw": "'./index'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1549/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1549/input.ts.json index 3ceaa3ab681c..f278661d799c 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1549/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1549/input.ts.json @@ -48,7 +48,8 @@ }, "tail": true, "cooked": "\r\n", - "raw": "\\r\\n" + "raw": "\\r\\n", + "loneSurrogates": false } ] }, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json index 5f3b8808a26b..8a5bf37ec8fa 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1708/case1/input.ts.json @@ -52,7 +52,8 @@ "end": 30 }, "value": "a-b", - "raw": "\"a-b\"" + "raw": "\"a-b\"", + "loneSurrogates": false }, "typeAnnotation": null, "body": { @@ -76,7 +77,8 @@ "end": 55 }, "value": "abc", - "raw": "\"abc\"" + "raw": "\"abc\"", + "loneSurrogates": false } } ] @@ -158,7 +160,8 @@ "end": 90 }, "value": "a-b", - "raw": "'a-b'" + "raw": "'a-b'", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-1862/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-1862/case1/input.ts.json index 855169caa321..50491497f0bf 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-1862/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-1862/case1/input.ts.json @@ -45,7 +45,8 @@ }, "tail": true, "cooked": "<", - "raw": "<" + "raw": "<", + "loneSurrogates": false } ] } @@ -91,7 +92,8 @@ }, "tail": true, "cooked": ">", - "raw": ">" + "raw": ">", + "loneSurrogates": false } ] } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json index 3009aa7f70e0..0c8eb1c3adc0 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2417/input.ts.json @@ -37,7 +37,8 @@ "end": 32 }, "value": "mongoose", - "raw": "'mongoose'" + "raw": "'mongoose'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -115,7 +116,8 @@ "end": 101 }, "value": "@typegoose/typegoose", - "raw": "'@typegoose/typegoose'" + "raw": "'@typegoose/typegoose'", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -155,7 +157,8 @@ "end": 165 }, "value": "@typegoose/typegoose/lib/defaultClasses", - "raw": "'@typegoose/typegoose/lib/defaultClasses'" + "raw": "'@typegoose/typegoose/lib/defaultClasses'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2853/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-2853/input.ts.json index 5424460c06bb..8a3ec50f9d4e 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2853/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2853/input.ts.json @@ -39,7 +39,8 @@ "end": 16 }, "value": "\u0000a", - "raw": "\"\\0a\"" + "raw": "\"\\0a\"", + "loneSurrogates": false }, "definite": false } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-2896/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-2896/input.tsx.json index 01420a63a8d3..3738ca8d4ce9 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-2896/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-2896/input.tsx.json @@ -80,7 +80,8 @@ "end": 34 }, "value": "<>hello", - "raw": "'<>hello'" + "raw": "'<>hello'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3236/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-3236/input.ts.json index f454183cbae5..55d47a08a739 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3236/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3236/input.ts.json @@ -82,7 +82,8 @@ "end": 37 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json index f54f8904271b..69d0987a7f49 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3241/1/input.tsx.json @@ -37,7 +37,8 @@ "end": 26 }, "value": "react", - "raw": "\"react\"" + "raw": "\"react\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json index 9864fe63f96d..74ce45a592e7 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-3337/input.ts.json @@ -37,7 +37,8 @@ "end": 33 }, "value": "joiful", - "raw": "'joiful'" + "raw": "'joiful'", + "loneSurrogates": false }, "typeOnly": false, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4178/1/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4178/1/index.ts.json index 8286bd580b3a..0ca29b437ad2 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4178/1/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4178/1/index.ts.json @@ -182,7 +182,8 @@ "end": 86 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4178/2/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4178/2/index.ts.json index 01c443efca37..3ec882133316 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4178/2/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4178/2/index.ts.json @@ -190,7 +190,8 @@ "end": 92 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4178/3/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4178/3/index.ts.json index 46fd5c67616b..d0a1272c22c3 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4178/3/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4178/3/index.ts.json @@ -163,7 +163,8 @@ "end": 95 }, "value": "hello", - "raw": "\"hello\"" + "raw": "\"hello\"", + "loneSurrogates": false }, "async": false, "generator": false, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json index 6ec712bd1330..146e22a83f1d 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4296/1/input.tsx.json @@ -37,7 +37,8 @@ "end": 26 }, "value": "react", - "raw": "\"react\"" + "raw": "\"react\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -600,7 +601,8 @@ "end": 411 }, "value": "do something", - "raw": "\"do something\"" + "raw": "\"do something\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json index 18972b2085f0..306bb532401f 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-4911/3/input.ts.json @@ -104,7 +104,8 @@ "end": 39 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -1180,7 +1181,8 @@ "end": 411 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "alternate": { "type": "CallExpression", @@ -1372,7 +1374,8 @@ "end": 520 }, "value": "object", - "raw": "\"object\"" + "raw": "\"object\"", + "loneSurrogates": false } } }, @@ -1416,7 +1419,8 @@ "end": 608 }, "value": "The \"pathObject\" argument must be of type Object. Received type ", - "raw": "'The \"pathObject\" argument must be of type Object. Received type '" + "raw": "'The \"pathObject\" argument must be of type Object. Received type '", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", @@ -1477,7 +1481,8 @@ "end": 646 }, "value": "/", - "raw": "\"/\"" + "raw": "\"/\"", + "loneSurrogates": false } }, { diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json index f99945a599aa..ec125305d9a1 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6430/index.ts.json @@ -37,7 +37,8 @@ "end": 84 }, "value": "../../../../swc_ecma_transforms_base/tests/ts-resolver/1/input", - "raw": "\"../../../../swc_ecma_transforms_base/tests/ts-resolver/1/input\"" + "raw": "\"../../../../swc_ecma_transforms_base/tests/ts-resolver/1/input\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -780,7 +781,8 @@ "end": 362 }, "value": "str", - "raw": "\"str\"" + "raw": "\"str\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json b/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json index a53853ff3647..755564d714d5 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-6601/index.tsx.json @@ -154,7 +154,8 @@ "end": 156 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -189,7 +190,8 @@ }, "tail": false, "cooked": "", - "raw": "\"\n >" + "raw": "\"\n >", + "loneSurrogates": false } ] }, @@ -260,7 +263,8 @@ "end": 281 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -295,7 +299,8 @@ }, "tail": false, "cooked": "", - "raw": "\"\n >" + "raw": "\"\n >", + "loneSurrogates": false } ] } @@ -433,7 +439,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -494,7 +501,8 @@ "end": 478 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -529,7 +537,8 @@ }, "tail": false, "cooked": "", - "raw": "\"\n >" + "raw": "\"\n >", + "loneSurrogates": false } ] } @@ -567,7 +577,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -628,7 +639,8 @@ "end": 619 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -663,7 +675,8 @@ }, "tail": false, "cooked": "", - "raw": "\"\n >" + "raw": "\"\n >", + "loneSurrogates": false } ] } @@ -829,7 +843,8 @@ "end": 773 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -904,7 +919,8 @@ "end": 851 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -1096,7 +1112,8 @@ "end": 993 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -1190,7 +1207,8 @@ "end": 1081 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -1391,7 +1409,8 @@ "end": 1226 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -1492,7 +1511,8 @@ "end": 1316 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -1642,7 +1662,8 @@ "end": 1402 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -1651,7 +1672,8 @@ "end": 1412 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } }, "consequent": { @@ -1711,7 +1733,8 @@ "end": 1503 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -1746,7 +1769,8 @@ }, "tail": false, "cooked": "", - "raw": "\">" + "raw": "\">", + "loneSurrogates": false } ] }, @@ -1767,7 +1792,8 @@ "end": 1537 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } }, "alternate": { @@ -1827,7 +1853,8 @@ "end": 1641 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -1862,7 +1889,8 @@ }, "tail": false, "cooked": "", - "raw": "\"\n >" + "raw": "\"\n >", + "loneSurrogates": false } ] } @@ -2034,7 +2063,8 @@ "end": 1815 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -2069,7 +2099,8 @@ }, "tail": false, "cooked": "", - "raw": "\">" + "raw": "\">", + "loneSurrogates": false } ] }, @@ -2103,7 +2135,8 @@ "end": 1846 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -2112,7 +2145,8 @@ "end": 1856 }, "value": "test", - "raw": "\"test\"" + "raw": "\"test\"", + "loneSurrogates": false } }, "consequent": { @@ -2172,7 +2206,8 @@ "end": 1947 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -2207,7 +2242,8 @@ }, "tail": false, "cooked": "", - "raw": "\">" + "raw": "\">", + "loneSurrogates": false } ] }, @@ -2228,7 +2265,8 @@ "end": 1981 }, "value": "bar", - "raw": "\"bar\"" + "raw": "\"bar\"", + "loneSurrogates": false } } } @@ -2407,7 +2445,8 @@ "end": 2136 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -2442,7 +2481,8 @@ }, "tail": false, "cooked": "", - "raw": "\">" + "raw": "\">", + "loneSurrogates": false } ] } @@ -2532,7 +2573,8 @@ "end": 2249 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -2567,7 +2609,8 @@ }, "tail": false, "cooked": "", - "raw": "\">" + "raw": "\">", + "loneSurrogates": false } ] } @@ -2739,7 +2783,8 @@ "end": 2397 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -2821,7 +2866,8 @@ "end": 2477 }, "value": "this line does NOT causes a syntax error", - "raw": "'this line does NOT causes a syntax error'" + "raw": "'this line does NOT causes a syntax error'", + "loneSurrogates": false } } ], @@ -2998,7 +3044,8 @@ "end": 2627 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -3099,7 +3146,8 @@ "end": 2711 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -3221,7 +3269,8 @@ "end": 2773 }, "value": "Oranges", - "raw": "\"Oranges\"" + "raw": "\"Oranges\"", + "loneSurrogates": false }, "definite": false } @@ -3257,7 +3306,8 @@ "end": 2817 }, "value": "Oranges", - "raw": "'Oranges'" + "raw": "'Oranges'", + "loneSurrogates": false }, "consequent": [ { @@ -3331,7 +3381,8 @@ "end": 2916 }, "value": "this line causes a syntax error", - "raw": "'this line causes a syntax error'" + "raw": "'this line causes a syntax error'", + "loneSurrogates": false } } ], @@ -3366,7 +3417,8 @@ }, "tail": false, "cooked": "", - "raw": "\" >" + "raw": "\" >", + "loneSurrogates": false } ] } @@ -3450,7 +3503,8 @@ }, "tail": true, "cooked": "Sorry, we are out of test.", - "raw": "Sorry, we are out of test." + "raw": "Sorry, we are out of test.", + "loneSurrogates": false } ] } @@ -3628,7 +3682,8 @@ "end": 3164 }, "value": "This shape is a square.", - "raw": "'This shape is a square.'" + "raw": "'This shape is a square.'", + "loneSurrogates": false } } ], @@ -3858,7 +3913,8 @@ "end": 3364 }, "value": "This shape is a square.", - "raw": "'This shape is a square.'" + "raw": "'This shape is a square.'", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json index 2d1ffbdf6857..fa9856dfbe7b 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7042/case1/input.ts.json @@ -68,7 +68,8 @@ "end": 61 }, "value": "accessor", - "raw": "'accessor'" + "raw": "'accessor'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json index eee947e3d88d..e36cd1c60b48 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7042/case2/input.ts.json @@ -59,7 +59,8 @@ "end": 43 }, "value": "accessor", - "raw": "'accessor'" + "raw": "'accessor'", + "loneSurrogates": false } } }, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json index 85fb5393c9d4..e613231506fa 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-7042/case3/input.ts.json @@ -68,7 +68,8 @@ "end": 68 }, "value": "accessor", - "raw": "'accessor'" + "raw": "'accessor'", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/issue-814/case1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-814/case1/input.ts.json index 9f5aac6495f7..a239d3eca70b 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-814/case1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-814/case1/input.ts.json @@ -61,7 +61,8 @@ "end": 50 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8308/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8308/1/input.ts.json index 5f4940c3021b..8af018fa7bc2 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8308/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8308/1/input.ts.json @@ -37,7 +37,8 @@ "end": 28 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false }, "typeOnly": true, "with": null, diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8308/2/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8308/2/input.ts.json index 80e56a832ab0..8854cd747340 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8308/2/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8308/2/input.ts.json @@ -36,7 +36,8 @@ "end": 33 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8308/3/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8308/3/input.ts.json index 13d94430a2e4..9c5854c0bce9 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8308/3/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8308/3/input.ts.json @@ -36,7 +36,8 @@ "end": 34 }, "value": "foo", - "raw": "\"foo\"" + "raw": "\"foo\"", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json index 741ed5d76dd2..d28084a4dda5 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-8526/input.ts.json @@ -131,7 +131,8 @@ "end": 97 }, "value": "", - "raw": "''" + "raw": "''", + "loneSurrogates": false } } } diff --git a/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json index 0b321eb3ff49..de3e2662f6cd 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-913/input.ts.json @@ -39,7 +39,8 @@ "end": 37 }, "value": "../../deps.ts", - "raw": "\"../../deps.ts\"" + "raw": "\"../../deps.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -77,7 +78,8 @@ "end": 77 }, "value": "../../members.ts", - "raw": "\"../../members.ts\"" + "raw": "\"../../members.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -117,7 +119,8 @@ "end": 118 }, "value": "../../../mod.ts", - "raw": "\"../../../mod.ts\"" + "raw": "\"../../../mod.ts\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -171,7 +174,8 @@ "end": 166 }, "value": "decorators/middleware_test.ts", - "raw": "\"decorators/middleware_test.ts\"" + "raw": "\"decorators/middleware_test.ts\"", + "loneSurrogates": false } }, { @@ -240,7 +244,8 @@ "end": 230 }, "value": "ResourceWithMiddlewareBeforeClass", - "raw": "\"ResourceWithMiddlewareBeforeClass\"" + "raw": "\"ResourceWithMiddlewareBeforeClass\"", + "loneSurrogates": false } }, { @@ -309,7 +314,8 @@ "end": 284 }, "value": "header not specified", - "raw": "\"header not specified\"" + "raw": "\"header not specified\"", + "loneSurrogates": false } }, { @@ -526,7 +532,8 @@ "end": 489 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } } ], @@ -723,7 +730,8 @@ "end": 697 }, "value": "'header' not specified.", - "raw": "\"'header' not specified.\"" + "raw": "\"'header' not specified.\"", + "loneSurrogates": false } } ], @@ -790,7 +798,8 @@ "end": 755 }, "value": "valid", - "raw": "\"valid\"" + "raw": "\"valid\"", + "loneSurrogates": false } }, { @@ -1007,7 +1016,8 @@ "end": 960 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -1019,7 +1029,8 @@ "end": 967 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -1065,7 +1076,8 @@ "end": 1045 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -1285,7 +1297,8 @@ "end": 1276 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -1367,7 +1380,8 @@ "end": 1378 }, "value": "ResourceWithMultipleMiddlewareBeforeClass", - "raw": "\"ResourceWithMultipleMiddlewareBeforeClass\"" + "raw": "\"ResourceWithMultipleMiddlewareBeforeClass\"", + "loneSurrogates": false } }, { @@ -1436,7 +1450,8 @@ "end": 1453 }, "value": "correct header, custom response and value", - "raw": "\"correct header, custom response and value\"" + "raw": "\"correct header, custom response and value\"", + "loneSurrogates": false } }, { @@ -1653,7 +1668,8 @@ "end": 1666 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -1665,7 +1681,8 @@ "end": 1673 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -1711,7 +1728,8 @@ "end": 1751 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -1931,7 +1949,8 @@ "end": 1982 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -2061,7 +2080,8 @@ "end": 2071 }, "value": "MYCUSTOM", - "raw": "\"MYCUSTOM\"" + "raw": "\"MYCUSTOM\"", + "loneSurrogates": false } } ], @@ -2077,7 +2097,8 @@ "end": 2079 }, "value": "hey", - "raw": "\"hey\"" + "raw": "\"hey\"", + "loneSurrogates": false } } ], @@ -2156,7 +2177,8 @@ "end": 2164 }, "value": "ResourceWithMultipleMiddlewareAfterClass", - "raw": "\"ResourceWithMultipleMiddlewareAfterClass\"" + "raw": "\"ResourceWithMultipleMiddlewareAfterClass\"", + "loneSurrogates": false } }, { @@ -2225,7 +2247,8 @@ "end": 2239 }, "value": "response is html, custom header and value", - "raw": "\"response is html, custom header and value\"" + "raw": "\"response is html, custom header and value\"", + "loneSurrogates": false } }, { @@ -2442,7 +2465,8 @@ "end": 2451 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -2454,7 +2478,8 @@ "end": 2458 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -2500,7 +2525,8 @@ "end": 2536 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -2718,7 +2744,8 @@ "end": 2727 }, "value": "

hey

", - "raw": "\"

hey

\"" + "raw": "\"

hey

\"", + "loneSurrogates": false } } ], @@ -2845,7 +2872,8 @@ "end": 2821 }, "value": "Content-Type", - "raw": "\"Content-Type\"" + "raw": "\"Content-Type\"", + "loneSurrogates": false } } ], @@ -2861,7 +2889,8 @@ "end": 2851 }, "value": "text/html", - "raw": "\"text/html\"" + "raw": "\"text/html\"", + "loneSurrogates": false } } ], @@ -2988,7 +3017,8 @@ "end": 2938 }, "value": "MYCUSTOM", - "raw": "\"MYCUSTOM\"" + "raw": "\"MYCUSTOM\"", + "loneSurrogates": false } } ], @@ -3004,7 +3034,8 @@ "end": 2946 }, "value": "hey", - "raw": "\"hey\"" + "raw": "\"hey\"", + "loneSurrogates": false } } ], @@ -3083,7 +3114,8 @@ "end": 3018 }, "value": "ResourceWithMiddlewareClass", - "raw": "\"ResourceWithMiddlewareClass\"" + "raw": "\"ResourceWithMiddlewareClass\"", + "loneSurrogates": false } }, { @@ -3152,7 +3184,8 @@ "end": 3082 }, "value": "custom header and swap to html", - "raw": "\"custom header and swap to html\"" + "raw": "\"custom header and swap to html\"", + "loneSurrogates": false } }, { @@ -3369,7 +3402,8 @@ "end": 3281 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -3381,7 +3415,8 @@ "end": 3288 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -3427,7 +3462,8 @@ "end": 3366 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -3645,7 +3681,8 @@ "end": 3557 }, "value": "

hey

", - "raw": "\"

hey

\"" + "raw": "\"

hey

\"", + "loneSurrogates": false } } ], @@ -3772,7 +3809,8 @@ "end": 3651 }, "value": "Content-Type", - "raw": "\"Content-Type\"" + "raw": "\"Content-Type\"", + "loneSurrogates": false } } ], @@ -3788,7 +3826,8 @@ "end": 3681 }, "value": "text/html", - "raw": "\"text/html\"" + "raw": "\"text/html\"", + "loneSurrogates": false } } ], @@ -3915,7 +3954,8 @@ "end": 3768 }, "value": "MYCUSTOM", - "raw": "\"MYCUSTOM\"" + "raw": "\"MYCUSTOM\"", + "loneSurrogates": false } } ], @@ -3931,7 +3971,8 @@ "end": 3776 }, "value": "hey", - "raw": "\"hey\"" + "raw": "\"hey\"", + "loneSurrogates": false } } ], @@ -4010,7 +4051,8 @@ "end": 3855 }, "value": "ResourceWithMiddlewareBeforeMethod", - "raw": "\"ResourceWithMiddlewareBeforeMethod\"" + "raw": "\"ResourceWithMiddlewareBeforeMethod\"", + "loneSurrogates": false } }, { @@ -4079,7 +4121,8 @@ "end": 3902 }, "value": "custom header", - "raw": "\"custom header\"" + "raw": "\"custom header\"", + "loneSurrogates": false } }, { @@ -4296,7 +4339,8 @@ "end": 4108 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -4308,7 +4352,8 @@ "end": 4115 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -4354,7 +4399,8 @@ "end": 4193 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -4574,7 +4620,8 @@ "end": 4424 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -4656,7 +4703,8 @@ "end": 4527 }, "value": "ResourceWithMultipleMiddlewareBeforeMethod", - "raw": "\"ResourceWithMultipleMiddlewareBeforeMethod\"" + "raw": "\"ResourceWithMultipleMiddlewareBeforeMethod\"", + "loneSurrogates": false } }, { @@ -4725,7 +4773,8 @@ "end": 4574 }, "value": "custom header", - "raw": "\"custom header\"" + "raw": "\"custom header\"", + "loneSurrogates": false } }, { @@ -4942,7 +4991,8 @@ "end": 4788 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -4954,7 +5004,8 @@ "end": 4795 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -5000,7 +5051,8 @@ "end": 4873 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -5220,7 +5272,8 @@ "end": 5104 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -5350,7 +5403,8 @@ "end": 5193 }, "value": "MYCUSTOM", - "raw": "\"MYCUSTOM\"" + "raw": "\"MYCUSTOM\"", + "loneSurrogates": false } } ], @@ -5366,7 +5420,8 @@ "end": 5201 }, "value": "hey", - "raw": "\"hey\"" + "raw": "\"hey\"", + "loneSurrogates": false } } ], @@ -5445,7 +5500,8 @@ "end": 5279 }, "value": "ResourceWithMiddlewareAfterMethod", - "raw": "\"ResourceWithMiddlewareAfterMethod\"" + "raw": "\"ResourceWithMiddlewareAfterMethod\"", + "loneSurrogates": false } }, { @@ -5514,7 +5570,8 @@ "end": 5325 }, "value": "swap to html", - "raw": "\"swap to html\"" + "raw": "\"swap to html\"", + "loneSurrogates": false } }, { @@ -5731,7 +5788,8 @@ "end": 5530 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -5743,7 +5801,8 @@ "end": 5537 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -5789,7 +5848,8 @@ "end": 5615 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -6007,7 +6067,8 @@ "end": 5806 }, "value": "

hey

", - "raw": "\"

hey

\"" + "raw": "\"

hey

\"", + "loneSurrogates": false } } ], @@ -6134,7 +6195,8 @@ "end": 5900 }, "value": "Content-Type", - "raw": "\"Content-Type\"" + "raw": "\"Content-Type\"", + "loneSurrogates": false } } ], @@ -6150,7 +6212,8 @@ "end": 5930 }, "value": "text/html", - "raw": "\"text/html\"" + "raw": "\"text/html\"", + "loneSurrogates": false } } ], @@ -6229,7 +6292,8 @@ "end": 6030 }, "value": "ResourceWithMultipleMiddlewareAfterMethod", - "raw": "\"ResourceWithMultipleMiddlewareAfterMethod\"" + "raw": "\"ResourceWithMultipleMiddlewareAfterMethod\"", + "loneSurrogates": false } }, { @@ -6298,7 +6362,8 @@ "end": 6094 }, "value": "custom header and swap to html", - "raw": "\"custom header and swap to html\"" + "raw": "\"custom header and swap to html\"", + "loneSurrogates": false } }, { @@ -6515,7 +6580,8 @@ "end": 6307 }, "value": "/users/1", - "raw": "\"/users/1\"" + "raw": "\"/users/1\"", + "loneSurrogates": false } }, { @@ -6527,7 +6593,8 @@ "end": 6314 }, "value": "get", - "raw": "\"get\"" + "raw": "\"get\"", + "loneSurrogates": false } }, { @@ -6573,7 +6640,8 @@ "end": 6392 }, "value": "all your base", - "raw": "\"all your base\"" + "raw": "\"all your base\"", + "loneSurrogates": false } } ] @@ -6791,7 +6859,8 @@ "end": 6583 }, "value": "

hey

", - "raw": "\"

hey

\"" + "raw": "\"

hey

\"", + "loneSurrogates": false } } ], @@ -6918,7 +6987,8 @@ "end": 6677 }, "value": "Content-Type", - "raw": "\"Content-Type\"" + "raw": "\"Content-Type\"", + "loneSurrogates": false } } ], @@ -6934,7 +7004,8 @@ "end": 6707 }, "value": "text/html", - "raw": "\"text/html\"" + "raw": "\"text/html\"", + "loneSurrogates": false } } ], @@ -7061,7 +7132,8 @@ "end": 6794 }, "value": "MYCUSTOM", - "raw": "\"MYCUSTOM\"" + "raw": "\"MYCUSTOM\"", + "loneSurrogates": false } } ], @@ -7077,7 +7149,8 @@ "end": 6802 }, "value": "hey", - "raw": "\"hey\"" + "raw": "\"hey\"", + "loneSurrogates": false } } ], @@ -7456,7 +7529,8 @@ "end": 7264 }, "value": "csrf_token", - "raw": "\"csrf_token\"" + "raw": "\"csrf_token\"", + "loneSurrogates": false } } ], @@ -7553,7 +7627,8 @@ "end": 7391 }, "value": "'header' not specified.", - "raw": "\"'header' not specified.\"" + "raw": "\"'header' not specified.\"", + "loneSurrogates": false } } ], @@ -7809,7 +7884,8 @@ "end": 7552 }, "value": "Content-Type", - "raw": "\"Content-Type\"" + "raw": "\"Content-Type\"", + "loneSurrogates": false } }, { @@ -7821,7 +7897,8 @@ "end": 7565 }, "value": "text/html", - "raw": "\"text/html\"" + "raw": "\"text/html\"", + "loneSurrogates": false } } ], @@ -7873,7 +7950,8 @@ "end": 7602 }, "value": "

hey

", - "raw": "\"

hey

\"" + "raw": "\"

hey

\"", + "loneSurrogates": false } } } @@ -8122,7 +8200,8 @@ "end": 7749 }, "value": "MYCUSTOM", - "raw": "\"MYCUSTOM\"" + "raw": "\"MYCUSTOM\"", + "loneSurrogates": false } }, { @@ -8134,7 +8213,8 @@ "end": 7756 }, "value": "hey", - "raw": "\"hey\"" + "raw": "\"hey\"", + "loneSurrogates": false } } ], @@ -8302,7 +8382,8 @@ "end": 7923 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -8314,7 +8395,8 @@ "end": 7938 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -8418,7 +8500,8 @@ "end": 8011 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -8474,7 +8557,8 @@ "end": 8042 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] @@ -8645,7 +8729,8 @@ "end": 8126 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } ], @@ -9076,7 +9161,8 @@ "end": 8499 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -9088,7 +9174,8 @@ "end": 8514 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -9192,7 +9279,8 @@ "end": 8587 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -9248,7 +9336,8 @@ "end": 8618 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] @@ -9419,7 +9508,8 @@ "end": 8702 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } ], @@ -9850,7 +9940,8 @@ "end": 9079 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -9862,7 +9953,8 @@ "end": 9094 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -9966,7 +10058,8 @@ "end": 9167 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -10022,7 +10115,8 @@ "end": 9198 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] @@ -10388,7 +10482,8 @@ "end": 9502 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -10400,7 +10495,8 @@ "end": 9517 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -10504,7 +10600,8 @@ "end": 9590 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -10560,7 +10657,8 @@ "end": 9621 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] @@ -10789,7 +10887,8 @@ "end": 9795 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -10801,7 +10900,8 @@ "end": 9810 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -10905,7 +11005,8 @@ "end": 9883 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -10961,7 +11062,8 @@ "end": 9914 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] @@ -11236,7 +11338,8 @@ "end": 10061 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } ], @@ -11550,7 +11653,8 @@ "end": 10333 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -11562,7 +11666,8 @@ "end": 10348 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -11666,7 +11771,8 @@ "end": 10421 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -11722,7 +11828,8 @@ "end": 10452 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] @@ -12055,7 +12162,8 @@ "end": 10702 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -12067,7 +12175,8 @@ "end": 10717 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -12171,7 +12280,8 @@ "end": 10790 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -12227,7 +12337,8 @@ "end": 10821 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] @@ -12515,7 +12626,8 @@ "end": 11010 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } ], @@ -12829,7 +12941,8 @@ "end": 11290 }, "value": "/users/:id", - "raw": "\"/users/:id\"" + "raw": "\"/users/:id\"", + "loneSurrogates": false } }, { @@ -12841,7 +12954,8 @@ "end": 11305 }, "value": "/users/:id/", - "raw": "\"/users/:id/\"" + "raw": "\"/users/:id/\"", + "loneSurrogates": false } } ] @@ -12945,7 +13059,8 @@ "end": 11378 }, "value": "Thor", - "raw": "\"Thor\"" + "raw": "\"Thor\"", + "loneSurrogates": false } } ] @@ -13001,7 +13116,8 @@ "end": 11409 }, "value": "Hulk", - "raw": "\"Hulk\"" + "raw": "\"Hulk\"", + "loneSurrogates": false } } ] diff --git a/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json index d813a49c7ae0..4f240ca0e25b 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-915/input.ts.json @@ -87,7 +87,8 @@ "end": 76 }, "value": "\r\n", - "raw": "\"\\r\\n\"" + "raw": "\"\\r\\n\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json index b35637f45df0..e2703d0ae8eb 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-944/input.ts.json @@ -61,7 +61,8 @@ "end": 39 }, "value": "key", - "raw": "\"key\"" + "raw": "\"key\"", + "loneSurrogates": false }, "right": { "type": "ObjectExpression", diff --git a/crates/swc_ecma_parser/tests/typescript/issue-9802/input.ts.json b/crates/swc_ecma_parser/tests/typescript/issue-9802/input.ts.json index cad7fb9ab74e..78e57bf8b194 100644 --- a/crates/swc_ecma_parser/tests/typescript/issue-9802/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/issue-9802/input.ts.json @@ -37,7 +37,8 @@ "end": 91 }, "value": "typia/lib/internal/_validateReport.js", - "raw": "\"typia/lib/internal/_validateReport.js\"" + "raw": "\"typia/lib/internal/_validateReport.js\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -75,7 +76,8 @@ "end": 118 }, "value": "typia", - "raw": "\"typia\"" + "raw": "\"typia\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -218,7 +220,8 @@ "end": 208 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", @@ -782,7 +785,8 @@ "end": 630 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false }, "right": { "type": "UnaryExpression", @@ -875,7 +879,8 @@ "end": 719 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -896,7 +901,8 @@ "end": 759 }, "value": "number", - "raw": "\"number\"" + "raw": "\"number\"", + "loneSurrogates": false } }, { @@ -956,7 +962,8 @@ "end": 830 }, "value": "$input", - "raw": "\"$input\"" + "raw": "\"$input\"", + "loneSurrogates": false } }, { @@ -1282,7 +1289,8 @@ "end": 321 }, "value": "typia", - "raw": "\"typia\"" + "raw": "\"typia\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1469,7 +1477,8 @@ "end": 1313 }, "value": "typia", - "raw": "\"typia\"" + "raw": "\"typia\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", @@ -1501,7 +1510,8 @@ "end": 1341 }, "value": "typia", - "raw": "\"typia\"" + "raw": "\"typia\"", + "loneSurrogates": false }, "qualifier": { "type": "Identifier", diff --git a/crates/swc_ecma_parser/tests/typescript/module-namespace/declare-shorthand/input.ts.json b/crates/swc_ecma_parser/tests/typescript/module-namespace/declare-shorthand/input.ts.json index 47c5219e6213..d08be6bfca12 100644 --- a/crates/swc_ecma_parser/tests/typescript/module-namespace/declare-shorthand/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/module-namespace/declare-shorthand/input.ts.json @@ -21,7 +21,8 @@ "end": 19 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false }, "body": null } diff --git a/crates/swc_ecma_parser/tests/typescript/module-namespace/global-in-module/input.ts.json b/crates/swc_ecma_parser/tests/typescript/module-namespace/global-in-module/input.ts.json index c6116386e0bb..a44f66fd21bb 100644 --- a/crates/swc_ecma_parser/tests/typescript/module-namespace/global-in-module/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/module-namespace/global-in-module/input.ts.json @@ -21,7 +21,8 @@ "end": 19 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/typescript/module-namespace/head-declare/input.ts.json b/crates/swc_ecma_parser/tests/typescript/module-namespace/head-declare/input.ts.json index 41061ce9374d..1d642dfc9702 100644 --- a/crates/swc_ecma_parser/tests/typescript/module-namespace/head-declare/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/module-namespace/head-declare/input.ts.json @@ -96,7 +96,8 @@ "end": 64 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/typescript/module-namespace/head/input.ts.json b/crates/swc_ecma_parser/tests/typescript/module-namespace/head/input.ts.json index 9d02c55b5ffb..e518c2e8f590 100644 --- a/crates/swc_ecma_parser/tests/typescript/module-namespace/head/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/module-namespace/head/input.ts.json @@ -143,7 +143,8 @@ "end": 57 }, "value": "m", - "raw": "\"m\"" + "raw": "\"m\"", + "loneSurrogates": false }, "body": { "type": "TsModuleBlock", diff --git a/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json b/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json index 951ad83b55e1..a4487956267c 100644 --- a/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json +++ b/crates/swc_ecma_parser/tests/typescript/mts/1.mts.json @@ -37,7 +37,8 @@ "end": 29 }, "value": "node:path", - "raw": "\"node:path\"" + "raw": "\"node:path\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -91,7 +92,8 @@ "end": 59 }, "value": "hello, world!", - "raw": "\"hello, world!\"" + "raw": "\"hello, world!\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json b/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json index c57ec922d7ac..4f705494a0f0 100644 --- a/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json +++ b/crates/swc_ecma_parser/tests/typescript/next/0001/input.tsx.json @@ -37,7 +37,8 @@ "end": 26 }, "value": "react", - "raw": "\"react\"" + "raw": "\"react\"", + "loneSurrogates": false }, "typeOnly": false, "with": null, @@ -122,7 +123,8 @@ "end": 83 }, "value": "something", - "raw": "\"something\"" + "raw": "\"something\"", + "loneSurrogates": false } } ], diff --git a/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json b/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json index 77ae320ac77c..f2b52d3ae8e4 100644 --- a/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json +++ b/crates/swc_ecma_parser/tests/typescript/next/stack-overflow/1/input.ts.json @@ -148,7 +148,8 @@ "end": 95 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -502,7 +503,8 @@ "end": 377 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -1047,7 +1049,8 @@ "end": 723 }, "value": ".cache", - "raw": "\".cache\"" + "raw": "\".cache\"", + "loneSurrogates": false } } ], @@ -1874,7 +1877,8 @@ "end": 1411 }, "value": "utf-8", - "raw": "\"utf-8\"" + "raw": "\"utf-8\"", + "loneSurrogates": false } } ], @@ -2655,7 +2659,8 @@ "end": 2004 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -2671,7 +2676,8 @@ "end": 2014 }, "value": "utf-8", - "raw": "\"utf-8\"" + "raw": "\"utf-8\"", + "loneSurrogates": false } } ], @@ -2780,7 +2786,8 @@ "end": 2122 }, "value": "Could not write cache file", - "raw": "\"Could not write cache file\"" + "raw": "\"Could not write cache file\"", + "loneSurrogates": false } }, { @@ -3438,7 +3445,8 @@ "end": 2622 }, "value": ".json", - "raw": "\".json\"" + "raw": "\".json\"", + "loneSurrogates": false } } ], @@ -3708,7 +3716,8 @@ "end": 2790 }, "value": "md5", - "raw": "\"md5\"" + "raw": "\"md5\"", + "loneSurrogates": false } } ], @@ -3759,7 +3768,8 @@ "end": 2814 }, "value": "hex", - "raw": "\"hex\"" + "raw": "\"hex\"", + "loneSurrogates": false } } ], @@ -3874,7 +3884,8 @@ "end": 2881 }, "value": ".json", - "raw": "\".json\"" + "raw": "\".json\"", + "loneSurrogates": false } } } @@ -4644,7 +4655,8 @@ "end": 3432 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -4681,7 +4693,8 @@ "end": 3463 }, "value": "", - "raw": "\">\"" + "raw": "\">\"", + "loneSurrogates": false } }, { @@ -5395,7 +5409,8 @@ "end": 3888 }, "value": "=", - "raw": "\"=\"" + "raw": "\"=\"", + "loneSurrogates": false } } ], @@ -5485,7 +5500,8 @@ "end": 3935 }, "value": "amp", - "raw": "\"amp\"" + "raw": "\"amp\"", + "loneSurrogates": false } } ], @@ -5533,7 +5549,8 @@ "end": 3956 }, "value": "⚡", - "raw": "\"⚡\"" + "raw": "\"⚡\"", + "loneSurrogates": false } } ], @@ -5610,7 +5627,8 @@ "end": 4028 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -5680,7 +5698,8 @@ "end": 4088 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -5961,7 +5980,8 @@ "end": 4250 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -6884,7 +6904,8 @@ "end": 4818 }, "value": "SUCCESS ", - "raw": "\"SUCCESS \"" + "raw": "\"SUCCESS \"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -7138,7 +7159,8 @@ "end": 4950 }, "value": "WARNING ", - "raw": "\"WARNING \"" + "raw": "\"WARNING \"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -7328,7 +7350,8 @@ "end": 5052 }, "value": "\n", - "raw": "\"\\n\"" + "raw": "\"\\n\"", + "loneSurrogates": false } } ], @@ -7459,7 +7482,8 @@ "end": 5123 }, "value": "ERROR ", - "raw": "\"ERROR \"" + "raw": "\"ERROR \"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -7554,7 +7578,8 @@ "end": 5175 }, "value": "\n", - "raw": "\"\\n\"" + "raw": "\"\\n\"", + "loneSurrogates": false } } ], @@ -7870,7 +7895,8 @@ "end": 5394 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } }, "right": { @@ -8186,7 +8212,8 @@ "end": 5624 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } }, "right": { @@ -8476,7 +8503,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8486,7 +8514,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8588,7 +8617,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8598,7 +8628,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8700,7 +8731,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8710,7 +8742,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8812,7 +8845,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8822,7 +8856,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -8924,7 +8959,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -8934,7 +8970,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -9080,7 +9117,8 @@ "end": 6323 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -10729,7 +10767,8 @@ "end": 7827 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -11861,7 +11900,8 @@ "end": 8597 }, "value": "cache-control", - "raw": "\"cache-control\"" + "raw": "\"cache-control\"", + "loneSurrogates": false } } ], @@ -12425,7 +12465,8 @@ "end": 8979 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -12946,7 +12987,8 @@ "end": 9526 }, "value": "mode strict", - "raw": "\"mode strict\"" + "raw": "\"mode strict\"", + "loneSurrogates": false } }, { @@ -13106,7 +13148,8 @@ "end": 9663 }, "value": "amp", - "raw": "\"amp\"" + "raw": "\"amp\"", + "loneSurrogates": false } }, { @@ -13118,7 +13161,8 @@ "end": 9670 }, "value": "⚡", - "raw": "\"⚡\"" + "raw": "\"⚡\"", + "loneSurrogates": false } }, { @@ -13130,7 +13174,8 @@ "end": 9681 }, "value": "⚡4ads", - "raw": "\"⚡4ads\"" + "raw": "\"⚡4ads\"", + "loneSurrogates": false } }, { @@ -13142,7 +13187,8 @@ "end": 9692 }, "value": "amp4ads", - "raw": "\"amp4ads\"" + "raw": "\"amp4ads\"", + "loneSurrogates": false } }, { @@ -13154,7 +13200,8 @@ "end": 9705 }, "value": "⚡4email", - "raw": "\"⚡4email\"" + "raw": "\"⚡4email\"", + "loneSurrogates": false } }, { @@ -13166,7 +13213,8 @@ "end": 9718 }, "value": "amp4email", - "raw": "\"amp4email\"" + "raw": "\"amp4email\"", + "loneSurrogates": false } } ] @@ -13189,7 +13237,8 @@ "end": 9781 }, "value": "https://cdn.ampproject.org", - "raw": "\"https://cdn.ampproject.org\"" + "raw": "\"https://cdn.ampproject.org\"", + "loneSurrogates": false } }, { @@ -13209,7 +13258,8 @@ "end": 9871 }, "value": "https://cdn.ampproject.org/v0/validator.json", - "raw": "\"https://cdn.ampproject.org/v0/validator.json\"" + "raw": "\"https://cdn.ampproject.org/v0/validator.json\"", + "loneSurrogates": false } }, { @@ -13238,7 +13288,8 @@ "end": 9908 }, "value": "AMP", - "raw": "\"AMP\"" + "raw": "\"AMP\"", + "loneSurrogates": false } }, { @@ -13250,7 +13301,8 @@ "end": 9921 }, "value": "AMP4EMAIL", - "raw": "\"AMP4EMAIL\"" + "raw": "\"AMP4EMAIL\"", + "loneSurrogates": false } }, { @@ -13262,7 +13314,8 @@ "end": 9932 }, "value": "AMP4ADS", - "raw": "\"AMP4ADS\"" + "raw": "\"AMP4ADS\"", + "loneSurrogates": false } } ] @@ -13285,7 +13338,8 @@ "end": 9982 }, "value": "/v0.css", - "raw": "\"/v0.css\"" + "raw": "\"/v0.css\"", + "loneSurrogates": false } }, { @@ -13360,7 +13414,8 @@ "end": 10043 }, "value": "/rtv/", - "raw": "\"/rtv/\"" + "raw": "\"/rtv/\"", + "loneSurrogates": false } }, "right": { @@ -13463,7 +13518,8 @@ "end": 10132 }, "value": "template", - "raw": "\"template\"" + "raw": "\"template\"", + "loneSurrogates": false } }, "consequent": { @@ -13552,7 +13608,8 @@ "end": 10240 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, "right": { @@ -13595,7 +13652,8 @@ "end": 10259 }, "value": "template", - "raw": "\"template\"" + "raw": "\"template\"", + "loneSurrogates": false } } ], @@ -13656,7 +13714,8 @@ "end": 10301 }, "value": "amp-mustache", - "raw": "\"amp-mustache\"" + "raw": "\"amp-mustache\"", + "loneSurrogates": false } } }, @@ -13918,7 +13977,8 @@ "end": 10578 }, "value": "custom-element", - "raw": "\"custom-element\"" + "raw": "\"custom-element\"", + "loneSurrogates": false } } }, @@ -13929,7 +13989,8 @@ "end": 10595 }, "value": "amp-story", - "raw": "\"amp-story\"" + "raw": "\"amp-story\"", + "loneSurrogates": false } } }, @@ -14083,7 +14144,8 @@ "end": 10840 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, "consequent": { @@ -14264,7 +14326,8 @@ "end": 11032 }, "value": "custom-element", - "raw": "\"custom-element\"" + "raw": "\"custom-element\"", + "loneSurrogates": false } } }, @@ -14312,7 +14375,8 @@ "end": 11064 }, "value": "custom-template", - "raw": "\"custom-template\"" + "raw": "\"custom-template\"", + "loneSurrogates": false } } } @@ -14324,7 +14388,8 @@ "end": 11071 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -14386,7 +14451,8 @@ "end": 11113 }, "value": "amp-", - "raw": "\"amp-\"" + "raw": "\"amp-\"", + "loneSurrogates": false } } ], @@ -14589,7 +14655,8 @@ "end": 11332 }, "value": "AddAmpLink", - "raw": "\"AddAmpLink\"" + "raw": "\"AddAmpLink\"", + "loneSurrogates": false } }, "consequent": { @@ -14662,7 +14729,8 @@ "end": 11409 }, "value": "AddBlurryImagePlaceholders", - "raw": "\"AddBlurryImagePlaceholders\"" + "raw": "\"AddBlurryImagePlaceholders\"", + "loneSurrogates": false } }, "consequent": { @@ -14735,7 +14803,8 @@ "end": 11476 }, "value": "AddMandatoryTags", - "raw": "\"AddMandatoryTags\"" + "raw": "\"AddMandatoryTags\"", + "loneSurrogates": false } }, "consequent": { @@ -14808,7 +14877,8 @@ "end": 11545 }, "value": "AddTransformedFlag", - "raw": "\"AddTransformedFlag\"" + "raw": "\"AddTransformedFlag\"", + "loneSurrogates": false } }, "consequent": { @@ -14881,7 +14951,8 @@ "end": 11621 }, "value": "AmpBoilerplateTransformer", - "raw": "\"AmpBoilerplateTransformer\"" + "raw": "\"AmpBoilerplateTransformer\"", + "loneSurrogates": false } }, "consequent": { @@ -14954,7 +15025,8 @@ "end": 11683 }, "value": "AmpScriptCsp", - "raw": "\"AmpScriptCsp\"" + "raw": "\"AmpScriptCsp\"", + "loneSurrogates": false } }, "consequent": { @@ -15027,7 +15099,8 @@ "end": 11755 }, "value": "ApplyCommonAttributes", - "raw": "\"ApplyCommonAttributes\"" + "raw": "\"ApplyCommonAttributes\"", + "loneSurrogates": false } }, "consequent": { @@ -15100,7 +15173,8 @@ "end": 11817 }, "value": "ApplyLayout", - "raw": "\"ApplyLayout\"" + "raw": "\"ApplyLayout\"", + "loneSurrogates": false } }, "consequent": { @@ -15173,7 +15247,8 @@ "end": 11889 }, "value": "AutoExtensionImporter", - "raw": "\"AutoExtensionImporter\"" + "raw": "\"AutoExtensionImporter\"", + "loneSurrogates": false } }, "consequent": { @@ -15246,7 +15321,8 @@ "end": 11961 }, "value": "GoogleFontsPreconnect", - "raw": "\"GoogleFontsPreconnect\"" + "raw": "\"GoogleFontsPreconnect\"", + "loneSurrogates": false } }, "consequent": { @@ -15319,7 +15395,8 @@ "end": 12020 }, "value": "Markdown", - "raw": "\"Markdown\"" + "raw": "\"Markdown\"", + "loneSurrogates": false } }, "consequent": { @@ -15392,7 +15469,8 @@ "end": 12081 }, "value": "MinifyHtml", - "raw": "\"MinifyHtml\"" + "raw": "\"MinifyHtml\"", + "loneSurrogates": false } }, "consequent": { @@ -15465,7 +15543,8 @@ "end": 12146 }, "value": "OptimizeImages", - "raw": "\"OptimizeImages\"" + "raw": "\"OptimizeImages\"", + "loneSurrogates": false } }, "consequent": { @@ -15538,7 +15617,8 @@ "end": 12213 }, "value": "PreloadHeroImage", - "raw": "\"PreloadHeroImage\"" + "raw": "\"PreloadHeroImage\"", + "loneSurrogates": false } }, "consequent": { @@ -15611,7 +15691,8 @@ "end": 12277 }, "value": "PreloadImages", - "raw": "\"PreloadImages\"" + "raw": "\"PreloadImages\"", + "loneSurrogates": false } }, "consequent": { @@ -15684,7 +15765,8 @@ "end": 12355 }, "value": "PruneDuplicateResourceHints", - "raw": "\"PruneDuplicateResourceHints\"" + "raw": "\"PruneDuplicateResourceHints\"", + "loneSurrogates": false } }, "consequent": { @@ -15757,7 +15839,8 @@ "end": 12424 }, "value": "RemoveAmpAttribute", - "raw": "\"RemoveAmpAttribute\"" + "raw": "\"RemoveAmpAttribute\"", + "loneSurrogates": false } }, "consequent": { @@ -15830,7 +15913,8 @@ "end": 12489 }, "value": "RemoveCspNonce", - "raw": "\"RemoveCspNonce\"" + "raw": "\"RemoveCspNonce\"", + "loneSurrogates": false } }, "consequent": { @@ -15903,7 +15987,8 @@ "end": 12562 }, "value": "ReorderHeadTransformer", - "raw": "\"ReorderHeadTransformer\"" + "raw": "\"ReorderHeadTransformer\"", + "loneSurrogates": false } }, "consequent": { @@ -15976,7 +16061,8 @@ "end": 12626 }, "value": "RewriteAmpUrls", - "raw": "\"RewriteAmpUrls\"" + "raw": "\"RewriteAmpUrls\"", + "loneSurrogates": false } }, "consequent": { @@ -16049,7 +16135,8 @@ "end": 12694 }, "value": "SeparateKeyframes", - "raw": "\"SeparateKeyframes\"" + "raw": "\"SeparateKeyframes\"", + "loneSurrogates": false } }, "consequent": { @@ -16122,7 +16209,8 @@ "end": 12764 }, "value": "ServerSideRendering", - "raw": "\"ServerSideRendering\"" + "raw": "\"ServerSideRendering\"", + "loneSurrogates": false } }, "consequent": { @@ -16208,7 +16296,8 @@ "end": 12818 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -16574,7 +16663,8 @@ "end": 13014 }, "value": "AddMandatoryTags", - "raw": "\"AddMandatoryTags\"" + "raw": "\"AddMandatoryTags\"", + "loneSurrogates": false } }, { @@ -16586,7 +16676,8 @@ "end": 13026 }, "value": "Markdown", - "raw": "\"Markdown\"" + "raw": "\"Markdown\"", + "loneSurrogates": false } }, { @@ -16598,7 +16689,8 @@ "end": 13051 }, "value": "AutoExtensionImporter", - "raw": "\"AutoExtensionImporter\"" + "raw": "\"AutoExtensionImporter\"", + "loneSurrogates": false } }, { @@ -16610,7 +16702,8 @@ "end": 13069 }, "value": "OptimizeImages", - "raw": "\"OptimizeImages\"" + "raw": "\"OptimizeImages\"", + "loneSurrogates": false } }, { @@ -16622,7 +16715,8 @@ "end": 13089 }, "value": "PreloadHeroImage", - "raw": "\"PreloadHeroImage\"" + "raw": "\"PreloadHeroImage\"", + "loneSurrogates": false } }, { @@ -16634,7 +16728,8 @@ "end": 13112 }, "value": "ServerSideRendering", - "raw": "\"ServerSideRendering\"" + "raw": "\"ServerSideRendering\"", + "loneSurrogates": false } }, { @@ -16646,7 +16741,8 @@ "end": 13141 }, "value": "AmpBoilerplateTransformer", - "raw": "\"AmpBoilerplateTransformer\"" + "raw": "\"AmpBoilerplateTransformer\"", + "loneSurrogates": false } }, { @@ -16658,7 +16754,8 @@ "end": 13167 }, "value": "ReorderHeadTransformer", - "raw": "\"ReorderHeadTransformer\"" + "raw": "\"ReorderHeadTransformer\"", + "loneSurrogates": false } }, { @@ -16670,7 +16767,8 @@ "end": 13185 }, "value": "RewriteAmpUrls", - "raw": "\"RewriteAmpUrls\"" + "raw": "\"RewriteAmpUrls\"", + "loneSurrogates": false } }, { @@ -16682,7 +16780,8 @@ "end": 13210 }, "value": "GoogleFontsPreconnect", - "raw": "\"GoogleFontsPreconnect\"" + "raw": "\"GoogleFontsPreconnect\"", + "loneSurrogates": false } }, { @@ -16694,7 +16793,8 @@ "end": 13241 }, "value": "PruneDuplicateResourceHints", - "raw": "\"PruneDuplicateResourceHints\"" + "raw": "\"PruneDuplicateResourceHints\"", + "loneSurrogates": false } }, { @@ -16706,7 +16806,8 @@ "end": 13262 }, "value": "SeparateKeyframes", - "raw": "\"SeparateKeyframes\"" + "raw": "\"SeparateKeyframes\"", + "loneSurrogates": false } }, { @@ -16718,7 +16819,8 @@ "end": 13284 }, "value": "AddTransformedFlag", - "raw": "\"AddTransformedFlag\"" + "raw": "\"AddTransformedFlag\"", + "loneSurrogates": false } }, { @@ -16730,7 +16832,8 @@ "end": 13298 }, "value": "MinifyHtml", - "raw": "\"MinifyHtml\"" + "raw": "\"MinifyHtml\"", + "loneSurrogates": false } }, { @@ -16742,7 +16845,8 @@ "end": 13314 }, "value": "AmpScriptCsp", - "raw": "\"AmpScriptCsp\"" + "raw": "\"AmpScriptCsp\"", + "loneSurrogates": false } } ] @@ -16794,7 +16898,8 @@ "end": 13363 }, "value": "AutoExtensionImporter", - "raw": "\"AutoExtensionImporter\"" + "raw": "\"AutoExtensionImporter\"", + "loneSurrogates": false } }, { @@ -16806,7 +16911,8 @@ "end": 13377 }, "value": "AddAmpLink", - "raw": "\"AddAmpLink\"" + "raw": "\"AddAmpLink\"", + "loneSurrogates": false } }, { @@ -16818,7 +16924,8 @@ "end": 13395 }, "value": "OptimizeImages", - "raw": "\"OptimizeImages\"" + "raw": "\"OptimizeImages\"", + "loneSurrogates": false } }, { @@ -16830,7 +16937,8 @@ "end": 13415 }, "value": "PreloadHeroImage", - "raw": "\"PreloadHeroImage\"" + "raw": "\"PreloadHeroImage\"", + "loneSurrogates": false } }, { @@ -16842,7 +16950,8 @@ "end": 13438 }, "value": "ServerSideRendering", - "raw": "\"ServerSideRendering\"" + "raw": "\"ServerSideRendering\"", + "loneSurrogates": false } }, { @@ -16854,7 +16963,8 @@ "end": 13460 }, "value": "RemoveAmpAttribute", - "raw": "\"RemoveAmpAttribute\"" + "raw": "\"RemoveAmpAttribute\"", + "loneSurrogates": false } }, { @@ -16866,7 +16976,8 @@ "end": 13489 }, "value": "AmpBoilerplateTransformer", - "raw": "\"AmpBoilerplateTransformer\"" + "raw": "\"AmpBoilerplateTransformer\"", + "loneSurrogates": false } }, { @@ -16878,7 +16989,8 @@ "end": 13515 }, "value": "ReorderHeadTransformer", - "raw": "\"ReorderHeadTransformer\"" + "raw": "\"ReorderHeadTransformer\"", + "loneSurrogates": false } }, { @@ -16890,7 +17002,8 @@ "end": 13533 }, "value": "RewriteAmpUrls", - "raw": "\"RewriteAmpUrls\"" + "raw": "\"RewriteAmpUrls\"", + "loneSurrogates": false } }, { @@ -16902,7 +17015,8 @@ "end": 13558 }, "value": "GoogleFontsPreconnect", - "raw": "\"GoogleFontsPreconnect\"" + "raw": "\"GoogleFontsPreconnect\"", + "loneSurrogates": false } }, { @@ -16914,7 +17028,8 @@ "end": 13589 }, "value": "PruneDuplicateResourceHints", - "raw": "\"PruneDuplicateResourceHints\"" + "raw": "\"PruneDuplicateResourceHints\"", + "loneSurrogates": false } }, { @@ -16926,7 +17041,8 @@ "end": 13619 }, "value": "AddBlurryImagePlaceholders", - "raw": "\"AddBlurryImagePlaceholders\"" + "raw": "\"AddBlurryImagePlaceholders\"", + "loneSurrogates": false } }, { @@ -16938,7 +17054,8 @@ "end": 13640 }, "value": "SeparateKeyframes", - "raw": "\"SeparateKeyframes\"" + "raw": "\"SeparateKeyframes\"", + "loneSurrogates": false } }, { @@ -16950,7 +17067,8 @@ "end": 13662 }, "value": "AddTransformedFlag", - "raw": "\"AddTransformedFlag\"" + "raw": "\"AddTransformedFlag\"", + "loneSurrogates": false } }, { @@ -16962,7 +17080,8 @@ "end": 13676 }, "value": "MinifyHtml", - "raw": "\"MinifyHtml\"" + "raw": "\"MinifyHtml\"", + "loneSurrogates": false } }, { @@ -16974,7 +17093,8 @@ "end": 13692 }, "value": "AmpScriptCsp", - "raw": "\"AmpScriptCsp\"" + "raw": "\"AmpScriptCsp\"", + "loneSurrogates": false } } ] @@ -18806,7 +18926,8 @@ "end": 15128 }, "value": "string", - "raw": "\"string\"" + "raw": "\"string\"", + "loneSurrogates": false } }, "consequent": { @@ -19150,7 +19271,8 @@ "end": 15578 }, "value": "mode strict", - "raw": "\"mode strict\"" + "raw": "\"mode strict\"", + "loneSurrogates": false } }, { @@ -19291,7 +19413,8 @@ "end": 15710 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, "consequent": { @@ -19392,7 +19515,8 @@ "end": 15829 }, "value": "custom-element", - "raw": "\"custom-element\"" + "raw": "\"custom-element\"", + "loneSurrogates": false } } }, @@ -19444,7 +19568,8 @@ "end": 15890 }, "value": "amp-dynamic-css-classes", - "raw": "\"amp-dynamic-css-classes\"" + "raw": "\"amp-dynamic-css-classes\"", + "loneSurrogates": false } }, "right": { @@ -19471,7 +19596,8 @@ "end": 15916 }, "value": "amp-experiment", - "raw": "\"amp-experiment\"" + "raw": "\"amp-experiment\"", + "loneSurrogates": false } } }, @@ -19499,7 +19625,8 @@ "end": 15937 }, "value": "amp-story", - "raw": "\"amp-story\"" + "raw": "\"amp-story\"", + "loneSurrogates": false } } } @@ -19655,7 +19782,8 @@ "end": 16072 }, "value": "amp-", - "raw": "\"amp-\"" + "raw": "\"amp-\"", + "loneSurrogates": false } } ], @@ -19735,7 +19863,8 @@ "end": 16161 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -19977,7 +20106,8 @@ "end": 16327 }, "value": "meta", - "raw": "\"meta\"" + "raw": "\"meta\"", + "loneSurrogates": false } }, "right": { @@ -20034,7 +20164,8 @@ "end": 16360 }, "value": "viewport", - "raw": "\"viewport\"" + "raw": "\"viewport\"", + "loneSurrogates": false } } }, @@ -20450,7 +20581,8 @@ "end": 16902 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -23642,7 +23774,8 @@ "end": 19344 }, "value": "text", - "raw": "\"text\"" + "raw": "\"text\"", + "loneSurrogates": false } }, { @@ -23827,7 +23960,8 @@ "end": 19484 }, "value": "directive", - "raw": "\"directive\"" + "raw": "\"directive\"", + "loneSurrogates": false } }, { @@ -23839,7 +23973,8 @@ "end": 19501 }, "value": "!doctype html", - "raw": "\"!doctype html\"" + "raw": "\"!doctype html\"", + "loneSurrogates": false } } ], @@ -24238,7 +24373,8 @@ "end": 20126 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -24284,7 +24420,8 @@ "end": 20155 }, "value": "px", - "raw": "\"px\"" + "raw": "\"px\"", + "loneSurrogates": false } }, { @@ -24296,7 +24433,8 @@ "end": 20161 }, "value": "em", - "raw": "\"em\"" + "raw": "\"em\"", + "loneSurrogates": false } }, { @@ -24308,7 +24446,8 @@ "end": 20168 }, "value": "rem", - "raw": "\"rem\"" + "raw": "\"rem\"", + "loneSurrogates": false } }, { @@ -24320,7 +24459,8 @@ "end": 20174 }, "value": "vh", - "raw": "\"vh\"" + "raw": "\"vh\"", + "loneSurrogates": false } }, { @@ -24332,7 +24472,8 @@ "end": 20180 }, "value": "vw", - "raw": "\"vw\"" + "raw": "\"vw\"", + "loneSurrogates": false } }, { @@ -24344,7 +24485,8 @@ "end": 20188 }, "value": "vmin", - "raw": "\"vmin\"" + "raw": "\"vmin\"", + "loneSurrogates": false } }, { @@ -24356,7 +24498,8 @@ "end": 20196 }, "value": "vmax", - "raw": "\"vmax\"" + "raw": "\"vmax\"", + "loneSurrogates": false } } ] @@ -24408,7 +24551,8 @@ "end": 20233 }, "value": "nodisplay", - "raw": "\"nodisplay\"" + "raw": "\"nodisplay\"", + "loneSurrogates": false } }, { @@ -24420,7 +24564,8 @@ "end": 20242 }, "value": "fixed", - "raw": "\"fixed\"" + "raw": "\"fixed\"", + "loneSurrogates": false } }, { @@ -24432,7 +24577,8 @@ "end": 20256 }, "value": "responsive", - "raw": "\"responsive\"" + "raw": "\"responsive\"", + "loneSurrogates": false } }, { @@ -24444,7 +24590,8 @@ "end": 20272 }, "value": "fixed-height", - "raw": "\"fixed-height\"" + "raw": "\"fixed-height\"", + "loneSurrogates": false } }, { @@ -24456,7 +24603,8 @@ "end": 20280 }, "value": "fill", - "raw": "\"fill\"" + "raw": "\"fill\"", + "loneSurrogates": false } }, { @@ -24468,7 +24616,8 @@ "end": 20293 }, "value": "container", - "raw": "\"container\"" + "raw": "\"container\"", + "loneSurrogates": false } }, { @@ -24480,7 +24629,8 @@ "end": 20306 }, "value": "flex-item", - "raw": "\"flex-item\"" + "raw": "\"flex-item\"", + "loneSurrogates": false } }, { @@ -24492,7 +24642,8 @@ "end": 20315 }, "value": "fluid", - "raw": "\"fluid\"" + "raw": "\"fluid\"", + "loneSurrogates": false } }, { @@ -24504,7 +24655,8 @@ "end": 20328 }, "value": "intrinsic", - "raw": "\"intrinsic\"" + "raw": "\"intrinsic\"", + "loneSurrogates": false } } ] @@ -24556,7 +24708,8 @@ "end": 20361 }, "value": "fixed", - "raw": "\"fixed\"" + "raw": "\"fixed\"", + "loneSurrogates": false } }, { @@ -24568,7 +24721,8 @@ "end": 20377 }, "value": "fixed-height", - "raw": "\"fixed-height\"" + "raw": "\"fixed-height\"", + "loneSurrogates": false } }, { @@ -24580,7 +24734,8 @@ "end": 20391 }, "value": "responsive", - "raw": "\"responsive\"" + "raw": "\"responsive\"", + "loneSurrogates": false } }, { @@ -24592,7 +24747,8 @@ "end": 20399 }, "value": "fill", - "raw": "\"fill\"" + "raw": "\"fill\"", + "loneSurrogates": false } }, { @@ -24604,7 +24760,8 @@ "end": 20412 }, "value": "flex-item", - "raw": "\"flex-item\"" + "raw": "\"flex-item\"", + "loneSurrogates": false } }, { @@ -24616,7 +24773,8 @@ "end": 20425 }, "value": "intrinsic", - "raw": "\"intrinsic\"" + "raw": "\"intrinsic\"", + "loneSurrogates": false } } ] @@ -24679,7 +24837,8 @@ "end": 20463 }, "value": "1", - "raw": "\"1\"" + "raw": "\"1\"", + "loneSurrogates": false } }, { @@ -24765,7 +24924,8 @@ "end": 20518 }, "value": "auto", - "raw": "\"auto\"" + "raw": "\"auto\"", + "loneSurrogates": false } }, { @@ -24851,7 +25011,8 @@ "end": 20572 }, "value": "44px", - "raw": "\"44px\"" + "raw": "\"44px\"", + "loneSurrogates": false } }, { @@ -24937,7 +25098,8 @@ "end": 20627 }, "value": "60px", - "raw": "\"60px\"" + "raw": "\"60px\"", + "loneSurrogates": false } }, { @@ -25090,7 +25252,8 @@ "end": 20801 }, "value": "i-amphtml-layout-", - "raw": "\"i-amphtml-layout-\"" + "raw": "\"i-amphtml-layout-\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -25254,7 +25417,8 @@ "end": 20898 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "right": { @@ -25281,7 +25445,8 @@ "end": 20915 }, "value": "fixed", - "raw": "\"fixed\"" + "raw": "\"fixed\"", + "loneSurrogates": false } } }, @@ -25309,7 +25474,8 @@ "end": 20939 }, "value": "fixed-height", - "raw": "\"fixed-height\"" + "raw": "\"fixed-height\"", + "loneSurrogates": false } } } @@ -25386,7 +25552,8 @@ "end": 21033 }, "value": "amp-analytics", - "raw": "\"amp-analytics\"" + "raw": "\"amp-analytics\"", + "loneSurrogates": false }, "consequent": [ { @@ -25421,7 +25588,8 @@ "end": 21113 }, "value": "amp-audio", - "raw": "\"amp-audio\"" + "raw": "\"amp-audio\"", + "loneSurrogates": false }, "consequent": [ { @@ -25456,7 +25624,8 @@ "end": 21193 }, "value": "amp-pixel", - "raw": "\"amp-pixel\"" + "raw": "\"amp-pixel\"", + "loneSurrogates": false }, "consequent": [ { @@ -25491,7 +25660,8 @@ "end": 21280 }, "value": "amp-social-share", - "raw": "\"amp-social-share\"" + "raw": "\"amp-social-share\"", + "loneSurrogates": false }, "consequent": [ { @@ -25688,7 +25858,8 @@ "end": 21509 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "right": { @@ -25715,7 +25886,8 @@ "end": 21526 }, "value": "fixed", - "raw": "\"fixed\"" + "raw": "\"fixed\"", + "loneSurrogates": false } } } @@ -25792,7 +25964,8 @@ "end": 21620 }, "value": "amp-analytics", - "raw": "\"amp-analytics\"" + "raw": "\"amp-analytics\"", + "loneSurrogates": false }, "consequent": [ { @@ -25827,7 +26000,8 @@ "end": 21700 }, "value": "amp-audio", - "raw": "\"amp-audio\"" + "raw": "\"amp-audio\"", + "loneSurrogates": false }, "consequent": [ { @@ -25862,7 +26036,8 @@ "end": 21780 }, "value": "amp-pixel", - "raw": "\"amp-pixel\"" + "raw": "\"amp-pixel\"", + "loneSurrogates": false }, "consequent": [ { @@ -25897,7 +26072,8 @@ "end": 21867 }, "value": "amp-social-share", - "raw": "\"amp-social-share\"" + "raw": "\"amp-social-share\"", + "loneSurrogates": false }, "consequent": [ { @@ -26221,7 +26397,8 @@ "end": 22230 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -26300,7 +26477,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -26310,7 +26488,8 @@ }, "tail": true, "cooked": ":auto;", - "raw": ":auto;" + "raw": ":auto;", + "loneSurrogates": false } ] } @@ -26402,7 +26581,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -26412,7 +26592,8 @@ }, "tail": false, "cooked": ":", - "raw": ":" + "raw": ":", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -26422,7 +26603,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -26432,7 +26614,8 @@ }, "tail": true, "cooked": ";", - "raw": ";" + "raw": ";", + "loneSurrogates": false } ] } @@ -26537,7 +26720,8 @@ "end": 22500 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -26727,7 +26911,8 @@ "end": 22669 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -26891,7 +27076,8 @@ "end": 22767 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { @@ -27024,7 +27210,8 @@ "end": 22900 }, "value": "container", - "raw": "\"container\"" + "raw": "\"container\"", + "loneSurrogates": false } } ] @@ -27164,7 +27351,8 @@ "end": 23017 }, "value": "fixed-height", - "raw": "\"fixed-height\"" + "raw": "\"fixed-height\"", + "loneSurrogates": false } } ] @@ -27299,7 +27487,8 @@ "end": 23129 }, "value": "responsive", - "raw": "\"responsive\"" + "raw": "\"responsive\"", + "loneSurrogates": false } } ] @@ -27319,7 +27508,8 @@ "end": 23178 }, "value": "fixed", - "raw": "\"fixed\"" + "raw": "\"fixed\"", + "loneSurrogates": false } } ] @@ -27608,7 +27798,8 @@ "end": 23492 }, "value": "px", - "raw": "\"px\"" + "raw": "\"px\"", + "loneSurrogates": false } } ] @@ -27803,7 +27994,8 @@ "end": 23695 }, "value": "auto", - "raw": "\"auto\"" + "raw": "\"auto\"", + "loneSurrogates": false } }, "consequent": { @@ -27963,7 +28155,8 @@ "end": 23851 }, "value": "fluid", - "raw": "\"fluid\"" + "raw": "\"fluid\"", + "loneSurrogates": false } }, "consequent": { @@ -28467,7 +28660,8 @@ "end": 24241 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { @@ -28523,7 +28717,8 @@ "end": 24278 }, "value": "px", - "raw": "\"px\"" + "raw": "\"px\"", + "loneSurrogates": false } } }, @@ -28851,7 +29046,8 @@ "end": 24638 }, "value": "i-amphtml-layout-size-defined", - "raw": "\"i-amphtml-layout-size-defined\"" + "raw": "\"i-amphtml-layout-size-defined\"", + "loneSurrogates": false } } ] @@ -29181,7 +29377,8 @@ "end": 25214 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -29405,7 +29602,8 @@ "end": 25391 }, "value": "https://example.com", - "raw": "\"https://example.com\"" + "raw": "\"https://example.com\"", + "loneSurrogates": false }, "definite": false } @@ -29478,7 +29676,8 @@ "end": 25460 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -29529,7 +29728,8 @@ "end": 25511 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -30672,7 +30872,8 @@ "end": 26605 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -31041,7 +31242,8 @@ "end": 27045 }, "value": "lts flag is not compatible with runtime version parameter", - "raw": "\"lts flag is not compatible with runtime version parameter\"" + "raw": "\"lts flag is not compatible with runtime version parameter\"", + "loneSurrogates": false } } ], @@ -31130,7 +31332,8 @@ "end": 27104 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -31310,7 +31513,8 @@ "end": 27232 }, "value": "/lts", - "raw": "\"/lts\"" + "raw": "\"/lts\"", + "loneSurrogates": false } } } @@ -31495,7 +31699,8 @@ "end": 27439 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -31857,7 +32062,8 @@ "end": 27735 }, "value": "default", - "raw": "\"default\"" + "raw": "\"default\"", + "loneSurrogates": false } } }, @@ -32382,7 +32588,8 @@ "end": 28231 }, "value": "root", - "raw": "\"root\"" + "raw": "\"root\"", + "loneSurrogates": false } }, { @@ -33104,7 +33311,8 @@ "end": 28808 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -33241,7 +33449,8 @@ "end": 28937 }, "value": "https://example.com", - "raw": "\"https://example.com\"" + "raw": "\"https://example.com\"", + "loneSurrogates": false } } ], @@ -33275,7 +33484,8 @@ "end": 28965 }, "value": "http", - "raw": "\"http\"" + "raw": "\"http\"", + "loneSurrogates": false } } ], @@ -33492,7 +33702,8 @@ "end": 29222 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -33848,7 +34059,8 @@ "end": 29463 }, "value": ".cache", - "raw": "\".cache\"" + "raw": "\".cache\"", + "loneSurrogates": false } } } @@ -33994,7 +34206,8 @@ "end": 29570 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -34489,7 +34702,8 @@ "end": 30063 }, "value": "fs", - "raw": "\"fs\"" + "raw": "\"fs\"", + "loneSurrogates": false } } ], @@ -34537,7 +34751,8 @@ "end": 30134 }, "value": "No access to the file system", - "raw": "\"No access to the file system\"" + "raw": "\"No access to the file system\"", + "loneSurrogates": false } } ], @@ -34723,7 +34938,8 @@ "end": 30291 }, "value": "Could not resolve file: ", - "raw": "\"Could not resolve file: \"" + "raw": "\"Could not resolve file: \"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -34961,7 +35177,8 @@ "end": 30484 }, "value": "probe-image-size", - "raw": "\"probe-image-size\"" + "raw": "\"probe-image-size\"", + "loneSurrogates": false } } ], @@ -35009,7 +35226,8 @@ "end": 30572 }, "value": "Missing optional dependency: probe-image-size", - "raw": "\"Missing optional dependency: probe-image-size\"" + "raw": "\"Missing optional dependency: probe-image-size\"", + "loneSurrogates": false } } ], @@ -35285,7 +35503,8 @@ "end": 30954 }, "value": "mode strict", - "raw": "\"mode strict\"" + "raw": "\"mode strict\"", + "loneSurrogates": false } }, { @@ -35624,7 +35843,8 @@ "end": 31303 }, "value": "validator-rules", - "raw": "\"validator-rules\"" + "raw": "\"validator-rules\"", + "loneSurrogates": false }, "definite": false } @@ -36649,7 +36869,8 @@ "end": 32048 }, "value": "Could not fetch validator rules", - "raw": "\"Could not fetch validator rules\"" + "raw": "\"Could not fetch validator rules\"", + "loneSurrogates": false } }, { @@ -36904,7 +37125,8 @@ "end": 32310 }, "value": "validator-rules", - "raw": "\"validator-rules\"" + "raw": "\"validator-rules\"", + "loneSurrogates": false } } ], @@ -37109,7 +37331,8 @@ "end": 32482 }, "value": "Downloaded AMP validation rules", - "raw": "\"Downloaded AMP validation rules\"" + "raw": "\"Downloaded AMP validation rules\"", + "loneSurrogates": false } } ], @@ -37995,7 +38218,8 @@ "end": 33285 }, "value": "Could not fetch AMP runtime CSS", - "raw": "\"Could not fetch AMP runtime CSS\"" + "raw": "\"Could not fetch AMP runtime CSS\"", + "loneSurrogates": false } }, { @@ -38553,7 +38777,8 @@ "end": 33775 }, "value": "`ampRuntimeVersion` and `lts` cannot be defined at the same time. Using LTS version.", - "raw": "\"`ampRuntimeVersion` and `lts` cannot be defined at the same time. Using LTS version.\"" + "raw": "\"`ampRuntimeVersion` and `lts` cannot be defined at the same time. Using LTS version.\"", + "loneSurrogates": false } } ], @@ -38591,7 +38816,8 @@ "end": 33804 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -38864,7 +39090,8 @@ "end": 34160 }, "value": "Could not fetch latest AMP runtime version", - "raw": "\"Could not fetch latest AMP runtime version\"" + "raw": "\"Could not fetch latest AMP runtime version\"", + "loneSurrogates": false } }, { @@ -39161,7 +39388,8 @@ "end": 34435 }, "value": "-", - "raw": "\"-\"" + "raw": "\"-\"", + "loneSurrogates": false } }, "right": { @@ -39478,7 +39706,8 @@ "end": 34637 }, "value": "Downloaded AMP runtime v", - "raw": "\"Downloaded AMP runtime v\"" + "raw": "\"Downloaded AMP runtime v\"", + "loneSurrogates": false }, "right": { "type": "MemberExpression", @@ -40312,7 +40541,8 @@ }, "tail": false, "cooked": "Could not download runtime version from ", - "raw": "Could not download runtime version from " + "raw": "Could not download runtime version from ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -40322,7 +40552,8 @@ }, "tail": false, "cooked": ". Falling back to ", - "raw": ". Falling back to " + "raw": ". Falling back to ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -40332,7 +40563,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -40883,7 +41115,8 @@ }, "tail": false, "cooked": "AMP runtime styles cannot be fetched from relative ampUrlPrefix, please use the 'ampRuntimeStyles' parameter to provide the correct runtime style. Falling back to latest v0.css on ", - "raw": "AMP runtime styles cannot be fetched from relative ampUrlPrefix, please use the 'ampRuntimeStyles' parameter to provide the correct runtime style. Falling back to latest v0.css on " + "raw": "AMP runtime styles cannot be fetched from relative ampUrlPrefix, please use the 'ampRuntimeStyles' parameter to provide the correct runtime style. Falling back to latest v0.css on ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -40893,7 +41126,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -41357,7 +41591,8 @@ }, "tail": false, "cooked": "Could not download ", - "raw": "Could not download " + "raw": "Could not download ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -41367,7 +41602,8 @@ }, "tail": true, "cooked": ". Falling back to latest v0.css.", - "raw": ". Falling back to latest v0.css." + "raw": ". Falling back to latest v0.css.", + "loneSurrogates": false } ] } @@ -41555,7 +41791,8 @@ "end": 36611 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -42136,7 +42373,8 @@ "end": 37129 }, "value": "i-amphtml-ssr", - "raw": "\"i-amphtml-ssr\"" + "raw": "\"i-amphtml-ssr\"", + "loneSurrogates": false } } ], @@ -42191,7 +42429,8 @@ }, "tail": true, "cooked": "amp-img[i-amphtml-ssr]:not(.i-amphtml-element):not([layout=container])>*{display: block;}", - "raw": "amp-img[i-amphtml-ssr]:not(.i-amphtml-element):not([layout=container])>*{display: block;}" + "raw": "amp-img[i-amphtml-ssr]:not(.i-amphtml-element):not([layout=container])>*{display: block;}", + "loneSurrogates": false } ] } @@ -42284,7 +42523,8 @@ }, "tail": false, "cooked": "Downloaded AMP runtime styles from ", - "raw": "Downloaded AMP runtime styles from " + "raw": "Downloaded AMP runtime styles from ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -42294,7 +42534,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -42771,7 +43012,8 @@ "end": 37858 }, "value": "&", - "raw": "\"&\"" + "raw": "\"&\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -42780,7 +43022,8 @@ "end": 37869 }, "value": "\\u0026", - "raw": "\"\\\\u0026\"" + "raw": "\"\\\\u0026\"", + "loneSurrogates": false } }, { @@ -42792,7 +43035,8 @@ "end": 37890 }, "value": ">", - "raw": "\">\"" + "raw": "\">\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -42801,7 +43045,8 @@ "end": 37901 }, "value": "\\u003e", - "raw": "\"\\\\u003e\"" + "raw": "\"\\\\u003e\"", + "loneSurrogates": false } }, { @@ -42813,7 +43058,8 @@ "end": 37922 }, "value": "<", - "raw": "\"<\"" + "raw": "\"<\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -42822,7 +43068,8 @@ "end": 37933 }, "value": "\\u003c", - "raw": "\"\\\\u003c\"" + "raw": "\"\\\\u003c\"", + "loneSurrogates": false } }, { @@ -42834,7 +43081,8 @@ "end": 37959 }, "value": "
", - "raw": "\"\\u2028\"" + "raw": "\"\\u2028\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -42843,7 +43091,8 @@ "end": 37970 }, "value": "\\u2028", - "raw": "\"\\\\u2028\"" + "raw": "\"\\\\u2028\"", + "loneSurrogates": false } }, { @@ -42855,7 +43104,8 @@ "end": 37996 }, "value": "
", - "raw": "\"\\u2029\"" + "raw": "\"\\u2029\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -42864,7 +43114,8 @@ "end": 38007 }, "value": "\\u2029", - "raw": "\"\\\\u2029\"" + "raw": "\"\\\\u2029\"", + "loneSurrogates": false } } ] @@ -43498,7 +43749,8 @@ "end": 38568 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -43667,7 +43919,8 @@ "end": 38683 }, "value": "AMP Optimizer", - "raw": "\"AMP Optimizer\"" + "raw": "\"AMP Optimizer\"", + "loneSurrogates": false } } ], @@ -43735,7 +43988,8 @@ "end": 38741 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -43908,7 +44162,8 @@ "end": 38883 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -44621,7 +44876,8 @@ }, "tail": false, "cooked": "Invalid sizes definition '", - "raw": "Invalid sizes definition '" + "raw": "Invalid sizes definition '", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -44631,7 +44887,8 @@ }, "tail": true, "cooked": "'", - "raw": "'" + "raw": "'", + "loneSurrogates": false } ] } @@ -44767,7 +45024,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -44777,7 +45035,8 @@ }, "tail": true, "cooked": ")", - "raw": ")" + "raw": ")", + "loneSurrogates": false } ] } @@ -44999,7 +45258,8 @@ "end": 39810 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -45337,7 +45597,8 @@ "end": 40107 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } } ], @@ -45448,7 +45709,8 @@ "end": 40187 }, "value": "head", - "raw": "\"head\"" + "raw": "\"head\"", + "loneSurrogates": false } } ], @@ -45546,7 +45808,8 @@ "end": 40264 }, "value": "link", - "raw": "\"link\"" + "raw": "\"link\"", + "loneSurrogates": false } }, { @@ -45575,7 +45838,8 @@ "end": 40306 }, "value": "amphtml", - "raw": "\"amphtml\"" + "raw": "\"amphtml\"", + "loneSurrogates": false } }, { @@ -46481,7 +46745,8 @@ "end": 41042 }, "value": "#", - "raw": "\"#\"" + "raw": "\"#\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -46490,7 +46755,8 @@ "end": 41049 }, "value": "%23", - "raw": "\"%23\"" + "raw": "\"%23\"", + "loneSurrogates": false } }, { @@ -46502,7 +46768,8 @@ "end": 41070 }, "value": "%", - "raw": "\"%\"" + "raw": "\"%\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -46511,7 +46778,8 @@ "end": 41077 }, "value": "%25", - "raw": "\"%25\"" + "raw": "\"%25\"", + "loneSurrogates": false } }, { @@ -46523,7 +46791,8 @@ "end": 41098 }, "value": ":", - "raw": "\":\"" + "raw": "\":\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -46532,7 +46801,8 @@ "end": 41105 }, "value": "%3A", - "raw": "\"%3A\"" + "raw": "\"%3A\"", + "loneSurrogates": false } }, { @@ -46544,7 +46814,8 @@ "end": 41126 }, "value": "<", - "raw": "\"<\"" + "raw": "\"<\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -46553,7 +46824,8 @@ "end": 41133 }, "value": "%3C", - "raw": "\"%3C\"" + "raw": "\"%3C\"", + "loneSurrogates": false } }, { @@ -46565,7 +46837,8 @@ "end": 41154 }, "value": ">", - "raw": "\">\"" + "raw": "\">\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -46574,7 +46847,8 @@ "end": 41161 }, "value": "%3E", - "raw": "\"%3E\"" + "raw": "\"%3E\"", + "loneSurrogates": false } }, { @@ -46586,7 +46860,8 @@ "end": 41182 }, "value": "\"", - "raw": "'\"'" + "raw": "'\"'", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -46595,7 +46870,8 @@ "end": 41187 }, "value": "'", - "raw": "\"'\"" + "raw": "\"'\"", + "loneSurrogates": false } } ] @@ -46732,7 +47008,8 @@ "end": 41259 }, "value": "|", - "raw": "\"|\"" + "raw": "\"|\"", + "loneSurrogates": false } } ], @@ -46748,7 +47025,8 @@ "end": 41265 }, "value": "g", - "raw": "\"g\"" + "raw": "\"g\"", + "loneSurrogates": false } } ], @@ -47010,7 +47288,8 @@ "end": 41495 }, "value": "AddBlurryImagePlaceholders", - "raw": "\"AddBlurryImagePlaceholders\"" + "raw": "\"AddBlurryImagePlaceholders\"", + "loneSurrogates": false } } ], @@ -47200,7 +47479,8 @@ "end": 41675 }, "value": "disabled", - "raw": "\"disabled\"" + "raw": "\"disabled\"", + "loneSurrogates": false } } ], @@ -47266,7 +47546,8 @@ "end": 41764 }, "value": "jimp", - "raw": "\"jimp\"" + "raw": "\"jimp\"", + "loneSurrogates": false } } ], @@ -47307,7 +47588,8 @@ "end": 41783 }, "value": "lru-cache", - "raw": "\"lru-cache\"" + "raw": "\"lru-cache\"", + "loneSurrogates": false } } ], @@ -47390,7 +47672,8 @@ "end": 41902 }, "value": "jimp and lru-cache need to be installed via `npm install jimp lru-cache` ", - "raw": "\"jimp and lru-cache need to be installed via `npm install jimp lru-cache` \"" + "raw": "\"jimp and lru-cache need to be installed via `npm install jimp lru-cache` \"", + "loneSurrogates": false }, "right": { "type": "StringLiteral", @@ -47399,7 +47682,8 @@ "end": 41935 }, "value": "for this transformer to work", - "raw": "\"for this transformer to work\"" + "raw": "\"for this transformer to work\"", + "loneSurrogates": false } } } @@ -47876,7 +48160,8 @@ "end": 42406 }, "value": "caching all placeholders", - "raw": "\"caching all placeholders\"" + "raw": "\"caching all placeholders\"", + "loneSurrogates": false } } ], @@ -48107,7 +48392,8 @@ "end": 42628 }, "value": "using LRU cache for regularily used placeholders", - "raw": "\"using LRU cache for regularily used placeholders\"" + "raw": "\"using LRU cache for regularily used placeholders\"", + "loneSurrogates": false } }, { @@ -48288,7 +48574,8 @@ "end": 42829 }, "value": "caching disabled", - "raw": "\"caching disabled\"" + "raw": "\"caching disabled\"", + "loneSurrogates": false } } ], @@ -48496,7 +48783,8 @@ "end": 43053 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } } ], @@ -48573,7 +48861,8 @@ "end": 43097 }, "value": "body", - "raw": "\"body\"" + "raw": "\"body\"", + "loneSurrogates": false } } ], @@ -48920,7 +49209,8 @@ "end": 43402 }, "value": "template", - "raw": "\"template\"" + "raw": "\"template\"", + "loneSurrogates": false } }, "consequent": { @@ -49033,7 +49323,8 @@ "end": 43550 }, "value": "amp-img", - "raw": "\"amp-img\"" + "raw": "\"amp-img\"", + "loneSurrogates": false } }, "consequent": { @@ -49151,7 +49442,8 @@ "end": 43671 }, "value": "amp-video", - "raw": "\"amp-video\"" + "raw": "\"amp-video\"", + "loneSurrogates": false } }, "right": { @@ -49590,7 +49882,8 @@ "end": 44016 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -49986,7 +50279,8 @@ "end": 44464 }, "value": "img", - "raw": "\"img\"" + "raw": "\"img\"", + "loneSurrogates": false } }, { @@ -50015,7 +50309,8 @@ "end": 44529 }, "value": "i-amphtml-blurry-placeholder", - "raw": "\"i-amphtml-blurry-placeholder\"" + "raw": "\"i-amphtml-blurry-placeholder\"", + "loneSurrogates": false } }, { @@ -50035,7 +50330,8 @@ "end": 44570 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -50076,7 +50372,8 @@ "end": 44635 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -50319,7 +50616,8 @@ }, "tail": false, "cooked": "\n \n \n \n \n \n \n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \\n \n \n ", - "raw": "\">\\n \\n " + "raw": "\">\\n \\n ", + "loneSurrogates": false } ] }, @@ -50435,7 +50736,8 @@ "end": 45585 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } ], @@ -50521,7 +50823,8 @@ "end": 45638 }, "value": "><", - "raw": "\"><\"" + "raw": "\"><\"", + "loneSurrogates": false } } ], @@ -50684,7 +50987,8 @@ "end": 45767 }, "value": "data:image/svg+xml;charset=utf-8,", - "raw": "\"data:image/svg+xml;charset=utf-8,\"" + "raw": "\"data:image/svg+xml;charset=utf-8,\"", + "loneSurrogates": false }, "right": { "type": "Identifier", @@ -50772,7 +51076,8 @@ "end": 45827 }, "value": "[SUCCESS]", - "raw": "\"[SUCCESS]\"" + "raw": "\"[SUCCESS]\"", + "loneSurrogates": false } } ], @@ -50879,7 +51184,8 @@ "end": 45914 }, "value": "[FAIL]", - "raw": "\"[FAIL]\"" + "raw": "\"[FAIL]\"", + "loneSurrogates": false } } ], @@ -51404,7 +51710,8 @@ "end": 46328 }, "value": "[CACHE HIT]", - "raw": "\"[CACHE HIT]\"" + "raw": "\"[CACHE HIT]\"", + "loneSurrogates": false } } ], @@ -51505,7 +51812,8 @@ "end": 46451 }, "value": "[CACHE MISS]", - "raw": "\"[CACHE MISS]\"" + "raw": "\"[CACHE MISS]\"", + "loneSurrogates": false } } ], @@ -52275,7 +52583,8 @@ "end": 47033 }, "value": "image/png", - "raw": "\"image/png\"" + "raw": "\"image/png\"", + "loneSurrogates": false } } ], @@ -53414,7 +53723,8 @@ "end": 48025 }, "value": "https://example.com", - "raw": "\"https://example.com\"" + "raw": "\"https://example.com\"", + "loneSurrogates": false } } ], @@ -53501,7 +53811,8 @@ "end": 48079 }, "value": ".jpg", - "raw": "\".jpg\"" + "raw": "\".jpg\"", + "loneSurrogates": false } } ], @@ -53572,7 +53883,8 @@ "end": 48111 }, "value": "jpeg", - "raw": "\"jpeg\"" + "raw": "\"jpeg\"", + "loneSurrogates": false } } ], @@ -53746,7 +54058,8 @@ "end": 48335 }, "value": "amp-video", - "raw": "\"amp-video\"" + "raw": "\"amp-video\"", + "loneSurrogates": false } }, "definite": false @@ -53811,7 +54124,8 @@ "end": 48381 }, "value": "amp-img", - "raw": "\"amp-img\"" + "raw": "\"amp-img\"", + "loneSurrogates": false } }, "right": { @@ -53888,7 +54202,8 @@ "end": 48417 }, "value": "intrinsic", - "raw": "\"intrinsic\"" + "raw": "\"intrinsic\"", + "loneSurrogates": false } }, "right": { @@ -53945,7 +54260,8 @@ "end": 48453 }, "value": "responsive", - "raw": "\"responsive\"" + "raw": "\"responsive\"", + "loneSurrogates": false } } }, @@ -54003,7 +54319,8 @@ "end": 48483 }, "value": "fill", - "raw": "\"fill\"" + "raw": "\"fill\"", + "loneSurrogates": false } } } @@ -54201,7 +54518,8 @@ "end": 48667 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -54564,7 +54882,8 @@ "end": 49070 }, "value": "AMP", - "raw": "\"AMP\"" + "raw": "\"AMP\"", + "loneSurrogates": false }, "definite": false } @@ -54604,7 +54923,8 @@ "end": 49105 }, "value": "data-auto", - "raw": "\"data-auto\"" + "raw": "\"data-auto\"", + "loneSurrogates": false }, "definite": false } @@ -54704,7 +55024,8 @@ "end": 49225 }, "value": "meta", - "raw": "\"meta\"" + "raw": "\"meta\"", + "loneSurrogates": false } }, { @@ -54741,7 +55062,8 @@ "end": 49306 }, "value": "utf-8", - "raw": "\"utf-8\"" + "raw": "\"utf-8\"", + "loneSurrogates": false } } ] @@ -54784,7 +55106,8 @@ "end": 49423 }, "value": "meta", - "raw": "\"meta\"" + "raw": "\"meta\"", + "loneSurrogates": false } }, { @@ -54821,7 +55144,8 @@ "end": 49504 }, "value": "utf-8", - "raw": "\"utf-8\"" + "raw": "\"utf-8\"", + "loneSurrogates": false } } ] @@ -54876,7 +55200,8 @@ "end": 49644 }, "value": "meta", - "raw": "\"meta\"" + "raw": "\"meta\"", + "loneSurrogates": false } }, { @@ -54913,7 +55238,8 @@ "end": 49725 }, "value": "viewport", - "raw": "\"viewport\"" + "raw": "\"viewport\"", + "loneSurrogates": false } } ] @@ -54956,7 +55282,8 @@ "end": 49842 }, "value": "meta", - "raw": "\"meta\"" + "raw": "\"meta\"", + "loneSurrogates": false } }, { @@ -54993,7 +55320,8 @@ "end": 49923 }, "value": "viewport", - "raw": "\"viewport\"" + "raw": "\"viewport\"", + "loneSurrogates": false } }, { @@ -55013,7 +55341,8 @@ "end": 50014 }, "value": "width=device-width,minimum-scale=1,initial-scale=1", - "raw": "\"width=device-width,minimum-scale=1,initial-scale=1\"" + "raw": "\"width=device-width,minimum-scale=1,initial-scale=1\"", + "loneSurrogates": false } } ] @@ -55068,7 +55397,8 @@ "end": 50158 }, "value": "noscript", - "raw": "\"noscript\"" + "raw": "\"noscript\"", + "loneSurrogates": false } } ] @@ -55108,7 +55438,8 @@ "end": 50253 }, "value": "noscript", - "raw": "\"noscript\"" + "raw": "\"noscript\"", + "loneSurrogates": false } }, { @@ -55154,7 +55485,8 @@ "end": 50336 }, "value": "style", - "raw": "\"style\"" + "raw": "\"style\"", + "loneSurrogates": false } }, { @@ -55183,7 +55515,8 @@ "end": 50426 }, "value": "amp-boilerplate", - "raw": "\"amp-boilerplate\"" + "raw": "\"amp-boilerplate\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -55192,7 +55525,8 @@ "end": 50430 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -55215,7 +55549,8 @@ "end": 50580 }, "value": "body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}", - "raw": "\"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}\"" + "raw": "\"body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}\"", + "loneSurrogates": false } } ] @@ -55273,7 +55608,8 @@ "end": 50722 }, "value": "style", - "raw": "\"style\"" + "raw": "\"style\"", + "loneSurrogates": false } }, { @@ -55302,7 +55638,8 @@ "end": 50804 }, "value": "amp-boilerplate", - "raw": "\"amp-boilerplate\"" + "raw": "\"amp-boilerplate\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -55311,7 +55648,8 @@ "end": 50808 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -55354,7 +55692,8 @@ "end": 50926 }, "value": "style", - "raw": "\"style\"" + "raw": "\"style\"", + "loneSurrogates": false } }, { @@ -55383,7 +55722,8 @@ "end": 51008 }, "value": "amp-boilerplate", - "raw": "\"amp-boilerplate\"" + "raw": "\"amp-boilerplate\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -55392,7 +55732,8 @@ "end": 51012 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -55415,7 +55756,8 @@ "end": 51670 }, "value": "body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}", - "raw": "\"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}\"" + "raw": "\"body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}\"", + "loneSurrogates": false } } ] @@ -55467,7 +55809,8 @@ "end": 51786 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, { @@ -55547,7 +55890,8 @@ "end": 51999 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, { @@ -55584,7 +55928,8 @@ "end": 52073 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -55604,7 +55949,8 @@ "end": 52142 }, "value": "https://cdn.ampproject.org/v0.js", - "raw": "\"https://cdn.ampproject.org/v0.js\"" + "raw": "\"https://cdn.ampproject.org/v0.js\"", + "loneSurrogates": false } } ] @@ -55659,7 +56005,8 @@ "end": 52282 }, "value": "link", - "raw": "\"link\"" + "raw": "\"link\"", + "loneSurrogates": false } }, { @@ -55696,7 +56043,8 @@ "end": 52363 }, "value": "canonical", - "raw": "\"canonical\"" + "raw": "\"canonical\"", + "loneSurrogates": false } } ] @@ -55739,7 +56087,8 @@ "end": 52480 }, "value": "link", - "raw": "\"link\"" + "raw": "\"link\"", + "loneSurrogates": false } }, { @@ -55776,7 +56125,8 @@ "end": 52561 }, "value": "canonical", - "raw": "\"canonical\"" + "raw": "\"canonical\"", + "loneSurrogates": false } }, { @@ -55923,7 +56273,8 @@ "end": 52764 }, "value": "No canonical param is given. Setting canonical href to `.`", - "raw": "\"No canonical param is given. Setting canonical href to `.`\"" + "raw": "\"No canonical param is given. Setting canonical href to `.`\"", + "loneSurrogates": false } } ], @@ -55975,7 +56326,8 @@ "end": 52820 }, "value": ".", - "raw": "\".\"" + "raw": "\".\"", + "loneSurrogates": false } } } @@ -56404,7 +56756,8 @@ "end": 53300 }, "value": "AddMandatoryTags", - "raw": "\"AddMandatoryTags\"" + "raw": "\"AddMandatoryTags\"", + "loneSurrogates": false } } ], @@ -56685,7 +57038,8 @@ "end": 53570 }, "value": "Unknown AMPHTML format", - "raw": "\"Unknown AMPHTML format\"" + "raw": "\"Unknown AMPHTML format\"", + "loneSurrogates": false } }, { @@ -56898,7 +57252,8 @@ "end": 53778 }, "value": "Unsupported AMP format", - "raw": "\"Unsupported AMP format\"" + "raw": "\"Unsupported AMP format\"", + "loneSurrogates": false } }, { @@ -57009,7 +57364,8 @@ "end": 53886 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } } ], @@ -57276,7 +57632,8 @@ "end": 54069 }, "value": "directive", - "raw": "\"directive\"" + "raw": "\"directive\"", + "loneSurrogates": false } }, "right": { @@ -57318,7 +57675,8 @@ "end": 54094 }, "value": "!doctype", - "raw": "\"!doctype\"" + "raw": "\"!doctype\"", + "loneSurrogates": false } } }, @@ -57802,7 +58160,8 @@ "end": 54372 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -57877,7 +58236,8 @@ "end": 54434 }, "value": "head", - "raw": "\"head\"" + "raw": "\"head\"", + "loneSurrogates": false } } ], @@ -57970,7 +58330,8 @@ "end": 54503 }, "value": "head", - "raw": "\"head\"" + "raw": "\"head\"", + "loneSurrogates": false } } ], @@ -59530,7 +59891,8 @@ "end": 55980 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -60164,7 +60526,8 @@ "end": 56416 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -61040,7 +61403,8 @@ "end": 57121 }, "value": "function", - "raw": "\"function\"" + "raw": "\"function\"", + "loneSurrogates": false } }, "consequent": { @@ -61382,7 +61746,8 @@ "end": 57407 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } }, { @@ -61495,7 +61860,8 @@ "end": 57481 }, "value": "head", - "raw": "\"head\"" + "raw": "\"head\"", + "loneSurrogates": false } } ], @@ -61597,7 +61963,8 @@ "end": 57551 }, "value": "body", - "raw": "\"body\"" + "raw": "\"body\"", + "loneSurrogates": false } } ], @@ -62369,7 +62736,8 @@ "end": 58103 }, "value": "directive", - "raw": "\"directive\"" + "raw": "\"directive\"", + "loneSurrogates": false } }, "consequent": { @@ -62426,7 +62794,8 @@ "end": 58139 }, "value": "title", - "raw": "\"title\"" + "raw": "\"title\"", + "loneSurrogates": false } }, "consequent": { @@ -62715,7 +63084,8 @@ "end": 58433 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -62941,7 +63311,8 @@ "end": 58626 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } } ], @@ -63045,7 +63416,8 @@ "end": 58719 }, "value": "self;v=1", - "raw": "\"self;v=1\"" + "raw": "\"self;v=1\"", + "loneSurrogates": false } } } @@ -63202,7 +63574,8 @@ "end": 58858 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -63615,7 +63988,8 @@ "end": 59256 }, "value": "AmpBoilerplateTransformer", - "raw": "\"AmpBoilerplateTransformer\"" + "raw": "\"AmpBoilerplateTransformer\"", + "loneSurrogates": false } } ], @@ -63764,7 +64138,8 @@ "end": 59351 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } } ], @@ -63841,7 +64216,8 @@ "end": 59395 }, "value": "head", - "raw": "\"head\"" + "raw": "\"head\"", + "loneSurrogates": false } } ], @@ -64219,7 +64595,8 @@ "end": 59926 }, "value": "Missing parameters both ampRuntimeVersion and ampRuntimeStyles need to be present", - "raw": "\"Missing parameters both ampRuntimeVersion and ampRuntimeStyles need to be present\"" + "raw": "\"Missing parameters both ampRuntimeVersion and ampRuntimeStyles need to be present\"", + "loneSurrogates": false } } ], @@ -64295,7 +64672,8 @@ "end": 60031 }, "value": "i-amphtml-version", - "raw": "\"i-amphtml-version\"" + "raw": "\"i-amphtml-version\"", + "loneSurrogates": false } } }, @@ -64555,7 +64933,8 @@ "end": 60246 }, "value": "amp-runtime", - "raw": "\"amp-runtime\"" + "raw": "\"amp-runtime\"", + "loneSurrogates": false } } ], @@ -64811,7 +65190,8 @@ "end": 60556 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -65211,7 +65591,8 @@ "end": 60943 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } } ], @@ -65322,7 +65703,8 @@ "end": 61023 }, "value": "head", - "raw": "\"head\"" + "raw": "\"head\"", + "loneSurrogates": false } } ], @@ -65433,7 +65815,8 @@ "end": 61103 }, "value": "body", - "raw": "\"body\"" + "raw": "\"body\"", + "loneSurrogates": false } } ], @@ -65667,7 +66050,8 @@ "end": 61256 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } }, @@ -65825,7 +66209,8 @@ "end": 61352 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -66117,7 +66502,8 @@ "end": 61530 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "definite": false @@ -66315,7 +66701,8 @@ "end": 61642 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } ], @@ -66355,7 +66742,8 @@ "end": 61677 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { @@ -66719,7 +67107,8 @@ "end": 62023 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, "right": { @@ -66776,7 +67165,8 @@ "end": 62060 }, "value": "amp-script", - "raw": "\"amp-script\"" + "raw": "\"amp-script\"", + "loneSurrogates": false } } }, @@ -67183,7 +67573,8 @@ "end": 62400 }, "value": "meta", - "raw": "\"meta\"" + "raw": "\"meta\"", + "loneSurrogates": false } }, "right": { @@ -67240,7 +67631,8 @@ "end": 62439 }, "value": "amp-script-src", - "raw": "\"amp-script-src\"" + "raw": "\"amp-script-src\"", + "loneSurrogates": false } } }, @@ -67330,7 +67722,8 @@ "end": 62566 }, "value": "meta", - "raw": "\"meta\"" + "raw": "\"meta\"", + "loneSurrogates": false } }, { @@ -67359,7 +67752,8 @@ "end": 62616 }, "value": "amp-script-src", - "raw": "\"amp-script-src\"" + "raw": "\"amp-script-src\"", + "loneSurrogates": false } } ] @@ -67596,7 +67990,8 @@ "end": 62832 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -67935,7 +68330,8 @@ "end": 63149 }, "value": "i-amp-", - "raw": "\"i-amp-\"" + "raw": "\"i-amp-\"", + "loneSurrogates": false }, "definite": false } @@ -68227,7 +68623,8 @@ "end": 63376 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } } ], @@ -68402,7 +68799,8 @@ "end": 63538 }, "value": "(", - "raw": "\"(\"" + "raw": "\"(\"", + "loneSurrogates": false } }, "consequent": { @@ -68464,7 +68862,8 @@ }, "tail": false, "cooked": "all and ", - "raw": "all and " + "raw": "all and ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -68474,7 +68873,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -68532,7 +68932,8 @@ "end": 63650 }, "value": "not ", - "raw": "\"not \"" + "raw": "\"not \"", + "loneSurrogates": false } } ], @@ -68681,7 +69082,8 @@ }, "tail": false, "cooked": "not ", - "raw": "not " + "raw": "not ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -68691,7 +69093,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -68778,7 +69181,8 @@ }, "tail": false, "cooked": "#", - "raw": "#" + "raw": "#", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -68788,7 +69192,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] } @@ -69272,7 +69677,8 @@ "end": 64201 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -69477,7 +69883,8 @@ "end": 64322 }, "value": ",", - "raw": "\",\"" + "raw": "\",\"", + "loneSurrogates": false } } ], @@ -69493,7 +69900,8 @@ }, "tail": false, "cooked": "@media ", - "raw": "@media " + "raw": "@media ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -69503,7 +69911,8 @@ }, "tail": false, "cooked": "{", - "raw": "{" + "raw": "{", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -69513,7 +69922,8 @@ }, "tail": true, "cooked": "{display:none}}", - "raw": "{display:none}}" + "raw": "{display:none}}", + "loneSurrogates": false } ] } @@ -70392,7 +70802,8 @@ "end": 65233 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -70587,7 +70998,8 @@ }, "tail": false, "cooked": "#", - "raw": "#" + "raw": "#", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -70597,7 +71009,8 @@ }, "tail": true, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false } ] }, @@ -70666,7 +71079,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -70676,7 +71090,8 @@ }, "tail": false, "cooked": "{width:", - "raw": "{width:" + "raw": "{width:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -70686,7 +71101,8 @@ }, "tail": true, "cooked": "}", - "raw": "}" + "raw": "}", + "loneSurrogates": false } ] } @@ -70850,7 +71266,8 @@ }, "tail": false, "cooked": "@media ", - "raw": "@media " + "raw": "@media ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -70860,7 +71277,8 @@ }, "tail": false, "cooked": "{", - "raw": "{" + "raw": "{", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -70870,7 +71288,8 @@ }, "tail": false, "cooked": "{width:", - "raw": "{width:" + "raw": "{width:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -70880,7 +71299,8 @@ }, "tail": true, "cooked": "}}", - "raw": "}}" + "raw": "}}", + "loneSurrogates": false } ] } @@ -71681,7 +72101,8 @@ "end": 66454 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -71876,7 +72297,8 @@ }, "tail": false, "cooked": "#", - "raw": "#" + "raw": "#", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -71886,7 +72308,8 @@ }, "tail": true, "cooked": ">:first-child", - "raw": ">:first-child" + "raw": ">:first-child", + "loneSurrogates": false } ] }, @@ -71955,7 +72378,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -71965,7 +72389,8 @@ }, "tail": false, "cooked": "{padding-top:", - "raw": "{padding-top:" + "raw": "{padding-top:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -71975,7 +72400,8 @@ }, "tail": true, "cooked": "}", - "raw": "}" + "raw": "}", + "loneSurrogates": false } ] } @@ -72139,7 +72565,8 @@ }, "tail": false, "cooked": "@media ", - "raw": "@media " + "raw": "@media ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -72149,7 +72576,8 @@ }, "tail": false, "cooked": "{", - "raw": "{" + "raw": "{", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -72159,7 +72587,8 @@ }, "tail": false, "cooked": "{padding-top:", - "raw": "{padding-top:" + "raw": "{padding-top:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -72169,7 +72598,8 @@ }, "tail": true, "cooked": "}}", - "raw": "}}" + "raw": "}}", + "loneSurrogates": false } ] } @@ -72867,7 +73297,8 @@ "end": 67731 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } ], @@ -74011,7 +74442,8 @@ }, "tail": false, "cooked": "Cannot remove boilerplate. Failed transforming ", - "raw": "Cannot remove boilerplate. Failed transforming " + "raw": "Cannot remove boilerplate. Failed transforming ", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74021,7 +74453,8 @@ }, "tail": false, "cooked": "=\"", - "raw": "=\"" + "raw": "=\"", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -74031,7 +74464,8 @@ }, "tail": true, "cooked": "\".", - "raw": "\"." + "raw": "\".", + "loneSurrogates": false } ] } @@ -74316,7 +74750,8 @@ "end": 69156 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -74453,7 +74888,8 @@ "end": 69309 }, "value": "style", - "raw": "\"style\"" + "raw": "\"style\"", + "loneSurrogates": false } }, { @@ -74474,7 +74910,8 @@ "end": 69353 }, "value": "amp-custom", - "raw": "\"amp-custom\"" + "raw": "\"amp-custom\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -74483,7 +74920,8 @@ "end": 69357 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ] @@ -74669,7 +75107,8 @@ "end": 69522 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } ], @@ -75125,7 +75564,8 @@ "end": 69920 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } ], @@ -75682,7 +76122,8 @@ "end": 70413 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -76120,7 +76561,8 @@ "end": 70949 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -76132,7 +76574,8 @@ "end": 70962 }, "value": "nodisplay", - "raw": "\"nodisplay\"" + "raw": "\"nodisplay\"", + "loneSurrogates": false } }, { @@ -76144,7 +76587,8 @@ "end": 70971 }, "value": "fixed", - "raw": "\"fixed\"" + "raw": "\"fixed\"", + "loneSurrogates": false } }, { @@ -76156,7 +76600,8 @@ "end": 70987 }, "value": "fixed-height", - "raw": "\"fixed-height\"" + "raw": "\"fixed-height\"", + "loneSurrogates": false } }, { @@ -76168,7 +76613,8 @@ "end": 71001 }, "value": "responsive", - "raw": "\"responsive\"" + "raw": "\"responsive\"", + "loneSurrogates": false } }, { @@ -76180,7 +76626,8 @@ "end": 71014 }, "value": "container", - "raw": "\"container\"" + "raw": "\"container\"", + "loneSurrogates": false } }, { @@ -76192,7 +76639,8 @@ "end": 71022 }, "value": "fill", - "raw": "\"fill\"" + "raw": "\"fill\"", + "loneSurrogates": false } }, { @@ -76204,7 +76652,8 @@ "end": 71035 }, "value": "flex-item", - "raw": "\"flex-item\"" + "raw": "\"flex-item\"", + "loneSurrogates": false } }, { @@ -76216,7 +76665,8 @@ "end": 71048 }, "value": "intrinsic", - "raw": "\"intrinsic\"" + "raw": "\"intrinsic\"", + "loneSurrogates": false } } ] @@ -76718,7 +77168,8 @@ "end": 71352 }, "value": "class", - "raw": "\"class\"" + "raw": "\"class\"", + "loneSurrogates": false } } ], @@ -76785,7 +77236,8 @@ "end": 71377 }, "value": " ", - "raw": "\" \"" + "raw": "\" \"", + "loneSurrogates": false } }, "right": { @@ -77152,7 +77604,8 @@ "end": 71586 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false }, "definite": false } @@ -77188,7 +77641,8 @@ "end": 71653 }, "value": "nodisplay", - "raw": "\"nodisplay\"" + "raw": "\"nodisplay\"", + "loneSurrogates": false }, "consequent": [ { @@ -77251,7 +77705,8 @@ "end": 71706 }, "value": "hidden", - "raw": "\"hidden\"" + "raw": "\"hidden\"", + "loneSurrogates": false } } }, @@ -77278,7 +77733,8 @@ "end": 71771 }, "value": "fixed", - "raw": "\"fixed\"" + "raw": "\"fixed\"", + "loneSurrogates": false }, "consequent": [ { @@ -77422,7 +77878,8 @@ }, "tail": false, "cooked": "width:", - "raw": "width:" + "raw": "width:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77432,7 +77889,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77442,7 +77900,8 @@ }, "tail": false, "cooked": ";height:", - "raw": ";height:" + "raw": ";height:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77452,7 +77911,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77462,7 +77922,8 @@ }, "tail": true, "cooked": ";", - "raw": ";" + "raw": ";", + "loneSurrogates": false } ] } @@ -77491,7 +77952,8 @@ "end": 71932 }, "value": "fixed-height", - "raw": "\"fixed-height\"" + "raw": "\"fixed-height\"", + "loneSurrogates": false }, "consequent": [ { @@ -77585,7 +78047,8 @@ }, "tail": false, "cooked": "height:", - "raw": "height:" + "raw": "height:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77595,7 +78058,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77605,7 +78069,8 @@ }, "tail": true, "cooked": ";", - "raw": ";" + "raw": ";", + "loneSurrogates": false } ] } @@ -77634,7 +78099,8 @@ "end": 72063 }, "value": "responsive", - "raw": "\"responsive\"" + "raw": "\"responsive\"", + "loneSurrogates": false }, "consequent": [ { @@ -77660,7 +78126,8 @@ "end": 72132 }, "value": "intrinsic", - "raw": "\"intrinsic\"" + "raw": "\"intrinsic\"", + "loneSurrogates": false }, "consequent": [ { @@ -77686,7 +78153,8 @@ "end": 72196 }, "value": "fill", - "raw": "\"fill\"" + "raw": "\"fill\"", + "loneSurrogates": false }, "consequent": [] }, @@ -77703,7 +78171,8 @@ "end": 72234 }, "value": "container", - "raw": "\"container\"" + "raw": "\"container\"", + "loneSurrogates": false }, "consequent": [ { @@ -77729,7 +78198,8 @@ "end": 72303 }, "value": "flex-item", - "raw": "\"flex-item\"" + "raw": "\"flex-item\"", + "loneSurrogates": false }, "consequent": [ { @@ -77862,7 +78332,8 @@ }, "tail": false, "cooked": "width:", - "raw": "width:" + "raw": "width:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77872,7 +78343,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -77882,7 +78354,8 @@ }, "tail": true, "cooked": ";", - "raw": ";" + "raw": ";", + "loneSurrogates": false } ] } @@ -78022,7 +78495,8 @@ }, "tail": false, "cooked": "height:", - "raw": "height:" + "raw": "height:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -78032,7 +78506,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -78042,7 +78517,8 @@ }, "tail": true, "cooked": ";", - "raw": ";" + "raw": ";", + "loneSurrogates": false } ] } @@ -78242,7 +78718,8 @@ "end": 72718 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } } } @@ -78309,7 +78786,8 @@ "end": 72763 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, "consequent": { @@ -78436,7 +78914,8 @@ "end": 72872 }, "value": "i-amphtml-layout", - "raw": "\"i-amphtml-layout\"" + "raw": "\"i-amphtml-layout\"", + "loneSurrogates": false } } }, @@ -78848,7 +79327,8 @@ "end": 73143 }, "value": "responsive", - "raw": "\"responsive\"" + "raw": "\"responsive\"", + "loneSurrogates": false } }, "consequent": { @@ -78964,7 +79444,8 @@ "end": 73243 }, "value": "intrinsic", - "raw": "\"intrinsic\"" + "raw": "\"intrinsic\"", + "loneSurrogates": false } }, "consequent": { @@ -79438,7 +79919,8 @@ "end": 73600 }, "value": "i-amphtml-sizer", - "raw": "\"i-amphtml-sizer\"" + "raw": "\"i-amphtml-sizer\"", + "loneSurrogates": false } }, { @@ -79549,7 +80031,8 @@ }, "tail": false, "cooked": "display:block;padding-top:", - "raw": "display:block;padding-top:" + "raw": "display:block;padding-top:", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -79559,7 +80042,8 @@ }, "tail": true, "cooked": "%", - "raw": "%" + "raw": "%", + "loneSurrogates": false } ] } @@ -79719,7 +80203,8 @@ "end": 73843 }, "value": "i-amphtml-sizer", - "raw": "\"i-amphtml-sizer\"" + "raw": "\"i-amphtml-sizer\"", + "loneSurrogates": false } }, { @@ -79748,7 +80233,8 @@ "end": 73891 }, "value": "i-amphtml-sizer", - "raw": "\"i-amphtml-sizer\"" + "raw": "\"i-amphtml-sizer\"", + "loneSurrogates": false } } ] @@ -79815,7 +80301,8 @@ "end": 73945 }, "value": "img", - "raw": "\"img\"" + "raw": "\"img\"", + "loneSurrogates": false } }, { @@ -79844,7 +80331,8 @@ "end": 73976 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -79856,7 +80344,8 @@ "end": 74011 }, "value": "aria-hidden", - "raw": "\"aria-hidden\"" + "raw": "\"aria-hidden\"", + "loneSurrogates": false }, "value": { "type": "StringLiteral", @@ -79865,7 +80354,8 @@ "end": 74019 }, "value": "true", - "raw": "\"true\"" + "raw": "\"true\"", + "loneSurrogates": false } }, { @@ -79885,7 +80375,8 @@ "end": 74075 }, "value": "i-amphtml-intrinsic-sizer", - "raw": "\"i-amphtml-intrinsic-sizer\"" + "raw": "\"i-amphtml-intrinsic-sizer\"", + "loneSurrogates": false } }, { @@ -79905,7 +80396,8 @@ "end": 74117 }, "value": "presentation", - "raw": "\"presentation\"" + "raw": "\"presentation\"", + "loneSurrogates": false } }, { @@ -79985,7 +80477,8 @@ }, "tail": false, "cooked": "data:image/svg+xml;charset=utf-8,", - "raw": "\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"/>" + "raw": "\" xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\"/>", + "loneSurrogates": false } ] } @@ -80372,7 +80867,8 @@ "end": 74545 }, "value": "width", - "raw": "\"width\"" + "raw": "\"width\"", + "loneSurrogates": false } } ], @@ -80564,7 +81060,8 @@ "end": 74710 }, "value": "cannot perform SSR: invalid input width\n", - "raw": "\"cannot perform SSR: invalid input width\\n\"" + "raw": "\"cannot perform SSR: invalid input width\\n\"", + "loneSurrogates": false } }, { @@ -80670,7 +81167,8 @@ "end": 74835 }, "value": "height", - "raw": "\"height\"" + "raw": "\"height\"", + "loneSurrogates": false } } ], @@ -80775,7 +81273,8 @@ "end": 74892 }, "value": "fluid", - "raw": "\"fluid\"" + "raw": "\"fluid\"", + "loneSurrogates": false } } } @@ -80881,7 +81380,8 @@ "end": 75009 }, "value": "cannot perform SSR: invalid input height\n", - "raw": "\"cannot perform SSR: invalid input height\\n\"" + "raw": "\"cannot perform SSR: invalid input height\\n\"", + "loneSurrogates": false } }, { @@ -81258,7 +81758,8 @@ "end": 75244 }, "value": "sizes", - "raw": "\"sizes\"" + "raw": "\"sizes\"", + "loneSurrogates": false } } ], @@ -81307,7 +81808,8 @@ "end": 75278 }, "value": "heights", - "raw": "\"heights\"" + "raw": "\"heights\"", + "loneSurrogates": false } } ], @@ -81425,7 +81927,8 @@ "end": 75403 }, "value": "cannot perform SSR: unsupported layout", - "raw": "\"cannot perform SSR: unsupported layout\"" + "raw": "\"cannot perform SSR: unsupported layout\"", + "loneSurrogates": false } }, { @@ -81733,7 +82236,8 @@ "end": 75686 }, "value": "use strict", - "raw": "\"use strict\"" + "raw": "\"use strict\"", + "loneSurrogates": false } }, { @@ -82116,7 +82620,8 @@ "end": 76082 }, "value": "bind", - "raw": "\"bind\"" + "raw": "\"bind\"", + "loneSurrogates": false }, "definite": false } @@ -82156,7 +82661,8 @@ "end": 76122 }, "value": "data-amp-bind-", - "raw": "\"data-amp-bind-\"" + "raw": "\"data-amp-bind-\"", + "loneSurrogates": false }, "definite": false } @@ -82196,7 +82702,8 @@ "end": 76151 }, "value": "AMP", - "raw": "\"AMP\"" + "raw": "\"AMP\"", + "loneSurrogates": false }, "definite": false } @@ -82274,7 +82781,8 @@ "end": 76208 }, "value": "mask", - "raw": "\"mask\"" + "raw": "\"mask\"", + "loneSurrogates": false } }, { @@ -82286,7 +82794,8 @@ "end": 76225 }, "value": "amp-inputmask", - "raw": "\"amp-inputmask\"" + "raw": "\"amp-inputmask\"", + "loneSurrogates": false } } ] @@ -82310,7 +82819,8 @@ "end": 76255 }, "value": "lightbox", - "raw": "\"lightbox\"" + "raw": "\"lightbox\"", + "loneSurrogates": false } }, { @@ -82322,7 +82832,8 @@ "end": 76279 }, "value": "amp-lightbox-gallery", - "raw": "\"amp-lightbox-gallery\"" + "raw": "\"amp-lightbox-gallery\"", + "loneSurrogates": false } } ] @@ -82757,7 +83268,8 @@ "end": 76600 }, "value": "AutoExtensionImporter", - "raw": "\"AutoExtensionImporter\"" + "raw": "\"AutoExtensionImporter\"", + "loneSurrogates": false } } ], @@ -83412,7 +83924,8 @@ "end": 77198 }, "value": "CUSTOM_TEMPLATE", - "raw": "\"CUSTOM_TEMPLATE\"" + "raw": "\"CUSTOM_TEMPLATE\"", + "loneSurrogates": false } }, "consequent": { @@ -83422,7 +83935,8 @@ "end": 77218 }, "value": "custom-template", - "raw": "\"custom-template\"" + "raw": "\"custom-template\"", + "loneSurrogates": false }, "alternate": { "type": "StringLiteral", @@ -83431,7 +83945,8 @@ "end": 77237 }, "value": "custom-element", - "raw": "\"custom-element\"" + "raw": "\"custom-element\"", + "loneSurrogates": false } } }, @@ -83545,7 +84060,8 @@ "end": 77317 }, "value": "latest", - "raw": "\"latest\"" + "raw": "\"latest\"", + "loneSurrogates": false } }, "async": false, @@ -83963,7 +84479,8 @@ "end": 77693 }, "value": "amp-", - "raw": "\"amp-\"" + "raw": "\"amp-\"", + "loneSurrogates": false } } ], @@ -84989,7 +85506,8 @@ "end": 78452 }, "value": "[", - "raw": "\"[\"" + "raw": "\"[\"", + "loneSurrogates": false } } ], @@ -85597,7 +86115,8 @@ "end": 79190 }, "value": "Missing validation rules, cannot auto import extensions", - "raw": "\"Missing validation rules, cannot auto import extensions\"" + "raw": "\"Missing validation rules, cannot auto import extensions\"", + "loneSurrogates": false } } ], @@ -85890,7 +86409,8 @@ "end": 79511 }, "value": "Unsupported AMPHTML format", - "raw": "\"Unsupported AMPHTML format\"" + "raw": "\"Unsupported AMPHTML format\"", + "loneSurrogates": false } }, { @@ -86001,7 +86521,8 @@ "end": 79621 }, "value": "html", - "raw": "\"html\"" + "raw": "\"html\"", + "loneSurrogates": false } } ], @@ -86112,7 +86633,8 @@ "end": 79701 }, "value": "head", - "raw": "\"head\"" + "raw": "\"head\"", + "loneSurrogates": false } } ], @@ -86223,7 +86745,8 @@ "end": 79781 }, "value": "body", - "raw": "\"body\"" + "raw": "\"body\"", + "loneSurrogates": false } } ], @@ -87019,7 +87542,8 @@ "end": 80499 }, "value": "auto importing", - "raw": "\"auto importing\"" + "raw": "\"auto importing\"", + "loneSurrogates": false } }, { @@ -87353,7 +87877,8 @@ "end": 80784 }, "value": "", - "raw": "\"\"" + "raw": "\"\"", + "loneSurrogates": false } }, { @@ -87413,7 +87938,8 @@ }, "tail": false, "cooked": "", - "raw": "" + "raw": "", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -87423,7 +87949,8 @@ }, "tail": false, "cooked": "/v0/", - "raw": "/v0/" + "raw": "/v0/", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -87433,7 +87960,8 @@ }, "tail": false, "cooked": "-", - "raw": "-" + "raw": "-", + "loneSurrogates": false }, { "type": "TemplateElement", @@ -87443,7 +87971,8 @@ }, "tail": true, "cooked": ".js", - "raw": ".js" + "raw": ".js", + "loneSurrogates": false } ] } @@ -87582,7 +88111,8 @@ "end": 80952 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, { @@ -88053,7 +88583,8 @@ "end": 81362 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, "right": { @@ -88107,7 +88638,8 @@ "end": 81380 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } }, @@ -88118,7 +88650,8 @@ "end": 81398 }, "value": "amp-access", - "raw": "\"amp-access\"" + "raw": "\"amp-access\"", + "loneSurrogates": false } } }, @@ -88178,7 +88711,8 @@ "end": 81448 }, "value": "amp-access", - "raw": "\"amp-access\"" + "raw": "\"amp-access\"", + "loneSurrogates": false } } ], @@ -88233,7 +88767,8 @@ "end": 81500 }, "value": "amp-analytics", - "raw": "\"amp-analytics\"" + "raw": "\"amp-analytics\"", + "loneSurrogates": false } } ], @@ -88362,7 +88897,8 @@ "end": 81613 }, "value": "laterpay", - "raw": "\"laterpay\"" + "raw": "\"laterpay\"", + "loneSurrogates": false } }, "consequent": { @@ -88421,7 +88957,8 @@ "end": 81676 }, "value": "amp-access-laterpay", - "raw": "\"amp-access-laterpay\"" + "raw": "\"amp-access-laterpay\"", + "loneSurrogates": false } } ], @@ -88486,7 +89023,8 @@ "end": 81765 }, "value": "script", - "raw": "\"script\"" + "raw": "\"script\"", + "loneSurrogates": false } }, "right": { @@ -88540,7 +89078,8 @@ "end": 81783 }, "value": "id", - "raw": "\"id\"" + "raw": "\"id\"", + "loneSurrogates": false } } }, @@ -88551,7 +89090,8 @@ "end": 81808 }, "value": "amp-subscriptions", - "raw": "\"amp-subscriptions\"" + "raw": "\"amp-subscriptions\"", + "loneSurrogates": false } } }, @@ -88611,7 +89151,8 @@ "end": 81865 }, "value": "amp-subscriptions", - "raw": "\"amp-subscriptions\"" + "raw": "\"amp-subscriptions\"", + "loneSurrogates": false } } ], @@ -88666,7 +89207,8 @@ "end": 81917 }, "value": "amp-analytics", - "raw": "\"amp-analytics\"" + "raw": "\"amp-analytics\"", + "loneSurrogates": false } } ], @@ -88954,7 +89496,8 @@ "end": 82182 }, "value": "subscribe.google.com", - "raw": "\"subscribe.google.com\"" + "raw": "\"subscribe.google.com\"", + "loneSurrogates": false } }, "consequent": { @@ -89013,7 +89556,8 @@ "end": 82258 }, "value": "amp-subscriptions-google", - "raw": "\"amp-subscriptions-google\"" + "raw": "\"amp-subscriptions-google\"", + "loneSurrogates": false } } ], @@ -89483,7 +90027,8 @@ "end": 82864 }, "value": "Could not parse JSON in