diff --git a/tsc/internal/scanner/regexp.go b/tsc/internal/scanner/regexp.go index d4a84a56cbf45..0e83c1c589094 100644 --- a/tsc/internal/scanner/regexp.go +++ b/tsc/internal/scanner/regexp.go @@ -500,8 +500,7 @@ func (p *regExpParser) scanCharacterEscape(atomEscape bool) string { func (p *regExpParser) scanGroupName(isReference bool) { debug.Assert(p.pos() > 0 && p.text()[p.pos()-1] == '<') p.scanner.tokenStart = p.pos() - p.scanner.scanIdentifier(0) - if p.pos() == p.scanner.tokenStart { + if !p.scanner.scanIdentifier(0, identifierVariantRegExpGroupName) { p.error(diagnostics.Expected_a_capturing_group_name, p.pos(), 0) } else if isReference { p.groupNameReferences = append(p.groupNameReferences, groupNameReference{pos: p.scanner.tokenStart, end: p.pos(), name: p.scanner.tokenValue}) diff --git a/tsc/internal/scanner/scanner.go b/tsc/internal/scanner/scanner.go index 6958b4ab09246..52b950cc8ebcf 100644 --- a/tsc/internal/scanner/scanner.go +++ b/tsc/internal/scanner/scanner.go @@ -18,6 +18,14 @@ import ( "github.com/microsoft/TypeScript/tsc/internal/stringutil" ) +type identifierVariant int32 + +const ( + identifierVariantStandard identifierVariant = iota + identifierVariantJSX + identifierVariantRegExpGroupName +) + type EscapeSequenceScanningFlags int32 const ( @@ -887,9 +895,7 @@ func (s *Scanner) Scan() ast.Kind { s.pos++ s.token = ast.KindAtToken case '\\': - cp := s.peekUnicodeEscape() - if cp >= 0 && IsIdentifierStart(cp) { - s.tokenValue = string(s.scanUnicodeEscape(true)) + s.scanIdentifierParts() + if s.scanIdentifier(0, identifierVariantStandard) { s.token = GetIdentifierToken(s.tokenValue) } else { s.scanInvalidCharacter() @@ -904,21 +910,11 @@ func (s *Scanner) Scan() ast.Kind { continue } s.errorAt(diagnostics.X_can_only_be_used_at_the_start_of_a_file, s.pos, 2) - s.pos++ + s.pos += 2 s.token = ast.KindUnknown break } - if s.charAt(1) == '\\' { - s.pos++ - cp := s.peekUnicodeEscape() - if cp >= 0 && IsIdentifierStart(cp) { - s.tokenValue = "#" + string(s.scanUnicodeEscape(true)) + s.scanIdentifierParts() - s.token = ast.KindPrivateIdentifier - break - } - s.pos-- - } - if !s.scanIdentifier(1) { + if !s.scanIdentifier(1, identifierVariantStandard) { s.errorAt(diagnostics.Invalid_character, s.pos-1, 1) s.tokenValue = "#" } @@ -928,7 +924,7 @@ func (s *Scanner) Scan() ast.Kind { s.token = ast.KindEndOfFile break } - if s.scanIdentifier(0) { + if s.scanIdentifier(0, identifierVariantStandard) { s.token = GetIdentifierToken(s.tokenValue) break } @@ -1324,22 +1320,8 @@ func (s *Scanner) ScanJsxIdentifier() ast.Kind { // everything after it to the token // Do note that this means that `scanJsxIdentifier` effectively _mutates_ the visible token without advancing to a new token // Any caller should be expecting this behavior and should only read the pos or token value after calling it. - for { - ch := s.char() - if ch < 0 { - break - } - if ch == '-' { - s.tokenValue += "-" - s.pos++ - continue - } - oldPos := s.pos - s.tokenValue += s.scanIdentifierParts() // reuse `scanIdentifierParts` so unicode escapes are handled - if s.pos == oldPos { - break - } - } + // Here scanIdentifierParts is reused to ensure Unicode escapes are handled. + s.tokenValue += s.scanIdentifierParts(identifierVariantJSX) s.token = GetIdentifierToken(s.tokenValue) } return s.token @@ -1487,49 +1469,25 @@ func (s *Scanner) ScanJSDocToken() ast.Kind { case '#': s.token = ast.KindHashToken return s.token - case '\\': - s.pos-- - cp := s.peekUnicodeEscape() - if cp >= 0 && IsIdentifierStart(cp) { - s.tokenValue = string(s.scanUnicodeEscape(true)) + s.scanIdentifierParts() - s.token = GetIdentifierToken(s.tokenValue) - } else { - s.pos++ - s.token = ast.KindUnknown - } - return s.token } - if IsIdentifierStart(ch) { - char := ch - for { - if s.pos >= len(s.text) { - break - } - char, size = s.charAndSize() - if !IsIdentifierPart(char) && char != '-' { - break - } - s.pos += size - } - s.tokenValue = s.text[s.tokenStart:s.pos] - if char == '\\' { - s.tokenValue += s.scanIdentifierParts() - } + s.pos = s.tokenStart + if s.scanIdentifier(0, identifierVariantJSX) { s.token = GetIdentifierToken(s.tokenValue) return s.token - } else { - s.token = ast.KindUnknown - return s.token } + s.pos = s.tokenStart + size + s.token = ast.KindUnknown + return s.token } -func (s *Scanner) scanIdentifier(prefixLength int) bool { +func (s *Scanner) scanIdentifier(prefixLength int, variant identifierVariant) bool { start := s.pos s.pos += prefixLength + identifierStart := s.pos ch := s.char() // Fast path for simple ASCII identifiers - if stringutil.IsASCIILetter(ch) || ch == '_' || ch == '$' { + if variant != identifierVariantJSX && (stringutil.IsASCIILetter(ch) || ch == '_' || ch == '$') { s.pos++ s.scanASCIIWhile(func(b byte) bool { return (b >= 'a' && b <= 'z') || (b >= 'A' && b <= 'Z') || (b >= '0' && b <= '9') || b == '_' || b == '$' @@ -1539,40 +1497,57 @@ func (s *Scanner) scanIdentifier(prefixLength int) bool { s.tokenValue = s.text[start:s.pos] return true } - s.pos = start + prefixLength + s.pos = identifierStart } - ch, size := s.charAndSize() - if IsIdentifierStart(ch) { - for { - s.pos += size - ch, size = s.charAndSize() - if !IsIdentifierPart(ch) { - break - } - } - s.tokenValue = s.text[start:s.pos] - if ch == '\\' { - s.tokenValue += s.scanIdentifierParts() + identifier := s.scanIdentifierStart(variant) + if identifier != "" { + // Preserve the original source slice when decoding did not change the identifier; + // otherwise combine any prefix (such as "#") with the decoded identifier start. + if s.text[identifierStart:s.pos] == identifier { + s.tokenValue = s.text[start:s.pos] + } else { + s.tokenValue = s.text[start:identifierStart] + identifier } + s.tokenValue += s.scanIdentifierParts(variant) return true } return false } -func (s *Scanner) scanIdentifierParts() string { +func (s *Scanner) scanIdentifierStart(variant identifierVariant) string { + ch, size := s.charAndSize() + if IsIdentifierStart(ch) { + s.pos += size + return string(ch) + } + if ch == '\\' { + if escaped, ok := s.scanIdentifierEscape(IsIdentifierStart, variant == identifierVariantRegExpGroupName); ok { + return string(escaped) + } + } + return "" +} + +func (s *Scanner) scanIdentifierParts(variant identifierVariant) string { var sb strings.Builder start := s.pos + languageVariant := core.LanguageVariantStandard + if variant == identifierVariantJSX { + languageVariant = core.LanguageVariantJSX + } for { ch, size := s.charAndSize() - if IsIdentifierPart(ch) { + if IsIdentifierPartEx(ch, languageVariant) { s.pos += size continue } if ch == '\\' { - escaped := s.peekUnicodeEscape() - if escaped >= 0 && IsIdentifierPart(escaped) { - sb.WriteString(s.text[start:s.pos]) - sb.WriteRune(s.scanUnicodeEscape(true)) + escapeStart := s.pos + if escaped, ok := s.scanIdentifierEscape(func(ch rune) bool { + return IsIdentifierPartEx(ch, languageVariant) + }, variant == identifierVariantRegExpGroupName); ok { + sb.WriteString(s.text[start:escapeStart]) + sb.WriteRune(escaped) start = s.pos continue } @@ -1583,6 +1558,31 @@ func (s *Scanner) scanIdentifierParts() string { return sb.String() } +func (s *Scanner) scanIdentifierEscape(isValid func(rune) bool, allowSurrogatePairEscape bool) (rune, bool) { + escaped := s.peekUnicodeEscape() + if escaped >= 0 && isValid(escaped) { + return s.scanUnicodeEscape(true), true + } + if allowSurrogatePairEscape && s.charAt(2) != '{' && stringutil.IsHighSurrogate(escaped) { + // Unlike normal identifiers, group names in regular expressions, whether in Unicode mode or not, + // accept \u HexLeadSurrogate \u HexTrailSurrogate as part of RegExpIdentifierName. + // See https://github.com/tc39/ecma262/pull/1869 for the change. + savedPos := s.pos + savedTokenFlags := s.tokenFlags + s.scanUnicodeEscape(false) + // scanLowSurrogateEscape also accepts the braced form used in string literals, + // but RegExpIdentifierName does not allow it. + if s.charAt(2) != '{' { + if codePoint, ok := s.scanLowSurrogateEscape(escaped); ok && isValid(codePoint) { + return codePoint, true + } + } + s.pos = savedPos + s.tokenFlags = savedTokenFlags + } + return 0, false +} + func (s *Scanner) scanString(jsxAttributeString bool) string { quote := s.char() if quote == '\'' { @@ -2024,7 +2024,7 @@ func (s *Scanner) scanNumber() ast.Kind { ch, _ := s.charAndSize() if IsIdentifierStart(ch) { idStart := s.pos - id := s.scanIdentifierParts() + id := s.scanIdentifierParts(identifierVariantStandard) if result != ast.KindBigIntLiteral && len(id) == 1 && s.text[idStart] == 'n' { if s.tokenFlags&ast.TokenFlagsScientific != 0 { s.errorAt(diagnostics.A_bigint_literal_cannot_use_exponential_notation, start, s.pos-start) @@ -2249,7 +2249,7 @@ func IsIdentifierPart(ch rune) bool { func IsIdentifierPartEx(ch rune, languageVariant core.LanguageVariant) bool { return isWordCharacter(ch) || ch == '$' || ch >= utf8.RuneSelf && stringutil.IsUnicodeIdentifierPart(ch) || - languageVariant == core.LanguageVariantJSX && (ch == '-' || ch == ':') // "-" and ":" are valid in JSX Identifiers + languageVariant == core.LanguageVariantJSX && ch == '-' // ":" is part of JSXNamespacedName, but not JSXIdentifier. } var tokenToText = func() [ast.KindCount]string { diff --git a/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.js b/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.js index 89460f9feffc3..7ef42fb933952 100644 --- a/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.js +++ b/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.js @@ -3,12 +3,14 @@ //// [extendedUnicodeEscapeSequenceIdentifiers.ts] const \u{0061} = 12; const a\u{0061} = 12; +const a\u{62}c\u{64}e = 12; -console.log(a + aa); +console.log(a + aa + abcde); //// [extendedUnicodeEscapeSequenceIdentifiers.js] "use strict"; const \u{0061} = 12; const a\u{0061} = 12; -console.log(a + aa); +const a\u{62}c\u{64}e = 12; +console.log(a + aa + abcde); diff --git a/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.symbols b/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.symbols index 3cc06929eefa2..23d0ac0b5fdd7 100644 --- a/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.symbols +++ b/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.symbols @@ -7,10 +7,14 @@ const \u{0061} = 12; const a\u{0061} = 12; >a\u{0061} : Symbol(a\u{0061}, Decl(extendedUnicodeEscapeSequenceIdentifiers.ts, 1, 5)) -console.log(a + aa); +const a\u{62}c\u{64}e = 12; +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(extendedUnicodeEscapeSequenceIdentifiers.ts, 2, 5)) + +console.log(a + aa + abcde); >console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) >console : Symbol(console, Decl(lib.dom.d.ts, --, --)) >log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) >a : Symbol(\u{0061}, Decl(extendedUnicodeEscapeSequenceIdentifiers.ts, 0, 5)) >aa : Symbol(a\u{0061}, Decl(extendedUnicodeEscapeSequenceIdentifiers.ts, 1, 5)) +>abcde : Symbol(a\u{62}c\u{64}e, Decl(extendedUnicodeEscapeSequenceIdentifiers.ts, 2, 5)) diff --git a/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.types b/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.types index 0d063df5ba783..3f83c3888a470 100644 --- a/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.types +++ b/tsc/testdata/baselines/reference/compiler/extendedUnicodeEscapeSequenceIdentifiers.types @@ -9,12 +9,18 @@ const a\u{0061} = 12; >a\u{0061} : 12 >12 : 12 -console.log(a + aa); ->console.log(a + aa) : void +const a\u{62}c\u{64}e = 12; +>a\u{62}c\u{64}e : 12 +>12 : 12 + +console.log(a + aa + abcde); +>console.log(a + aa + abcde) : void >console.log : (...data: any[]) => void >console : Console >log : (...data: any[]) => void +>a + aa + abcde : number >a + aa : number >a : 12 >aa : 12 +>abcde : 12 diff --git a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.errors.txt b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.errors.txt index b7461fff03671..501f884ff6857 100644 --- a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.errors.txt +++ b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.errors.txt @@ -3,25 +3,20 @@ 1 const a =!@#!@$    ~~ -a.ts:1:13 - error TS1134: Variable declaration expected. +a.ts:1:14 - error TS1134: Variable declaration expected. 1 const a =!@#!@$ -   ~ - -a.ts:1:16 - error TS1109: Expression expected. - -1 const a =!@#!@$ -   ~ +   ~ a.ts:2:13 - error TS18026: '#!' can only be used at the start of a file. 2 const b = !@#!@#!@#!    ~~ -a.ts:2:14 - error TS1134: Variable declaration expected. +a.ts:2:15 - error TS1134: Variable declaration expected. 2 const b = !@#!@#!@#! -   ~ +   ~ a.ts:2:16 - error TS18026: '#!' can only be used at the start of a file. @@ -94,18 +89,16 @@   ~~~~~ -==== a.ts (16 errors) ==== +==== a.ts (15 errors) ==== const a =!@#!@$ ~~ !!! error TS18026: '#!' can only be used at the start of a file. - ~ + ~ !!! error TS1134: Variable declaration expected. - -!!! error TS1109: Expression expected. const b = !@#!@#!@#! ~~ !!! error TS18026: '#!' can only be used at the start of a file. - ~ + ~ !!! error TS1134: Variable declaration expected. ~~ !!! error TS18026: '#!' can only be used at the start of a file. @@ -143,9 +136,9 @@ limit ~~~~~ !!! error TS2304: Cannot find name 'limit'. -Found 19 errors in 2 files. +Found 18 errors in 2 files. Errors Files - 16 a.ts:1 + 15 a.ts:1 3 b.ts:1 diff --git a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.js b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.js index 11fcbf2fb5076..15634acedd1d9 100644 --- a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.js +++ b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.js @@ -15,11 +15,8 @@ limit //// [a.js] "use strict"; const a = !; -!; const b = !; -!; -!; -!OK; +OK; HERE; 's A shouty thing; GOTTA; diff --git a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.js.diff b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.js.diff new file mode 100644 index 0000000000000..9cd96086e4320 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.js.diff @@ -0,0 +1,15 @@ +--- old.manyCompilerErrorsInTheTwoFiles.js ++++ new.manyCompilerErrorsInTheTwoFiles.js +@@= skipped -14, +14 lines =@@ + //// [a.js] + "use strict"; + const a = !; +-!; + const b = !; +-!; +-!; +-!OK; ++OK; + HERE; + 's A shouty thing; + GOTTA; \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.types b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.types index b84d5e011d69d..ec5e492d9d28d 100644 --- a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.types +++ b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.types @@ -5,18 +5,14 @@ const a =!@#!@$ >a : boolean >!@ : boolean > : any ->!@$ : boolean >$ : any const b = !@#!@#!@#! >b : boolean >!@ : boolean > : any ->!@ : boolean > : any ->!@ : boolean > : any ->!OK! : boolean OK! >OK! : any diff --git a/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.types.diff b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.types.diff new file mode 100644 index 0000000000000..da0db452bdeba --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/manyCompilerErrorsInTheTwoFiles.types.diff @@ -0,0 +1,23 @@ +--- old.manyCompilerErrorsInTheTwoFiles.types ++++ new.manyCompilerErrorsInTheTwoFiles.types +@@= skipped -4, +4 lines =@@ + >a : boolean + >!@ : boolean + > : any +->!@$ : boolean + >$ : any + + const b = !@#!@#!@#! + >b : boolean + >!@ : boolean + > : any +->!@ : boolean +-> : any +->!@ : boolean +-> : any +->!OK! : boolean ++> : any ++> : any + + OK! + >OK! : any \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.errors.txt b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.errors.txt new file mode 100644 index 0000000000000..c2fb821d18c26 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.errors.txt @@ -0,0 +1,299 @@ +regularExpressionGroupNameUnicodeEscapes.ts(11,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(11,11): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(11,16): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(11,26): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(12,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(12,16): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(12,21): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(12,31): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(13,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(13,18): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(13,23): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(13,33): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(29,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(29,12): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(29,18): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(29,31): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(30,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(30,19): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(30,25): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(30,38): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(31,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(31,22): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(31,28): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(31,41): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(40,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(40,11): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(40,22): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(40,35): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(40,40): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(40,50): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(41,6): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(41,12): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionGroupNameUnicodeEscapes.ts(41,13): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(41,24): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionGroupNameUnicodeEscapes.ts(41,25): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(41,39): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(41,45): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(41,56): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(44,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(44,12): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(44,26): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(44,43): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(44,49): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(44,62): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(45,6): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(45,13): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionGroupNameUnicodeEscapes.ts(45,14): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(45,28): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionGroupNameUnicodeEscapes.ts(45,29): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(45,47): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(45,54): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(45,68): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(48,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(48,16): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(48,29): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(48,39): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(49,6): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(49,17): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionGroupNameUnicodeEscapes.ts(49,18): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(49,32): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(49,43): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(52,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(52,16): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(52,29): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(52,39): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(53,6): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(53,17): error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. +regularExpressionGroupNameUnicodeEscapes.ts(53,18): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(53,32): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(53,43): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(56,5): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(56,13): error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionGroupNameUnicodeEscapes.ts(56,26): error TS1514: Expected a capturing group name. +regularExpressionGroupNameUnicodeEscapes.ts(56,34): error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionGroupNameUnicodeEscapes.ts(57,6): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(57,14): error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. +regularExpressionGroupNameUnicodeEscapes.ts(57,28): error TS1005: '>' expected. +regularExpressionGroupNameUnicodeEscapes.ts(57,36): error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + + +==== regularExpressionGroupNameUnicodeEscapes.ts (78 errors) ==== + // U+13A0 CHEROKEE LETTER A: character inside BMP with both the Unicode properties ID_Start and ID_Continue + /(?<Ꭰ>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; + /(?<\u13A0>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; + /(?<\u{13A0}>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; + + /(?<_Ꭰ>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; + /(?<_\u13A0>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; + /(?<_\u{13A0}>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; + + // U+19D4 NEW TAI LUE DIGIT FOUR: character inside BMP with only ID_Continue + /(?<᧔>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<\u19D4>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<\u{19D4}>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + + /(?<_᧔>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; + /(?<_\u19D4>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; + /(?<_\u{19D4}>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; + + // U+102A7 CARIAN LETTER A2: character outside BMP with both ID_Start and ID_Continue + /(?<𐊧>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; + /(?<\u{102A7}>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; + /(?<\uD800\uDEA7>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; + + /(?<_𐊧>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; + /(?<_\u{102A7}>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; + /(?<_\uD800\uDEA7>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; + + // U+1113D CHAKMA DIGIT SEVEN: character outside BMP with only ID_Continue + /(?<𑄽>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<\u{1113D}>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<\uD804\uDD3D>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + + /(?<_𑄽>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; + /(?<_\u{1113D}>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; + /(?<_\uD804\uDD3D>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; + + // The following cases are all invalid: + + // U+2F47 KANGXI RADICAL SUN: character inside BMP without both properties + /(?<⽇>)(?<\u2F47>)(?<\u{2F47}>)\k<⽇>\k<\u2F47>\k<\u{2F47}>/; + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<_⽇>)(?<_\u2F47>)(?<_\u{2F47}>)\k<_⽇>\k<_\u2F47>\k<_\u{2F47}>/; + +!!! error TS1005: '>' expected. + ~ +!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. + +!!! error TS1005: '>' expected. + ~ +!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + + // U+1F31A NEW MOON WITH FACE: character outside BMP without both properties + /(?<🌚>)(?<\u{1F31A}>)(?<\uD83C\uDF1A>)\k<🌚>\k<\u{1F31A}>\k<\uD83C\uDF1A>/; + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<_🌚>)(?<_\u{1F31A}>)(?<_\uD83C\uDF1A>)\k<_🌚>\k<_\u{1F31A}>\k<_\uD83C\uDF1A>/; + +!!! error TS1005: '>' expected. + ~ +!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. + +!!! error TS1005: '>' expected. + ~ +!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + + // Lone leading surrogate + /(?<\uD800>)(?<\u{D800}>)\k<\uD800>\k<\u{D800}>/; + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<_\uD800>)(?<_\u{D800}>)\k<_\uD800>\k<_\u{D800}>/; + +!!! error TS1005: '>' expected. + ~ +!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + + // Lone trailing surrogate + /(?<\uDFFF>)(?<\u{DFFF}>)\k<\uDFFF>\k<\u{DFFF}>/; + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + +!!! error TS1514: Expected a capturing group name. + /(?<_\uDFFF>)(?<_\u{DFFF}>)\k<_\uDFFF>\k<_\u{DFFF}>/; + +!!! error TS1005: '>' expected. + ~ +!!! error TS1515: Named capturing groups with the same name must be mutually exclusive to each other. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + +!!! error TS1005: '>' expected. + + // Fake surrogate pair with extended Unicode escapes – invalid even if the intended character has both properties + /(?<\u{D800}\u{DC00}>)\k<\u{D800}\u{DC00}>/; + +!!! error TS1514: Expected a capturing group name. + ~~~~~~~~ +!!! error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1514: Expected a capturing group name. + ~~~~~~~~ +!!! error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + /(?<_\u{D800}\u{DC00}>)\k<_\u{D800}\u{DC00}>/; + +!!! error TS1005: '>' expected. + ~~~~~~~~ +!!! error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + +!!! error TS1005: '>' expected. + ~~~~~~~~ +!!! error TS1538: Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set. + + // Cases with Unicode escapes and extended Unicode escapes mixed + /(?)\k\k<\u{52}\u0065gE\u{78}p>\k<\u0052e\u0067\u{45}x\u{70}>/; + /(?<_RegExp>)\k<_RegExp>\k<_\u{52}\u0065gE\u{78}p>\k<_\u0052e\u0067\u{45}x\u{70}>/; + \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.js b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.js new file mode 100644 index 0000000000000..2393292c489a3 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.js @@ -0,0 +1,115 @@ +//// [tests/cases/compiler/regularExpressionGroupNameUnicodeEscapes.ts] //// + +//// [regularExpressionGroupNameUnicodeEscapes.ts] +// U+13A0 CHEROKEE LETTER A: character inside BMP with both the Unicode properties ID_Start and ID_Continue +/(?<Ꭰ>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +/(?<\u13A0>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +/(?<\u{13A0}>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; + +/(?<_Ꭰ>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +/(?<_\u13A0>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +/(?<_\u{13A0}>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; + +// U+19D4 NEW TAI LUE DIGIT FOUR: character inside BMP with only ID_Continue +/(?<᧔>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +/(?<\u19D4>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +/(?<\u{19D4}>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid + +/(?<_᧔>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +/(?<_\u19D4>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +/(?<_\u{19D4}>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; + +// U+102A7 CARIAN LETTER A2: character outside BMP with both ID_Start and ID_Continue +/(?<𐊧>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +/(?<\u{102A7}>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +/(?<\uD800\uDEA7>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; + +/(?<_𐊧>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +/(?<_\u{102A7}>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +/(?<_\uD800\uDEA7>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; + +// U+1113D CHAKMA DIGIT SEVEN: character outside BMP with only ID_Continue +/(?<𑄽>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +/(?<\u{1113D}>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +/(?<\uD804\uDD3D>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid + +/(?<_𑄽>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +/(?<_\u{1113D}>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +/(?<_\uD804\uDD3D>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; + +// The following cases are all invalid: + +// U+2F47 KANGXI RADICAL SUN: character inside BMP without both properties +/(?<⽇>)(?<\u2F47>)(?<\u{2F47}>)\k<⽇>\k<\u2F47>\k<\u{2F47}>/; +/(?<_⽇>)(?<_\u2F47>)(?<_\u{2F47}>)\k<_⽇>\k<_\u2F47>\k<_\u{2F47}>/; + +// U+1F31A NEW MOON WITH FACE: character outside BMP without both properties +/(?<🌚>)(?<\u{1F31A}>)(?<\uD83C\uDF1A>)\k<🌚>\k<\u{1F31A}>\k<\uD83C\uDF1A>/; +/(?<_🌚>)(?<_\u{1F31A}>)(?<_\uD83C\uDF1A>)\k<_🌚>\k<_\u{1F31A}>\k<_\uD83C\uDF1A>/; + +// Lone leading surrogate +/(?<\uD800>)(?<\u{D800}>)\k<\uD800>\k<\u{D800}>/; +/(?<_\uD800>)(?<_\u{D800}>)\k<_\uD800>\k<_\u{D800}>/; + +// Lone trailing surrogate +/(?<\uDFFF>)(?<\u{DFFF}>)\k<\uDFFF>\k<\u{DFFF}>/; +/(?<_\uDFFF>)(?<_\u{DFFF}>)\k<_\uDFFF>\k<_\u{DFFF}>/; + +// Fake surrogate pair with extended Unicode escapes – invalid even if the intended character has both properties +/(?<\u{D800}\u{DC00}>)\k<\u{D800}\u{DC00}>/; +/(?<_\u{D800}\u{DC00}>)\k<_\u{D800}\u{DC00}>/; + +// Cases with Unicode escapes and extended Unicode escapes mixed +/(?)\k\k<\u{52}\u0065gE\u{78}p>\k<\u0052e\u0067\u{45}x\u{70}>/; +/(?<_RegExp>)\k<_RegExp>\k<_\u{52}\u0065gE\u{78}p>\k<_\u0052e\u0067\u{45}x\u{70}>/; + + +//// [regularExpressionGroupNameUnicodeEscapes.js] +"use strict"; +// U+13A0 CHEROKEE LETTER A: character inside BMP with both the Unicode properties ID_Start and ID_Continue +/(?<Ꭰ>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +/(?<\u13A0>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +/(?<\u{13A0}>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +/(?<_Ꭰ>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +/(?<_\u13A0>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +/(?<_\u{13A0}>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +// U+19D4 NEW TAI LUE DIGIT FOUR: character inside BMP with only ID_Continue +/(?<᧔>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +/(?<\u19D4>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +/(?<\u{19D4}>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +/(?<_᧔>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +/(?<_\u19D4>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +/(?<_\u{19D4}>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +// U+102A7 CARIAN LETTER A2: character outside BMP with both ID_Start and ID_Continue +/(?<𐊧>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +/(?<\u{102A7}>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +/(?<\uD800\uDEA7>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +/(?<_𐊧>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +/(?<_\u{102A7}>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +/(?<_\uD800\uDEA7>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +// U+1113D CHAKMA DIGIT SEVEN: character outside BMP with only ID_Continue +/(?<𑄽>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +/(?<\u{1113D}>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +/(?<\uD804\uDD3D>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +/(?<_𑄽>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +/(?<_\u{1113D}>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +/(?<_\uD804\uDD3D>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +// The following cases are all invalid: +// U+2F47 KANGXI RADICAL SUN: character inside BMP without both properties +/(?<⽇>)(?<\u2F47>)(?<\u{2F47}>)\k<⽇>\k<\u2F47>\k<\u{2F47}>/; +/(?<_⽇>)(?<_\u2F47>)(?<_\u{2F47}>)\k<_⽇>\k<_\u2F47>\k<_\u{2F47}>/; +// U+1F31A NEW MOON WITH FACE: character outside BMP without both properties +/(?<🌚>)(?<\u{1F31A}>)(?<\uD83C\uDF1A>)\k<🌚>\k<\u{1F31A}>\k<\uD83C\uDF1A>/; +/(?<_🌚>)(?<_\u{1F31A}>)(?<_\uD83C\uDF1A>)\k<_🌚>\k<_\u{1F31A}>\k<_\uD83C\uDF1A>/; +// Lone leading surrogate +/(?<\uD800>)(?<\u{D800}>)\k<\uD800>\k<\u{D800}>/; +/(?<_\uD800>)(?<_\u{D800}>)\k<_\uD800>\k<_\u{D800}>/; +// Lone trailing surrogate +/(?<\uDFFF>)(?<\u{DFFF}>)\k<\uDFFF>\k<\u{DFFF}>/; +/(?<_\uDFFF>)(?<_\u{DFFF}>)\k<_\uDFFF>\k<_\u{DFFF}>/; +// Fake surrogate pair with extended Unicode escapes – invalid even if the intended character has both properties +/(?<\u{D800}\u{DC00}>)\k<\u{D800}\u{DC00}>/; +/(?<_\u{D800}\u{DC00}>)\k<_\u{D800}\u{DC00}>/; +// Cases with Unicode escapes and extended Unicode escapes mixed +/(?)\k\k<\u{52}\u0065gE\u{78}p>\k<\u0052e\u0067\u{45}x\u{70}>/; +/(?<_RegExp>)\k<_RegExp>\k<_\u{52}\u0065gE\u{78}p>\k<_\u0052e\u0067\u{45}x\u{70}>/; diff --git a/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.symbols b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.symbols new file mode 100644 index 0000000000000..4830c815768f1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.symbols @@ -0,0 +1,66 @@ +//// [tests/cases/compiler/regularExpressionGroupNameUnicodeEscapes.ts] //// + +=== regularExpressionGroupNameUnicodeEscapes.ts === + +// U+13A0 CHEROKEE LETTER A: character inside BMP with both the Unicode properties ID_Start and ID_Continue +/(?<Ꭰ>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +/(?<\u13A0>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +/(?<\u{13A0}>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; + +/(?<_Ꭰ>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +/(?<_\u13A0>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +/(?<_\u{13A0}>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; + +// U+19D4 NEW TAI LUE DIGIT FOUR: character inside BMP with only ID_Continue +/(?<᧔>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +/(?<\u19D4>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +/(?<\u{19D4}>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid + +/(?<_᧔>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +/(?<_\u19D4>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +/(?<_\u{19D4}>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; + +// U+102A7 CARIAN LETTER A2: character outside BMP with both ID_Start and ID_Continue +/(?<𐊧>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +/(?<\u{102A7}>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +/(?<\uD800\uDEA7>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; + +/(?<_𐊧>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +/(?<_\u{102A7}>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +/(?<_\uD800\uDEA7>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; + +// U+1113D CHAKMA DIGIT SEVEN: character outside BMP with only ID_Continue +/(?<𑄽>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +/(?<\u{1113D}>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +/(?<\uD804\uDD3D>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid + +/(?<_𑄽>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +/(?<_\u{1113D}>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +/(?<_\uD804\uDD3D>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; + +// The following cases are all invalid: + +// U+2F47 KANGXI RADICAL SUN: character inside BMP without both properties +/(?<⽇>)(?<\u2F47>)(?<\u{2F47}>)\k<⽇>\k<\u2F47>\k<\u{2F47}>/; +/(?<_⽇>)(?<_\u2F47>)(?<_\u{2F47}>)\k<_⽇>\k<_\u2F47>\k<_\u{2F47}>/; + +// U+1F31A NEW MOON WITH FACE: character outside BMP without both properties +/(?<🌚>)(?<\u{1F31A}>)(?<\uD83C\uDF1A>)\k<🌚>\k<\u{1F31A}>\k<\uD83C\uDF1A>/; +/(?<_🌚>)(?<_\u{1F31A}>)(?<_\uD83C\uDF1A>)\k<_🌚>\k<_\u{1F31A}>\k<_\uD83C\uDF1A>/; + +// Lone leading surrogate +/(?<\uD800>)(?<\u{D800}>)\k<\uD800>\k<\u{D800}>/; +/(?<_\uD800>)(?<_\u{D800}>)\k<_\uD800>\k<_\u{D800}>/; + +// Lone trailing surrogate +/(?<\uDFFF>)(?<\u{DFFF}>)\k<\uDFFF>\k<\u{DFFF}>/; +/(?<_\uDFFF>)(?<_\u{DFFF}>)\k<_\uDFFF>\k<_\u{DFFF}>/; + +// Fake surrogate pair with extended Unicode escapes – invalid even if the intended character has both properties +/(?<\u{D800}\u{DC00}>)\k<\u{D800}\u{DC00}>/; +/(?<_\u{D800}\u{DC00}>)\k<_\u{D800}\u{DC00}>/; + +// Cases with Unicode escapes and extended Unicode escapes mixed +/(?)\k\k<\u{52}\u0065gE\u{78}p>\k<\u0052e\u0067\u{45}x\u{70}>/; +/(?<_RegExp>)\k<_RegExp>\k<_\u{52}\u0065gE\u{78}p>\k<_\u0052e\u0067\u{45}x\u{70}>/; + diff --git a/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.types b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.types new file mode 100644 index 0000000000000..5704f9cdfb4db --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/regularExpressionGroupNameUnicodeEscapes.types @@ -0,0 +1,123 @@ +//// [tests/cases/compiler/regularExpressionGroupNameUnicodeEscapes.ts] //// + +=== regularExpressionGroupNameUnicodeEscapes.ts === +// U+13A0 CHEROKEE LETTER A: character inside BMP with both the Unicode properties ID_Start and ID_Continue +/(?<Ꭰ>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +>/(?<Ꭰ>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/ : RegExp + +/(?<\u13A0>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +>/(?<\u13A0>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/ : RegExp + +/(?<\u{13A0}>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/; +>/(?<\u{13A0}>)\k<Ꭰ>\k<\u13A0>\k<\u{13A0}>/ : RegExp + +/(?<_Ꭰ>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +>/(?<_Ꭰ>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/ : RegExp + +/(?<_\u13A0>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +>/(?<_\u13A0>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/ : RegExp + +/(?<_\u{13A0}>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/; +>/(?<_\u{13A0}>)\k<_Ꭰ>\k<_\u13A0>\k<_\u{13A0}>/ : RegExp + +// U+19D4 NEW TAI LUE DIGIT FOUR: character inside BMP with only ID_Continue +/(?<᧔>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +>/(?<᧔>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/ : RegExp + +/(?<\u19D4>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +>/(?<\u19D4>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/ : RegExp + +/(?<\u{19D4}>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/; // invalid +>/(?<\u{19D4}>)\k<᧔>\k<\u19D4>\k<\u{19D4}>/ : RegExp + +/(?<_᧔>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +>/(?<_᧔>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/ : RegExp + +/(?<_\u19D4>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +>/(?<_\u19D4>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/ : RegExp + +/(?<_\u{19D4}>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/; +>/(?<_\u{19D4}>)\k<_᧔>\k<_\u19D4>\k<_\u{19D4}>/ : RegExp + +// U+102A7 CARIAN LETTER A2: character outside BMP with both ID_Start and ID_Continue +/(?<𐊧>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +>/(?<𐊧>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/ : RegExp + +/(?<\u{102A7}>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +>/(?<\u{102A7}>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/ : RegExp + +/(?<\uD800\uDEA7>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/; +>/(?<\uD800\uDEA7>)\k<𐊧>\k<\u{102A7}>\k<\uD800\uDEA7>/ : RegExp + +/(?<_𐊧>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +>/(?<_𐊧>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/ : RegExp + +/(?<_\u{102A7}>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +>/(?<_\u{102A7}>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/ : RegExp + +/(?<_\uD800\uDEA7>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/; +>/(?<_\uD800\uDEA7>)\k<_𐊧>\k<_\u{102A7}>\k<_\uD800\uDEA7>/ : RegExp + +// U+1113D CHAKMA DIGIT SEVEN: character outside BMP with only ID_Continue +/(?<𑄽>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +>/(?<𑄽>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/ : RegExp + +/(?<\u{1113D}>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +>/(?<\u{1113D}>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/ : RegExp + +/(?<\uD804\uDD3D>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/; // invalid +>/(?<\uD804\uDD3D>)\k<𑄽>\k<\u{1113D}>\k<\uD804\uDD3D>/ : RegExp + +/(?<_𑄽>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +>/(?<_𑄽>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/ : RegExp + +/(?<_\u{1113D}>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +>/(?<_\u{1113D}>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/ : RegExp + +/(?<_\uD804\uDD3D>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/; +>/(?<_\uD804\uDD3D>)\k<_𑄽>\k<_\u{1113D}>\k<_\uD804\uDD3D>/ : RegExp + +// The following cases are all invalid: + +// U+2F47 KANGXI RADICAL SUN: character inside BMP without both properties +/(?<⽇>)(?<\u2F47>)(?<\u{2F47}>)\k<⽇>\k<\u2F47>\k<\u{2F47}>/; +>/(?<⽇>)(?<\u2F47>)(?<\u{2F47}>)\k<⽇>\k<\u2F47>\k<\u{2F47}>/ : RegExp + +/(?<_⽇>)(?<_\u2F47>)(?<_\u{2F47}>)\k<_⽇>\k<_\u2F47>\k<_\u{2F47}>/; +>/(?<_⽇>)(?<_\u2F47>)(?<_\u{2F47}>)\k<_⽇>\k<_\u2F47>\k<_\u{2F47}>/ : RegExp + +// U+1F31A NEW MOON WITH FACE: character outside BMP without both properties +/(?<🌚>)(?<\u{1F31A}>)(?<\uD83C\uDF1A>)\k<🌚>\k<\u{1F31A}>\k<\uD83C\uDF1A>/; +>/(?<🌚>)(?<\u{1F31A}>)(?<\uD83C\uDF1A>)\k<🌚>\k<\u{1F31A}>\k<\uD83C\uDF1A>/ : RegExp + +/(?<_🌚>)(?<_\u{1F31A}>)(?<_\uD83C\uDF1A>)\k<_🌚>\k<_\u{1F31A}>\k<_\uD83C\uDF1A>/; +>/(?<_🌚>)(?<_\u{1F31A}>)(?<_\uD83C\uDF1A>)\k<_🌚>\k<_\u{1F31A}>\k<_\uD83C\uDF1A>/ : RegExp + +// Lone leading surrogate +/(?<\uD800>)(?<\u{D800}>)\k<\uD800>\k<\u{D800}>/; +>/(?<\uD800>)(?<\u{D800}>)\k<\uD800>\k<\u{D800}>/ : RegExp + +/(?<_\uD800>)(?<_\u{D800}>)\k<_\uD800>\k<_\u{D800}>/; +>/(?<_\uD800>)(?<_\u{D800}>)\k<_\uD800>\k<_\u{D800}>/ : RegExp + +// Lone trailing surrogate +/(?<\uDFFF>)(?<\u{DFFF}>)\k<\uDFFF>\k<\u{DFFF}>/; +>/(?<\uDFFF>)(?<\u{DFFF}>)\k<\uDFFF>\k<\u{DFFF}>/ : RegExp + +/(?<_\uDFFF>)(?<_\u{DFFF}>)\k<_\uDFFF>\k<_\u{DFFF}>/; +>/(?<_\uDFFF>)(?<_\u{DFFF}>)\k<_\uDFFF>\k<_\u{DFFF}>/ : RegExp + +// Fake surrogate pair with extended Unicode escapes – invalid even if the intended character has both properties +/(?<\u{D800}\u{DC00}>)\k<\u{D800}\u{DC00}>/; +>/(?<\u{D800}\u{DC00}>)\k<\u{D800}\u{DC00}>/ : RegExp + +/(?<_\u{D800}\u{DC00}>)\k<_\u{D800}\u{DC00}>/; +>/(?<_\u{D800}\u{DC00}>)\k<_\u{D800}\u{DC00}>/ : RegExp + +// Cases with Unicode escapes and extended Unicode escapes mixed +/(?)\k\k<\u{52}\u0065gE\u{78}p>\k<\u0052e\u0067\u{45}x\u{70}>/; +>/(?)\k\k<\u{52}\u0065gE\u{78}p>\k<\u0052e\u0067\u{45}x\u{70}>/ : RegExp + +/(?<_RegExp>)\k<_RegExp>\k<_\u{52}\u0065gE\u{78}p>\k<_\u0052e\u0067\u{45}x\u{70}>/; +>/(?<_RegExp>)\k<_RegExp>\k<_\u{52}\u0065gE\u{78}p>\k<_\u0052e\u0067\u{45}x\u{70}>/ : RegExp + diff --git a/tsc/testdata/baselines/reference/compiler/shebangError.errors.txt b/tsc/testdata/baselines/reference/compiler/shebangError.errors.txt index 63d8730735c6a..392d4443fb887 100644 --- a/tsc/testdata/baselines/reference/compiler/shebangError.errors.txt +++ b/tsc/testdata/baselines/reference/compiler/shebangError.errors.txt @@ -1,20 +1,17 @@ shebangError.ts(2,1): error TS18026: '#!' can only be used at the start of a file. -shebangError.ts(2,2): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -shebangError.ts(2,3): error TS2872: This kind of expression is always truthy. +shebangError.ts(2,3): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. shebangError.ts(2,12): error TS2304: Cannot find name 'env'. shebangError.ts(2,16): error TS1005: ';' expected. shebangError.ts(2,16): error TS2304: Cannot find name 'node'. -==== shebangError.ts (6 errors) ==== +==== shebangError.ts (5 errors) ==== var foo = 'Shebang is only allowed on the first line'; #!/usr/bin/env node ~~ !!! error TS18026: '#!' can only be used at the start of a file. - ~~~~~~~~~ -!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. ~~~~~~~~ -!!! error TS2872: This kind of expression is always truthy. +!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. ~~~ !!! error TS2304: Cannot find name 'env'. ~~~~ diff --git a/tsc/testdata/baselines/reference/compiler/shebangError.errors.txt.diff b/tsc/testdata/baselines/reference/compiler/shebangError.errors.txt.diff new file mode 100644 index 0000000000000..847b5904108d9 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/shebangError.errors.txt.diff @@ -0,0 +1,26 @@ +--- old.shebangError.errors.txt ++++ new.shebangError.errors.txt +@@= skipped -0, +0 lines =@@ + shebangError.ts(2,1): error TS18026: '#!' can only be used at the start of a file. +-shebangError.ts(2,2): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +-shebangError.ts(2,3): error TS2872: This kind of expression is always truthy. ++shebangError.ts(2,3): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + shebangError.ts(2,12): error TS2304: Cannot find name 'env'. + shebangError.ts(2,16): error TS1005: ';' expected. + shebangError.ts(2,16): error TS2304: Cannot find name 'node'. + + +-==== shebangError.ts (6 errors) ==== ++==== shebangError.ts (5 errors) ==== + var foo = 'Shebang is only allowed on the first line'; + #!/usr/bin/env node + ~~ + !!! error TS18026: '#!' can only be used at the start of a file. +- ~~~~~~~~~ +-!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~~~~~~ +-!!! error TS2872: This kind of expression is always truthy. ++!!! error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. + ~~~ + !!! error TS2304: Cannot find name 'env'. + ~~~~ \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/shebangError.js b/tsc/testdata/baselines/reference/compiler/shebangError.js index 8a431bc4f6afe..4bbb98f774e84 100644 --- a/tsc/testdata/baselines/reference/compiler/shebangError.js +++ b/tsc/testdata/baselines/reference/compiler/shebangError.js @@ -7,5 +7,5 @@ var foo = 'Shebang is only allowed on the first line'; //// [shebangError.js] "use strict"; var foo = 'Shebang is only allowed on the first line'; -!/usr/bin / env; +/usr/bin / env; node; diff --git a/tsc/testdata/baselines/reference/compiler/shebangError.js.diff b/tsc/testdata/baselines/reference/compiler/shebangError.js.diff new file mode 100644 index 0000000000000..2d60370bc881a --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/shebangError.js.diff @@ -0,0 +1,9 @@ +--- old.shebangError.js ++++ new.shebangError.js +@@= skipped -6, +6 lines =@@ + //// [shebangError.js] + "use strict"; + var foo = 'Shebang is only allowed on the first line'; +-!/usr/bin / env; ++/usr/bin / env; + node; \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/shebangError.types b/tsc/testdata/baselines/reference/compiler/shebangError.types index 337189d83b2b5..4325f3ee3e517 100644 --- a/tsc/testdata/baselines/reference/compiler/shebangError.types +++ b/tsc/testdata/baselines/reference/compiler/shebangError.types @@ -6,8 +6,7 @@ var foo = 'Shebang is only allowed on the first line'; >'Shebang is only allowed on the first line' : "Shebang is only allowed on the first line" #!/usr/bin/env node ->!/usr/bin/env : number ->!/usr/bin : false +>/usr/bin/env : number >/usr/bin : RegExp >env : any >node : any diff --git a/tsc/testdata/baselines/reference/compiler/shebangError.types.diff b/tsc/testdata/baselines/reference/compiler/shebangError.types.diff new file mode 100644 index 0000000000000..30dc1944b8929 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/shebangError.types.diff @@ -0,0 +1,12 @@ +--- old.shebangError.types ++++ new.shebangError.types +@@= skipped -5, +5 lines =@@ + >'Shebang is only allowed on the first line' : "Shebang is only allowed on the first line" + + #!/usr/bin/env node +->!/usr/bin/env : number +->!/usr/bin : false ++>/usr/bin/env : number + >/usr/bin : RegExp + >env : any + >node : any \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.js b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.js index ab3d518ef44ad..667544e9f88cd 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.js +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.js @@ -4,17 +4,19 @@ /** * @param {number} \u0061 * @param {number} a\u0061 + * @param {number} a\u0062c\u0064e */ -function foo(a, aa) { - console.log(a + aa); +function foo(a, aa, abcde) { + console.log(a + aa + abcde); } /** * @param {number} \u{0061} * @param {number} a\u{0061} + * @param {number} a\u{62}c\u{64}e */ -function bar(a, aa) { - console.log(a + aa); +function bar(a, aa, abcde) { + console.log(a + aa + abcde); } @@ -23,14 +25,16 @@ function bar(a, aa) { /** * @param {number} \u0061 * @param {number} a\u0061 + * @param {number} a\u0062c\u0064e */ -function foo(a, aa) { - console.log(a + aa); +function foo(a, aa, abcde) { + console.log(a + aa + abcde); } /** * @param {number} \u{0061} * @param {number} a\u{0061} + * @param {number} a\u{62}c\u{64}e */ -function bar(a, aa) { - console.log(a + aa); +function bar(a, aa, abcde) { + console.log(a + aa + abcde); } diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.symbols b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.symbols index 2ef9a193c705e..bdc7065af073b 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.symbols +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.symbols @@ -4,34 +4,40 @@ /** * @param {number} \u0061 * @param {number} a\u0061 + * @param {number} a\u0062c\u0064e */ -function foo(a, aa) { +function foo(a, aa, abcde) { >foo : Symbol(foo, Decl(file.js, 0, 0)) ->a : Symbol(a, Decl(file.js, 4, 13)) ->aa : Symbol(aa, Decl(file.js, 4, 15)) +>a : Symbol(a, Decl(file.js, 5, 13)) +>aa : Symbol(aa, Decl(file.js, 5, 15)) +>abcde : Symbol(abcde, Decl(file.js, 5, 19)) - console.log(a + aa); + console.log(a + aa + abcde); >console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) >console : Symbol(console, Decl(lib.dom.d.ts, --, --)) >log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(file.js, 4, 13)) ->aa : Symbol(aa, Decl(file.js, 4, 15)) +>a : Symbol(a, Decl(file.js, 5, 13)) +>aa : Symbol(aa, Decl(file.js, 5, 15)) +>abcde : Symbol(abcde, Decl(file.js, 5, 19)) } /** * @param {number} \u{0061} * @param {number} a\u{0061} + * @param {number} a\u{62}c\u{64}e */ -function bar(a, aa) { ->bar : Symbol(bar, Decl(file.js, 6, 1)) ->a : Symbol(a, Decl(file.js, 12, 13)) ->aa : Symbol(aa, Decl(file.js, 12, 15)) +function bar(a, aa, abcde) { +>bar : Symbol(bar, Decl(file.js, 7, 1)) +>a : Symbol(a, Decl(file.js, 14, 13)) +>aa : Symbol(aa, Decl(file.js, 14, 15)) +>abcde : Symbol(abcde, Decl(file.js, 14, 19)) - console.log(a + aa); + console.log(a + aa + abcde); >console.log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) >console : Symbol(console, Decl(lib.dom.d.ts, --, --)) >log : Symbol(Console.log, Decl(lib.dom.d.ts, --, --)) ->a : Symbol(a, Decl(file.js, 12, 13)) ->aa : Symbol(aa, Decl(file.js, 12, 15)) +>a : Symbol(a, Decl(file.js, 14, 13)) +>aa : Symbol(aa, Decl(file.js, 14, 15)) +>abcde : Symbol(abcde, Decl(file.js, 14, 19)) } diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.types b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.types index 363466c2f67bf..91e24b125baef 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.types +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInJSDoc.types @@ -4,38 +4,46 @@ /** * @param {number} \u0061 * @param {number} a\u0061 + * @param {number} a\u0062c\u0064e */ -function foo(a, aa) { ->foo : (a: number, aa: number) => void +function foo(a, aa, abcde) { +>foo : (a: number, aa: number, abcde: number) => void >a : number >aa : number +>abcde : number - console.log(a + aa); ->console.log(a + aa) : void + console.log(a + aa + abcde); +>console.log(a + aa + abcde) : void >console.log : (...data: any[]) => void >console : Console >log : (...data: any[]) => void +>a + aa + abcde : number >a + aa : number >a : number >aa : number +>abcde : number } /** * @param {number} \u{0061} * @param {number} a\u{0061} + * @param {number} a\u{62}c\u{64}e */ -function bar(a, aa) { ->bar : (a: number, aa: number) => void +function bar(a, aa, abcde) { +>bar : (a: number, aa: number, abcde: number) => void >a : number >aa : number +>abcde : number - console.log(a + aa); ->console.log(a + aa) : void + console.log(a + aa + abcde); +>console.log(a + aa + abcde) : void >console.log : (...data: any[]) => void >console : Console >log : (...data: any[]) => void +>a + aa + abcde : number >a + aa : number >a : number >aa : number +>abcde : number } diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js index f903744e746e8..e48b5ad455800 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js @@ -8,6 +8,10 @@ x++; export let x\u0078 = 10; xx++; +//// [identifierVariableWithEscape3.ts] +export let a\u0062c\u0064e = 10; +abcde++; + //// [identifierVariableWithExtendedEscape1.ts] export let \u{78} = 10; x++; @@ -16,6 +20,10 @@ x++; export let x\u{78} = 10; xx++; +//// [identifierVariableWithExtendedEscape3.ts] +export let a\u{62}c\u{64}e = 10; +abcde++; + //// [IdentifierNameWithEscape1.ts] export class IdentifierNameWithEscape1 { \u0078: number; @@ -42,6 +50,19 @@ export class IdentifierNameWithEscape2 { } } +//// [IdentifierNameWithEscape3.ts] +export class IdentifierNameWithEscape3 { + a\u0062c\u0064e: number; + + constructor() { + this.a\u0062c\u0064e = 0; + } + + doThing() { + this.abcde = 42; + } +} + //// [IdentifierNameWithExtendedEscape1.ts] export class IdentifierNameWithExtendedEscape1 { \u{78}: number; @@ -68,6 +89,19 @@ export class IdentifierNameWithExtendedEscape2 { } } +//// [IdentifierNameWithExtendedEscape3.ts] +export class IdentifierNameWithExtendedEscape3 { + a\u{62}c\u{64}e: number; + + constructor() { + this.a\u{62}c\u{64}e = 0; + } + + doThing() { + this.abcde = 42; + } +} + //// [PrivateIdentifierNameWithEscape1.ts] export class PrivateIdentifierWithEscape1 { #\u0078: number; @@ -94,6 +128,19 @@ export class PrivateIdentifierWithEscape2 { } } +//// [PrivateIdentifierNameWithEscape3.ts] +export class PrivateIdentifierWithEscape3 { + #a\u0062c\u0064e: number; + + constructor() { + this.#a\u0062c\u0064e = 0; + } + + doThing() { + this.#abcde = 42; + } +} + //// [PrivateIdentifierNameWithExtendedEscape1.ts] export class PrivateIdentifierWithExtendedEscape1 { #\u{78}: number; @@ -120,6 +167,19 @@ export class PrivateIdentifierWithExtendedEscape2 { } } +//// [PrivateIdentifierNameWithExtendedEscape3.ts] +export class PrivateIdentifierWithExtendedEscape3 { + #a\u{62}c\u{64}e: number; + + constructor() { + this.#a\u{62}c\u{64}e = 0; + } + + doThing() { + this.#abcde = 42; + } +} + //// [identifierVariableWithEscape1.js] export let \u0078 = 10; @@ -129,6 +189,10 @@ x++; export let x\u0078 = 10; xx++; //# sourceMappingURL=identifierVariableWithEscape2.js.map +//// [identifierVariableWithEscape3.js] +export let a\u0062c\u0064e = 10; +abcde++; +//# sourceMappingURL=identifierVariableWithEscape3.js.map //// [identifierVariableWithExtendedEscape1.js] export let \u{78} = 10; x++; @@ -137,6 +201,10 @@ x++; export let x\u{78} = 10; xx++; //# sourceMappingURL=identifierVariableWithExtendedEscape2.js.map +//// [identifierVariableWithExtendedEscape3.js] +export let a\u{62}c\u{64}e = 10; +abcde++; +//# sourceMappingURL=identifierVariableWithExtendedEscape3.js.map //// [IdentifierNameWithEscape1.js] export class IdentifierNameWithEscape1 { constructor() { @@ -157,6 +225,16 @@ export class IdentifierNameWithEscape2 { } } //# sourceMappingURL=IdentifierNameWithEscape2.js.map +//// [IdentifierNameWithEscape3.js] +export class IdentifierNameWithEscape3 { + constructor() { + this.a\u0062c\u0064e = 0; + } + doThing() { + this.abcde = 42; + } +} +//# sourceMappingURL=IdentifierNameWithEscape3.js.map //// [IdentifierNameWithExtendedEscape1.js] export class IdentifierNameWithExtendedEscape1 { constructor() { @@ -177,6 +255,16 @@ export class IdentifierNameWithExtendedEscape2 { } } //# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map +//// [IdentifierNameWithExtendedEscape3.js] +export class IdentifierNameWithExtendedEscape3 { + constructor() { + this.a\u{62}c\u{64}e = 0; + } + doThing() { + this.abcde = 42; + } +} +//# sourceMappingURL=IdentifierNameWithExtendedEscape3.js.map //// [PrivateIdentifierNameWithEscape1.js] var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); @@ -215,6 +303,25 @@ export class PrivateIdentifierWithEscape2 { } _PrivateIdentifierWithEscape2_xx = new WeakMap(); //# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map +//// [PrivateIdentifierNameWithEscape3.js] +var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +}; +var _PrivateIdentifierWithEscape3_abcde; +export class PrivateIdentifierWithEscape3 { + constructor() { + _PrivateIdentifierWithEscape3_abcde.set(this, void 0); + __classPrivateFieldSet(this, _PrivateIdentifierWithEscape3_abcde, 0, "f"); + } + doThing() { + __classPrivateFieldSet(this, _PrivateIdentifierWithEscape3_abcde, 42, "f"); + } +} +_PrivateIdentifierWithEscape3_abcde = new WeakMap(); +//# sourceMappingURL=PrivateIdentifierNameWithEscape3.js.map //// [PrivateIdentifierNameWithExtendedEscape1.js] var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { if (kind === "m") throw new TypeError("Private method is not writable"); @@ -252,4 +359,23 @@ export class PrivateIdentifierWithExtendedEscape2 { } } _PrivateIdentifierWithExtendedEscape2_xx = new WeakMap(); -//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map \ No newline at end of file +//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map +//// [PrivateIdentifierNameWithExtendedEscape3.js] +var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { + if (kind === "m") throw new TypeError("Private method is not writable"); + if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); + if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); + return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +}; +var _PrivateIdentifierWithExtendedEscape3_abcde; +export class PrivateIdentifierWithExtendedEscape3 { + constructor() { + _PrivateIdentifierWithExtendedEscape3_abcde.set(this, void 0); + __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape3_abcde, 0, "f"); + } + doThing() { + __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape3_abcde, 42, "f"); + } +} +_PrivateIdentifierWithExtendedEscape3_abcde = new WeakMap(); +//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js.map b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js.map index 2deedcc7708b7..7fefec55bcbd5 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js.map +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).js.map @@ -6,6 +6,10 @@ {"version":3,"file":"identifierVariableWithEscape2.js","sourceRoot":"","sources":["identifierVariableWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,EAAE,EAAE,CAAC"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7DQp4eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9aWRlbnRpZmllclZhcmlhYmxlV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpZGVudGlmaWVyVmFyaWFibGVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxPQUFPLEdBQUcsRUFBRSxDQUFDO0FBQ3hCLEVBQUUsRUFBRSxDQUFDIn0=,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7Cnh4Kys7Cg== +//// [identifierVariableWithEscape3.js.map] +{"version":3,"file":"identifierVariableWithEscape3.js","sourceRoot":"","sources":["identifierVariableWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsNCmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1pZGVudGlmaWVyVmFyaWFibGVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpZGVudGlmaWVyVmFyaWFibGVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxlQUFlLEdBQUcsRUFBRSxDQUFDO0FBQ2hDLEtBQUssRUFBRSxDQUFDIn0=,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsKYWJjZGUrKzsK + //// [identifierVariableWithExtendedEscape1.js.map] {"version":3,"file":"identifierVariableWithExtendedEscape1.js","sourceRoot":"","sources":["identifierVariableWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC;AACvB,CAAC,EAAE,CAAC"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsNCngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksTUFBTSxHQUFHLEVBQUUsQ0FBQztBQUN2QixDQUFDLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsKeCsrOwo= @@ -14,6 +18,10 @@ {"version":3,"file":"identifierVariableWithExtendedEscape2.js","sourceRoot":"","sources":["identifierVariableWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,EAAE,EAAE,CAAC"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7DQp4eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9aWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksT0FBTyxHQUFHLEVBQUUsQ0FBQztBQUN4QixFQUFFLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7Cnh4Kys7Cg== +//// [identifierVariableWithExtendedEscape3.js.map] +{"version":3,"file":"identifierVariableWithExtendedEscape3.js","sourceRoot":"","sources":["identifierVariableWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsNCmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1pZGVudGlmaWVyVmFyaWFibGVXaXRoRXh0ZW5kZWRFc2NhcGUzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksZUFBZSxHQUFHLEVBQUUsQ0FBQztBQUNoQyxLQUFLLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsKYWJjZGUrKzsK + //// [IdentifierNameWithEscape1.js.map] {"version":3,"file":"IdentifierNameWithEscape1.js","sourceRoot":"","sources":["IdentifierNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAAyB;IAGlC;QACI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEgew0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLlx1MDA3OCA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMueCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIklkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlCQUF5QjtJQUdsQztRQUNJLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDO0lBQ3BCLENBQUM7SUFFRCxPQUFPO1FBQ0gsSUFBSSxDQUFDLENBQUMsR0FBRyxFQUFFLENBQUM7SUFDaEIsQ0FBQztDQUNKIn0=,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEgewogICAgXHUwMDc4OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy5cdTAwNzggPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy54ID0gNDI7CiAgICB9Cn0K @@ -22,6 +30,10 @@ {"version":3,"file":"IdentifierNameWithEscape2.js","sourceRoot":"","sources":["IdentifierNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAAyB;IAGlC;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIgew0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLnhcdTAwNzggPSAwOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICB0aGlzLnh4ID0gNDI7DQogICAgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9SWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIklkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlCQUF5QjtJQUdsQztRQUNJLElBQUksQ0FBQyxPQUFPLEdBQUcsQ0FBQyxDQUFDO0lBQ3JCLENBQUM7SUFFRCxPQUFPO1FBQ0gsSUFBSSxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUM7SUFDakIsQ0FBQztDQUNKIn0=,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIgewogICAgeFx1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMueFx1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLnh4ID0gNDI7CiAgICB9Cn0K +//// [IdentifierNameWithEscape3.js.map] +{"version":3,"file":"IdentifierNameWithEscape3.js","sourceRoot":"","sources":["IdentifierNameWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAAyB;IAGlC;QACI,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMgew0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLmFcdTAwNjJjXHUwMDY0ZSA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuYWJjZGUgPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1JZGVudGlmaWVyTmFtZVdpdGhFc2NhcGUzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIklkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlCQUF5QjtJQUdsQztRQUNJLElBQUksQ0FBQyxlQUFlLEdBQUcsQ0FBQyxDQUFDO0lBQzdCLENBQUM7SUFFRCxPQUFPO1FBQ0gsSUFBSSxDQUFDLEtBQUssR0FBRyxFQUFFLENBQUM7SUFDcEIsQ0FBQztDQUNKIn0=,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMgewogICAgYVx1MDA2MmNcdTAwNjRlOiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy5hXHUwMDYyY1x1MDA2NGUgPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy5hYmNkZSA9IDQyOwogICAgfQp9Cg== + //// [IdentifierNameWithExtendedEscape1.js.map] {"version":3,"file":"IdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["IdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iCAAiC;IAG1C;QACI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMSB7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuXHV7Nzh9ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy54ID0gNDI7DQogICAgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9SWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxpQ0FBaUM7SUFHMUM7UUFDSSxJQUFJLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQztJQUNwQixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQ2hCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICBcdXs3OH06IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLlx1ezc4fSA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLnggPSA0MjsKICAgIH0KfQo= @@ -30,6 +42,10 @@ {"version":3,"file":"IdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["IdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iCAAiC;IAG1C;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMiB7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMueFx1ezc4fSA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMueHggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1JZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxpQ0FBaUM7SUFHMUM7UUFDSSxJQUFJLENBQUMsT0FBTyxHQUFHLENBQUMsQ0FBQztJQUNyQixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQ2pCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICB4XHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy54XHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMueHggPSA0MjsKICAgIH0KfQo= +//// [IdentifierNameWithExtendedEscape3.js.map] +{"version":3,"file":"IdentifierNameWithExtendedEscape3.js","sourceRoot":"","sources":["IdentifierNameWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iCAAiC;IAG1C;QACI,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMyB7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuYVx1ezYyfWNcdXs2NH1lID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy5hYmNkZSA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxpQ0FBaUM7SUFHMUM7UUFDSSxJQUFJLENBQUMsZUFBZSxHQUFHLENBQUMsQ0FBQztJQUM3QixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxLQUFLLEdBQUcsRUFBRSxDQUFDO0lBQ3BCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMyB7CiAgICBhXHV7NjJ9Y1x1ezY0fWU6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLmFcdXs2Mn1jXHV7NjR9ZSA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLmFiY2RlID0gNDI7CiAgICB9Cn0K + //// [PrivateIdentifierNameWithEscape1.js.map] {"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,4BAA4B;IAGrC;QAFA,kDAAgB;QAGZ,uBAAA,IAAI,mCAAW,CAAC,MAAA,CAAC;IACrB,CAAC;IAED,OAAO;QACH,uBAAA,IAAI,mCAAM,EAAE,MAAA,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZTsNCn07DQp2YXIgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTFfeDsNCmV4cG9ydCBjbGFzcyBQcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUxIHsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTFfeC5zZXQodGhpcywgdm9pZCAwKTsNCiAgICAgICAgX19jbGFzc1ByaXZhdGVGaWVsZFNldCh0aGlzLCBfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMV94LCAwLCAiZiIpOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUxX3gsIDQyLCAiZiIpOw0KICAgIH0NCn0NCl9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUxX3ggPSBuZXcgV2Vha01hcCgpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsTUFBTSxPQUFPLDRCQUE0QjtJQUdyQztRQUZBLGtEQUFnQjtRQUdaLHVCQUFBLElBQUksbUNBQVcsQ0FBQyxNQUFBLENBQUM7SUFDckIsQ0FBQztJQUVELE9BQU87UUFDSCx1QkFBQSxJQUFJLG1DQUFNLEVBQUUsTUFBQSxDQUFDO0lBQ2pCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K @@ -38,6 +54,10 @@ {"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,4BAA4B;IAGrC;QAFA,mDAAiB;QAGb,uBAAA,IAAI,oCAAY,CAAC,MAAA,CAAC;IACtB,CAAC;IAED,OAAO;QACH,uBAAA,IAAI,oCAAO,EAAE,MAAA,CAAC;IAClB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZTsNCn07DQp2YXIgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTJfeHg7DQpleHBvcnQgY2xhc3MgUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMiB7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUyX3h4LnNldCh0aGlzLCB2b2lkIDApOw0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUyX3h4LCAwLCAiZiIpOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUyX3h4LCA0MiwgImYiKTsNCiAgICB9DQp9DQpfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMl94eCA9IG5ldyBXZWFrTWFwKCk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsTUFBTSxPQUFPLDRCQUE0QjtJQUdyQztRQUZBLG1EQUFpQjtRQUdiLHVCQUFBLElBQUksb0NBQVksQ0FBQyxNQUFBLENBQUM7SUFDdEIsQ0FBQztJQUVELE9BQU87UUFDSCx1QkFBQSxJQUFJLG9DQUFPLEVBQUUsTUFBQSxDQUFDO0lBQ2xCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K +//// [PrivateIdentifierNameWithEscape3.js.map] +{"version":3,"file":"PrivateIdentifierNameWithEscape3.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape3.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,4BAA4B;IAGrC;QAFA,sDAAyB;QAGrB,uBAAA,IAAI,uCAAoB,CAAC,MAAA,CAAC;IAC9B,CAAC;IAED,OAAO;QACH,uBAAA,IAAI,uCAAU,EAAE,MAAA,CAAC;IACrB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZTsNCn07DQp2YXIgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTNfYWJjZGU7DQpleHBvcnQgY2xhc3MgUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMyB7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUzX2FiY2RlLnNldCh0aGlzLCB2b2lkIDApOw0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUzX2FiY2RlLCAwLCAiZiIpOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUzX2FiY2RlLCA0MiwgImYiKTsNCiAgICB9DQp9DQpfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlM19hYmNkZSA9IG5ldyBXZWFrTWFwKCk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsTUFBTSxPQUFPLDRCQUE0QjtJQUdyQztRQUZBLHNEQUF5QjtRQUdyQix1QkFBQSxJQUFJLHVDQUFvQixDQUFDLE1BQUEsQ0FBQztJQUM5QixDQUFDO0lBRUQsT0FBTztRQUNILHVCQUFBLElBQUksdUNBQVUsRUFBRSxNQUFBLENBQUM7SUFDckIsQ0FBQztDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTMgewogICAgI2FcdTAwNjJjXHUwMDY0ZTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI2FcdTAwNjJjXHUwMDY0ZSA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiNhYmNkZSA9IDQyOwogICAgfQp9Cg== + //// [PrivateIdentifierNameWithExtendedEscape1.js.map] {"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,oCAAoC;IAG7C;QAFA,0DAAgB;QAGZ,uBAAA,IAAI,2CAAW,CAAC,MAAA,CAAC;IACrB,CAAC;IAED,OAAO;QACH,uBAAA,IAAI,2CAAM,EAAE,MAAA,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZTsNCn07DQp2YXIgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMV94Ow0KZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFeHRlbmRlZEVzY2FwZTFfeC5zZXQodGhpcywgdm9pZCAwKTsNCiAgICAgICAgX19jbGFzc1ByaXZhdGVGaWVsZFNldCh0aGlzLCBfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXh0ZW5kZWRFc2NhcGUxX3gsIDAsICJmIik7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIF9fY2xhc3NQcml2YXRlRmllbGRTZXQodGhpcywgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMV94LCA0MiwgImYiKTsNCiAgICB9DQp9DQpfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXh0ZW5kZWRFc2NhcGUxX3ggPSBuZXcgV2Vha01hcCgpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLE1BQU0sT0FBTyxvQ0FBb0M7SUFHN0M7UUFGQSwwREFBZ0I7UUFHWix1QkFBQSxJQUFJLDJDQUFXLENBQUMsTUFBQSxDQUFDO0lBQ3JCLENBQUM7SUFFRCxPQUFPO1FBQ0gsdUJBQUEsSUFBSSwyQ0FBTSxFQUFFLE1BQUEsQ0FBQztJQUNqQixDQUFDO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICAjXHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo= @@ -45,3 +65,7 @@ //// [PrivateIdentifierNameWithExtendedEscape2.js.map] {"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,oCAAoC;IAG7C;QAFA,2DAAiB;QAGb,uBAAA,IAAI,4CAAY,CAAC,MAAA,CAAC;IACtB,CAAC;IAED,OAAO;QACH,uBAAA,IAAI,4CAAO,EAAE,MAAA,CAAC;IAClB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZTsNCn07DQp2YXIgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMl94eDsNCmV4cG9ydCBjbGFzcyBQcml2YXRlSWRlbnRpZmllcldpdGhFeHRlbmRlZEVzY2FwZTIgew0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICBfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXh0ZW5kZWRFc2NhcGUyX3h4LnNldCh0aGlzLCB2b2lkIDApOw0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFeHRlbmRlZEVzY2FwZTJfeHgsIDAsICJmIik7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIF9fY2xhc3NQcml2YXRlRmllbGRTZXQodGhpcywgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMl94eCwgNDIsICJmIik7DQogICAgfQ0KfQ0KX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMl94eCA9IG5ldyBXZWFrTWFwKCk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUyLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLE1BQU0sT0FBTyxvQ0FBb0M7SUFHN0M7UUFGQSwyREFBaUI7UUFHYix1QkFBQSxJQUFJLDRDQUFZLENBQUMsTUFBQSxDQUFDO0lBQ3RCLENBQUM7SUFFRCxPQUFPO1FBQ0gsdUJBQUEsSUFBSSw0Q0FBTyxFQUFFLE1BQUEsQ0FBQztJQUNsQixDQUFDO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo= + +//// [PrivateIdentifierNameWithExtendedEscape3.js.map] +{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape3.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape3.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,oCAAoC;IAG7C;QAFA,8DAAyB;QAGrB,uBAAA,IAAI,+CAAoB,CAAC,MAAA,CAAC;IAC9B,CAAC;IAED,OAAO;QACH,uBAAA,IAAI,+CAAU,EAAE,MAAA,CAAC;IACrB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZTsNCn07DQp2YXIgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlM19hYmNkZTsNCmV4cG9ydCBjbGFzcyBQcml2YXRlSWRlbnRpZmllcldpdGhFeHRlbmRlZEVzY2FwZTMgew0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICBfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXh0ZW5kZWRFc2NhcGUzX2FiY2RlLnNldCh0aGlzLCB2b2lkIDApOw0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFeHRlbmRlZEVzY2FwZTNfYWJjZGUsIDAsICJmIik7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIF9fY2xhc3NQcml2YXRlRmllbGRTZXQodGhpcywgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlM19hYmNkZSwgNDIsICJmIik7DQogICAgfQ0KfQ0KX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlM19hYmNkZSA9IG5ldyBXZWFrTWFwKCk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLE1BQU0sT0FBTyxvQ0FBb0M7SUFHN0M7UUFGQSw4REFBeUI7UUFHckIsdUJBQUEsSUFBSSwrQ0FBb0IsQ0FBQyxNQUFBLENBQUM7SUFDOUIsQ0FBQztJQUVELE9BQU87UUFDSCx1QkFBQSxJQUFJLCtDQUFVLEVBQUUsTUFBQSxDQUFDO0lBQ3JCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMyB7CiAgICAjYVx1ezYyfWNcdXs2NH1lOiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jYVx1ezYyfWNcdXs2NH1lID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI2FiY2RlID0gNDI7CiAgICB9Cn0K diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt index 0bc35c437d93c..a6c41990cd913 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt @@ -103,6 +103,58 @@ sourceFile:identifierVariableWithEscape2.ts 4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) --- >>>//# sourceMappingURL=identifierVariableWithEscape2.js.map=================================================================== +JsFile: identifierVariableWithEscape3.js +mapUrl: identifierVariableWithEscape3.js.map +sourceRoot: +sources: identifierVariableWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:identifierVariableWithEscape3.js +sourceFile:identifierVariableWithEscape3.ts +------------------------------------------------------------------- +>>>export let a\u0062c\u0064e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > +2 >export +3 > +4 > let +5 > a\u0062c\u0064e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>abcde++; +1 > +2 >^^^^^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >abcde +3 > ++ +4 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=identifierVariableWithEscape3.js.map=================================================================== JsFile: identifierVariableWithExtendedEscape1.js mapUrl: identifierVariableWithExtendedEscape1.js.map sourceRoot: @@ -207,6 +259,58 @@ sourceFile:identifierVariableWithExtendedEscape2.ts 4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) --- >>>//# sourceMappingURL=identifierVariableWithExtendedEscape2.js.map=================================================================== +JsFile: identifierVariableWithExtendedEscape3.js +mapUrl: identifierVariableWithExtendedEscape3.js.map +sourceRoot: +sources: identifierVariableWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:identifierVariableWithExtendedEscape3.js +sourceFile:identifierVariableWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export let a\u{62}c\u{64}e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > +2 >export +3 > +4 > let +5 > a\u{62}c\u{64}e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>abcde++; +1 > +2 >^^^^^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >abcde +3 > ++ +4 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=identifierVariableWithExtendedEscape3.js.map=================================================================== JsFile: IdentifierNameWithEscape1.js mapUrl: IdentifierNameWithEscape1.js.map sourceRoot: @@ -443,6 +547,124 @@ sourceFile:IdentifierNameWithEscape2.ts 1 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=IdentifierNameWithEscape2.js.map=================================================================== +JsFile: IdentifierNameWithEscape3.js +mapUrl: IdentifierNameWithEscape3.js.map +sourceRoot: +sources: IdentifierNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:IdentifierNameWithEscape3.js +sourceFile:IdentifierNameWithEscape3.ts +------------------------------------------------------------------- +>>>export class IdentifierNameWithEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > IdentifierNameWithEscape3 +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 39) Source(1, 39) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > a\u0062c\u0064e: number; + > + > +1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) +--- +>>> this.a\u0062c\u0064e = 0; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^ +7 > ^ +1->constructor() { + > +2 > this +3 > . +4 > a\u0062c\u0064e +5 > = +6 > 0 +7 > ; +1->Emitted(3, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(3, 13) Source(5, 13) + SourceIndex(0) +3 >Emitted(3, 14) Source(5, 14) + SourceIndex(0) +4 >Emitted(3, 29) Source(5, 29) + SourceIndex(0) +5 >Emitted(3, 32) Source(5, 32) + SourceIndex(0) +6 >Emitted(3, 33) Source(5, 33) + SourceIndex(0) +7 >Emitted(3, 34) Source(5, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 12) Source(8, 12) + SourceIndex(0) +--- +>>> this.abcde = 42; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1->() { + > +2 > this +3 > . +4 > abcde +5 > = +6 > 42 +7 > ; +1->Emitted(6, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(6, 13) Source(9, 13) + SourceIndex(0) +3 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +4 >Emitted(6, 19) Source(9, 19) + SourceIndex(0) +5 >Emitted(6, 22) Source(9, 22) + SourceIndex(0) +6 >Emitted(6, 24) Source(9, 24) + SourceIndex(0) +7 >Emitted(6, 25) Source(9, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=IdentifierNameWithEscape3.js.map=================================================================== JsFile: IdentifierNameWithExtendedEscape1.js mapUrl: IdentifierNameWithExtendedEscape1.js.map sourceRoot: @@ -679,6 +901,124 @@ sourceFile:IdentifierNameWithExtendedEscape2.ts 1 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map=================================================================== +JsFile: IdentifierNameWithExtendedEscape3.js +mapUrl: IdentifierNameWithExtendedEscape3.js.map +sourceRoot: +sources: IdentifierNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:IdentifierNameWithExtendedEscape3.js +sourceFile:IdentifierNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export class IdentifierNameWithExtendedEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > IdentifierNameWithExtendedEscape3 +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 47) Source(1, 47) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > a\u{62}c\u{64}e: number; + > + > +1 >Emitted(2, 5) Source(4, 5) + SourceIndex(0) +--- +>>> this.a\u{62}c\u{64}e = 0; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^ +7 > ^ +1->constructor() { + > +2 > this +3 > . +4 > a\u{62}c\u{64}e +5 > = +6 > 0 +7 > ; +1->Emitted(3, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(3, 13) Source(5, 13) + SourceIndex(0) +3 >Emitted(3, 14) Source(5, 14) + SourceIndex(0) +4 >Emitted(3, 29) Source(5, 29) + SourceIndex(0) +5 >Emitted(3, 32) Source(5, 32) + SourceIndex(0) +6 >Emitted(3, 33) Source(5, 33) + SourceIndex(0) +7 >Emitted(3, 34) Source(5, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(4, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(4, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(5, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(5, 12) Source(8, 12) + SourceIndex(0) +--- +>>> this.abcde = 42; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1->() { + > +2 > this +3 > . +4 > abcde +5 > = +6 > 42 +7 > ; +1->Emitted(6, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(6, 13) Source(9, 13) + SourceIndex(0) +3 >Emitted(6, 14) Source(9, 14) + SourceIndex(0) +4 >Emitted(6, 19) Source(9, 19) + SourceIndex(0) +5 >Emitted(6, 22) Source(9, 22) + SourceIndex(0) +6 >Emitted(6, 24) Source(9, 24) + SourceIndex(0) +7 >Emitted(6, 25) Source(9, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(7, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(7, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(8, 2) Source(11, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=IdentifierNameWithExtendedEscape3.js.map=================================================================== JsFile: PrivateIdentifierNameWithEscape1.js mapUrl: PrivateIdentifierNameWithEscape1.js.map sourceRoot: @@ -953,6 +1293,143 @@ sourceFile:PrivateIdentifierNameWithEscape2.ts --- >>>_PrivateIdentifierWithEscape2_xx = new WeakMap(); >>>//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map=================================================================== +JsFile: PrivateIdentifierNameWithEscape3.js +mapUrl: PrivateIdentifierNameWithEscape3.js.map +sourceRoot: +sources: PrivateIdentifierNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:PrivateIdentifierNameWithEscape3.js +sourceFile:PrivateIdentifierNameWithEscape3.ts +------------------------------------------------------------------- +>>>var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { +>>> if (kind === "m") throw new TypeError("Private method is not writable"); +>>> if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); +>>> if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); +>>> return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +>>>}; +>>>var _PrivateIdentifierWithEscape3_abcde; +>>>export class PrivateIdentifierWithEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > PrivateIdentifierWithEscape3 +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(8, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(8, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(8, 42) Source(1, 42) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > #a\u0062c\u0064e: number; + > + > +1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0) +--- +>>> _PrivateIdentifierWithEscape3_abcde.set(this, void 0); +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > #a\u0062c\u0064e: number; +1->Emitted(10, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(10, 63) Source(2, 30) + SourceIndex(0) +--- +>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape3_abcde, 0, "f"); +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +1-> + > + > constructor() { + > +2 > +3 > this +4 > .#a\u0062c\u0064e = +5 > 0 +6 > +7 > ; +1->Emitted(11, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(11, 32) Source(5, 9) + SourceIndex(0) +3 >Emitted(11, 36) Source(5, 13) + SourceIndex(0) +4 >Emitted(11, 75) Source(5, 33) + SourceIndex(0) +5 >Emitted(11, 76) Source(5, 34) + SourceIndex(0) +6 >Emitted(11, 82) Source(5, 34) + SourceIndex(0) +7 >Emitted(11, 83) Source(5, 35) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(13, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0) +--- +>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape3_abcde, 42, "f"); +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +1->() { + > +2 > +3 > this +4 > .#abcde = +5 > 42 +6 > +7 > ; +1->Emitted(14, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(14, 32) Source(9, 9) + SourceIndex(0) +3 >Emitted(14, 36) Source(9, 13) + SourceIndex(0) +4 >Emitted(14, 75) Source(9, 23) + SourceIndex(0) +5 >Emitted(14, 77) Source(9, 25) + SourceIndex(0) +6 >Emitted(14, 83) Source(9, 25) + SourceIndex(0) +7 >Emitted(14, 84) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(15, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0) +--- +>>>_PrivateIdentifierWithEscape3_abcde = new WeakMap(); +>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape3.js.map=================================================================== JsFile: PrivateIdentifierNameWithExtendedEscape1.js mapUrl: PrivateIdentifierNameWithExtendedEscape1.js.map sourceRoot: @@ -1226,4 +1703,141 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts 1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0) --- >>>_PrivateIdentifierWithExtendedEscape2_xx = new WeakMap(); ->>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map \ No newline at end of file +>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map=================================================================== +JsFile: PrivateIdentifierNameWithExtendedEscape3.js +mapUrl: PrivateIdentifierNameWithExtendedEscape3.js.map +sourceRoot: +sources: PrivateIdentifierNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:PrivateIdentifierNameWithExtendedEscape3.js +sourceFile:PrivateIdentifierNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) { +>>> if (kind === "m") throw new TypeError("Private method is not writable"); +>>> if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter"); +>>> if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it"); +>>> return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value; +>>>}; +>>>var _PrivateIdentifierWithExtendedEscape3_abcde; +>>>export class PrivateIdentifierWithExtendedEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > PrivateIdentifierWithExtendedEscape3 +1 >Emitted(8, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(8, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(8, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(8, 50) Source(1, 50) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > { + > #a\u{62}c\u{64}e: number; + > + > +1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0) +--- +>>> _PrivateIdentifierWithExtendedEscape3_abcde.set(this, void 0); +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^-> +1-> +2 > #a\u{62}c\u{64}e: number; +1->Emitted(10, 9) Source(2, 5) + SourceIndex(0) +2 >Emitted(10, 71) Source(2, 30) + SourceIndex(0) +--- +>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape3_abcde, 0, "f"); +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^ +6 > ^^^^^^ +7 > ^ +1-> + > + > constructor() { + > +2 > +3 > this +4 > .#a\u{62}c\u{64}e = +5 > 0 +6 > +7 > ; +1->Emitted(11, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(11, 32) Source(5, 9) + SourceIndex(0) +3 >Emitted(11, 36) Source(5, 13) + SourceIndex(0) +4 >Emitted(11, 83) Source(5, 33) + SourceIndex(0) +5 >Emitted(11, 84) Source(5, 34) + SourceIndex(0) +6 >Emitted(11, 90) Source(5, 34) + SourceIndex(0) +7 >Emitted(11, 91) Source(5, 35) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(13, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0) +--- +>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape3_abcde, 42, "f"); +1->^^^^^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +5 > ^^ +6 > ^^^^^^ +7 > ^ +1->() { + > +2 > +3 > this +4 > .#abcde = +5 > 42 +6 > +7 > ; +1->Emitted(14, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(14, 32) Source(9, 9) + SourceIndex(0) +3 >Emitted(14, 36) Source(9, 13) + SourceIndex(0) +4 >Emitted(14, 83) Source(9, 23) + SourceIndex(0) +5 >Emitted(14, 85) Source(9, 25) + SourceIndex(0) +6 >Emitted(14, 91) Source(9, 25) + SourceIndex(0) +7 >Emitted(14, 92) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(15, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0) +--- +>>>_PrivateIdentifierWithExtendedEscape3_abcde = new WeakMap(); +>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).symbols b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).symbols index f2f911281b359..9cde889797068 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).symbols +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).symbols @@ -14,6 +14,13 @@ export let x\u0078 = 10; xx++; >xx : Symbol(x\u0078, Decl(identifierVariableWithEscape2.ts, 0, 10)) +=== identifierVariableWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(identifierVariableWithEscape3.ts, 0, 10)) + +abcde++; +>abcde : Symbol(a\u0062c\u0064e, Decl(identifierVariableWithEscape3.ts, 0, 10)) + === identifierVariableWithExtendedEscape1.ts === export let \u{78} = 10; >\u{78} : Symbol(\u{78}, Decl(identifierVariableWithExtendedEscape1.ts, 0, 10)) @@ -28,6 +35,13 @@ export let x\u{78} = 10; xx++; >xx : Symbol(x\u{78}, Decl(identifierVariableWithExtendedEscape2.ts, 0, 10)) +=== identifierVariableWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(identifierVariableWithExtendedEscape3.ts, 0, 10)) + +abcde++; +>abcde : Symbol(a\u{62}c\u{64}e, Decl(identifierVariableWithExtendedEscape3.ts, 0, 10)) + === IdentifierNameWithEscape1.ts === export class IdentifierNameWithEscape1 { >IdentifierNameWithEscape1 : Symbol(IdentifierNameWithEscape1, Decl(IdentifierNameWithEscape1.ts, 0, 0)) @@ -76,6 +90,30 @@ export class IdentifierNameWithEscape2 { } } +=== IdentifierNameWithEscape3.ts === +export class IdentifierNameWithEscape3 { +>IdentifierNameWithEscape3 : Symbol(IdentifierNameWithEscape3, Decl(IdentifierNameWithEscape3.ts, 0, 0)) + + a\u0062c\u0064e: number; +>a\u0062c\u0064e : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) + + constructor() { + this.a\u0062c\u0064e = 0; +>this.a\u0062c\u0064e : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) +>this : Symbol(IdentifierNameWithEscape3, Decl(IdentifierNameWithEscape3.ts, 0, 0)) +>a\u0062c\u0064e : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) + } + + doThing() { +>doThing : Symbol(IdentifierNameWithEscape3.doThing, Decl(IdentifierNameWithEscape3.ts, 5, 5)) + + this.abcde = 42; +>this.abcde : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) +>this : Symbol(IdentifierNameWithEscape3, Decl(IdentifierNameWithEscape3.ts, 0, 0)) +>abcde : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) + } +} + === IdentifierNameWithExtendedEscape1.ts === export class IdentifierNameWithExtendedEscape1 { >IdentifierNameWithExtendedEscape1 : Symbol(IdentifierNameWithExtendedEscape1, Decl(IdentifierNameWithExtendedEscape1.ts, 0, 0)) @@ -124,6 +162,30 @@ export class IdentifierNameWithExtendedEscape2 { } } +=== IdentifierNameWithExtendedEscape3.ts === +export class IdentifierNameWithExtendedEscape3 { +>IdentifierNameWithExtendedEscape3 : Symbol(IdentifierNameWithExtendedEscape3, Decl(IdentifierNameWithExtendedEscape3.ts, 0, 0)) + + a\u{62}c\u{64}e: number; +>a\u{62}c\u{64}e : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) + + constructor() { + this.a\u{62}c\u{64}e = 0; +>this.a\u{62}c\u{64}e : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) +>this : Symbol(IdentifierNameWithExtendedEscape3, Decl(IdentifierNameWithExtendedEscape3.ts, 0, 0)) +>a\u{62}c\u{64}e : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) + } + + doThing() { +>doThing : Symbol(IdentifierNameWithExtendedEscape3.doThing, Decl(IdentifierNameWithExtendedEscape3.ts, 5, 5)) + + this.abcde = 42; +>this.abcde : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) +>this : Symbol(IdentifierNameWithExtendedEscape3, Decl(IdentifierNameWithExtendedEscape3.ts, 0, 0)) +>abcde : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) + } +} + === PrivateIdentifierNameWithEscape1.ts === export class PrivateIdentifierWithEscape1 { >PrivateIdentifierWithEscape1 : Symbol(PrivateIdentifierWithEscape1, Decl(PrivateIdentifierNameWithEscape1.ts, 0, 0)) @@ -168,6 +230,28 @@ export class PrivateIdentifierWithEscape2 { } } +=== PrivateIdentifierNameWithEscape3.ts === +export class PrivateIdentifierWithEscape3 { +>PrivateIdentifierWithEscape3 : Symbol(PrivateIdentifierWithEscape3, Decl(PrivateIdentifierNameWithEscape3.ts, 0, 0)) + + #a\u0062c\u0064e: number; +>#a\u0062c\u0064e : Symbol(PrivateIdentifierWithEscape3[#a\u0062c\u0064e], Decl(PrivateIdentifierNameWithEscape3.ts, 0, 43)) + + constructor() { + this.#a\u0062c\u0064e = 0; +>this.#a\u0062c\u0064e : Symbol(PrivateIdentifierWithEscape3[#a\u0062c\u0064e], Decl(PrivateIdentifierNameWithEscape3.ts, 0, 43)) +>this : Symbol(PrivateIdentifierWithEscape3, Decl(PrivateIdentifierNameWithEscape3.ts, 0, 0)) + } + + doThing() { +>doThing : Symbol(PrivateIdentifierWithEscape3.doThing, Decl(PrivateIdentifierNameWithEscape3.ts, 5, 5)) + + this.#abcde = 42; +>this.#abcde : Symbol(PrivateIdentifierWithEscape3[#a\u0062c\u0064e], Decl(PrivateIdentifierNameWithEscape3.ts, 0, 43)) +>this : Symbol(PrivateIdentifierWithEscape3, Decl(PrivateIdentifierNameWithEscape3.ts, 0, 0)) + } +} + === PrivateIdentifierNameWithExtendedEscape1.ts === export class PrivateIdentifierWithExtendedEscape1 { >PrivateIdentifierWithExtendedEscape1 : Symbol(PrivateIdentifierWithExtendedEscape1, Decl(PrivateIdentifierNameWithExtendedEscape1.ts, 0, 0)) @@ -212,3 +296,25 @@ export class PrivateIdentifierWithExtendedEscape2 { } } +=== PrivateIdentifierNameWithExtendedEscape3.ts === +export class PrivateIdentifierWithExtendedEscape3 { +>PrivateIdentifierWithExtendedEscape3 : Symbol(PrivateIdentifierWithExtendedEscape3, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 0)) + + #a\u{62}c\u{64}e: number; +>#a\u{62}c\u{64}e : Symbol(PrivateIdentifierWithExtendedEscape3[#a\u{62}c\u{64}e], Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 51)) + + constructor() { + this.#a\u{62}c\u{64}e = 0; +>this.#a\u{62}c\u{64}e : Symbol(PrivateIdentifierWithExtendedEscape3[#a\u{62}c\u{64}e], Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 51)) +>this : Symbol(PrivateIdentifierWithExtendedEscape3, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 0)) + } + + doThing() { +>doThing : Symbol(PrivateIdentifierWithExtendedEscape3.doThing, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 5, 5)) + + this.#abcde = 42; +>this.#abcde : Symbol(PrivateIdentifierWithExtendedEscape3[#a\u{62}c\u{64}e], Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 51)) +>this : Symbol(PrivateIdentifierWithExtendedEscape3, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 0)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).types b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).types index 707ea38223677..c55af71db2136 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).types +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=es2015).types @@ -18,6 +18,15 @@ xx++; >xx++ : number >xx : number +=== identifierVariableWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : number +>10 : 10 + +abcde++; +>abcde++ : number +>abcde : number + === identifierVariableWithExtendedEscape1.ts === export let \u{78} = 10; >\u{78} : number @@ -36,6 +45,15 @@ xx++; >xx++ : number >xx : number +=== identifierVariableWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : number +>10 : 10 + +abcde++; +>abcde++ : number +>abcde : number + === IdentifierNameWithEscape1.ts === export class IdentifierNameWithEscape1 { >IdentifierNameWithEscape1 : IdentifierNameWithEscape1 @@ -92,6 +110,34 @@ export class IdentifierNameWithEscape2 { } } +=== IdentifierNameWithEscape3.ts === +export class IdentifierNameWithEscape3 { +>IdentifierNameWithEscape3 : IdentifierNameWithEscape3 + + a\u0062c\u0064e: number; +>a\u0062c\u0064e : number + + constructor() { + this.a\u0062c\u0064e = 0; +>this.a\u0062c\u0064e = 0 : 0 +>this.a\u0062c\u0064e : number +>this : this +>a\u0062c\u0064e : number +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.abcde = 42; +>this.abcde = 42 : 42 +>this.abcde : number +>this : this +>abcde : number +>42 : 42 + } +} + === IdentifierNameWithExtendedEscape1.ts === export class IdentifierNameWithExtendedEscape1 { >IdentifierNameWithExtendedEscape1 : IdentifierNameWithExtendedEscape1 @@ -148,6 +194,34 @@ export class IdentifierNameWithExtendedEscape2 { } } +=== IdentifierNameWithExtendedEscape3.ts === +export class IdentifierNameWithExtendedEscape3 { +>IdentifierNameWithExtendedEscape3 : IdentifierNameWithExtendedEscape3 + + a\u{62}c\u{64}e: number; +>a\u{62}c\u{64}e : number + + constructor() { + this.a\u{62}c\u{64}e = 0; +>this.a\u{62}c\u{64}e = 0 : 0 +>this.a\u{62}c\u{64}e : number +>this : this +>a\u{62}c\u{64}e : number +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.abcde = 42; +>this.abcde = 42 : 42 +>this.abcde : number +>this : this +>abcde : number +>42 : 42 + } +} + === PrivateIdentifierNameWithEscape1.ts === export class PrivateIdentifierWithEscape1 { >PrivateIdentifierWithEscape1 : PrivateIdentifierWithEscape1 @@ -200,6 +274,32 @@ export class PrivateIdentifierWithEscape2 { } } +=== PrivateIdentifierNameWithEscape3.ts === +export class PrivateIdentifierWithEscape3 { +>PrivateIdentifierWithEscape3 : PrivateIdentifierWithEscape3 + + #a\u0062c\u0064e: number; +>#a\u0062c\u0064e : number + + constructor() { + this.#a\u0062c\u0064e = 0; +>this.#a\u0062c\u0064e = 0 : 0 +>this.#a\u0062c\u0064e : number +>this : this +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.#abcde = 42; +>this.#abcde = 42 : 42 +>this.#abcde : number +>this : this +>42 : 42 + } +} + === PrivateIdentifierNameWithExtendedEscape1.ts === export class PrivateIdentifierWithExtendedEscape1 { >PrivateIdentifierWithExtendedEscape1 : PrivateIdentifierWithExtendedEscape1 @@ -252,3 +352,29 @@ export class PrivateIdentifierWithExtendedEscape2 { } } +=== PrivateIdentifierNameWithExtendedEscape3.ts === +export class PrivateIdentifierWithExtendedEscape3 { +>PrivateIdentifierWithExtendedEscape3 : PrivateIdentifierWithExtendedEscape3 + + #a\u{62}c\u{64}e: number; +>#a\u{62}c\u{64}e : number + + constructor() { + this.#a\u{62}c\u{64}e = 0; +>this.#a\u{62}c\u{64}e = 0 : 0 +>this.#a\u{62}c\u{64}e : number +>this : this +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.#abcde = 42; +>this.#abcde = 42 : 42 +>this.#abcde : number +>this : this +>42 : 42 + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js index 1027842b2164b..24a0c9a2833ea 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js @@ -8,6 +8,10 @@ x++; export let x\u0078 = 10; xx++; +//// [identifierVariableWithEscape3.ts] +export let a\u0062c\u0064e = 10; +abcde++; + //// [identifierVariableWithExtendedEscape1.ts] export let \u{78} = 10; x++; @@ -16,6 +20,10 @@ x++; export let x\u{78} = 10; xx++; +//// [identifierVariableWithExtendedEscape3.ts] +export let a\u{62}c\u{64}e = 10; +abcde++; + //// [IdentifierNameWithEscape1.ts] export class IdentifierNameWithEscape1 { \u0078: number; @@ -42,6 +50,19 @@ export class IdentifierNameWithEscape2 { } } +//// [IdentifierNameWithEscape3.ts] +export class IdentifierNameWithEscape3 { + a\u0062c\u0064e: number; + + constructor() { + this.a\u0062c\u0064e = 0; + } + + doThing() { + this.abcde = 42; + } +} + //// [IdentifierNameWithExtendedEscape1.ts] export class IdentifierNameWithExtendedEscape1 { \u{78}: number; @@ -68,6 +89,19 @@ export class IdentifierNameWithExtendedEscape2 { } } +//// [IdentifierNameWithExtendedEscape3.ts] +export class IdentifierNameWithExtendedEscape3 { + a\u{62}c\u{64}e: number; + + constructor() { + this.a\u{62}c\u{64}e = 0; + } + + doThing() { + this.abcde = 42; + } +} + //// [PrivateIdentifierNameWithEscape1.ts] export class PrivateIdentifierWithEscape1 { #\u0078: number; @@ -94,6 +128,19 @@ export class PrivateIdentifierWithEscape2 { } } +//// [PrivateIdentifierNameWithEscape3.ts] +export class PrivateIdentifierWithEscape3 { + #a\u0062c\u0064e: number; + + constructor() { + this.#a\u0062c\u0064e = 0; + } + + doThing() { + this.#abcde = 42; + } +} + //// [PrivateIdentifierNameWithExtendedEscape1.ts] export class PrivateIdentifierWithExtendedEscape1 { #\u{78}: number; @@ -120,6 +167,19 @@ export class PrivateIdentifierWithExtendedEscape2 { } } +//// [PrivateIdentifierNameWithExtendedEscape3.ts] +export class PrivateIdentifierWithExtendedEscape3 { + #a\u{62}c\u{64}e: number; + + constructor() { + this.#a\u{62}c\u{64}e = 0; + } + + doThing() { + this.#abcde = 42; + } +} + //// [identifierVariableWithEscape1.js] export let \u0078 = 10; @@ -129,6 +189,10 @@ x++; export let x\u0078 = 10; xx++; //# sourceMappingURL=identifierVariableWithEscape2.js.map +//// [identifierVariableWithEscape3.js] +export let a\u0062c\u0064e = 10; +abcde++; +//# sourceMappingURL=identifierVariableWithEscape3.js.map //// [identifierVariableWithExtendedEscape1.js] export let \u{78} = 10; x++; @@ -137,6 +201,10 @@ x++; export let x\u{78} = 10; xx++; //# sourceMappingURL=identifierVariableWithExtendedEscape2.js.map +//// [identifierVariableWithExtendedEscape3.js] +export let a\u{62}c\u{64}e = 10; +abcde++; +//# sourceMappingURL=identifierVariableWithExtendedEscape3.js.map //// [IdentifierNameWithEscape1.js] export class IdentifierNameWithEscape1 { \u0078; @@ -159,6 +227,17 @@ export class IdentifierNameWithEscape2 { } } //# sourceMappingURL=IdentifierNameWithEscape2.js.map +//// [IdentifierNameWithEscape3.js] +export class IdentifierNameWithEscape3 { + a\u0062c\u0064e; + constructor() { + this.a\u0062c\u0064e = 0; + } + doThing() { + this.abcde = 42; + } +} +//# sourceMappingURL=IdentifierNameWithEscape3.js.map //// [IdentifierNameWithExtendedEscape1.js] export class IdentifierNameWithExtendedEscape1 { \u{78}; @@ -181,6 +260,17 @@ export class IdentifierNameWithExtendedEscape2 { } } //# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map +//// [IdentifierNameWithExtendedEscape3.js] +export class IdentifierNameWithExtendedEscape3 { + a\u{62}c\u{64}e; + constructor() { + this.a\u{62}c\u{64}e = 0; + } + doThing() { + this.abcde = 42; + } +} +//# sourceMappingURL=IdentifierNameWithExtendedEscape3.js.map //// [PrivateIdentifierNameWithEscape1.js] export class PrivateIdentifierWithEscape1 { #\u0078; @@ -203,6 +293,17 @@ export class PrivateIdentifierWithEscape2 { } } //# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map +//// [PrivateIdentifierNameWithEscape3.js] +export class PrivateIdentifierWithEscape3 { + #a\u0062c\u0064e; + constructor() { + this.#a\u0062c\u0064e = 0; + } + doThing() { + this.#abcde = 42; + } +} +//# sourceMappingURL=PrivateIdentifierNameWithEscape3.js.map //// [PrivateIdentifierNameWithExtendedEscape1.js] export class PrivateIdentifierWithExtendedEscape1 { #\u{78}; @@ -224,4 +325,15 @@ export class PrivateIdentifierWithExtendedEscape2 { this.#xx = 42; } } -//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map \ No newline at end of file +//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map +//// [PrivateIdentifierNameWithExtendedEscape3.js] +export class PrivateIdentifierWithExtendedEscape3 { + #a\u{62}c\u{64}e; + constructor() { + this.#a\u{62}c\u{64}e = 0; + } + doThing() { + this.#abcde = 42; + } +} +//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js.map b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js.map index 5646a3ff1d097..a1995907b6b4b 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js.map +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).js.map @@ -6,6 +6,10 @@ {"version":3,"file":"identifierVariableWithEscape2.js","sourceRoot":"","sources":["identifierVariableWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,EAAE,EAAE,CAAC"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7DQp4eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9aWRlbnRpZmllclZhcmlhYmxlV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpZGVudGlmaWVyVmFyaWFibGVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxPQUFPLEdBQUcsRUFBRSxDQUFDO0FBQ3hCLEVBQUUsRUFBRSxDQUFDIn0=,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7Cnh4Kys7Cg== +//// [identifierVariableWithEscape3.js.map] +{"version":3,"file":"identifierVariableWithEscape3.js","sourceRoot":"","sources":["identifierVariableWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsNCmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1pZGVudGlmaWVyVmFyaWFibGVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpZGVudGlmaWVyVmFyaWFibGVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxlQUFlLEdBQUcsRUFBRSxDQUFDO0FBQ2hDLEtBQUssRUFBRSxDQUFDIn0=,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsKYWJjZGUrKzsK + //// [identifierVariableWithExtendedEscape1.js.map] {"version":3,"file":"identifierVariableWithExtendedEscape1.js","sourceRoot":"","sources":["identifierVariableWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC;AACvB,CAAC,EAAE,CAAC"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsNCngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPWlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksTUFBTSxHQUFHLEVBQUUsQ0FBQztBQUN2QixDQUFDLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsKeCsrOwo= @@ -14,6 +18,10 @@ {"version":3,"file":"identifierVariableWithExtendedEscape2.js","sourceRoot":"","sources":["identifierVariableWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,EAAE,EAAE,CAAC"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7DQp4eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9aWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksT0FBTyxHQUFHLEVBQUUsQ0FBQztBQUN4QixFQUFFLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7Cnh4Kys7Cg== +//// [identifierVariableWithExtendedEscape3.js.map] +{"version":3,"file":"identifierVariableWithExtendedEscape3.js","sourceRoot":"","sources":["identifierVariableWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsNCmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1pZGVudGlmaWVyVmFyaWFibGVXaXRoRXh0ZW5kZWRFc2NhcGUzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaWRlbnRpZmllclZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImlkZW50aWZpZXJWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksZUFBZSxHQUFHLEVBQUUsQ0FBQztBQUNoQyxLQUFLLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsKYWJjZGUrKzsK + //// [IdentifierNameWithEscape1.js.map] {"version":3,"file":"IdentifierNameWithEscape1.js","sourceRoot":"","sources":["IdentifierNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAAyB;IAClC,MAAM,CAAS;IAEf;QACI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEgew0KICAgIFx1MDA3ODsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgdGhpcy5cdTAwNzggPSAwOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICB0aGlzLnggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1JZGVudGlmaWVyTmFtZVdpdGhFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIklkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlCQUF5QjtJQUNsQyxNQUFNLENBQVM7SUFFZjtRQUNJLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDO0lBQ3BCLENBQUM7SUFFRCxPQUFPO1FBQ0gsSUFBSSxDQUFDLENBQUMsR0FBRyxFQUFFLENBQUM7SUFDaEIsQ0FBQztDQUNKIn0=,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEgewogICAgXHUwMDc4OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy5cdTAwNzggPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy54ID0gNDI7CiAgICB9Cn0K @@ -22,6 +30,10 @@ {"version":3,"file":"IdentifierNameWithEscape2.js","sourceRoot":"","sources":["IdentifierNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAAyB;IAClC,OAAO,CAAS;IAEhB;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIgew0KICAgIHhcdTAwNzg7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMueFx1MDA3OCA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMueHggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1JZGVudGlmaWVyTmFtZVdpdGhFc2NhcGUyLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIklkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlCQUF5QjtJQUNsQyxPQUFPLENBQVM7SUFFaEI7UUFDSSxJQUFJLENBQUMsT0FBTyxHQUFHLENBQUMsQ0FBQztJQUNyQixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQ2pCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIgewogICAgeFx1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMueFx1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLnh4ID0gNDI7CiAgICB9Cn0K +//// [IdentifierNameWithEscape3.js.map] +{"version":3,"file":"IdentifierNameWithEscape3.js","sourceRoot":"","sources":["IdentifierNameWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,yBAAyB;IAClC,eAAe,CAAS;IAExB;QACI,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMgew0KICAgIGFcdTAwNjJjXHUwMDY0ZTsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgdGhpcy5hXHUwMDYyY1x1MDA2NGUgPSAwOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICB0aGlzLmFiY2RlID0gNDI7DQogICAgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9SWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIklkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLHlCQUF5QjtJQUNsQyxlQUFlLENBQVM7SUFFeEI7UUFDSSxJQUFJLENBQUMsZUFBZSxHQUFHLENBQUMsQ0FBQztJQUM3QixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxLQUFLLEdBQUcsRUFBRSxDQUFDO0lBQ3BCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMgewogICAgYVx1MDA2MmNcdTAwNjRlOiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy5hXHUwMDYyY1x1MDA2NGUgPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy5hYmNkZSA9IDQyOwogICAgfQp9Cg== + //// [IdentifierNameWithExtendedEscape1.js.map] {"version":3,"file":"IdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["IdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iCAAiC;IAC1C,MAAM,CAAS;IAEf;QACI,IAAI,CAAC,MAAM,GAAG,CAAC,CAAC;IACpB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC;IAChB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMSB7DQogICAgXHV7Nzh9Ow0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLlx1ezc4fSA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMueCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUxLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUxLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxpQ0FBaUM7SUFDMUMsTUFBTSxDQUFTO0lBRWY7UUFDSSxJQUFJLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQztJQUNwQixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxDQUFDLEdBQUcsRUFBRSxDQUFDO0lBQ2hCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICBcdXs3OH06IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLlx1ezc4fSA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLnggPSA0MjsKICAgIH0KfQo= @@ -30,6 +42,10 @@ {"version":3,"file":"IdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["IdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iCAAiC;IAC1C,OAAO,CAAS;IAEhB;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMiB7DQogICAgeFx1ezc4fTsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgdGhpcy54XHV7Nzh9ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy54eCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxpQ0FBaUM7SUFDMUMsT0FBTyxDQUFTO0lBRWhCO1FBQ0ksSUFBSSxDQUFDLE9BQU8sR0FBRyxDQUFDLENBQUM7SUFDckIsQ0FBQztJQUVELE9BQU87UUFDSCxJQUFJLENBQUMsRUFBRSxHQUFHLEVBQUUsQ0FBQztJQUNqQixDQUFDO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICB4XHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy54XHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMueHggPSA0MjsKICAgIH0KfQo= +//// [IdentifierNameWithExtendedEscape3.js.map] +{"version":3,"file":"IdentifierNameWithExtendedEscape3.js","sourceRoot":"","sources":["IdentifierNameWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,iCAAiC;IAC1C,eAAe,CAAS;IAExB;QACI,IAAI,CAAC,eAAe,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;IACpB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMyB7DQogICAgYVx1ezYyfWNcdXs2NH1lOw0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLmFcdXs2Mn1jXHV7NjR9ZSA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuYWJjZGUgPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1JZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxpQ0FBaUM7SUFDMUMsZUFBZSxDQUFTO0lBRXhCO1FBQ0ksSUFBSSxDQUFDLGVBQWUsR0FBRyxDQUFDLENBQUM7SUFDN0IsQ0FBQztJQUVELE9BQU87UUFDSCxJQUFJLENBQUMsS0FBSyxHQUFHLEVBQUUsQ0FBQztJQUNwQixDQUFDO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMyB7CiAgICBhXHV7NjJ9Y1x1ezY0fWU6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLmFcdXs2Mn1jXHV7NjR9ZSA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLmFiY2RlID0gNDI7CiAgICB9Cn0K + //// [PrivateIdentifierNameWithEscape1.js.map] {"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,4BAA4B;IACrC,OAAO,CAAS;IAEhB;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgew0KICAgICNcdTAwNzg7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuI3ggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sNEJBQTRCO0lBQ3JDLE9BQU8sQ0FBUztJQUVoQjtRQUNJLElBQUksQ0FBQyxPQUFPLEdBQUcsQ0FBQyxDQUFDO0lBQ3JCLENBQUM7SUFFRCxPQUFPO1FBQ0gsSUFBSSxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUM7SUFDakIsQ0FBQztDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K @@ -38,6 +54,10 @@ {"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,4BAA4B;IACrC,QAAQ,CAAS;IAEjB;QACI,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACtB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAClB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgew0KICAgICN4XHUwMDc4Ow0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy4jeHggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sNEJBQTRCO0lBQ3JDLFFBQVEsQ0FBUztJQUVqQjtRQUNJLElBQUksQ0FBQyxRQUFRLEdBQUcsQ0FBQyxDQUFDO0lBQ3RCLENBQUM7SUFFRCxPQUFPO1FBQ0gsSUFBSSxDQUFDLEdBQUcsR0FBRyxFQUFFLENBQUM7SUFDbEIsQ0FBQztDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K +//// [PrivateIdentifierNameWithEscape3.js.map] +{"version":3,"file":"PrivateIdentifierNameWithEscape3.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,4BAA4B;IACrC,gBAAgB,CAAS;IAEzB;QACI,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTMgew0KICAgICNhXHUwMDYyY1x1MDA2NGU7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI2FcdTAwNjJjXHUwMDY0ZSA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuI2FiY2RlID0gNDI7DQogICAgfQ0KfQ0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sNEJBQTRCO0lBQ3JDLGdCQUFnQixDQUFTO0lBRXpCO1FBQ0ksSUFBSSxDQUFDLGdCQUFnQixHQUFHLENBQUMsQ0FBQztJQUM5QixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxNQUFNLEdBQUcsRUFBRSxDQUFDO0lBQ3JCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTMgewogICAgI2FcdTAwNjJjXHUwMDY0ZTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI2FcdTAwNjJjXHUwMDY0ZSA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiNhYmNkZSA9IDQyOwogICAgfQp9Cg== + //// [PrivateIdentifierNameWithExtendedEscape1.js.map] {"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oCAAoC;IAC7C,OAAO,CAAS;IAEhB;QACI,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IACrB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACjB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7DQogICAgI1x1ezc4fTsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy4jeCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPVByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLG9DQUFvQztJQUM3QyxPQUFPLENBQVM7SUFFaEI7UUFDSSxJQUFJLENBQUMsT0FBTyxHQUFHLENBQUMsQ0FBQztJQUNyQixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQ2pCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICAjXHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo= @@ -45,3 +65,7 @@ //// [PrivateIdentifierNameWithExtendedEscape2.js.map] {"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oCAAoC;IAC7C,QAAQ,CAAS;IAEjB;QACI,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IACtB,CAAC;IAED,OAAO;QACH,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAClB,CAAC;CACJ"} //// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7DQogICAgI3hcdXs3OH07DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICB0aGlzLiN4eCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPVByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLG9DQUFvQztJQUM3QyxRQUFRLENBQVM7SUFFakI7UUFDSSxJQUFJLENBQUMsUUFBUSxHQUFHLENBQUMsQ0FBQztJQUN0QixDQUFDO0lBRUQsT0FBTztRQUNILElBQUksQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDO0lBQ2xCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo= + +//// [PrivateIdentifierNameWithExtendedEscape3.js.map] +{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape3.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oCAAoC;IAC7C,gBAAgB,CAAS;IAEzB;QACI,IAAI,CAAC,gBAAgB,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,OAAO;QACH,IAAI,CAAC,MAAM,GAAG,EAAE,CAAC;IACrB,CAAC;CACJ"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMyB7DQogICAgI2FcdXs2Mn1jXHV7NjR9ZTsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgdGhpcy4jYVx1ezYyfWNcdXs2NH1lID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy4jYWJjZGUgPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUzLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLG9DQUFvQztJQUM3QyxnQkFBZ0IsQ0FBUztJQUV6QjtRQUNJLElBQUksQ0FBQyxnQkFBZ0IsR0FBRyxDQUFDLENBQUM7SUFDOUIsQ0FBQztJQUVELE9BQU87UUFDSCxJQUFJLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQztJQUNyQixDQUFDO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMyB7CiAgICAjYVx1ezYyfWNcdXs2NH1lOiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jYVx1ezYyfWNcdXs2NH1lID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI2FiY2RlID0gNDI7CiAgICB9Cn0K diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).sourcemap.txt b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).sourcemap.txt index 562e93833ea83..e81dda0d68b79 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).sourcemap.txt +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).sourcemap.txt @@ -103,6 +103,58 @@ sourceFile:identifierVariableWithEscape2.ts 4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) --- >>>//# sourceMappingURL=identifierVariableWithEscape2.js.map=================================================================== +JsFile: identifierVariableWithEscape3.js +mapUrl: identifierVariableWithEscape3.js.map +sourceRoot: +sources: identifierVariableWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:identifierVariableWithEscape3.js +sourceFile:identifierVariableWithEscape3.ts +------------------------------------------------------------------- +>>>export let a\u0062c\u0064e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > +2 >export +3 > +4 > let +5 > a\u0062c\u0064e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>abcde++; +1 > +2 >^^^^^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >abcde +3 > ++ +4 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=identifierVariableWithEscape3.js.map=================================================================== JsFile: identifierVariableWithExtendedEscape1.js mapUrl: identifierVariableWithExtendedEscape1.js.map sourceRoot: @@ -207,6 +259,58 @@ sourceFile:identifierVariableWithExtendedEscape2.ts 4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) --- >>>//# sourceMappingURL=identifierVariableWithExtendedEscape2.js.map=================================================================== +JsFile: identifierVariableWithExtendedEscape3.js +mapUrl: identifierVariableWithExtendedEscape3.js.map +sourceRoot: +sources: identifierVariableWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:identifierVariableWithExtendedEscape3.js +sourceFile:identifierVariableWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export let a\u{62}c\u{64}e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +1 > +2 >export +3 > +4 > let +5 > a\u{62}c\u{64}e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>abcde++; +1 > +2 >^^^^^ +3 > ^^ +4 > ^ +5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >abcde +3 > ++ +4 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=identifierVariableWithExtendedEscape3.js.map=================================================================== JsFile: IdentifierNameWithEscape1.js mapUrl: IdentifierNameWithEscape1.js.map sourceRoot: @@ -467,6 +571,135 @@ sourceFile:IdentifierNameWithEscape2.ts 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=IdentifierNameWithEscape2.js.map=================================================================== +JsFile: IdentifierNameWithEscape3.js +mapUrl: IdentifierNameWithEscape3.js.map +sourceRoot: +sources: IdentifierNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:IdentifierNameWithEscape3.js +sourceFile:IdentifierNameWithEscape3.ts +------------------------------------------------------------------- +>>>export class IdentifierNameWithEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > IdentifierNameWithEscape3 +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 39) Source(1, 39) + SourceIndex(0) +--- +>>> a\u0062c\u0064e; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^ +1 > { + > +2 > a\u0062c\u0064e +3 > : number; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +3 >Emitted(2, 21) Source(2, 29) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > +1 >Emitted(3, 5) Source(4, 5) + SourceIndex(0) +--- +>>> this.a\u0062c\u0064e = 0; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^ +7 > ^ +1->constructor() { + > +2 > this +3 > . +4 > a\u0062c\u0064e +5 > = +6 > 0 +7 > ; +1->Emitted(4, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(4, 13) Source(5, 13) + SourceIndex(0) +3 >Emitted(4, 14) Source(5, 14) + SourceIndex(0) +4 >Emitted(4, 29) Source(5, 29) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 32) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 33) + SourceIndex(0) +7 >Emitted(4, 34) Source(5, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0) +--- +>>> this.abcde = 42; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1->() { + > +2 > this +3 > . +4 > abcde +5 > = +6 > 42 +7 > ; +1->Emitted(7, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(7, 13) Source(9, 13) + SourceIndex(0) +3 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +4 >Emitted(7, 19) Source(9, 19) + SourceIndex(0) +5 >Emitted(7, 22) Source(9, 22) + SourceIndex(0) +6 >Emitted(7, 24) Source(9, 24) + SourceIndex(0) +7 >Emitted(7, 25) Source(9, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(8, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=IdentifierNameWithEscape3.js.map=================================================================== JsFile: IdentifierNameWithExtendedEscape1.js mapUrl: IdentifierNameWithExtendedEscape1.js.map sourceRoot: @@ -727,6 +960,135 @@ sourceFile:IdentifierNameWithExtendedEscape2.ts 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map=================================================================== +JsFile: IdentifierNameWithExtendedEscape3.js +mapUrl: IdentifierNameWithExtendedEscape3.js.map +sourceRoot: +sources: IdentifierNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:IdentifierNameWithExtendedEscape3.js +sourceFile:IdentifierNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export class IdentifierNameWithExtendedEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > IdentifierNameWithExtendedEscape3 +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 47) Source(1, 47) + SourceIndex(0) +--- +>>> a\u{62}c\u{64}e; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^ +3 > ^ +1 > { + > +2 > a\u{62}c\u{64}e +3 > : number; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +3 >Emitted(2, 21) Source(2, 29) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > +1 >Emitted(3, 5) Source(4, 5) + SourceIndex(0) +--- +>>> this.a\u{62}c\u{64}e = 0; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^ +7 > ^ +1->constructor() { + > +2 > this +3 > . +4 > a\u{62}c\u{64}e +5 > = +6 > 0 +7 > ; +1->Emitted(4, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(4, 13) Source(5, 13) + SourceIndex(0) +3 >Emitted(4, 14) Source(5, 14) + SourceIndex(0) +4 >Emitted(4, 29) Source(5, 29) + SourceIndex(0) +5 >Emitted(4, 32) Source(5, 32) + SourceIndex(0) +6 >Emitted(4, 33) Source(5, 33) + SourceIndex(0) +7 >Emitted(4, 34) Source(5, 34) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0) +--- +>>> this.abcde = 42; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1->() { + > +2 > this +3 > . +4 > abcde +5 > = +6 > 42 +7 > ; +1->Emitted(7, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(7, 13) Source(9, 13) + SourceIndex(0) +3 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +4 >Emitted(7, 19) Source(9, 19) + SourceIndex(0) +5 >Emitted(7, 22) Source(9, 22) + SourceIndex(0) +6 >Emitted(7, 24) Source(9, 24) + SourceIndex(0) +7 >Emitted(7, 25) Source(9, 25) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(8, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=IdentifierNameWithExtendedEscape3.js.map=================================================================== JsFile: PrivateIdentifierNameWithEscape1.js mapUrl: PrivateIdentifierNameWithEscape1.js.map sourceRoot: @@ -987,6 +1349,135 @@ sourceFile:PrivateIdentifierNameWithEscape2.ts 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) --- >>>//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map=================================================================== +JsFile: PrivateIdentifierNameWithEscape3.js +mapUrl: PrivateIdentifierNameWithEscape3.js.map +sourceRoot: +sources: PrivateIdentifierNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:PrivateIdentifierNameWithEscape3.js +sourceFile:PrivateIdentifierNameWithEscape3.ts +------------------------------------------------------------------- +>>>export class PrivateIdentifierWithEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > PrivateIdentifierWithEscape3 +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 42) Source(1, 42) + SourceIndex(0) +--- +>>> #a\u0062c\u0064e; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +1 > { + > +2 > #a\u0062c\u0064e +3 > : number; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 21) Source(2, 21) + SourceIndex(0) +3 >Emitted(2, 22) Source(2, 30) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > +1 >Emitted(3, 5) Source(4, 5) + SourceIndex(0) +--- +>>> this.#a\u0062c\u0064e = 0; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^ +7 > ^ +1->constructor() { + > +2 > this +3 > . +4 > #a\u0062c\u0064e +5 > = +6 > 0 +7 > ; +1->Emitted(4, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(4, 13) Source(5, 13) + SourceIndex(0) +3 >Emitted(4, 14) Source(5, 14) + SourceIndex(0) +4 >Emitted(4, 30) Source(5, 30) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 33) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 34) + SourceIndex(0) +7 >Emitted(4, 35) Source(5, 35) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0) +--- +>>> this.#abcde = 42; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1->() { + > +2 > this +3 > . +4 > #abcde +5 > = +6 > 42 +7 > ; +1->Emitted(7, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(7, 13) Source(9, 13) + SourceIndex(0) +3 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +4 >Emitted(7, 20) Source(9, 20) + SourceIndex(0) +5 >Emitted(7, 23) Source(9, 23) + SourceIndex(0) +6 >Emitted(7, 25) Source(9, 25) + SourceIndex(0) +7 >Emitted(7, 26) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(8, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape3.js.map=================================================================== JsFile: PrivateIdentifierNameWithExtendedEscape1.js mapUrl: PrivateIdentifierNameWithExtendedEscape1.js.map sourceRoot: @@ -1246,4 +1737,133 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts >} 1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) --- ->>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map \ No newline at end of file +>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map=================================================================== +JsFile: PrivateIdentifierNameWithExtendedEscape3.js +mapUrl: PrivateIdentifierNameWithExtendedEscape3.js.map +sourceRoot: +sources: PrivateIdentifierNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:PrivateIdentifierNameWithExtendedEscape3.js +sourceFile:PrivateIdentifierNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export class PrivateIdentifierWithExtendedEscape3 { +1 > +2 >^^^^^^ +3 > ^^^^^^^ +4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +1 > +2 >export +3 > class +4 > PrivateIdentifierWithExtendedEscape3 +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +4 >Emitted(1, 50) Source(1, 50) + SourceIndex(0) +--- +>>> #a\u{62}c\u{64}e; +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^ +3 > ^ +1 > { + > +2 > #a\u{62}c\u{64}e +3 > : number; +1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +2 >Emitted(2, 21) Source(2, 21) + SourceIndex(0) +3 >Emitted(2, 22) Source(2, 30) + SourceIndex(0) +--- +>>> constructor() { +1 >^^^^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > + > +1 >Emitted(3, 5) Source(4, 5) + SourceIndex(0) +--- +>>> this.#a\u{62}c\u{64}e = 0; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^^^^^^^^^^^ +5 > ^^^ +6 > ^ +7 > ^ +1->constructor() { + > +2 > this +3 > . +4 > #a\u{62}c\u{64}e +5 > = +6 > 0 +7 > ; +1->Emitted(4, 9) Source(5, 9) + SourceIndex(0) +2 >Emitted(4, 13) Source(5, 13) + SourceIndex(0) +3 >Emitted(4, 14) Source(5, 14) + SourceIndex(0) +4 >Emitted(4, 30) Source(5, 30) + SourceIndex(0) +5 >Emitted(4, 33) Source(5, 33) + SourceIndex(0) +6 >Emitted(4, 34) Source(5, 34) + SourceIndex(0) +7 >Emitted(4, 35) Source(5, 35) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +3 > ^^^^^^^^^^^-> +1 > + > +2 > } +1 >Emitted(5, 5) Source(6, 5) + SourceIndex(0) +2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0) +--- +>>> doThing() { +1->^^^^ +2 > ^^^^^^^ +3 > ^^^^^^^^^^^^^^^-> +1-> + > + > +2 > doThing +1->Emitted(6, 5) Source(8, 5) + SourceIndex(0) +2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0) +--- +>>> this.#abcde = 42; +1->^^^^^^^^ +2 > ^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^ +7 > ^ +1->() { + > +2 > this +3 > . +4 > #abcde +5 > = +6 > 42 +7 > ; +1->Emitted(7, 9) Source(9, 9) + SourceIndex(0) +2 >Emitted(7, 13) Source(9, 13) + SourceIndex(0) +3 >Emitted(7, 14) Source(9, 14) + SourceIndex(0) +4 >Emitted(7, 20) Source(9, 20) + SourceIndex(0) +5 >Emitted(7, 23) Source(9, 23) + SourceIndex(0) +6 >Emitted(7, 25) Source(9, 25) + SourceIndex(0) +7 >Emitted(7, 26) Source(9, 26) + SourceIndex(0) +--- +>>> } +1 >^^^^ +2 > ^ +1 > + > +2 > } +1 >Emitted(8, 5) Source(10, 5) + SourceIndex(0) +2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0) +--- +>>>} +1 >^ +2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + >} +1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0) +--- +>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).symbols b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).symbols index f2f911281b359..9cde889797068 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).symbols +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).symbols @@ -14,6 +14,13 @@ export let x\u0078 = 10; xx++; >xx : Symbol(x\u0078, Decl(identifierVariableWithEscape2.ts, 0, 10)) +=== identifierVariableWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(identifierVariableWithEscape3.ts, 0, 10)) + +abcde++; +>abcde : Symbol(a\u0062c\u0064e, Decl(identifierVariableWithEscape3.ts, 0, 10)) + === identifierVariableWithExtendedEscape1.ts === export let \u{78} = 10; >\u{78} : Symbol(\u{78}, Decl(identifierVariableWithExtendedEscape1.ts, 0, 10)) @@ -28,6 +35,13 @@ export let x\u{78} = 10; xx++; >xx : Symbol(x\u{78}, Decl(identifierVariableWithExtendedEscape2.ts, 0, 10)) +=== identifierVariableWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(identifierVariableWithExtendedEscape3.ts, 0, 10)) + +abcde++; +>abcde : Symbol(a\u{62}c\u{64}e, Decl(identifierVariableWithExtendedEscape3.ts, 0, 10)) + === IdentifierNameWithEscape1.ts === export class IdentifierNameWithEscape1 { >IdentifierNameWithEscape1 : Symbol(IdentifierNameWithEscape1, Decl(IdentifierNameWithEscape1.ts, 0, 0)) @@ -76,6 +90,30 @@ export class IdentifierNameWithEscape2 { } } +=== IdentifierNameWithEscape3.ts === +export class IdentifierNameWithEscape3 { +>IdentifierNameWithEscape3 : Symbol(IdentifierNameWithEscape3, Decl(IdentifierNameWithEscape3.ts, 0, 0)) + + a\u0062c\u0064e: number; +>a\u0062c\u0064e : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) + + constructor() { + this.a\u0062c\u0064e = 0; +>this.a\u0062c\u0064e : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) +>this : Symbol(IdentifierNameWithEscape3, Decl(IdentifierNameWithEscape3.ts, 0, 0)) +>a\u0062c\u0064e : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) + } + + doThing() { +>doThing : Symbol(IdentifierNameWithEscape3.doThing, Decl(IdentifierNameWithEscape3.ts, 5, 5)) + + this.abcde = 42; +>this.abcde : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) +>this : Symbol(IdentifierNameWithEscape3, Decl(IdentifierNameWithEscape3.ts, 0, 0)) +>abcde : Symbol(IdentifierNameWithEscape3[a\u0062c\u0064e], Decl(IdentifierNameWithEscape3.ts, 0, 40)) + } +} + === IdentifierNameWithExtendedEscape1.ts === export class IdentifierNameWithExtendedEscape1 { >IdentifierNameWithExtendedEscape1 : Symbol(IdentifierNameWithExtendedEscape1, Decl(IdentifierNameWithExtendedEscape1.ts, 0, 0)) @@ -124,6 +162,30 @@ export class IdentifierNameWithExtendedEscape2 { } } +=== IdentifierNameWithExtendedEscape3.ts === +export class IdentifierNameWithExtendedEscape3 { +>IdentifierNameWithExtendedEscape3 : Symbol(IdentifierNameWithExtendedEscape3, Decl(IdentifierNameWithExtendedEscape3.ts, 0, 0)) + + a\u{62}c\u{64}e: number; +>a\u{62}c\u{64}e : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) + + constructor() { + this.a\u{62}c\u{64}e = 0; +>this.a\u{62}c\u{64}e : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) +>this : Symbol(IdentifierNameWithExtendedEscape3, Decl(IdentifierNameWithExtendedEscape3.ts, 0, 0)) +>a\u{62}c\u{64}e : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) + } + + doThing() { +>doThing : Symbol(IdentifierNameWithExtendedEscape3.doThing, Decl(IdentifierNameWithExtendedEscape3.ts, 5, 5)) + + this.abcde = 42; +>this.abcde : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) +>this : Symbol(IdentifierNameWithExtendedEscape3, Decl(IdentifierNameWithExtendedEscape3.ts, 0, 0)) +>abcde : Symbol(IdentifierNameWithExtendedEscape3[a\u{62}c\u{64}e], Decl(IdentifierNameWithExtendedEscape3.ts, 0, 48)) + } +} + === PrivateIdentifierNameWithEscape1.ts === export class PrivateIdentifierWithEscape1 { >PrivateIdentifierWithEscape1 : Symbol(PrivateIdentifierWithEscape1, Decl(PrivateIdentifierNameWithEscape1.ts, 0, 0)) @@ -168,6 +230,28 @@ export class PrivateIdentifierWithEscape2 { } } +=== PrivateIdentifierNameWithEscape3.ts === +export class PrivateIdentifierWithEscape3 { +>PrivateIdentifierWithEscape3 : Symbol(PrivateIdentifierWithEscape3, Decl(PrivateIdentifierNameWithEscape3.ts, 0, 0)) + + #a\u0062c\u0064e: number; +>#a\u0062c\u0064e : Symbol(PrivateIdentifierWithEscape3[#a\u0062c\u0064e], Decl(PrivateIdentifierNameWithEscape3.ts, 0, 43)) + + constructor() { + this.#a\u0062c\u0064e = 0; +>this.#a\u0062c\u0064e : Symbol(PrivateIdentifierWithEscape3[#a\u0062c\u0064e], Decl(PrivateIdentifierNameWithEscape3.ts, 0, 43)) +>this : Symbol(PrivateIdentifierWithEscape3, Decl(PrivateIdentifierNameWithEscape3.ts, 0, 0)) + } + + doThing() { +>doThing : Symbol(PrivateIdentifierWithEscape3.doThing, Decl(PrivateIdentifierNameWithEscape3.ts, 5, 5)) + + this.#abcde = 42; +>this.#abcde : Symbol(PrivateIdentifierWithEscape3[#a\u0062c\u0064e], Decl(PrivateIdentifierNameWithEscape3.ts, 0, 43)) +>this : Symbol(PrivateIdentifierWithEscape3, Decl(PrivateIdentifierNameWithEscape3.ts, 0, 0)) + } +} + === PrivateIdentifierNameWithExtendedEscape1.ts === export class PrivateIdentifierWithExtendedEscape1 { >PrivateIdentifierWithExtendedEscape1 : Symbol(PrivateIdentifierWithExtendedEscape1, Decl(PrivateIdentifierNameWithExtendedEscape1.ts, 0, 0)) @@ -212,3 +296,25 @@ export class PrivateIdentifierWithExtendedEscape2 { } } +=== PrivateIdentifierNameWithExtendedEscape3.ts === +export class PrivateIdentifierWithExtendedEscape3 { +>PrivateIdentifierWithExtendedEscape3 : Symbol(PrivateIdentifierWithExtendedEscape3, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 0)) + + #a\u{62}c\u{64}e: number; +>#a\u{62}c\u{64}e : Symbol(PrivateIdentifierWithExtendedEscape3[#a\u{62}c\u{64}e], Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 51)) + + constructor() { + this.#a\u{62}c\u{64}e = 0; +>this.#a\u{62}c\u{64}e : Symbol(PrivateIdentifierWithExtendedEscape3[#a\u{62}c\u{64}e], Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 51)) +>this : Symbol(PrivateIdentifierWithExtendedEscape3, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 0)) + } + + doThing() { +>doThing : Symbol(PrivateIdentifierWithExtendedEscape3.doThing, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 5, 5)) + + this.#abcde = 42; +>this.#abcde : Symbol(PrivateIdentifierWithExtendedEscape3[#a\u{62}c\u{64}e], Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 51)) +>this : Symbol(PrivateIdentifierWithExtendedEscape3, Decl(PrivateIdentifierNameWithExtendedEscape3.ts, 0, 0)) + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).types b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).types index 707ea38223677..c55af71db2136 100644 --- a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).types +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames01(target=esnext).types @@ -18,6 +18,15 @@ xx++; >xx++ : number >xx : number +=== identifierVariableWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : number +>10 : 10 + +abcde++; +>abcde++ : number +>abcde : number + === identifierVariableWithExtendedEscape1.ts === export let \u{78} = 10; >\u{78} : number @@ -36,6 +45,15 @@ xx++; >xx++ : number >xx : number +=== identifierVariableWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : number +>10 : 10 + +abcde++; +>abcde++ : number +>abcde : number + === IdentifierNameWithEscape1.ts === export class IdentifierNameWithEscape1 { >IdentifierNameWithEscape1 : IdentifierNameWithEscape1 @@ -92,6 +110,34 @@ export class IdentifierNameWithEscape2 { } } +=== IdentifierNameWithEscape3.ts === +export class IdentifierNameWithEscape3 { +>IdentifierNameWithEscape3 : IdentifierNameWithEscape3 + + a\u0062c\u0064e: number; +>a\u0062c\u0064e : number + + constructor() { + this.a\u0062c\u0064e = 0; +>this.a\u0062c\u0064e = 0 : 0 +>this.a\u0062c\u0064e : number +>this : this +>a\u0062c\u0064e : number +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.abcde = 42; +>this.abcde = 42 : 42 +>this.abcde : number +>this : this +>abcde : number +>42 : 42 + } +} + === IdentifierNameWithExtendedEscape1.ts === export class IdentifierNameWithExtendedEscape1 { >IdentifierNameWithExtendedEscape1 : IdentifierNameWithExtendedEscape1 @@ -148,6 +194,34 @@ export class IdentifierNameWithExtendedEscape2 { } } +=== IdentifierNameWithExtendedEscape3.ts === +export class IdentifierNameWithExtendedEscape3 { +>IdentifierNameWithExtendedEscape3 : IdentifierNameWithExtendedEscape3 + + a\u{62}c\u{64}e: number; +>a\u{62}c\u{64}e : number + + constructor() { + this.a\u{62}c\u{64}e = 0; +>this.a\u{62}c\u{64}e = 0 : 0 +>this.a\u{62}c\u{64}e : number +>this : this +>a\u{62}c\u{64}e : number +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.abcde = 42; +>this.abcde = 42 : 42 +>this.abcde : number +>this : this +>abcde : number +>42 : 42 + } +} + === PrivateIdentifierNameWithEscape1.ts === export class PrivateIdentifierWithEscape1 { >PrivateIdentifierWithEscape1 : PrivateIdentifierWithEscape1 @@ -200,6 +274,32 @@ export class PrivateIdentifierWithEscape2 { } } +=== PrivateIdentifierNameWithEscape3.ts === +export class PrivateIdentifierWithEscape3 { +>PrivateIdentifierWithEscape3 : PrivateIdentifierWithEscape3 + + #a\u0062c\u0064e: number; +>#a\u0062c\u0064e : number + + constructor() { + this.#a\u0062c\u0064e = 0; +>this.#a\u0062c\u0064e = 0 : 0 +>this.#a\u0062c\u0064e : number +>this : this +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.#abcde = 42; +>this.#abcde = 42 : 42 +>this.#abcde : number +>this : this +>42 : 42 + } +} + === PrivateIdentifierNameWithExtendedEscape1.ts === export class PrivateIdentifierWithExtendedEscape1 { >PrivateIdentifierWithExtendedEscape1 : PrivateIdentifierWithExtendedEscape1 @@ -252,3 +352,29 @@ export class PrivateIdentifierWithExtendedEscape2 { } } +=== PrivateIdentifierNameWithExtendedEscape3.ts === +export class PrivateIdentifierWithExtendedEscape3 { +>PrivateIdentifierWithExtendedEscape3 : PrivateIdentifierWithExtendedEscape3 + + #a\u{62}c\u{64}e: number; +>#a\u{62}c\u{64}e : number + + constructor() { + this.#a\u{62}c\u{64}e = 0; +>this.#a\u{62}c\u{64}e = 0 : 0 +>this.#a\u{62}c\u{64}e : number +>this : this +>0 : 0 + } + + doThing() { +>doThing : () => void + + this.#abcde = 42; +>this.#abcde = 42 : 42 +>this.#abcde : number +>this : this +>42 : 42 + } +} + diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).js b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).js new file mode 100644 index 0000000000000..dcef3b6f894d1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).js @@ -0,0 +1,159 @@ +//// [tests/cases/compiler/unicodeEscapesInNames03.ts] //// + +//// [propertyNameWithEscape1.ts] +export const foo = {\u0078: 10}; +foo.x++; + +//// [propertyNameWithEscape2.ts] +export const foo = {x\u0078: 10}; +foo.xx++; + +//// [propertyNameWithEscape3.ts] +export const foo = {a\u0062c\u0064e: 10}; +foo.abcde++; + +//// [propertyNameWithExtendedEscape1.ts] +export const foo = {\u{78}: 10}; +foo.x++; + +//// [propertyNameWithExtendedEscape2.ts] +export const foo = {x\u{78}: 10}; +foo.xx++; + +//// [propertyNameWithExtendedEscape3.ts] +export const foo = {a\u{62}c\u{64}e: 10}; +foo.abcde++; + +// Shorthand property names + +//// [shorthandPropertyNameWithEscape1.ts] +export let \u0078 = 10; +export const foo = {\u0078}; +foo.x++; + +//// [shorthandPropertyNameWithEscape2.ts] +export let x\u0078 = 10; +export const foo = {x\u0078}; +foo.xx++; + +//// [shorthandPropertyNameWithEscape3.ts] +export let a\u0062c\u0064e = 10; +export const foo = {a\u0062c\u0064e}; +foo.abcde++; + +//// [shorthandPropertyNameWithExtendedEscape1.ts] +export let \u{78} = 10; +export const foo = {\u{78}}; +foo.x++; + +//// [shorthandPropertyNameWithExtendedEscape2.ts] +export let x\u{78} = 10; +export const foo = {x\u{78}}; +foo.xx++; + +//// [shorthandPropertyNameWithExtendedEscape3.ts] +export let a\u{62}c\u{64}e = 10; +export const foo = {a\u{62}c\u{64}e}; +foo.abcde++; + +// Type variables + +//// [typeVariableWithEscape1.ts] +export type \u0078 = 10; +declare const foo: x; + +//// [typeVariableWithEscape2.ts] +export type x\u0078 = 10; +declare const foo: xx; + +//// [typeVariableWithEscape3.ts] +export type a\u0062c\u0064e = 10; +declare const foo: abcde; + +//// [typeVariableWithExtendedEscape1.ts] +export type \u{78} = 10; +declare const foo: x; + +//// [typeVariableWithExtendedEscape2.ts] +export type x\u{78} = 10; +declare const foo: xx; + +//// [typeVariableWithExtendedEscape3.ts] +export type a\u{62}c\u{64}e = 10; +declare const foo: abcde; + + +//// [propertyNameWithEscape1.js] +export const foo = { \u0078: 10 }; +foo.x++; +//# sourceMappingURL=propertyNameWithEscape1.js.map +//// [propertyNameWithEscape2.js] +export const foo = { x\u0078: 10 }; +foo.xx++; +//# sourceMappingURL=propertyNameWithEscape2.js.map +//// [propertyNameWithEscape3.js] +export const foo = { a\u0062c\u0064e: 10 }; +foo.abcde++; +//# sourceMappingURL=propertyNameWithEscape3.js.map +//// [propertyNameWithExtendedEscape1.js] +export const foo = { \u{78}: 10 }; +foo.x++; +//# sourceMappingURL=propertyNameWithExtendedEscape1.js.map +//// [propertyNameWithExtendedEscape2.js] +export const foo = { x\u{78}: 10 }; +foo.xx++; +//# sourceMappingURL=propertyNameWithExtendedEscape2.js.map +//// [propertyNameWithExtendedEscape3.js] +export const foo = { a\u{62}c\u{64}e: 10 }; +foo.abcde++; +// Shorthand property names +//# sourceMappingURL=propertyNameWithExtendedEscape3.js.map +//// [shorthandPropertyNameWithEscape1.js] +export let \u0078 = 10; +export const foo = { \u0078 }; +foo.x++; +//# sourceMappingURL=shorthandPropertyNameWithEscape1.js.map +//// [shorthandPropertyNameWithEscape2.js] +export let x\u0078 = 10; +export const foo = { x\u0078 }; +foo.xx++; +//# sourceMappingURL=shorthandPropertyNameWithEscape2.js.map +//// [shorthandPropertyNameWithEscape3.js] +export let a\u0062c\u0064e = 10; +export const foo = { a\u0062c\u0064e }; +foo.abcde++; +//# sourceMappingURL=shorthandPropertyNameWithEscape3.js.map +//// [shorthandPropertyNameWithExtendedEscape1.js] +export let \u{78} = 10; +export const foo = { \u{78} }; +foo.x++; +//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape1.js.map +//// [shorthandPropertyNameWithExtendedEscape2.js] +export let x\u{78} = 10; +export const foo = { x\u{78} }; +foo.xx++; +//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape2.js.map +//// [shorthandPropertyNameWithExtendedEscape3.js] +export let a\u{62}c\u{64}e = 10; +export const foo = { a\u{62}c\u{64}e }; +foo.abcde++; +// Type variables +//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape3.js.map +//// [typeVariableWithEscape1.js] +export {}; +//# sourceMappingURL=typeVariableWithEscape1.js.map +//// [typeVariableWithEscape2.js] +export {}; +//# sourceMappingURL=typeVariableWithEscape2.js.map +//// [typeVariableWithEscape3.js] +export {}; +//# sourceMappingURL=typeVariableWithEscape3.js.map +//// [typeVariableWithExtendedEscape1.js] +export {}; +//# sourceMappingURL=typeVariableWithExtendedEscape1.js.map +//// [typeVariableWithExtendedEscape2.js] +export {}; +//# sourceMappingURL=typeVariableWithExtendedEscape2.js.map +//// [typeVariableWithExtendedEscape3.js] +export {}; +//# sourceMappingURL=typeVariableWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).js.map b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).js.map new file mode 100644 index 0000000000000..bbfef950a2714 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).js.map @@ -0,0 +1,71 @@ +//// [propertyNameWithEscape1.js.map] +{"version":3,"file":"propertyNameWithEscape1.js","sourceRoot":"","sources":["propertyNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAE,EAAE,EAAC,CAAC;AAChC,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgXHUwMDc4OiAxMCB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BlcnR5TmFtZVdpdGhFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxNQUFNLEVBQUUsRUFBRSxFQUFDLENBQUM7QUFDaEMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDIn0=,ZXhwb3J0IGNvbnN0IGZvbyA9IHtcdTAwNzg6IDEwfTsKZm9vLngrKzsK + +//// [propertyNameWithEscape2.js.map] +{"version":3,"file":"propertyNameWithEscape2.js","sourceRoot":"","sources":["propertyNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAE,EAAE,EAAC,CAAC;AACjC,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgeFx1MDA3ODogMTAgfTsNCmZvby54eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9cHJvcGVydHlOYW1lV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxPQUFPLEVBQUUsRUFBRSxFQUFDLENBQUM7QUFDakMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDIn0=,ZXhwb3J0IGNvbnN0IGZvbyA9IHt4XHUwMDc4OiAxMH07CmZvby54eCsrOwo= + +//// [propertyNameWithEscape3.js.map] +{"version":3,"file":"propertyNameWithEscape3.js","sourceRoot":"","sources":["propertyNameWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAE,EAAE,EAAC,CAAC;AACzC,GAAG,CAAC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgYVx1MDA2MmNcdTAwNjRlOiAxMCB9Ow0KZm9vLmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1wcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxlQUFlLEVBQUUsRUFBRSxFQUFDLENBQUM7QUFDekMsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIn0=,ZXhwb3J0IGNvbnN0IGZvbyA9IHthXHUwMDYyY1x1MDA2NGU6IDEwfTsKZm9vLmFiY2RlKys7Cg== + +//// [propertyNameWithExtendedEscape1.js.map] +{"version":3,"file":"propertyNameWithExtendedEscape1.js","sourceRoot":"","sources":["propertyNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAE,EAAE,EAAC,CAAC;AAChC,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgXHV7Nzh9OiAxMCB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUMsTUFBTSxFQUFFLEVBQUUsRUFBQyxDQUFDO0FBQ2hDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGNvbnN0IGZvbyA9IHtcdXs3OH06IDEwfTsKZm9vLngrKzsK + +//// [propertyNameWithExtendedEscape2.js.map] +{"version":3,"file":"propertyNameWithExtendedEscape2.js","sourceRoot":"","sources":["propertyNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAE,EAAE,EAAC,CAAC;AACjC,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgeFx1ezc4fTogMTAgfTsNCmZvby54eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9cHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUMsT0FBTyxFQUFFLEVBQUUsRUFBQyxDQUFDO0FBQ2pDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGNvbnN0IGZvbyA9IHt4XHV7Nzh9OiAxMH07CmZvby54eCsrOwo= + +//// [propertyNameWithExtendedEscape3.js.map] +{"version":3,"file":"propertyNameWithExtendedEscape3.js","sourceRoot":"","sources":["propertyNameWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAE,EAAE,EAAC,CAAC;AACzC,GAAG,CAAC,KAAK,EAAE,CAAC;AAEZ,2BAA2B"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgYVx1ezYyfWNcdXs2NH1lOiAxMCB9Ow0KZm9vLmFiY2RlKys7DQovLyBTaG9ydGhhbmQgcHJvcGVydHkgbmFtZXMNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUMsZUFBZSxFQUFFLEVBQUUsRUFBQyxDQUFDO0FBQ3pDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQztBQUVaLDJCQUEyQiJ9,ZXhwb3J0IGNvbnN0IGZvbyA9IHthXHV7NjJ9Y1x1ezY0fWU6IDEwfTsKZm9vLmFiY2RlKys7CgovLyBTaG9ydGhhbmQgcHJvcGVydHkgbmFtZXMK + +//// [shorthandPropertyNameWithEscape1.js.map] +{"version":3,"file":"shorthandPropertyNameWithEscape1.js","sourceRoot":"","sources":["shorthandPropertyNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAC,CAAC;AAC5B,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBcdTAwNzggPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IFx1MDA3OCB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxNQUFNLEdBQUcsRUFBRSxDQUFDO0FBQ3ZCLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFDLE1BQU0sRUFBQyxDQUFDO0FBQzVCLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBcdTAwNzggPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHtcdTAwNzh9Owpmb28ueCsrOwo= + +//// [shorthandPropertyNameWithEscape2.js.map] +{"version":3,"file":"shorthandPropertyNameWithEscape2.js","sourceRoot":"","sources":["shorthandPropertyNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAC,CAAC;AAC7B,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7DQpleHBvcnQgY29uc3QgZm9vID0geyB4XHUwMDc4IH07DQpmb28ueHgrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFc2NhcGUyLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxPQUFPLEdBQUcsRUFBRSxDQUFDO0FBQ3hCLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFDLE9BQU8sRUFBQyxDQUFDO0FBQzdCLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7CmV4cG9ydCBjb25zdCBmb28gPSB7eFx1MDA3OH07CmZvby54eCsrOwo= + +//// [shorthandPropertyNameWithEscape3.js.map] +{"version":3,"file":"shorthandPropertyNameWithEscape3.js","sourceRoot":"","sources":["shorthandPropertyNameWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAC,CAAC;AACrC,GAAG,CAAC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IGFcdTAwNjJjXHUwMDY0ZSB9Ow0KZm9vLmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxlQUFlLEdBQUcsRUFBRSxDQUFDO0FBQ2hDLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFDLGVBQWUsRUFBQyxDQUFDO0FBQ3JDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHthXHUwMDYyY1x1MDA2NGV9Owpmb28uYWJjZGUrKzsK + +//// [shorthandPropertyNameWithExtendedEscape1.js.map] +{"version":3,"file":"shorthandPropertyNameWithExtendedEscape1.js","sourceRoot":"","sources":["shorthandPropertyNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAC,CAAC;AAC5B,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IFx1ezc4fSB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksTUFBTSxHQUFHLEVBQUUsQ0FBQztBQUN2QixNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxNQUFNLEVBQUMsQ0FBQztBQUM1QixHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUMifQ==,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHtcdXs3OH19Owpmb28ueCsrOwo= + +//// [shorthandPropertyNameWithExtendedEscape2.js.map] +{"version":3,"file":"shorthandPropertyNameWithExtendedEscape2.js","sourceRoot":"","sources":["shorthandPropertyNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAC,CAAC;AAC7B,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7DQpleHBvcnQgY29uc3QgZm9vID0geyB4XHV7Nzh9IH07DQpmb28ueHgrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksT0FBTyxHQUFHLEVBQUUsQ0FBQztBQUN4QixNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxPQUFPLEVBQUMsQ0FBQztBQUM3QixHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMifQ==,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7CmV4cG9ydCBjb25zdCBmb28gPSB7eFx1ezc4fX07CmZvby54eCsrOwo= + +//// [shorthandPropertyNameWithExtendedEscape3.js.map] +{"version":3,"file":"shorthandPropertyNameWithExtendedEscape3.js","sourceRoot":"","sources":["shorthandPropertyNameWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAC,CAAC;AACrC,GAAG,CAAC,KAAK,EAAE,CAAC;AAEZ,iBAAiB"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IGFcdXs2Mn1jXHV7NjR9ZSB9Ow0KZm9vLmFiY2RlKys7DQovLyBUeXBlIHZhcmlhYmxlcw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksZUFBZSxHQUFHLEVBQUUsQ0FBQztBQUNoQyxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxlQUFlLEVBQUMsQ0FBQztBQUNyQyxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUM7QUFFWixpQkFBaUIifQ==,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHthXHV7NjJ9Y1x1ezY0fWV9Owpmb28uYWJjZGUrKzsKCi8vIFR5cGUgdmFyaWFibGVzCg== + +//// [typeVariableWithEscape1.js.map] +{"version":3,"file":"typeVariableWithEscape1.js","sourceRoot":"","sources":["typeVariableWithEscape1.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlVmFyaWFibGVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=,ZXhwb3J0IHR5cGUgXHUwMDc4ID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiB4Owo= + +//// [typeVariableWithEscape2.js.map] +{"version":3,"file":"typeVariableWithEscape2.js","sourceRoot":"","sources":["typeVariableWithEscape2.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlVmFyaWFibGVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=,ZXhwb3J0IHR5cGUgeFx1MDA3OCA9IDEwOwpkZWNsYXJlIGNvbnN0IGZvbzogeHg7Cg== + +//// [typeVariableWithEscape3.js.map] +{"version":3,"file":"typeVariableWithEscape3.js","sourceRoot":"","sources":["typeVariableWithEscape3.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEVzY2FwZTMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlVmFyaWFibGVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=,ZXhwb3J0IHR5cGUgYVx1MDA2MmNcdTAwNjRlID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiBhYmNkZTsK + +//// [typeVariableWithExtendedEscape1.js.map] +{"version":3,"file":"typeVariableWithExtendedEscape1.js","sourceRoot":"","sources":["typeVariableWithExtendedEscape1.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGVWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9,ZXhwb3J0IHR5cGUgXHV7Nzh9ID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiB4Owo= + +//// [typeVariableWithExtendedEscape2.js.map] +{"version":3,"file":"typeVariableWithExtendedEscape2.js","sourceRoot":"","sources":["typeVariableWithExtendedEscape2.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGVWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9,ZXhwb3J0IHR5cGUgeFx1ezc4fSA9IDEwOwpkZWNsYXJlIGNvbnN0IGZvbzogeHg7Cg== + +//// [typeVariableWithExtendedEscape3.js.map] +{"version":3,"file":"typeVariableWithExtendedEscape3.js","sourceRoot":"","sources":["typeVariableWithExtendedEscape3.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGVWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9,ZXhwb3J0IHR5cGUgYVx1ezYyfWNcdXs2NH1lID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiBhYmNkZTsK diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).sourcemap.txt b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).sourcemap.txt new file mode 100644 index 0000000000000..53a1028e5a262 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).sourcemap.txt @@ -0,0 +1,1037 @@ +=================================================================== +JsFile: propertyNameWithEscape1.js +mapUrl: propertyNameWithEscape1.js.map +sourceRoot: +sources: propertyNameWithEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithEscape1.js +sourceFile:propertyNameWithEscape1.ts +------------------------------------------------------------------- +>>>export const foo = { \u0078: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u0078 +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 28) Source(1, 27) + SourceIndex(0) +9 >Emitted(1, 30) Source(1, 29) + SourceIndex(0) +10>Emitted(1, 32) Source(1, 31) + SourceIndex(0) +11>Emitted(1, 34) Source(1, 32) + SourceIndex(0) +12>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +5 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +6 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithEscape1.js.map=================================================================== +JsFile: propertyNameWithEscape2.js +mapUrl: propertyNameWithEscape2.js.map +sourceRoot: +sources: propertyNameWithEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithEscape2.js +sourceFile:propertyNameWithEscape2.ts +------------------------------------------------------------------- +>>>export const foo = { x\u0078: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u0078 +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 29) Source(1, 28) + SourceIndex(0) +9 >Emitted(1, 31) Source(1, 30) + SourceIndex(0) +10>Emitted(1, 33) Source(1, 32) + SourceIndex(0) +11>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +12>Emitted(1, 36) Source(1, 34) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +5 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +6 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithEscape2.js.map=================================================================== +JsFile: propertyNameWithEscape3.js +mapUrl: propertyNameWithEscape3.js.map +sourceRoot: +sources: propertyNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithEscape3.js +sourceFile:propertyNameWithEscape3.ts +------------------------------------------------------------------- +>>>export const foo = { a\u0062c\u0064e: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u0062c\u0064e +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 37) Source(1, 36) + SourceIndex(0) +9 >Emitted(1, 39) Source(1, 38) + SourceIndex(0) +10>Emitted(1, 41) Source(1, 40) + SourceIndex(0) +11>Emitted(1, 43) Source(1, 41) + SourceIndex(0) +12>Emitted(1, 44) Source(1, 42) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +5 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +6 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithEscape3.js.map=================================================================== +JsFile: propertyNameWithExtendedEscape1.js +mapUrl: propertyNameWithExtendedEscape1.js.map +sourceRoot: +sources: propertyNameWithExtendedEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithExtendedEscape1.js +sourceFile:propertyNameWithExtendedEscape1.ts +------------------------------------------------------------------- +>>>export const foo = { \u{78}: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u{78} +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 28) Source(1, 27) + SourceIndex(0) +9 >Emitted(1, 30) Source(1, 29) + SourceIndex(0) +10>Emitted(1, 32) Source(1, 31) + SourceIndex(0) +11>Emitted(1, 34) Source(1, 32) + SourceIndex(0) +12>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +5 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +6 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithExtendedEscape1.js.map=================================================================== +JsFile: propertyNameWithExtendedEscape2.js +mapUrl: propertyNameWithExtendedEscape2.js.map +sourceRoot: +sources: propertyNameWithExtendedEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithExtendedEscape2.js +sourceFile:propertyNameWithExtendedEscape2.ts +------------------------------------------------------------------- +>>>export const foo = { x\u{78}: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u{78} +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 29) Source(1, 28) + SourceIndex(0) +9 >Emitted(1, 31) Source(1, 30) + SourceIndex(0) +10>Emitted(1, 33) Source(1, 32) + SourceIndex(0) +11>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +12>Emitted(1, 36) Source(1, 34) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +5 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +6 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithExtendedEscape2.js.map=================================================================== +JsFile: propertyNameWithExtendedEscape3.js +mapUrl: propertyNameWithExtendedEscape3.js.map +sourceRoot: +sources: propertyNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithExtendedEscape3.js +sourceFile:propertyNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export const foo = { a\u{62}c\u{64}e: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u{62}c\u{64}e +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 37) Source(1, 36) + SourceIndex(0) +9 >Emitted(1, 39) Source(1, 38) + SourceIndex(0) +10>Emitted(1, 41) Source(1, 40) + SourceIndex(0) +11>Emitted(1, 43) Source(1, 41) + SourceIndex(0) +12>Emitted(1, 44) Source(1, 42) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +5 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +6 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>>// Shorthand property names +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +2 >// Shorthand property names +1->Emitted(3, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(3, 28) Source(4, 28) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithExtendedEscape3.js.map=================================================================== +JsFile: shorthandPropertyNameWithEscape1.js +mapUrl: shorthandPropertyNameWithEscape1.js.map +sourceRoot: +sources: shorthandPropertyNameWithEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithEscape1.js +sourceFile:shorthandPropertyNameWithEscape1.ts +------------------------------------------------------------------- +>>>export let \u0078 = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > \u0078 +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 18) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +7 >Emitted(1, 23) Source(1, 23) + SourceIndex(0) +8 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +--- +>>>export const foo = { \u0078 }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u0078 +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 28) Source(2, 27) + SourceIndex(0) +9 >Emitted(2, 30) Source(2, 28) + SourceIndex(0) +10>Emitted(2, 31) Source(2, 29) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +5 >Emitted(3, 8) Source(3, 8) + SourceIndex(0) +6 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithEscape1.js.map=================================================================== +JsFile: shorthandPropertyNameWithEscape2.js +mapUrl: shorthandPropertyNameWithEscape2.js.map +sourceRoot: +sources: shorthandPropertyNameWithEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithEscape2.js +sourceFile:shorthandPropertyNameWithEscape2.ts +------------------------------------------------------------------- +>>>export let x\u0078 = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > x\u0078 +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +6 >Emitted(1, 22) Source(1, 22) + SourceIndex(0) +7 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +8 >Emitted(1, 25) Source(1, 25) + SourceIndex(0) +--- +>>>export const foo = { x\u0078 }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u0078 +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 29) Source(2, 28) + SourceIndex(0) +9 >Emitted(2, 31) Source(2, 29) + SourceIndex(0) +10>Emitted(2, 32) Source(2, 30) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +5 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +6 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithEscape2.js.map=================================================================== +JsFile: shorthandPropertyNameWithEscape3.js +mapUrl: shorthandPropertyNameWithEscape3.js.map +sourceRoot: +sources: shorthandPropertyNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithEscape3.js +sourceFile:shorthandPropertyNameWithEscape3.ts +------------------------------------------------------------------- +>>>export let a\u0062c\u0064e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > a\u0062c\u0064e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>export const foo = { a\u0062c\u0064e }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u0062c\u0064e +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 37) Source(2, 36) + SourceIndex(0) +9 >Emitted(2, 39) Source(2, 37) + SourceIndex(0) +10>Emitted(2, 40) Source(2, 38) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +5 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +6 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithEscape3.js.map=================================================================== +JsFile: shorthandPropertyNameWithExtendedEscape1.js +mapUrl: shorthandPropertyNameWithExtendedEscape1.js.map +sourceRoot: +sources: shorthandPropertyNameWithExtendedEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithExtendedEscape1.js +sourceFile:shorthandPropertyNameWithExtendedEscape1.ts +------------------------------------------------------------------- +>>>export let \u{78} = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > \u{78} +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 18) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +7 >Emitted(1, 23) Source(1, 23) + SourceIndex(0) +8 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +--- +>>>export const foo = { \u{78} }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u{78} +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 28) Source(2, 27) + SourceIndex(0) +9 >Emitted(2, 30) Source(2, 28) + SourceIndex(0) +10>Emitted(2, 31) Source(2, 29) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +5 >Emitted(3, 8) Source(3, 8) + SourceIndex(0) +6 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape1.js.map=================================================================== +JsFile: shorthandPropertyNameWithExtendedEscape2.js +mapUrl: shorthandPropertyNameWithExtendedEscape2.js.map +sourceRoot: +sources: shorthandPropertyNameWithExtendedEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithExtendedEscape2.js +sourceFile:shorthandPropertyNameWithExtendedEscape2.ts +------------------------------------------------------------------- +>>>export let x\u{78} = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > x\u{78} +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +6 >Emitted(1, 22) Source(1, 22) + SourceIndex(0) +7 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +8 >Emitted(1, 25) Source(1, 25) + SourceIndex(0) +--- +>>>export const foo = { x\u{78} }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u{78} +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 29) Source(2, 28) + SourceIndex(0) +9 >Emitted(2, 31) Source(2, 29) + SourceIndex(0) +10>Emitted(2, 32) Source(2, 30) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +5 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +6 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape2.js.map=================================================================== +JsFile: shorthandPropertyNameWithExtendedEscape3.js +mapUrl: shorthandPropertyNameWithExtendedEscape3.js.map +sourceRoot: +sources: shorthandPropertyNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithExtendedEscape3.js +sourceFile:shorthandPropertyNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export let a\u{62}c\u{64}e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > a\u{62}c\u{64}e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>export const foo = { a\u{62}c\u{64}e }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u{62}c\u{64}e +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 37) Source(2, 36) + SourceIndex(0) +9 >Emitted(2, 39) Source(2, 37) + SourceIndex(0) +10>Emitted(2, 40) Source(2, 38) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +5 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +6 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) +--- +>>>// Type variables +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +2 >// Type variables +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 18) Source(5, 18) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape3.js.map=================================================================== +JsFile: typeVariableWithEscape1.js +mapUrl: typeVariableWithEscape1.js.map +sourceRoot: +sources: typeVariableWithEscape1.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithEscape1.js.map=================================================================== +JsFile: typeVariableWithEscape2.js +mapUrl: typeVariableWithEscape2.js.map +sourceRoot: +sources: typeVariableWithEscape2.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithEscape2.js.map=================================================================== +JsFile: typeVariableWithEscape3.js +mapUrl: typeVariableWithEscape3.js.map +sourceRoot: +sources: typeVariableWithEscape3.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithEscape3.js.map=================================================================== +JsFile: typeVariableWithExtendedEscape1.js +mapUrl: typeVariableWithExtendedEscape1.js.map +sourceRoot: +sources: typeVariableWithExtendedEscape1.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithExtendedEscape1.js.map=================================================================== +JsFile: typeVariableWithExtendedEscape2.js +mapUrl: typeVariableWithExtendedEscape2.js.map +sourceRoot: +sources: typeVariableWithExtendedEscape2.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithExtendedEscape2.js.map=================================================================== +JsFile: typeVariableWithExtendedEscape3.js +mapUrl: typeVariableWithExtendedEscape3.js.map +sourceRoot: +sources: typeVariableWithExtendedEscape3.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).symbols b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).symbols new file mode 100644 index 0000000000000..5eff81f6640a7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).symbols @@ -0,0 +1,192 @@ +//// [tests/cases/compiler/unicodeEscapesInNames03.ts] //// + +=== propertyNameWithEscape1.ts === +export const foo = {\u0078: 10}; +>foo : Symbol(foo, Decl(propertyNameWithEscape1.ts, 0, 12)) +>\u0078 : Symbol(\u0078, Decl(propertyNameWithEscape1.ts, 0, 20)) + +foo.x++; +>foo.x : Symbol(\u0078, Decl(propertyNameWithEscape1.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithEscape1.ts, 0, 12)) +>x : Symbol(\u0078, Decl(propertyNameWithEscape1.ts, 0, 20)) + +=== propertyNameWithEscape2.ts === +export const foo = {x\u0078: 10}; +>foo : Symbol(foo, Decl(propertyNameWithEscape2.ts, 0, 12)) +>x\u0078 : Symbol(x\u0078, Decl(propertyNameWithEscape2.ts, 0, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u0078, Decl(propertyNameWithEscape2.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithEscape2.ts, 0, 12)) +>xx : Symbol(x\u0078, Decl(propertyNameWithEscape2.ts, 0, 20)) + +=== propertyNameWithEscape3.ts === +export const foo = {a\u0062c\u0064e: 10}; +>foo : Symbol(foo, Decl(propertyNameWithEscape3.ts, 0, 12)) +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(propertyNameWithEscape3.ts, 0, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u0062c\u0064e, Decl(propertyNameWithEscape3.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithEscape3.ts, 0, 12)) +>abcde : Symbol(a\u0062c\u0064e, Decl(propertyNameWithEscape3.ts, 0, 20)) + +=== propertyNameWithExtendedEscape1.ts === +export const foo = {\u{78}: 10}; +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape1.ts, 0, 12)) +>\u{78} : Symbol(\u{78}, Decl(propertyNameWithExtendedEscape1.ts, 0, 20)) + +foo.x++; +>foo.x : Symbol(\u{78}, Decl(propertyNameWithExtendedEscape1.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape1.ts, 0, 12)) +>x : Symbol(\u{78}, Decl(propertyNameWithExtendedEscape1.ts, 0, 20)) + +=== propertyNameWithExtendedEscape2.ts === +export const foo = {x\u{78}: 10}; +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape2.ts, 0, 12)) +>x\u{78} : Symbol(x\u{78}, Decl(propertyNameWithExtendedEscape2.ts, 0, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u{78}, Decl(propertyNameWithExtendedEscape2.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape2.ts, 0, 12)) +>xx : Symbol(x\u{78}, Decl(propertyNameWithExtendedEscape2.ts, 0, 20)) + +=== propertyNameWithExtendedEscape3.ts === +export const foo = {a\u{62}c\u{64}e: 10}; +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape3.ts, 0, 12)) +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(propertyNameWithExtendedEscape3.ts, 0, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u{62}c\u{64}e, Decl(propertyNameWithExtendedEscape3.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape3.ts, 0, 12)) +>abcde : Symbol(a\u{62}c\u{64}e, Decl(propertyNameWithExtendedEscape3.ts, 0, 20)) + +// Shorthand property names + +=== shorthandPropertyNameWithEscape1.ts === +export let \u0078 = 10; +>\u0078 : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 0, 10)) + +export const foo = {\u0078}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape1.ts, 1, 12)) +>\u0078 : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 1, 20)) + +foo.x++; +>foo.x : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape1.ts, 1, 12)) +>x : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 1, 20)) + +=== shorthandPropertyNameWithEscape2.ts === +export let x\u0078 = 10; +>x\u0078 : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 0, 10)) + +export const foo = {x\u0078}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape2.ts, 1, 12)) +>x\u0078 : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 1, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape2.ts, 1, 12)) +>xx : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 1, 20)) + +=== shorthandPropertyNameWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 0, 10)) + +export const foo = {a\u0062c\u0064e}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape3.ts, 1, 12)) +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 1, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape3.ts, 1, 12)) +>abcde : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 1, 20)) + +=== shorthandPropertyNameWithExtendedEscape1.ts === +export let \u{78} = 10; +>\u{78} : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 0, 10)) + +export const foo = {\u{78}}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 12)) +>\u{78} : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 20)) + +foo.x++; +>foo.x : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 12)) +>x : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 20)) + +=== shorthandPropertyNameWithExtendedEscape2.ts === +export let x\u{78} = 10; +>x\u{78} : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 0, 10)) + +export const foo = {x\u{78}}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 12)) +>x\u{78} : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 12)) +>xx : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 20)) + +=== shorthandPropertyNameWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 0, 10)) + +export const foo = {a\u{62}c\u{64}e}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 12)) +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 12)) +>abcde : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 20)) + +// Type variables + +=== typeVariableWithEscape1.ts === +export type \u0078 = 10; +>\u0078 : Symbol(\u0078, Decl(typeVariableWithEscape1.ts, 0, 0)) + +declare const foo: x; +>foo : Symbol(foo, Decl(typeVariableWithEscape1.ts, 1, 13)) +>x : Symbol(\u0078, Decl(typeVariableWithEscape1.ts, 0, 0)) + +=== typeVariableWithEscape2.ts === +export type x\u0078 = 10; +>x\u0078 : Symbol(x\u0078, Decl(typeVariableWithEscape2.ts, 0, 0)) + +declare const foo: xx; +>foo : Symbol(foo, Decl(typeVariableWithEscape2.ts, 1, 13)) +>xx : Symbol(x\u0078, Decl(typeVariableWithEscape2.ts, 0, 0)) + +=== typeVariableWithEscape3.ts === +export type a\u0062c\u0064e = 10; +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(typeVariableWithEscape3.ts, 0, 0)) + +declare const foo: abcde; +>foo : Symbol(foo, Decl(typeVariableWithEscape3.ts, 1, 13)) +>abcde : Symbol(a\u0062c\u0064e, Decl(typeVariableWithEscape3.ts, 0, 0)) + +=== typeVariableWithExtendedEscape1.ts === +export type \u{78} = 10; +>\u{78} : Symbol(\u{78}, Decl(typeVariableWithExtendedEscape1.ts, 0, 0)) + +declare const foo: x; +>foo : Symbol(foo, Decl(typeVariableWithExtendedEscape1.ts, 1, 13)) +>x : Symbol(\u{78}, Decl(typeVariableWithExtendedEscape1.ts, 0, 0)) + +=== typeVariableWithExtendedEscape2.ts === +export type x\u{78} = 10; +>x\u{78} : Symbol(x\u{78}, Decl(typeVariableWithExtendedEscape2.ts, 0, 0)) + +declare const foo: xx; +>foo : Symbol(foo, Decl(typeVariableWithExtendedEscape2.ts, 1, 13)) +>xx : Symbol(x\u{78}, Decl(typeVariableWithExtendedEscape2.ts, 0, 0)) + +=== typeVariableWithExtendedEscape3.ts === +export type a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(typeVariableWithExtendedEscape3.ts, 0, 0)) + +declare const foo: abcde; +>foo : Symbol(foo, Decl(typeVariableWithExtendedEscape3.ts, 1, 13)) +>abcde : Symbol(a\u{62}c\u{64}e, Decl(typeVariableWithExtendedEscape3.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).types b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).types new file mode 100644 index 0000000000000..9ecb233d2e7eb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=es2015).types @@ -0,0 +1,222 @@ +//// [tests/cases/compiler/unicodeEscapesInNames03.ts] //// + +=== propertyNameWithEscape1.ts === +export const foo = {\u0078: 10}; +>foo : { x: number; } +>{\u0078: 10} : { x: number; } +>\u0078 : number +>10 : 10 + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== propertyNameWithEscape2.ts === +export const foo = {x\u0078: 10}; +>foo : { xx: number; } +>{x\u0078: 10} : { xx: number; } +>x\u0078 : number +>10 : 10 + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== propertyNameWithEscape3.ts === +export const foo = {a\u0062c\u0064e: 10}; +>foo : { abcde: number; } +>{a\u0062c\u0064e: 10} : { abcde: number; } +>a\u0062c\u0064e : number +>10 : 10 + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +=== propertyNameWithExtendedEscape1.ts === +export const foo = {\u{78}: 10}; +>foo : { x: number; } +>{\u{78}: 10} : { x: number; } +>\u{78} : number +>10 : 10 + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== propertyNameWithExtendedEscape2.ts === +export const foo = {x\u{78}: 10}; +>foo : { xx: number; } +>{x\u{78}: 10} : { xx: number; } +>x\u{78} : number +>10 : 10 + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== propertyNameWithExtendedEscape3.ts === +export const foo = {a\u{62}c\u{64}e: 10}; +>foo : { abcde: number; } +>{a\u{62}c\u{64}e: 10} : { abcde: number; } +>a\u{62}c\u{64}e : number +>10 : 10 + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +// Shorthand property names + +=== shorthandPropertyNameWithEscape1.ts === +export let \u0078 = 10; +>\u0078 : number +>10 : 10 + +export const foo = {\u0078}; +>foo : { x: number; } +>{\u0078} : { x: number; } +>\u0078 : number + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== shorthandPropertyNameWithEscape2.ts === +export let x\u0078 = 10; +>x\u0078 : number +>10 : 10 + +export const foo = {x\u0078}; +>foo : { xx: number; } +>{x\u0078} : { xx: number; } +>x\u0078 : number + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== shorthandPropertyNameWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : number +>10 : 10 + +export const foo = {a\u0062c\u0064e}; +>foo : { abcde: number; } +>{a\u0062c\u0064e} : { abcde: number; } +>a\u0062c\u0064e : number + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +=== shorthandPropertyNameWithExtendedEscape1.ts === +export let \u{78} = 10; +>\u{78} : number +>10 : 10 + +export const foo = {\u{78}}; +>foo : { x: number; } +>{\u{78}} : { x: number; } +>\u{78} : number + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== shorthandPropertyNameWithExtendedEscape2.ts === +export let x\u{78} = 10; +>x\u{78} : number +>10 : 10 + +export const foo = {x\u{78}}; +>foo : { xx: number; } +>{x\u{78}} : { xx: number; } +>x\u{78} : number + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== shorthandPropertyNameWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : number +>10 : 10 + +export const foo = {a\u{62}c\u{64}e}; +>foo : { abcde: number; } +>{a\u{62}c\u{64}e} : { abcde: number; } +>a\u{62}c\u{64}e : number + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +// Type variables + +=== typeVariableWithEscape1.ts === +export type \u0078 = 10; +>\u0078 : 10 + +declare const foo: x; +>foo : 10 + +=== typeVariableWithEscape2.ts === +export type x\u0078 = 10; +>x\u0078 : 10 + +declare const foo: xx; +>foo : 10 + +=== typeVariableWithEscape3.ts === +export type a\u0062c\u0064e = 10; +>a\u0062c\u0064e : 10 + +declare const foo: abcde; +>foo : 10 + +=== typeVariableWithExtendedEscape1.ts === +export type \u{78} = 10; +>\u{78} : 10 + +declare const foo: x; +>foo : 10 + +=== typeVariableWithExtendedEscape2.ts === +export type x\u{78} = 10; +>x\u{78} : 10 + +declare const foo: xx; +>foo : 10 + +=== typeVariableWithExtendedEscape3.ts === +export type a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : 10 + +declare const foo: abcde; +>foo : 10 + diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).js b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).js new file mode 100644 index 0000000000000..dcef3b6f894d1 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).js @@ -0,0 +1,159 @@ +//// [tests/cases/compiler/unicodeEscapesInNames03.ts] //// + +//// [propertyNameWithEscape1.ts] +export const foo = {\u0078: 10}; +foo.x++; + +//// [propertyNameWithEscape2.ts] +export const foo = {x\u0078: 10}; +foo.xx++; + +//// [propertyNameWithEscape3.ts] +export const foo = {a\u0062c\u0064e: 10}; +foo.abcde++; + +//// [propertyNameWithExtendedEscape1.ts] +export const foo = {\u{78}: 10}; +foo.x++; + +//// [propertyNameWithExtendedEscape2.ts] +export const foo = {x\u{78}: 10}; +foo.xx++; + +//// [propertyNameWithExtendedEscape3.ts] +export const foo = {a\u{62}c\u{64}e: 10}; +foo.abcde++; + +// Shorthand property names + +//// [shorthandPropertyNameWithEscape1.ts] +export let \u0078 = 10; +export const foo = {\u0078}; +foo.x++; + +//// [shorthandPropertyNameWithEscape2.ts] +export let x\u0078 = 10; +export const foo = {x\u0078}; +foo.xx++; + +//// [shorthandPropertyNameWithEscape3.ts] +export let a\u0062c\u0064e = 10; +export const foo = {a\u0062c\u0064e}; +foo.abcde++; + +//// [shorthandPropertyNameWithExtendedEscape1.ts] +export let \u{78} = 10; +export const foo = {\u{78}}; +foo.x++; + +//// [shorthandPropertyNameWithExtendedEscape2.ts] +export let x\u{78} = 10; +export const foo = {x\u{78}}; +foo.xx++; + +//// [shorthandPropertyNameWithExtendedEscape3.ts] +export let a\u{62}c\u{64}e = 10; +export const foo = {a\u{62}c\u{64}e}; +foo.abcde++; + +// Type variables + +//// [typeVariableWithEscape1.ts] +export type \u0078 = 10; +declare const foo: x; + +//// [typeVariableWithEscape2.ts] +export type x\u0078 = 10; +declare const foo: xx; + +//// [typeVariableWithEscape3.ts] +export type a\u0062c\u0064e = 10; +declare const foo: abcde; + +//// [typeVariableWithExtendedEscape1.ts] +export type \u{78} = 10; +declare const foo: x; + +//// [typeVariableWithExtendedEscape2.ts] +export type x\u{78} = 10; +declare const foo: xx; + +//// [typeVariableWithExtendedEscape3.ts] +export type a\u{62}c\u{64}e = 10; +declare const foo: abcde; + + +//// [propertyNameWithEscape1.js] +export const foo = { \u0078: 10 }; +foo.x++; +//# sourceMappingURL=propertyNameWithEscape1.js.map +//// [propertyNameWithEscape2.js] +export const foo = { x\u0078: 10 }; +foo.xx++; +//# sourceMappingURL=propertyNameWithEscape2.js.map +//// [propertyNameWithEscape3.js] +export const foo = { a\u0062c\u0064e: 10 }; +foo.abcde++; +//# sourceMappingURL=propertyNameWithEscape3.js.map +//// [propertyNameWithExtendedEscape1.js] +export const foo = { \u{78}: 10 }; +foo.x++; +//# sourceMappingURL=propertyNameWithExtendedEscape1.js.map +//// [propertyNameWithExtendedEscape2.js] +export const foo = { x\u{78}: 10 }; +foo.xx++; +//# sourceMappingURL=propertyNameWithExtendedEscape2.js.map +//// [propertyNameWithExtendedEscape3.js] +export const foo = { a\u{62}c\u{64}e: 10 }; +foo.abcde++; +// Shorthand property names +//# sourceMappingURL=propertyNameWithExtendedEscape3.js.map +//// [shorthandPropertyNameWithEscape1.js] +export let \u0078 = 10; +export const foo = { \u0078 }; +foo.x++; +//# sourceMappingURL=shorthandPropertyNameWithEscape1.js.map +//// [shorthandPropertyNameWithEscape2.js] +export let x\u0078 = 10; +export const foo = { x\u0078 }; +foo.xx++; +//# sourceMappingURL=shorthandPropertyNameWithEscape2.js.map +//// [shorthandPropertyNameWithEscape3.js] +export let a\u0062c\u0064e = 10; +export const foo = { a\u0062c\u0064e }; +foo.abcde++; +//# sourceMappingURL=shorthandPropertyNameWithEscape3.js.map +//// [shorthandPropertyNameWithExtendedEscape1.js] +export let \u{78} = 10; +export const foo = { \u{78} }; +foo.x++; +//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape1.js.map +//// [shorthandPropertyNameWithExtendedEscape2.js] +export let x\u{78} = 10; +export const foo = { x\u{78} }; +foo.xx++; +//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape2.js.map +//// [shorthandPropertyNameWithExtendedEscape3.js] +export let a\u{62}c\u{64}e = 10; +export const foo = { a\u{62}c\u{64}e }; +foo.abcde++; +// Type variables +//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape3.js.map +//// [typeVariableWithEscape1.js] +export {}; +//# sourceMappingURL=typeVariableWithEscape1.js.map +//// [typeVariableWithEscape2.js] +export {}; +//# sourceMappingURL=typeVariableWithEscape2.js.map +//// [typeVariableWithEscape3.js] +export {}; +//# sourceMappingURL=typeVariableWithEscape3.js.map +//// [typeVariableWithExtendedEscape1.js] +export {}; +//# sourceMappingURL=typeVariableWithExtendedEscape1.js.map +//// [typeVariableWithExtendedEscape2.js] +export {}; +//# sourceMappingURL=typeVariableWithExtendedEscape2.js.map +//// [typeVariableWithExtendedEscape3.js] +export {}; +//# sourceMappingURL=typeVariableWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).js.map b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).js.map new file mode 100644 index 0000000000000..bbfef950a2714 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).js.map @@ -0,0 +1,71 @@ +//// [propertyNameWithEscape1.js.map] +{"version":3,"file":"propertyNameWithEscape1.js","sourceRoot":"","sources":["propertyNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAE,EAAE,EAAC,CAAC;AAChC,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgXHUwMDc4OiAxMCB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BlcnR5TmFtZVdpdGhFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxNQUFNLEVBQUUsRUFBRSxFQUFDLENBQUM7QUFDaEMsR0FBRyxDQUFDLENBQUMsRUFBRSxDQUFDIn0=,ZXhwb3J0IGNvbnN0IGZvbyA9IHtcdTAwNzg6IDEwfTsKZm9vLngrKzsK + +//// [propertyNameWithEscape2.js.map] +{"version":3,"file":"propertyNameWithEscape2.js","sourceRoot":"","sources":["propertyNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAE,EAAE,EAAC,CAAC;AACjC,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgeFx1MDA3ODogMTAgfTsNCmZvby54eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9cHJvcGVydHlOYW1lV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxPQUFPLEVBQUUsRUFBRSxFQUFDLENBQUM7QUFDakMsR0FBRyxDQUFDLEVBQUUsRUFBRSxDQUFDIn0=,ZXhwb3J0IGNvbnN0IGZvbyA9IHt4XHUwMDc4OiAxMH07CmZvby54eCsrOwo= + +//// [propertyNameWithEscape3.js.map] +{"version":3,"file":"propertyNameWithEscape3.js","sourceRoot":"","sources":["propertyNameWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAE,EAAE,EAAC,CAAC;AACzC,GAAG,CAAC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgYVx1MDA2MmNcdTAwNjRlOiAxMCB9Ow0KZm9vLmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1wcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJwcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxlQUFlLEVBQUUsRUFBRSxFQUFDLENBQUM7QUFDekMsR0FBRyxDQUFDLEtBQUssRUFBRSxDQUFDIn0=,ZXhwb3J0IGNvbnN0IGZvbyA9IHthXHUwMDYyY1x1MDA2NGU6IDEwfTsKZm9vLmFiY2RlKys7Cg== + +//// [propertyNameWithExtendedEscape1.js.map] +{"version":3,"file":"propertyNameWithExtendedEscape1.js","sourceRoot":"","sources":["propertyNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAE,EAAE,EAAC,CAAC;AAChC,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgXHV7Nzh9OiAxMCB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUMsTUFBTSxFQUFFLEVBQUUsRUFBQyxDQUFDO0FBQ2hDLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGNvbnN0IGZvbyA9IHtcdXs3OH06IDEwfTsKZm9vLngrKzsK + +//// [propertyNameWithExtendedEscape2.js.map] +{"version":3,"file":"propertyNameWithExtendedEscape2.js","sourceRoot":"","sources":["propertyNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAE,EAAE,EAAC,CAAC;AACjC,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgeFx1ezc4fTogMTAgfTsNCmZvby54eCsrOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9cHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUMsT0FBTyxFQUFFLEVBQUUsRUFBQyxDQUFDO0FBQ2pDLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGNvbnN0IGZvbyA9IHt4XHV7Nzh9OiAxMH07CmZvby54eCsrOwo= + +//// [propertyNameWithExtendedEscape3.js.map] +{"version":3,"file":"propertyNameWithExtendedEscape3.js","sourceRoot":"","sources":["propertyNameWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAE,EAAE,EAAC,CAAC;AACzC,GAAG,CAAC,KAAK,EAAE,CAAC;AAEZ,2BAA2B"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNvbnN0IGZvbyA9IHsgYVx1ezYyfWNcdXs2NH1lOiAxMCB9Ow0KZm9vLmFiY2RlKys7DQovLyBTaG9ydGhhbmQgcHJvcGVydHkgbmFtZXMNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLE1BQU0sR0FBRyxHQUFHLEVBQUMsZUFBZSxFQUFFLEVBQUUsRUFBQyxDQUFDO0FBQ3pDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQztBQUVaLDJCQUEyQiJ9,ZXhwb3J0IGNvbnN0IGZvbyA9IHthXHV7NjJ9Y1x1ezY0fWU6IDEwfTsKZm9vLmFiY2RlKys7CgovLyBTaG9ydGhhbmQgcHJvcGVydHkgbmFtZXMK + +//// [shorthandPropertyNameWithEscape1.js.map] +{"version":3,"file":"shorthandPropertyNameWithEscape1.js","sourceRoot":"","sources":["shorthandPropertyNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAC,CAAC;AAC5B,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBcdTAwNzggPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IFx1MDA3OCB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxNQUFNLEdBQUcsRUFBRSxDQUFDO0FBQ3ZCLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFDLE1BQU0sRUFBQyxDQUFDO0FBQzVCLEdBQUcsQ0FBQyxDQUFDLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBcdTAwNzggPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHtcdTAwNzh9Owpmb28ueCsrOwo= + +//// [shorthandPropertyNameWithEscape2.js.map] +{"version":3,"file":"shorthandPropertyNameWithEscape2.js","sourceRoot":"","sources":["shorthandPropertyNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAC,CAAC;AAC7B,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7DQpleHBvcnQgY29uc3QgZm9vID0geyB4XHUwMDc4IH07DQpmb28ueHgrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFc2NhcGUyLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxPQUFPLEdBQUcsRUFBRSxDQUFDO0FBQ3hCLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFDLE9BQU8sRUFBQyxDQUFDO0FBQzdCLEdBQUcsQ0FBQyxFQUFFLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCB4XHUwMDc4ID0gMTA7CmV4cG9ydCBjb25zdCBmb28gPSB7eFx1MDA3OH07CmZvby54eCsrOwo= + +//// [shorthandPropertyNameWithEscape3.js.map] +{"version":3,"file":"shorthandPropertyNameWithEscape3.js","sourceRoot":"","sources":["shorthandPropertyNameWithEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAC,CAAC;AACrC,GAAG,CAAC,KAAK,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IGFcdTAwNjJjXHUwMDY0ZSB9Ow0KZm9vLmFiY2RlKys7DQovLyMgc291cmNlTWFwcGluZ1VSTD1zaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzaG9ydGhhbmRQcm9wZXJ0eU5hbWVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsSUFBSSxlQUFlLEdBQUcsRUFBRSxDQUFDO0FBQ2hDLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFDLGVBQWUsRUFBQyxDQUFDO0FBQ3JDLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQyJ9,ZXhwb3J0IGxldCBhXHUwMDYyY1x1MDA2NGUgPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHthXHUwMDYyY1x1MDA2NGV9Owpmb28uYWJjZGUrKzsK + +//// [shorthandPropertyNameWithExtendedEscape1.js.map] +{"version":3,"file":"shorthandPropertyNameWithExtendedEscape1.js","sourceRoot":"","sources":["shorthandPropertyNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC;AACvB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,MAAM,EAAC,CAAC;AAC5B,GAAG,CAAC,CAAC,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IFx1ezc4fSB9Ow0KZm9vLngrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksTUFBTSxHQUFHLEVBQUUsQ0FBQztBQUN2QixNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxNQUFNLEVBQUMsQ0FBQztBQUM1QixHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUMifQ==,ZXhwb3J0IGxldCBcdXs3OH0gPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHtcdXs3OH19Owpmb28ueCsrOwo= + +//// [shorthandPropertyNameWithExtendedEscape2.js.map] +{"version":3,"file":"shorthandPropertyNameWithExtendedEscape2.js","sourceRoot":"","sources":["shorthandPropertyNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,OAAO,GAAG,EAAE,CAAC;AACxB,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,OAAO,EAAC,CAAC;AAC7B,GAAG,CAAC,EAAE,EAAE,CAAC"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7DQpleHBvcnQgY29uc3QgZm9vID0geyB4XHV7Nzh9IH07DQpmb28ueHgrKzsNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPXNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksT0FBTyxHQUFHLEVBQUUsQ0FBQztBQUN4QixNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxPQUFPLEVBQUMsQ0FBQztBQUM3QixHQUFHLENBQUMsRUFBRSxFQUFFLENBQUMifQ==,ZXhwb3J0IGxldCB4XHV7Nzh9ID0gMTA7CmV4cG9ydCBjb25zdCBmb28gPSB7eFx1ezc4fX07CmZvby54eCsrOwo= + +//// [shorthandPropertyNameWithExtendedEscape3.js.map] +{"version":3,"file":"shorthandPropertyNameWithExtendedEscape3.js","sourceRoot":"","sources":["shorthandPropertyNameWithExtendedEscape3.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAI,eAAe,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,GAAG,GAAG,EAAC,eAAe,EAAC,CAAC;AACrC,GAAG,CAAC,KAAK,EAAE,CAAC;AAEZ,iBAAiB"} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsNCmV4cG9ydCBjb25zdCBmb28gPSB7IGFcdXs2Mn1jXHV7NjR9ZSB9Ow0KZm9vLmFiY2RlKys7DQovLyBUeXBlIHZhcmlhYmxlcw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9c2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hvcnRoYW5kUHJvcGVydHlOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInNob3J0aGFuZFByb3BlcnR5TmFtZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxDQUFDLElBQUksZUFBZSxHQUFHLEVBQUUsQ0FBQztBQUNoQyxNQUFNLENBQUMsTUFBTSxHQUFHLEdBQUcsRUFBQyxlQUFlLEVBQUMsQ0FBQztBQUNyQyxHQUFHLENBQUMsS0FBSyxFQUFFLENBQUM7QUFFWixpQkFBaUIifQ==,ZXhwb3J0IGxldCBhXHV7NjJ9Y1x1ezY0fWUgPSAxMDsKZXhwb3J0IGNvbnN0IGZvbyA9IHthXHV7NjJ9Y1x1ezY0fWV9Owpmb28uYWJjZGUrKzsKCi8vIFR5cGUgdmFyaWFibGVzCg== + +//// [typeVariableWithEscape1.js.map] +{"version":3,"file":"typeVariableWithEscape1.js","sourceRoot":"","sources":["typeVariableWithEscape1.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlVmFyaWFibGVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=,ZXhwb3J0IHR5cGUgXHUwMDc4ID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiB4Owo= + +//// [typeVariableWithEscape2.js.map] +{"version":3,"file":"typeVariableWithEscape2.js","sourceRoot":"","sources":["typeVariableWithEscape2.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlVmFyaWFibGVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=,ZXhwb3J0IHR5cGUgeFx1MDA3OCA9IDEwOwpkZWNsYXJlIGNvbnN0IGZvbzogeHg7Cg== + +//// [typeVariableWithEscape3.js.map] +{"version":3,"file":"typeVariableWithEscape3.js","sourceRoot":"","sources":["typeVariableWithEscape3.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEVzY2FwZTMuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEVzY2FwZTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJ0eXBlVmFyaWFibGVXaXRoRXNjYXBlMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=,ZXhwb3J0IHR5cGUgYVx1MDA2MmNcdTAwNjRlID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiBhYmNkZTsK + +//// [typeVariableWithExtendedEscape1.js.map] +{"version":3,"file":"typeVariableWithExtendedEscape1.js","sourceRoot":"","sources":["typeVariableWithExtendedEscape1.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGVWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9,ZXhwb3J0IHR5cGUgXHV7Nzh9ID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiB4Owo= + +//// [typeVariableWithExtendedEscape2.js.map] +{"version":3,"file":"typeVariableWithExtendedEscape2.js","sourceRoot":"","sources":["typeVariableWithExtendedEscape2.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGVWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9,ZXhwb3J0IHR5cGUgeFx1ezc4fSA9IDEwOwpkZWNsYXJlIGNvbnN0IGZvbzogeHg7Cg== + +//// [typeVariableWithExtendedEscape3.js.map] +{"version":3,"file":"typeVariableWithExtendedEscape3.js","sourceRoot":"","sources":["typeVariableWithExtendedEscape3.ts"],"names":[],"mappings":""} +//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IHt9Ow0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9dHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMy5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHlwZVZhcmlhYmxlV2l0aEV4dGVuZGVkRXNjYXBlMy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInR5cGVWYXJpYWJsZVdpdGhFeHRlbmRlZEVzY2FwZTMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9,ZXhwb3J0IHR5cGUgYVx1ezYyfWNcdXs2NH1lID0gMTA7CmRlY2xhcmUgY29uc3QgZm9vOiBhYmNkZTsK diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).sourcemap.txt b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).sourcemap.txt new file mode 100644 index 0000000000000..53a1028e5a262 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).sourcemap.txt @@ -0,0 +1,1037 @@ +=================================================================== +JsFile: propertyNameWithEscape1.js +mapUrl: propertyNameWithEscape1.js.map +sourceRoot: +sources: propertyNameWithEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithEscape1.js +sourceFile:propertyNameWithEscape1.ts +------------------------------------------------------------------- +>>>export const foo = { \u0078: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u0078 +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 28) Source(1, 27) + SourceIndex(0) +9 >Emitted(1, 30) Source(1, 29) + SourceIndex(0) +10>Emitted(1, 32) Source(1, 31) + SourceIndex(0) +11>Emitted(1, 34) Source(1, 32) + SourceIndex(0) +12>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +5 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +6 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithEscape1.js.map=================================================================== +JsFile: propertyNameWithEscape2.js +mapUrl: propertyNameWithEscape2.js.map +sourceRoot: +sources: propertyNameWithEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithEscape2.js +sourceFile:propertyNameWithEscape2.ts +------------------------------------------------------------------- +>>>export const foo = { x\u0078: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u0078 +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 29) Source(1, 28) + SourceIndex(0) +9 >Emitted(1, 31) Source(1, 30) + SourceIndex(0) +10>Emitted(1, 33) Source(1, 32) + SourceIndex(0) +11>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +12>Emitted(1, 36) Source(1, 34) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +5 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +6 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithEscape2.js.map=================================================================== +JsFile: propertyNameWithEscape3.js +mapUrl: propertyNameWithEscape3.js.map +sourceRoot: +sources: propertyNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithEscape3.js +sourceFile:propertyNameWithEscape3.ts +------------------------------------------------------------------- +>>>export const foo = { a\u0062c\u0064e: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u0062c\u0064e +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 37) Source(1, 36) + SourceIndex(0) +9 >Emitted(1, 39) Source(1, 38) + SourceIndex(0) +10>Emitted(1, 41) Source(1, 40) + SourceIndex(0) +11>Emitted(1, 43) Source(1, 41) + SourceIndex(0) +12>Emitted(1, 44) Source(1, 42) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +5 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +6 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithEscape3.js.map=================================================================== +JsFile: propertyNameWithExtendedEscape1.js +mapUrl: propertyNameWithExtendedEscape1.js.map +sourceRoot: +sources: propertyNameWithExtendedEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithExtendedEscape1.js +sourceFile:propertyNameWithExtendedEscape1.ts +------------------------------------------------------------------- +>>>export const foo = { \u{78}: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u{78} +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 28) Source(1, 27) + SourceIndex(0) +9 >Emitted(1, 30) Source(1, 29) + SourceIndex(0) +10>Emitted(1, 32) Source(1, 31) + SourceIndex(0) +11>Emitted(1, 34) Source(1, 32) + SourceIndex(0) +12>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 6) Source(2, 6) + SourceIndex(0) +5 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +6 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithExtendedEscape1.js.map=================================================================== +JsFile: propertyNameWithExtendedEscape2.js +mapUrl: propertyNameWithExtendedEscape2.js.map +sourceRoot: +sources: propertyNameWithExtendedEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithExtendedEscape2.js +sourceFile:propertyNameWithExtendedEscape2.ts +------------------------------------------------------------------- +>>>export const foo = { x\u{78}: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u{78} +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 29) Source(1, 28) + SourceIndex(0) +9 >Emitted(1, 31) Source(1, 30) + SourceIndex(0) +10>Emitted(1, 33) Source(1, 32) + SourceIndex(0) +11>Emitted(1, 35) Source(1, 33) + SourceIndex(0) +12>Emitted(1, 36) Source(1, 34) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +5 >Emitted(2, 9) Source(2, 9) + SourceIndex(0) +6 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithExtendedEscape2.js.map=================================================================== +JsFile: propertyNameWithExtendedEscape3.js +mapUrl: propertyNameWithExtendedEscape3.js.map +sourceRoot: +sources: propertyNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:propertyNameWithExtendedEscape3.js +sourceFile:propertyNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export const foo = { a\u{62}c\u{64}e: 10 }; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^^ +11> ^^ +12> ^ +1 > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u{62}c\u{64}e +9 > : +10> 10 +11> } +12> ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 14) Source(1, 14) + SourceIndex(0) +5 >Emitted(1, 17) Source(1, 17) + SourceIndex(0) +6 >Emitted(1, 20) Source(1, 20) + SourceIndex(0) +7 >Emitted(1, 22) Source(1, 21) + SourceIndex(0) +8 >Emitted(1, 37) Source(1, 36) + SourceIndex(0) +9 >Emitted(1, 39) Source(1, 38) + SourceIndex(0) +10>Emitted(1, 41) Source(1, 40) + SourceIndex(0) +11>Emitted(1, 43) Source(1, 41) + SourceIndex(0) +12>Emitted(1, 44) Source(1, 42) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 4) Source(2, 4) + SourceIndex(0) +3 >Emitted(2, 5) Source(2, 5) + SourceIndex(0) +4 >Emitted(2, 10) Source(2, 10) + SourceIndex(0) +5 >Emitted(2, 12) Source(2, 12) + SourceIndex(0) +6 >Emitted(2, 13) Source(2, 13) + SourceIndex(0) +--- +>>>// Shorthand property names +1-> +2 >^^^^^^^^^^^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +2 >// Shorthand property names +1->Emitted(3, 1) Source(4, 1) + SourceIndex(0) +2 >Emitted(3, 28) Source(4, 28) + SourceIndex(0) +--- +>>>//# sourceMappingURL=propertyNameWithExtendedEscape3.js.map=================================================================== +JsFile: shorthandPropertyNameWithEscape1.js +mapUrl: shorthandPropertyNameWithEscape1.js.map +sourceRoot: +sources: shorthandPropertyNameWithEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithEscape1.js +sourceFile:shorthandPropertyNameWithEscape1.ts +------------------------------------------------------------------- +>>>export let \u0078 = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > \u0078 +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 18) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +7 >Emitted(1, 23) Source(1, 23) + SourceIndex(0) +8 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +--- +>>>export const foo = { \u0078 }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u0078 +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 28) Source(2, 27) + SourceIndex(0) +9 >Emitted(2, 30) Source(2, 28) + SourceIndex(0) +10>Emitted(2, 31) Source(2, 29) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +5 >Emitted(3, 8) Source(3, 8) + SourceIndex(0) +6 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithEscape1.js.map=================================================================== +JsFile: shorthandPropertyNameWithEscape2.js +mapUrl: shorthandPropertyNameWithEscape2.js.map +sourceRoot: +sources: shorthandPropertyNameWithEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithEscape2.js +sourceFile:shorthandPropertyNameWithEscape2.ts +------------------------------------------------------------------- +>>>export let x\u0078 = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > x\u0078 +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +6 >Emitted(1, 22) Source(1, 22) + SourceIndex(0) +7 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +8 >Emitted(1, 25) Source(1, 25) + SourceIndex(0) +--- +>>>export const foo = { x\u0078 }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u0078 +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 29) Source(2, 28) + SourceIndex(0) +9 >Emitted(2, 31) Source(2, 29) + SourceIndex(0) +10>Emitted(2, 32) Source(2, 30) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +5 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +6 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithEscape2.js.map=================================================================== +JsFile: shorthandPropertyNameWithEscape3.js +mapUrl: shorthandPropertyNameWithEscape3.js.map +sourceRoot: +sources: shorthandPropertyNameWithEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithEscape3.js +sourceFile:shorthandPropertyNameWithEscape3.ts +------------------------------------------------------------------- +>>>export let a\u0062c\u0064e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > a\u0062c\u0064e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>export const foo = { a\u0062c\u0064e }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u0062c\u0064e +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 37) Source(2, 36) + SourceIndex(0) +9 >Emitted(2, 39) Source(2, 37) + SourceIndex(0) +10>Emitted(2, 40) Source(2, 38) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +5 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +6 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithEscape3.js.map=================================================================== +JsFile: shorthandPropertyNameWithExtendedEscape1.js +mapUrl: shorthandPropertyNameWithExtendedEscape1.js.map +sourceRoot: +sources: shorthandPropertyNameWithExtendedEscape1.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithExtendedEscape1.js +sourceFile:shorthandPropertyNameWithExtendedEscape1.ts +------------------------------------------------------------------- +>>>export let \u{78} = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > \u{78} +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 18) Source(1, 18) + SourceIndex(0) +6 >Emitted(1, 21) Source(1, 21) + SourceIndex(0) +7 >Emitted(1, 23) Source(1, 23) + SourceIndex(0) +8 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +--- +>>>export const foo = { \u{78} }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > \u{78} +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 28) Source(2, 27) + SourceIndex(0) +9 >Emitted(2, 30) Source(2, 28) + SourceIndex(0) +10>Emitted(2, 31) Source(2, 29) + SourceIndex(0) +--- +>>>foo.x++; +1 > +2 >^^^ +3 > ^ +4 > ^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > x +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 6) Source(3, 6) + SourceIndex(0) +5 >Emitted(3, 8) Source(3, 8) + SourceIndex(0) +6 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape1.js.map=================================================================== +JsFile: shorthandPropertyNameWithExtendedEscape2.js +mapUrl: shorthandPropertyNameWithExtendedEscape2.js.map +sourceRoot: +sources: shorthandPropertyNameWithExtendedEscape2.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithExtendedEscape2.js +sourceFile:shorthandPropertyNameWithExtendedEscape2.ts +------------------------------------------------------------------- +>>>export let x\u{78} = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > x\u{78} +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 19) Source(1, 19) + SourceIndex(0) +6 >Emitted(1, 22) Source(1, 22) + SourceIndex(0) +7 >Emitted(1, 24) Source(1, 24) + SourceIndex(0) +8 >Emitted(1, 25) Source(1, 25) + SourceIndex(0) +--- +>>>export const foo = { x\u{78} }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > x\u{78} +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 29) Source(2, 28) + SourceIndex(0) +9 >Emitted(2, 31) Source(2, 29) + SourceIndex(0) +10>Emitted(2, 32) Source(2, 30) + SourceIndex(0) +--- +>>>foo.xx++; +1 > +2 >^^^ +3 > ^ +4 > ^^ +5 > ^^ +6 > ^ +7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1 > + > +2 >foo +3 > . +4 > xx +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 7) Source(3, 7) + SourceIndex(0) +5 >Emitted(3, 9) Source(3, 9) + SourceIndex(0) +6 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape2.js.map=================================================================== +JsFile: shorthandPropertyNameWithExtendedEscape3.js +mapUrl: shorthandPropertyNameWithExtendedEscape3.js.map +sourceRoot: +sources: shorthandPropertyNameWithExtendedEscape3.ts +=================================================================== +------------------------------------------------------------------- +emittedFile:shorthandPropertyNameWithExtendedEscape3.js +sourceFile:shorthandPropertyNameWithExtendedEscape3.ts +------------------------------------------------------------------- +>>>export let a\u{62}c\u{64}e = 10; +1 > +2 >^^^^^^ +3 > ^ +4 > ^^^^ +5 > ^^^^^^^^^^^^^^^ +6 > ^^^ +7 > ^^ +8 > ^ +9 > ^^^^^^^^-> +1 > +2 >export +3 > +4 > let +5 > a\u{62}c\u{64}e +6 > = +7 > 10 +8 > ; +1 >Emitted(1, 1) Source(1, 1) + SourceIndex(0) +2 >Emitted(1, 7) Source(1, 7) + SourceIndex(0) +3 >Emitted(1, 8) Source(1, 8) + SourceIndex(0) +4 >Emitted(1, 12) Source(1, 12) + SourceIndex(0) +5 >Emitted(1, 27) Source(1, 27) + SourceIndex(0) +6 >Emitted(1, 30) Source(1, 30) + SourceIndex(0) +7 >Emitted(1, 32) Source(1, 32) + SourceIndex(0) +8 >Emitted(1, 33) Source(1, 33) + SourceIndex(0) +--- +>>>export const foo = { a\u{62}c\u{64}e }; +1-> +2 >^^^^^^ +3 > ^ +4 > ^^^^^^ +5 > ^^^ +6 > ^^^ +7 > ^^ +8 > ^^^^^^^^^^^^^^^ +9 > ^^ +10> ^ +1-> + > +2 >export +3 > +4 > const +5 > foo +6 > = +7 > { +8 > a\u{62}c\u{64}e +9 > } +10> ; +1->Emitted(2, 1) Source(2, 1) + SourceIndex(0) +2 >Emitted(2, 7) Source(2, 7) + SourceIndex(0) +3 >Emitted(2, 8) Source(2, 8) + SourceIndex(0) +4 >Emitted(2, 14) Source(2, 14) + SourceIndex(0) +5 >Emitted(2, 17) Source(2, 17) + SourceIndex(0) +6 >Emitted(2, 20) Source(2, 20) + SourceIndex(0) +7 >Emitted(2, 22) Source(2, 21) + SourceIndex(0) +8 >Emitted(2, 37) Source(2, 36) + SourceIndex(0) +9 >Emitted(2, 39) Source(2, 37) + SourceIndex(0) +10>Emitted(2, 40) Source(2, 38) + SourceIndex(0) +--- +>>>foo.abcde++; +1 > +2 >^^^ +3 > ^ +4 > ^^^^^ +5 > ^^ +6 > ^ +7 > ^^^^^^-> +1 > + > +2 >foo +3 > . +4 > abcde +5 > ++ +6 > ; +1 >Emitted(3, 1) Source(3, 1) + SourceIndex(0) +2 >Emitted(3, 4) Source(3, 4) + SourceIndex(0) +3 >Emitted(3, 5) Source(3, 5) + SourceIndex(0) +4 >Emitted(3, 10) Source(3, 10) + SourceIndex(0) +5 >Emitted(3, 12) Source(3, 12) + SourceIndex(0) +6 >Emitted(3, 13) Source(3, 13) + SourceIndex(0) +--- +>>>// Type variables +1-> +2 >^^^^^^^^^^^^^^^^^ +3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-> +1-> + > + > +2 >// Type variables +1->Emitted(4, 1) Source(5, 1) + SourceIndex(0) +2 >Emitted(4, 18) Source(5, 18) + SourceIndex(0) +--- +>>>//# sourceMappingURL=shorthandPropertyNameWithExtendedEscape3.js.map=================================================================== +JsFile: typeVariableWithEscape1.js +mapUrl: typeVariableWithEscape1.js.map +sourceRoot: +sources: typeVariableWithEscape1.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithEscape1.js.map=================================================================== +JsFile: typeVariableWithEscape2.js +mapUrl: typeVariableWithEscape2.js.map +sourceRoot: +sources: typeVariableWithEscape2.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithEscape2.js.map=================================================================== +JsFile: typeVariableWithEscape3.js +mapUrl: typeVariableWithEscape3.js.map +sourceRoot: +sources: typeVariableWithEscape3.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithEscape3.js.map=================================================================== +JsFile: typeVariableWithExtendedEscape1.js +mapUrl: typeVariableWithExtendedEscape1.js.map +sourceRoot: +sources: typeVariableWithExtendedEscape1.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithExtendedEscape1.js.map=================================================================== +JsFile: typeVariableWithExtendedEscape2.js +mapUrl: typeVariableWithExtendedEscape2.js.map +sourceRoot: +sources: typeVariableWithExtendedEscape2.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithExtendedEscape2.js.map=================================================================== +JsFile: typeVariableWithExtendedEscape3.js +mapUrl: typeVariableWithExtendedEscape3.js.map +sourceRoot: +sources: typeVariableWithExtendedEscape3.ts +=================================================================== +>>>export {}; +>>>//# sourceMappingURL=typeVariableWithExtendedEscape3.js.map \ No newline at end of file diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).symbols b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).symbols new file mode 100644 index 0000000000000..5eff81f6640a7 --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).symbols @@ -0,0 +1,192 @@ +//// [tests/cases/compiler/unicodeEscapesInNames03.ts] //// + +=== propertyNameWithEscape1.ts === +export const foo = {\u0078: 10}; +>foo : Symbol(foo, Decl(propertyNameWithEscape1.ts, 0, 12)) +>\u0078 : Symbol(\u0078, Decl(propertyNameWithEscape1.ts, 0, 20)) + +foo.x++; +>foo.x : Symbol(\u0078, Decl(propertyNameWithEscape1.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithEscape1.ts, 0, 12)) +>x : Symbol(\u0078, Decl(propertyNameWithEscape1.ts, 0, 20)) + +=== propertyNameWithEscape2.ts === +export const foo = {x\u0078: 10}; +>foo : Symbol(foo, Decl(propertyNameWithEscape2.ts, 0, 12)) +>x\u0078 : Symbol(x\u0078, Decl(propertyNameWithEscape2.ts, 0, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u0078, Decl(propertyNameWithEscape2.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithEscape2.ts, 0, 12)) +>xx : Symbol(x\u0078, Decl(propertyNameWithEscape2.ts, 0, 20)) + +=== propertyNameWithEscape3.ts === +export const foo = {a\u0062c\u0064e: 10}; +>foo : Symbol(foo, Decl(propertyNameWithEscape3.ts, 0, 12)) +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(propertyNameWithEscape3.ts, 0, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u0062c\u0064e, Decl(propertyNameWithEscape3.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithEscape3.ts, 0, 12)) +>abcde : Symbol(a\u0062c\u0064e, Decl(propertyNameWithEscape3.ts, 0, 20)) + +=== propertyNameWithExtendedEscape1.ts === +export const foo = {\u{78}: 10}; +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape1.ts, 0, 12)) +>\u{78} : Symbol(\u{78}, Decl(propertyNameWithExtendedEscape1.ts, 0, 20)) + +foo.x++; +>foo.x : Symbol(\u{78}, Decl(propertyNameWithExtendedEscape1.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape1.ts, 0, 12)) +>x : Symbol(\u{78}, Decl(propertyNameWithExtendedEscape1.ts, 0, 20)) + +=== propertyNameWithExtendedEscape2.ts === +export const foo = {x\u{78}: 10}; +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape2.ts, 0, 12)) +>x\u{78} : Symbol(x\u{78}, Decl(propertyNameWithExtendedEscape2.ts, 0, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u{78}, Decl(propertyNameWithExtendedEscape2.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape2.ts, 0, 12)) +>xx : Symbol(x\u{78}, Decl(propertyNameWithExtendedEscape2.ts, 0, 20)) + +=== propertyNameWithExtendedEscape3.ts === +export const foo = {a\u{62}c\u{64}e: 10}; +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape3.ts, 0, 12)) +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(propertyNameWithExtendedEscape3.ts, 0, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u{62}c\u{64}e, Decl(propertyNameWithExtendedEscape3.ts, 0, 20)) +>foo : Symbol(foo, Decl(propertyNameWithExtendedEscape3.ts, 0, 12)) +>abcde : Symbol(a\u{62}c\u{64}e, Decl(propertyNameWithExtendedEscape3.ts, 0, 20)) + +// Shorthand property names + +=== shorthandPropertyNameWithEscape1.ts === +export let \u0078 = 10; +>\u0078 : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 0, 10)) + +export const foo = {\u0078}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape1.ts, 1, 12)) +>\u0078 : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 1, 20)) + +foo.x++; +>foo.x : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape1.ts, 1, 12)) +>x : Symbol(\u0078, Decl(shorthandPropertyNameWithEscape1.ts, 1, 20)) + +=== shorthandPropertyNameWithEscape2.ts === +export let x\u0078 = 10; +>x\u0078 : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 0, 10)) + +export const foo = {x\u0078}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape2.ts, 1, 12)) +>x\u0078 : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 1, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape2.ts, 1, 12)) +>xx : Symbol(x\u0078, Decl(shorthandPropertyNameWithEscape2.ts, 1, 20)) + +=== shorthandPropertyNameWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 0, 10)) + +export const foo = {a\u0062c\u0064e}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape3.ts, 1, 12)) +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 1, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithEscape3.ts, 1, 12)) +>abcde : Symbol(a\u0062c\u0064e, Decl(shorthandPropertyNameWithEscape3.ts, 1, 20)) + +=== shorthandPropertyNameWithExtendedEscape1.ts === +export let \u{78} = 10; +>\u{78} : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 0, 10)) + +export const foo = {\u{78}}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 12)) +>\u{78} : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 20)) + +foo.x++; +>foo.x : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 12)) +>x : Symbol(\u{78}, Decl(shorthandPropertyNameWithExtendedEscape1.ts, 1, 20)) + +=== shorthandPropertyNameWithExtendedEscape2.ts === +export let x\u{78} = 10; +>x\u{78} : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 0, 10)) + +export const foo = {x\u{78}}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 12)) +>x\u{78} : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 20)) + +foo.xx++; +>foo.xx : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 12)) +>xx : Symbol(x\u{78}, Decl(shorthandPropertyNameWithExtendedEscape2.ts, 1, 20)) + +=== shorthandPropertyNameWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 0, 10)) + +export const foo = {a\u{62}c\u{64}e}; +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 12)) +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 20)) + +foo.abcde++; +>foo.abcde : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 20)) +>foo : Symbol(foo, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 12)) +>abcde : Symbol(a\u{62}c\u{64}e, Decl(shorthandPropertyNameWithExtendedEscape3.ts, 1, 20)) + +// Type variables + +=== typeVariableWithEscape1.ts === +export type \u0078 = 10; +>\u0078 : Symbol(\u0078, Decl(typeVariableWithEscape1.ts, 0, 0)) + +declare const foo: x; +>foo : Symbol(foo, Decl(typeVariableWithEscape1.ts, 1, 13)) +>x : Symbol(\u0078, Decl(typeVariableWithEscape1.ts, 0, 0)) + +=== typeVariableWithEscape2.ts === +export type x\u0078 = 10; +>x\u0078 : Symbol(x\u0078, Decl(typeVariableWithEscape2.ts, 0, 0)) + +declare const foo: xx; +>foo : Symbol(foo, Decl(typeVariableWithEscape2.ts, 1, 13)) +>xx : Symbol(x\u0078, Decl(typeVariableWithEscape2.ts, 0, 0)) + +=== typeVariableWithEscape3.ts === +export type a\u0062c\u0064e = 10; +>a\u0062c\u0064e : Symbol(a\u0062c\u0064e, Decl(typeVariableWithEscape3.ts, 0, 0)) + +declare const foo: abcde; +>foo : Symbol(foo, Decl(typeVariableWithEscape3.ts, 1, 13)) +>abcde : Symbol(a\u0062c\u0064e, Decl(typeVariableWithEscape3.ts, 0, 0)) + +=== typeVariableWithExtendedEscape1.ts === +export type \u{78} = 10; +>\u{78} : Symbol(\u{78}, Decl(typeVariableWithExtendedEscape1.ts, 0, 0)) + +declare const foo: x; +>foo : Symbol(foo, Decl(typeVariableWithExtendedEscape1.ts, 1, 13)) +>x : Symbol(\u{78}, Decl(typeVariableWithExtendedEscape1.ts, 0, 0)) + +=== typeVariableWithExtendedEscape2.ts === +export type x\u{78} = 10; +>x\u{78} : Symbol(x\u{78}, Decl(typeVariableWithExtendedEscape2.ts, 0, 0)) + +declare const foo: xx; +>foo : Symbol(foo, Decl(typeVariableWithExtendedEscape2.ts, 1, 13)) +>xx : Symbol(x\u{78}, Decl(typeVariableWithExtendedEscape2.ts, 0, 0)) + +=== typeVariableWithExtendedEscape3.ts === +export type a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : Symbol(a\u{62}c\u{64}e, Decl(typeVariableWithExtendedEscape3.ts, 0, 0)) + +declare const foo: abcde; +>foo : Symbol(foo, Decl(typeVariableWithExtendedEscape3.ts, 1, 13)) +>abcde : Symbol(a\u{62}c\u{64}e, Decl(typeVariableWithExtendedEscape3.ts, 0, 0)) + diff --git a/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).types b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).types new file mode 100644 index 0000000000000..9ecb233d2e7eb --- /dev/null +++ b/tsc/testdata/baselines/reference/compiler/unicodeEscapesInNames03(target=esnext).types @@ -0,0 +1,222 @@ +//// [tests/cases/compiler/unicodeEscapesInNames03.ts] //// + +=== propertyNameWithEscape1.ts === +export const foo = {\u0078: 10}; +>foo : { x: number; } +>{\u0078: 10} : { x: number; } +>\u0078 : number +>10 : 10 + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== propertyNameWithEscape2.ts === +export const foo = {x\u0078: 10}; +>foo : { xx: number; } +>{x\u0078: 10} : { xx: number; } +>x\u0078 : number +>10 : 10 + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== propertyNameWithEscape3.ts === +export const foo = {a\u0062c\u0064e: 10}; +>foo : { abcde: number; } +>{a\u0062c\u0064e: 10} : { abcde: number; } +>a\u0062c\u0064e : number +>10 : 10 + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +=== propertyNameWithExtendedEscape1.ts === +export const foo = {\u{78}: 10}; +>foo : { x: number; } +>{\u{78}: 10} : { x: number; } +>\u{78} : number +>10 : 10 + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== propertyNameWithExtendedEscape2.ts === +export const foo = {x\u{78}: 10}; +>foo : { xx: number; } +>{x\u{78}: 10} : { xx: number; } +>x\u{78} : number +>10 : 10 + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== propertyNameWithExtendedEscape3.ts === +export const foo = {a\u{62}c\u{64}e: 10}; +>foo : { abcde: number; } +>{a\u{62}c\u{64}e: 10} : { abcde: number; } +>a\u{62}c\u{64}e : number +>10 : 10 + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +// Shorthand property names + +=== shorthandPropertyNameWithEscape1.ts === +export let \u0078 = 10; +>\u0078 : number +>10 : 10 + +export const foo = {\u0078}; +>foo : { x: number; } +>{\u0078} : { x: number; } +>\u0078 : number + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== shorthandPropertyNameWithEscape2.ts === +export let x\u0078 = 10; +>x\u0078 : number +>10 : 10 + +export const foo = {x\u0078}; +>foo : { xx: number; } +>{x\u0078} : { xx: number; } +>x\u0078 : number + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== shorthandPropertyNameWithEscape3.ts === +export let a\u0062c\u0064e = 10; +>a\u0062c\u0064e : number +>10 : 10 + +export const foo = {a\u0062c\u0064e}; +>foo : { abcde: number; } +>{a\u0062c\u0064e} : { abcde: number; } +>a\u0062c\u0064e : number + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +=== shorthandPropertyNameWithExtendedEscape1.ts === +export let \u{78} = 10; +>\u{78} : number +>10 : 10 + +export const foo = {\u{78}}; +>foo : { x: number; } +>{\u{78}} : { x: number; } +>\u{78} : number + +foo.x++; +>foo.x++ : number +>foo.x : number +>foo : { x: number; } +>x : number + +=== shorthandPropertyNameWithExtendedEscape2.ts === +export let x\u{78} = 10; +>x\u{78} : number +>10 : 10 + +export const foo = {x\u{78}}; +>foo : { xx: number; } +>{x\u{78}} : { xx: number; } +>x\u{78} : number + +foo.xx++; +>foo.xx++ : number +>foo.xx : number +>foo : { xx: number; } +>xx : number + +=== shorthandPropertyNameWithExtendedEscape3.ts === +export let a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : number +>10 : 10 + +export const foo = {a\u{62}c\u{64}e}; +>foo : { abcde: number; } +>{a\u{62}c\u{64}e} : { abcde: number; } +>a\u{62}c\u{64}e : number + +foo.abcde++; +>foo.abcde++ : number +>foo.abcde : number +>foo : { abcde: number; } +>abcde : number + +// Type variables + +=== typeVariableWithEscape1.ts === +export type \u0078 = 10; +>\u0078 : 10 + +declare const foo: x; +>foo : 10 + +=== typeVariableWithEscape2.ts === +export type x\u0078 = 10; +>x\u0078 : 10 + +declare const foo: xx; +>foo : 10 + +=== typeVariableWithEscape3.ts === +export type a\u0062c\u0064e = 10; +>a\u0062c\u0064e : 10 + +declare const foo: abcde; +>foo : 10 + +=== typeVariableWithExtendedEscape1.ts === +export type \u{78} = 10; +>\u{78} : 10 + +declare const foo: x; +>foo : 10 + +=== typeVariableWithExtendedEscape2.ts === +export type x\u{78} = 10; +>x\u{78} : 10 + +declare const foo: xx; +>foo : 10 + +=== typeVariableWithExtendedEscape3.ts === +export type a\u{62}c\u{64}e = 10; +>a\u{62}c\u{64}e : 10 + +declare const foo: abcde; +>foo : 10 + diff --git a/tsc/testdata/baselines/reference/conformance/unicodeEscapesInJsxtags.errors.txt b/tsc/testdata/baselines/reference/conformance/unicodeEscapesInJsxtags.errors.txt index e70893f7d1bd0..db4689b34a593 100644 --- a/tsc/testdata/baselines/reference/conformance/unicodeEscapesInJsxtags.errors.txt +++ b/tsc/testdata/baselines/reference/conformance/unicodeEscapesInJsxtags.errors.txt @@ -1,17 +1,23 @@ -file.tsx(16,4): error TS17021: Unicode escape sequence cannot appear here. -file.tsx(17,4): error TS17021: Unicode escape sequence cannot appear here. file.tsx(18,4): error TS17021: Unicode escape sequence cannot appear here. file.tsx(19,4): error TS17021: Unicode escape sequence cannot appear here. -file.tsx(20,6): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(20,4): error TS17021: Unicode escape sequence cannot appear here. file.tsx(21,4): error TS17021: Unicode escape sequence cannot appear here. -file.tsx(22,4): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(22,6): error TS17021: Unicode escape sequence cannot appear here. file.tsx(23,4): error TS17021: Unicode escape sequence cannot appear here. file.tsx(24,4): error TS17021: Unicode escape sequence cannot appear here. -file.tsx(27,9): error TS17021: Unicode escape sequence cannot appear here. -file.tsx(28,9): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(25,4): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(26,4): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(27,4): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(27,20): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(28,4): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(28,44): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(31,9): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(32,9): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(33,9): error TS17021: Unicode escape sequence cannot appear here. +file.tsx(34,9): error TS17021: Unicode escape sequence cannot appear here. -==== file.tsx (11 errors) ==== +==== file.tsx (17 errors) ==== /// import * as React from "react"; declare global { @@ -19,6 +25,8 @@ file.tsx(28,9): error TS17021: Unicode escape sequence cannot appear here. interface IntrinsicElements { "a-b": any; "a-c": any; + "abcde:abcde": any; + "namespace-name:tagname-tag": any; } } } @@ -54,6 +62,16 @@ file.tsx(28,9): error TS17021: Unicode escape sequence cannot appear here. ; ~~~~~~~~~~~~ !!! error TS17021: Unicode escape sequence cannot appear here. + ; + ~~~~~~~~~~~~~~~ +!!! error TS17021: Unicode escape sequence cannot appear here. + ~~~~~~~~~~~~~~~ +!!! error TS17021: Unicode escape sequence cannot appear here. + ; + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS17021: Unicode escape sequence cannot appear here. + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +!!! error TS17021: Unicode escape sequence cannot appear here. // attribute name ;