diff --git a/internal/ast/utilities.go b/internal/ast/utilities.go
index 275fb828ae..5839111596 100644
--- a/internal/ast/utilities.go
+++ b/internal/ast/utilities.go
@@ -566,7 +566,7 @@ func IsClassElement(node *Node) bool {
return false
}
-func isMethodOrAccessor(node *Node) bool {
+func IsMethodOrAccessor(node *Node) bool {
switch node.Kind {
case KindMethodDeclaration, KindGetAccessor, KindSetAccessor:
return true
@@ -575,7 +575,7 @@ func isMethodOrAccessor(node *Node) bool {
}
func IsPrivateIdentifierClassElementDeclaration(node *Node) bool {
- return (IsPropertyDeclaration(node) || isMethodOrAccessor(node)) && IsPrivateIdentifier(node.Name())
+ return (IsPropertyDeclaration(node) || IsMethodOrAccessor(node)) && IsPrivateIdentifier(node.Name())
}
func IsObjectLiteralOrClassExpressionMethodOrAccessor(node *Node) bool {
@@ -1467,6 +1467,18 @@ func getAssignedName(node *Node) *Node {
return nil
}
+func IsStaticPropertyDeclaration(member *ClassElement) bool {
+ return IsPropertyDeclaration(member) && HasStaticModifier(member)
+}
+
+func IsStaticPropertyDeclarationOrClassStaticBlockDeclaration(element *ClassElement) bool {
+ return IsStaticPropertyDeclaration(element) || IsClassStaticBlockDeclaration(element)
+}
+
+func GetStaticPropertiesAndClassStaticBlock(node *ClassLikeDeclaration) []*Node {
+ return core.Filter(node.Members(), IsStaticPropertyDeclarationOrClassStaticBlockDeclaration)
+}
+
type JSDeclarationKind int
const (
@@ -3853,3 +3865,16 @@ func GetRestIndicatorOfBindingOrAssignmentElement(bindingElement *Node) *Node {
}
return nil
}
+
+func GetEffectiveBaseTypeNode(node *Node) *Node {
+ baseType := GetClassExtendsHeritageElement(node)
+ // !!! TODO: JSDoc support
+ // if (baseType && isInJSFile(node)) {
+ // // Prefer an @augments tag because it may have type parameters.
+ // const tag = getJSDocAugmentsTag(node);
+ // if (tag) {
+ // return tag.class;
+ // }
+ // }
+ return baseType
+}
diff --git a/internal/checker/checker.go b/internal/checker/checker.go
index 3c216fc6f8..a0fcd2a759 100644
--- a/internal/checker/checker.go
+++ b/internal/checker/checker.go
@@ -12213,7 +12213,7 @@ func (c *Checker) getBaseTypesIfUnrelated(leftType *Type, rightType *Type, isRel
func (c *Checker) checkAssignmentOperator(left *ast.Node, operator ast.Kind, right *ast.Node, leftType *Type, rightType *Type) {
if ast.IsAssignmentOperator(operator) {
// getters can be a subtype of setters, so to check for assignability we use the setter's type instead
- if isCompoundAssignment(operator) && ast.IsPropertyAccessExpression(left) {
+ if IsCompoundAssignment(operator) && ast.IsPropertyAccessExpression(left) {
leftType = c.checkPropertyAccessExpression(left, CheckModeNormal, true /*writeOnly*/)
}
if c.checkReferenceExpression(left, diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access) {
diff --git a/internal/checker/utilities.go b/internal/checker/utilities.go
index 10f1c6c0c7..4cac202d11 100644
--- a/internal/checker/utilities.go
+++ b/internal/checker/utilities.go
@@ -44,7 +44,7 @@ func findInMap[K comparable, V any](m map[K]V, predicate func(V) bool) V {
return *new(V)
}
-func isCompoundAssignment(token ast.Kind) bool {
+func IsCompoundAssignment(token ast.Kind) bool {
return token >= ast.KindFirstCompoundAssignment && token <= ast.KindLastCompoundAssignment
}
diff --git a/internal/printer/classfacts.go b/internal/printer/classfacts.go
new file mode 100644
index 0000000000..633e631592
--- /dev/null
+++ b/internal/printer/classfacts.go
@@ -0,0 +1,12 @@
+package printer
+
+type ClassFacts int32
+
+const (
+ ClassFactsClassWasDecorated = 1 << iota
+ ClassFactsNeedsClassConstructorReference
+ ClassFactsNeedsClassSuperReference
+ ClassFactsNeedsSubstitutionForThisInClassStaticField
+ ClassFactsWillHoistInitializersToConstructor
+ ClassFactsNone ClassFacts = 0
+)
diff --git a/internal/printer/emitcontext.go b/internal/printer/emitcontext.go
index a34f958757..f00f9dd1fd 100644
--- a/internal/printer/emitcontext.go
+++ b/internal/printer/emitcontext.go
@@ -9,22 +9,24 @@ import (
"github.com/microsoft/typescript-go/internal/ast"
"github.com/microsoft/typescript-go/internal/collections"
"github.com/microsoft/typescript-go/internal/core"
+ "github.com/microsoft/typescript-go/internal/scanner"
)
// Stores side-table information used during transformation that can be read by the printer to customize emit
//
// NOTE: EmitContext is not guaranteed to be thread-safe.
type EmitContext struct {
- Factory *NodeFactory // Required. The NodeFactory to use to create new nodes
- autoGenerate map[*ast.MemberName]*AutoGenerateInfo
- textSource map[*ast.StringLiteralNode]*ast.Node
- original map[*ast.Node]*ast.Node
- emitNodes core.LinkStore[*ast.Node, emitNode]
- assignedName map[*ast.Node]*ast.Expression
- classThis map[*ast.Node]*ast.IdentifierNode
- varScopeStack core.Stack[*varScope]
- letScopeStack core.Stack[*varScope]
- emitHelpers collections.OrderedSet[*EmitHelper]
+ Factory *NodeFactory // Required. The NodeFactory to use to create new nodes
+ autoGenerate map[*ast.MemberName]*AutoGenerateInfo
+ textSource map[*ast.StringLiteralNode]*ast.Node
+ original map[*ast.Node]*ast.Node
+ emitNodes core.LinkStore[*ast.Node, emitNode]
+ assignedName map[*ast.Node]*ast.Expression
+ classThis map[*ast.Node]*ast.IdentifierNode
+ varScopeStack core.Stack[*varScope]
+ letScopeStack core.Stack[*varScope]
+ classScopeStack core.Stack[*classScope]
+ emitHelpers collections.OrderedSet[*EmitHelper]
}
type environmentFlags int
@@ -156,6 +158,24 @@ func (c *EmitContext) endAndMergeVariableEnvironment(statements []*ast.Statement
return c.mergeEnvironment(statements, c.EndVariableEnvironment())
}
+// NOTE: This is the new implementation of `ClassLexicalEnvironment` in Strada
+type classScope struct {
+ facts ClassFacts
+
+ classContainer *ast.ClassLikeDeclaration
+ className *ast.Node // used for prefixing generated variable names
+ // !!! weakSetName *ast.Node // used for brand check on private methods
+
+ // A mapping of generated private names to information needed for transformation.
+ generatedIdentifiers map[*ast.Node]PrivateIdentifierInfo
+ // A mapping of private names to information needed for transformation.
+ identifiers map[string]PrivateIdentifierInfo
+
+ // Tracks what computed name expressions originating from elided names must be inlined
+ // at the next execution site, in document order
+ pendingExpressions []*ast.Expression
+}
+
// Adds a `var` declaration to the current VariableEnvironment
//
// NOTE: This is the equivalent of `transformContext.hoistVariableDeclaration` in Strada.
@@ -367,6 +387,59 @@ func (c *EmitContext) isHoistedVariableStatement(node *ast.Statement) bool {
core.Every(node.AsVariableStatement().DeclarationList.AsVariableDeclarationList().Declarations.Nodes, isHoistedVariable)
}
+func (c *EmitContext) StartClassLexicalEnvironment(node *ast.ClassLikeDeclaration) {
+ // classContainer
+ classContainer := node
+
+ // className
+ var className *ast.Node
+ name := ast.GetNameOfDeclaration(node)
+ if name != nil && ast.IsIdentifier(name) {
+ className = name
+ } else {
+ assignedName := c.AssignedName(node)
+ if assignedName != nil {
+ if ast.IsStringLiteral(assignedName) {
+ // If the class name was assigned from a string literal based on an Identifier, use the Identifier
+ // as the prefix.
+ if textSourceNode := c.textSource[assignedName]; textSourceNode != nil && ast.IsIdentifier(textSourceNode) {
+ className = textSourceNode
+ } else if scanner.IsIdentifierText(assignedName.Text(), core.LanguageVariantStandard) {
+ // If the class name was assigned from a string literal that is a valid identifier, create an
+ // identifier from it.
+ prefixName := c.Factory.NewIdentifier(assignedName.Text())
+ className = prefixName
+ }
+ }
+ }
+ }
+
+ // !!! Set WeakSet for private instance methods and accessor brand check
+
+ c.classScopeStack.Push(&classScope{
+ facts: ClassFactsNone,
+ classContainer: classContainer,
+ className: className,
+ })
+}
+
+func (c *EmitContext) EndClassLexicalEnvironment() {
+ c.classScopeStack.Pop()
+}
+
+func (c *EmitContext) GetClassContainer() *ast.ClassLikeDeclaration {
+ if c.classScopeStack.Len() == 0 {
+ return nil
+ }
+ scope := c.classScopeStack.Peek()
+ return scope.classContainer
+}
+
+func (c *EmitContext) GetClassFacts() ClassFacts {
+ scope := c.classScopeStack.Peek()
+ return scope.facts
+}
+
//
// Name Generation
//
@@ -575,6 +648,14 @@ func (c *EmitContext) SourceMapRange(node *ast.Node) core.TextRange {
return node.Loc
}
+// Sets `EFNoComments` on a node and removes any leading and trailing synthetic comments.
+func (c *EmitContext) RemoveAllComments(node *ast.Node) {
+ c.AddEmitFlags(node, EFNoComments)
+ // !!! TODO: Also remove synthetic trailing/leading comments added by transforms
+ // emitNode.leadingComments = undefined;
+ // emitNode.trailingComments = undefined;
+}
+
// Sets the range to use for a node when emitting source maps.
func (c *EmitContext) SetSourceMapRange(node *ast.Node, loc core.TextRange) {
emitNode := c.emitNodes.Get(node)
@@ -869,6 +950,91 @@ func (c *EmitContext) AddInitializationStatement(node *ast.Node) {
scope.initializationStatements = append(scope.initializationStatements, node)
}
+func (c *EmitContext) AddPrivateIdentifierToEnvironment(node *ast.Node, name *ast.PrivateIdentifier) {
+ scope := c.classScopeStack.Peek()
+ scope.facts |= ClassFactsWillHoistInitializersToConstructor
+
+ previousInfo := c.GetPrivateIdentifierInfo(name.AsPrivateIdentifier())
+ isStatic := ast.HasStaticModifier(node)
+ isValid := (c.HasAutoGenerateInfo(name.AsNode()) || name.Text != "#constructor") && previousInfo == nil
+ if ast.IsAutoAccessorPropertyDeclaration(node) {
+ // !!!
+ } else if ast.IsPropertyDeclaration(node) {
+ if isStatic {
+ // !!!
+ } else {
+ className := scope.className
+ weakMapName := c.Factory.NewGeneratedNameForNodeEx(name.AsNode(), AutoGenerateOptions{
+ Prefix: "_" + className.Text() + "_",
+ })
+ c.AddVariableDeclaration(weakMapName)
+
+ c.setPrivateIdentifierInfo(name, NewPrivateIdentifierInstanceFieldInfo(
+ weakMapName.AsIdentifier(),
+ isValid,
+ ))
+
+ scope.pendingExpressions = append(
+ scope.pendingExpressions,
+ c.Factory.NewAssignmentExpression(
+ weakMapName,
+ c.Factory.NewNewExpression(
+ c.Factory.NewIdentifier("WeakMap"),
+ nil, /*typeArguments*/
+ &ast.NodeList{},
+ ),
+ ),
+ )
+ }
+ } else if ast.IsMethodDeclaration(node) {
+ // !!!
+ } else if ast.IsGetAccessorDeclaration(node) {
+ // !!!
+ } else if ast.IsSetAccessorDeclaration(node) {
+ // !!!
+ }
+}
+
+func (c *EmitContext) setPrivateIdentifierInfo(name *ast.PrivateIdentifier, info PrivateIdentifierInfo) {
+ scope := c.classScopeStack.Peek()
+ if c.HasAutoGenerateInfo(name.AsNode()) {
+ if scope.generatedIdentifiers == nil {
+ scope.generatedIdentifiers = make(map[*ast.Node]PrivateIdentifierInfo)
+ }
+ scope.generatedIdentifiers[c.GetNodeForGeneratedName(name.AsNode())] = info
+ } else {
+ if scope.identifiers == nil {
+ scope.identifiers = make(map[string]PrivateIdentifierInfo)
+ }
+ scope.identifiers[name.Text] = info
+ }
+}
+
+// NOTE: This is the equivalent of `accessPrivateIdentifier` in Strada
+func (c *EmitContext) GetPrivateIdentifierInfo(name *ast.PrivateIdentifier) PrivateIdentifierInfo {
+ if c.classScopeStack.Len() == 0 {
+ return nil
+ }
+ scope := c.classScopeStack.Peek()
+ if c.HasAutoGenerateInfo(name.AsNode()) {
+ if scope.generatedIdentifiers == nil {
+ return nil
+ } else {
+ return scope.generatedIdentifiers[c.GetNodeForGeneratedName(name.AsNode())]
+ }
+ } else {
+ if scope.identifiers == nil {
+ return nil
+ }
+ return scope.identifiers[name.Text]
+ }
+}
+
+func (c *EmitContext) GetPendingExpressions() []*ast.Expression {
+ scope := c.classScopeStack.Peek()
+ return scope.pendingExpressions
+}
+
func (c *EmitContext) VisitFunctionBody(node *ast.BlockOrExpression, visitor *ast.NodeVisitor) *ast.BlockOrExpression {
// !!! c.resumeVariableEnvironment()
updated := visitor.VisitNode(node)
diff --git a/internal/printer/factory.go b/internal/printer/factory.go
index 5860793d36..8bd7d74cb3 100644
--- a/internal/printer/factory.go
+++ b/internal/printer/factory.go
@@ -690,3 +690,58 @@ func (f *NodeFactory) NewRewriteRelativeImportExtensionsHelper(firstArgument *as
ast.NodeFlagsNone,
)
}
+
+// Allocate a new call expression to the `__classPrivateFieldGet` helper
+func (f *NodeFactory) NewClassPrivateFieldGetHelper(receiver *ast.Expression, state *ast.Identifier, kind PrivateIdentifierKind, farg *ast.Identifier) *ast.Expression {
+ f.emitContext.RequestEmitHelper(classPrivateFieldGetHelper)
+ var arguments []*ast.Expression
+ if farg == nil {
+ arguments = []*ast.Expression{
+ receiver,
+ state.AsNode(),
+ f.NewStringLiteral(kind.String()),
+ }
+ } else {
+ arguments = []*ast.Expression{
+ receiver,
+ state.AsNode(),
+ f.NewStringLiteral(kind.String()),
+ farg.AsNode(),
+ }
+ }
+ return f.NewCallExpression(
+ f.NewUnscopedHelperName("__classPrivateFieldGet"),
+ nil, /*questionDotToken*/
+ nil, /*typeArguments*/
+ f.NewNodeList(arguments),
+ ast.NodeFlagsNone,
+ )
+}
+
+// Allocate a new call expression to the `__classPrivateFieldSet` helper
+func (f *NodeFactory) NewClassPrivateFieldSetHelper(receiver *ast.Expression, state *ast.Identifier, value *ast.Expression, kind PrivateIdentifierKind, farg *ast.Identifier) *ast.Expression {
+ f.emitContext.RequestEmitHelper(classPrivateFieldSetHelper)
+ var arguments []*ast.Expression
+ if farg == nil {
+ arguments = []*ast.Expression{
+ receiver,
+ state.AsNode(),
+ value,
+ f.NewStringLiteral(kind.String()),
+ }
+ } else {
+ arguments = []*ast.Expression{
+ receiver,
+ state.AsNode(),
+ f.NewStringLiteral(kind.String()),
+ farg.AsNode(),
+ }
+ }
+ return f.NewCallExpression(
+ f.NewUnscopedHelperName("__classPrivateFieldSet"),
+ nil, /*questionDotToken*/
+ nil, /*typeArguments*/
+ f.NewNodeList(arguments),
+ ast.NodeFlagsNone,
+ )
+}
diff --git a/internal/printer/helpers.go b/internal/printer/helpers.go
index 0b3918af7b..ca79e36121 100644
--- a/internal/printer/helpers.go
+++ b/internal/printer/helpers.go
@@ -250,3 +250,26 @@ var rewriteRelativeImportExtensionsHelper = &EmitHelper{
return path;
};`,
}
+
+var classPrivateFieldGetHelper = &EmitHelper{
+ Name: "typescript:classPrivateFieldGet",
+ ImportName: "__classPrivateFieldGet",
+ Scoped: false,
+ Text: `var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};`,
+}
+
+var classPrivateFieldSetHelper = &EmitHelper{
+ Name: "typescript:classPrivateFieldSet",
+ ImportName: "__classPrivateFieldSet",
+ Scoped: false,
+ Text: `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;
+};`,
+}
diff --git a/internal/printer/privateidentifierinfo.go b/internal/printer/privateidentifierinfo.go
new file mode 100644
index 0000000000..cb86436c64
--- /dev/null
+++ b/internal/printer/privateidentifierinfo.go
@@ -0,0 +1,221 @@
+package printer
+
+import "github.com/microsoft/typescript-go/internal/ast"
+
+type PrivateIdentifierKind int
+
+const (
+ PrivateIdentifierKindMethod PrivateIdentifierKind = iota
+ PrivateIdentifierKindField
+ PrivateIdentifierKindAccessor
+ PrivateIdentifierKindUntransformed
+)
+
+func (k PrivateIdentifierKind) String() string {
+ switch k {
+ case PrivateIdentifierKindMethod:
+ return "m"
+ case PrivateIdentifierKindField:
+ return "f"
+ case PrivateIdentifierKindAccessor:
+ return "a"
+ case PrivateIdentifierKindUntransformed:
+ return "untransformed"
+ default:
+ panic("Unhandled PrivateIdentifierKind")
+ }
+}
+
+type PrivateIdentifierInfo interface {
+ Kind() PrivateIdentifierKind
+ IsValid() bool
+ IsStatic() bool
+ BrandCheckIdentifier() *ast.Identifier
+}
+
+type PrivateIdentifierInfoBase struct {
+ /**
+ * brandCheckIdentifier can contain:
+ * - For instance field: The WeakMap that will be the storage for the field.
+ * - For instance methods or accessors: The WeakSet that will be used for brand checking.
+ * - For static members: The constructor that will be used for brand checking.
+ */
+ brandCheckIdentifier *ast.Identifier
+ // Stores if the identifier is static or not
+ isStatic bool
+ // Stores if the identifier declaration is valid or not. Reserved names (e.g. #constructor)
+ // or duplicate identifiers are considered invalid.
+ isValid bool
+}
+
+type PrivateIdentifierAccessorInfo struct {
+ PrivateIdentifierInfoBase
+ kind PrivateIdentifierKind
+ // Identifier for a variable that will contain the private get accessor implementation, if any.
+ GetterName *ast.Identifier
+ // Identifier for a variable that will contain the private set accessor implementation, if any.
+ SetterName *ast.Identifier
+}
+
+func (p *PrivateIdentifierAccessorInfo) Kind() PrivateIdentifierKind {
+ return p.kind
+}
+
+func (p *PrivateIdentifierAccessorInfo) IsValid() bool {
+ return p.PrivateIdentifierInfoBase.isValid
+}
+
+func (p *PrivateIdentifierAccessorInfo) IsStatic() bool {
+ return p.PrivateIdentifierInfoBase.isStatic
+}
+
+func (p *PrivateIdentifierAccessorInfo) BrandCheckIdentifier() *ast.Identifier {
+ return p.PrivateIdentifierInfoBase.brandCheckIdentifier
+}
+
+func NewPrivateIdentifierAccessorInfo(brandCheckIdentifier *ast.Identifier, getterName *ast.Identifier, setterName *ast.Identifier, isValid bool, isStatic bool) *PrivateIdentifierAccessorInfo {
+ return &PrivateIdentifierAccessorInfo{
+ kind: PrivateIdentifierKindAccessor,
+ PrivateIdentifierInfoBase: PrivateIdentifierInfoBase{
+ brandCheckIdentifier: brandCheckIdentifier,
+ isStatic: isStatic,
+ isValid: isValid,
+ },
+ GetterName: getterName,
+ SetterName: setterName,
+ }
+}
+
+type PrivateIdentifierMethodInfo struct {
+ PrivateIdentifierInfoBase
+ kind PrivateIdentifierKind
+ // Identifier for a variable that will contain the private method implementation.
+ MethodName *ast.Identifier
+}
+
+func (p *PrivateIdentifierMethodInfo) Kind() PrivateIdentifierKind {
+ return p.kind
+}
+
+func (p *PrivateIdentifierMethodInfo) IsValid() bool {
+ return p.PrivateIdentifierInfoBase.isValid
+}
+
+func (p *PrivateIdentifierMethodInfo) IsStatic() bool {
+ return p.PrivateIdentifierInfoBase.isStatic
+}
+
+func (p *PrivateIdentifierMethodInfo) BrandCheckIdentifier() *ast.Identifier {
+ return p.PrivateIdentifierInfoBase.brandCheckIdentifier
+}
+
+func NewPrivateIdentifierMethodInfo(brandCheckIdentifier *ast.Identifier, methodName *ast.Identifier, isValid bool, isStatic bool) *PrivateIdentifierMethodInfo {
+ return &PrivateIdentifierMethodInfo{
+ kind: PrivateIdentifierKindMethod,
+ PrivateIdentifierInfoBase: PrivateIdentifierInfoBase{
+ brandCheckIdentifier: brandCheckIdentifier,
+ isStatic: isStatic,
+ isValid: isValid,
+ },
+ MethodName: methodName,
+ }
+}
+
+type PrivateIdentifierInstanceFieldInfo struct {
+ PrivateIdentifierInfoBase
+ kind PrivateIdentifierKind
+}
+
+func NewPrivateIdentifierInstanceFieldInfo(brandCheckIdentifier *ast.Identifier, isValid bool) *PrivateIdentifierInstanceFieldInfo {
+ return &PrivateIdentifierInstanceFieldInfo{
+ kind: PrivateIdentifierKindField,
+ PrivateIdentifierInfoBase: PrivateIdentifierInfoBase{
+ brandCheckIdentifier: brandCheckIdentifier,
+ isStatic: false,
+ isValid: isValid,
+ },
+ }
+}
+
+func (p *PrivateIdentifierInstanceFieldInfo) Kind() PrivateIdentifierKind {
+ return p.kind
+}
+
+func (p *PrivateIdentifierInstanceFieldInfo) IsValid() bool {
+ return p.PrivateIdentifierInfoBase.isValid
+}
+
+func (p *PrivateIdentifierInstanceFieldInfo) IsStatic() bool {
+ return p.PrivateIdentifierInfoBase.isStatic
+}
+
+func (p *PrivateIdentifierInstanceFieldInfo) BrandCheckIdentifier() *ast.Identifier {
+ return p.PrivateIdentifierInfoBase.brandCheckIdentifier
+}
+
+type PrivateIdentifierStaticFieldInfo struct {
+ PrivateIdentifierInfoBase
+ kind PrivateIdentifierKind
+ // Contains the variable that will serve as the storage for the field.
+ VariableName *ast.Identifier
+}
+
+func NewPrivateIdentifierStaticFieldInfo(brandCheckIdentifier *ast.Identifier, variableName *ast.Identifier, isValid bool) *PrivateIdentifierStaticFieldInfo {
+ return &PrivateIdentifierStaticFieldInfo{
+ kind: PrivateIdentifierKindField,
+ PrivateIdentifierInfoBase: PrivateIdentifierInfoBase{
+ brandCheckIdentifier: brandCheckIdentifier,
+ isStatic: true,
+ isValid: isValid,
+ },
+ VariableName: variableName,
+ }
+}
+
+func (p *PrivateIdentifierStaticFieldInfo) Kind() PrivateIdentifierKind {
+ return p.kind
+}
+
+func (p *PrivateIdentifierStaticFieldInfo) IsValid() bool {
+ return p.PrivateIdentifierInfoBase.isValid
+}
+
+func (p *PrivateIdentifierStaticFieldInfo) IsStatic() bool {
+ return p.PrivateIdentifierInfoBase.isStatic
+}
+
+func (p *PrivateIdentifierStaticFieldInfo) BrandCheckIdentifier() *ast.Identifier {
+ return p.PrivateIdentifierInfoBase.brandCheckIdentifier
+}
+
+type PrivateIdentifierUntransformedInfo struct {
+ PrivateIdentifierInfoBase
+ kind PrivateIdentifierKind
+}
+
+func NewPrivateIdentifierUntransformedInfo(brandCheckIdentifier *ast.Identifier, isValid bool, isStatic bool) *PrivateIdentifierUntransformedInfo {
+ return &PrivateIdentifierUntransformedInfo{
+ kind: PrivateIdentifierKindUntransformed,
+ PrivateIdentifierInfoBase: PrivateIdentifierInfoBase{
+ brandCheckIdentifier: brandCheckIdentifier,
+ isStatic: isStatic,
+ isValid: isValid,
+ },
+ }
+}
+
+func (p *PrivateIdentifierUntransformedInfo) Kind() PrivateIdentifierKind {
+ return p.kind
+}
+
+func (p *PrivateIdentifierUntransformedInfo) IsValid() bool {
+ return p.PrivateIdentifierInfoBase.isValid
+}
+
+func (p *PrivateIdentifierUntransformedInfo) IsStatic() bool {
+ return p.PrivateIdentifierInfoBase.isStatic
+}
+
+func (p *PrivateIdentifierUntransformedInfo) BrandCheckIdentifier() *ast.Identifier {
+ return p.PrivateIdentifierInfoBase.brandCheckIdentifier
+}
diff --git a/internal/transformers/declarations/transform.go b/internal/transformers/declarations/transform.go
index a2776f39ff..e79b613485 100644
--- a/internal/transformers/declarations/transform.go
+++ b/internal/transformers/declarations/transform.go
@@ -934,7 +934,7 @@ func (tx *DeclarationTransformer) visitDeclarationStatements(input *ast.Node) *a
assignment := tx.Factory().UpdateExportAssignment(input.AsExportAssignment(), input.Modifiers(), input.Type(), newId)
// Remove comments from the export declaration and copy them onto the synthetic _default declaration
tx.preserveJsDoc(statement, input)
- tx.removeAllComments(assignment)
+ tx.EmitContext().RemoveAllComments(assignment)
return tx.Factory().NewSyntaxList([]*ast.Node{statement, assignment})
default:
result := tx.transformTopLevelDeclaration(input)
@@ -978,13 +978,6 @@ func (tx *DeclarationTransformer) preserveJsDoc(updated *ast.Node, original *ast
// return setCommentRange(updated, getCommentRange(original));
}
-func (tx *DeclarationTransformer) removeAllComments(node *ast.Node) {
- tx.EmitContext().AddEmitFlags(node, printer.EFNoComments)
- // !!! TODO: Also remove synthetic trailing/leading comments added by transforms
- // emitNode.leadingComments = undefined;
- // emitNode.trailingComments = undefined;
-}
-
func (tx *DeclarationTransformer) ensureType(node *ast.Node, ignorePrivate bool) *ast.Node {
if !ignorePrivate && tx.host.GetEffectiveDeclarationFlags(tx.EmitContext().ParseNode(node), ast.ModifierFlagsPrivate) != 0 {
// Private nodes emit no types (except private parameter properties, whose parameter types are actually visible)
@@ -1321,7 +1314,7 @@ func (tx *DeclarationTransformer) transformClassDeclaration(input *ast.ClassDecl
}
members := tx.Factory().NewNodeList(memberNodes)
- extendsClause := getEffectiveBaseTypeNode(input.AsNode())
+ extendsClause := ast.GetEffectiveBaseTypeNode(input.AsNode())
if extendsClause != nil && !ast.IsEntityNameExpression(extendsClause.AsExpressionWithTypeArguments().Expression) && extendsClause.AsExpressionWithTypeArguments().Expression.Kind != ast.KindNullKeyword {
oldId := "default"
diff --git a/internal/transformers/declarations/util.go b/internal/transformers/declarations/util.go
index e6d71f5697..fbfbce9cd6 100644
--- a/internal/transformers/declarations/util.go
+++ b/internal/transformers/declarations/util.go
@@ -211,19 +211,6 @@ func getFirstConstructorWithBody(node *ast.Node) *ast.Node {
return nil
}
-func getEffectiveBaseTypeNode(node *ast.Node) *ast.Node {
- baseType := ast.GetClassExtendsHeritageElement(node)
- // !!! TODO: JSDoc support
- // if (baseType && isInJSFile(node)) {
- // // Prefer an @augments tag because it may have type parameters.
- // const tag = getJSDocAugmentsTag(node);
- // if (tag) {
- // return tag.class;
- // }
- // }
- return baseType
-}
-
func isScopeMarker(node *ast.Node) bool {
return ast.IsExportAssignment(node) || ast.IsExportDeclaration(node)
}
diff --git a/internal/transformers/estransforms/classprivatefields.go b/internal/transformers/estransforms/classprivatefields.go
new file mode 100644
index 0000000000..4d59befad6
--- /dev/null
+++ b/internal/transformers/estransforms/classprivatefields.go
@@ -0,0 +1,641 @@
+package estransforms
+
+import (
+ "github.com/microsoft/typescript-go/internal/ast"
+ "github.com/microsoft/typescript-go/internal/checker"
+ "github.com/microsoft/typescript-go/internal/core"
+ "github.com/microsoft/typescript-go/internal/printer"
+ "github.com/microsoft/typescript-go/internal/transformers"
+)
+
+type classPrivateFieldsTransformer struct {
+ transformers.Transformer
+ classElementVisitor *ast.NodeVisitor // visits a member of a class
+ currentClassElement *ast.ClassElement
+}
+
+func newClassPrivateFieldsTransformer(opts *transformers.TransformOptions) *transformers.Transformer {
+ tx := &classPrivateFieldsTransformer{}
+ tx.classElementVisitor = opts.Context.NewNodeVisitor(tx.visitClassElement)
+ return tx.NewTransformer(tx.visit, opts.Context)
+}
+
+func (tx *classPrivateFieldsTransformer) visit(node *ast.Node) *ast.Node {
+ // !!!
+ if node == nil {
+ return nil
+ }
+ if node.SubtreeFacts()&ast.SubtreeContainsClassFields == 0 {
+ return node
+ }
+ switch node.Kind {
+ case ast.KindSourceFile:
+ return tx.visitSourceFile(node.AsSourceFile())
+ case ast.KindPrivateIdentifier:
+ return tx.visitPrivateIdentifier(node.AsPrivateIdentifier())
+ case ast.KindExpressionStatement:
+ return tx.visitExpressionStatement(node.AsExpressionStatement())
+ case ast.KindClassDeclaration:
+ return tx.visitClassDeclaration(node.AsClassDeclaration())
+ case ast.KindPropertyAccessExpression:
+ return tx.visitPropertyAccessExpression(node.AsPropertyAccessExpression())
+ case ast.KindBinaryExpression:
+ return tx.visitBinaryExpression(node.AsBinaryExpression())
+ }
+ return tx.Visitor().VisitEachChild(node)
+}
+
+func (tx *classPrivateFieldsTransformer) visitSourceFile(file *ast.SourceFile) *ast.Node {
+ if file.IsDeclarationFile {
+ return file.AsNode()
+ }
+
+ visited := tx.Visitor().VisitEachChild((file.AsNode()))
+ tx.EmitContext().AddEmitHelper(visited.AsNode(), tx.EmitContext().ReadEmitHelpers()...)
+ return visited
+}
+
+// If we visit a private name, this means it is an undeclared private name.
+// Replace it with an empty identifier to indicate a problem with the code,
+// unless we are in a statement position - otherwise this will not trigger
+// a SyntaxError.
+func (tx *classPrivateFieldsTransformer) visitPrivateIdentifier(node *ast.PrivateIdentifier) *ast.Node {
+ if ast.IsStatement(node.Parent) {
+ return node.AsNode()
+ }
+
+ // !!! TODO: private identifier should be replaced in other cases.
+ // e.g. constructor { this.#foo = 3 } -> constructor { this. = 3 }
+ if !ast.IsPropertyDeclaration(node.Parent) {
+ return node.AsNode()
+ }
+ // !!! TODO: support class expression
+ // e.g. array.push(class A { #foo = "hello" })
+ classContainer := tx.EmitContext().GetClassContainer()
+ if classContainer == nil {
+ return node.AsNode()
+ }
+
+ emptyIdentifer := tx.Factory().NewIdentifier("")
+ tx.EmitContext().SetOriginal(emptyIdentifer, node.AsNode())
+ return emptyIdentifer
+}
+
+func (tx *classPrivateFieldsTransformer) visitExpressionStatement(node *ast.ExpressionStatement) *ast.Node {
+ return tx.Factory().UpdateExpressionStatement(
+ node,
+ tx.Visitor().VisitNode(node.Expression),
+ )
+}
+
+func (tx *classPrivateFieldsTransformer) visitClassDeclaration(node *ast.ClassDeclaration) *ast.Node {
+ tx.EmitContext().StartClassLexicalEnvironment(node.AsNode())
+
+ members := tx.transformClassMembers(node.AsNode())
+
+ statements := make([]*ast.Statement, 0)
+
+ if len(tx.EmitContext().GetPendingExpressions()) > 0 {
+ statements = append(
+ statements,
+ tx.Factory().NewExpressionStatement(tx.Factory().InlineExpressions(tx.EmitContext().GetPendingExpressions())),
+ )
+ }
+ classDecl := tx.Factory().UpdateClassDeclaration(
+ node.AsClassDeclaration(),
+ node.Modifiers(),
+ node.Name(),
+ nil, /*typeParameters*/
+ node.HeritageClauses,
+ members,
+ )
+ statements = append([]*ast.Statement{classDecl}, statements...)
+
+ tx.EmitContext().EndClassLexicalEnvironment()
+
+ return transformers.SingleOrMany(statements, tx.Factory())
+}
+
+func (tx *classPrivateFieldsTransformer) visitClassElement(node *ast.ClassElement) *ast.Node {
+ switch node.Kind {
+ case ast.KindConstructor:
+ return tx.setCurrentClassElementAnd(node, tx.visitConstructorDeclaration, node)
+ // case ast.KindGetAccessor, ast.KindSetAccessor, ast.KindMethodDeclaration:
+ // return tx.setCurrentClassElementAnd(node, tx.visitMethodOrAccessorDeclaration, node)
+ case ast.KindPropertyDeclaration:
+ return tx.setCurrentClassElementAnd(node, tx.visitPropertyDeclaration, node)
+ // case ast.KindClassStaticBlockDeclaration:
+ // return tx.setCurrentClassElementAnd(node, tx.visitClassStaticBlockDeclaration, node)
+ // case ast.KindComputedPropertyName:
+ // return tx.visitComputedPropertyName(node)
+ // case ast.KindSemicolonClassElement:
+ // return node
+ default:
+ return tx.Visitor().Visit(node)
+ }
+}
+
+func (tx *classPrivateFieldsTransformer) visitConstructorDeclaration(node *ast.Node) *ast.Node {
+ classContainer := tx.EmitContext().GetClassContainer()
+ return tx.transformConstructor(node.AsConstructorDeclaration(), classContainer).AsNode()
+}
+
+func (tx *classPrivateFieldsTransformer) visitPropertyDeclaration(node *ast.Node) *ast.Node {
+ // !!! TODO: supports static and auto accessor private fields
+ if !ast.IsPrivateIdentifierClassElementDeclaration(node) || ast.IsStatic(node) || ast.IsAutoAccessorPropertyDeclaration(node) {
+ return node
+ }
+
+ // If we are transforming private elements into WeakMap/WeakSet, we should elide the node.
+ info := tx.EmitContext().GetPrivateIdentifierInfo(node.Name().AsPrivateIdentifier())
+
+ if info == nil {
+ panic("Undeclared private name for property declaration.")
+ }
+
+ // Leave invalid code untransformed
+ if !info.IsValid() {
+ return node.AsNode()
+ }
+
+ return nil
+}
+
+func (tx *classPrivateFieldsTransformer) visitBinaryExpression(node *ast.BinaryExpression) *ast.Node {
+ // !!! destructuring assignment
+ // e.g. ({ x: obj.#x } = ...)
+
+ if ast.IsAssignmentExpression(node.AsNode(), false /*excludeCompoundAssignment*/) {
+ // 13.15.2 RS: Evaluation
+ // AssignmentExpression : LeftHandSideExpression `=` AssignmentExpression
+ // 1. If |LeftHandSideExpression| is neither an |ObjectLiteral| nor an |ArrayLiteral|, then
+ // a. Let _lref_ be ? Evaluation of |LeftHandSideExpression|.
+ // b. If IsAnonymousFunctionDefinition(|AssignmentExpression|) and IsIdentifierRef of |LeftHandSideExpression| are both *true*, then
+ // i. Let _rval_ be ? NamedEvaluation of |AssignmentExpression| with argument _lref_.[[ReferencedName]].
+ // ...
+ //
+ // AssignmentExpression : LeftHandSideExpression `&&=` AssignmentExpression
+ // ...
+ // 5. If IsAnonymousFunctionDefinition(|AssignmentExpression|) is *true* and IsIdentifierRef of |LeftHandSideExpression| is *true*, then
+ // a. Let _rval_ be ? NamedEvaluation of |AssignmentExpression| with argument _lref_.[[ReferencedName]].
+ // ...
+ //
+ // AssignmentExpression : LeftHandSideExpression `||=` AssignmentExpression
+ // ...
+ // 5. If IsAnonymousFunctionDefinition(|AssignmentExpression|) is *true* and IsIdentifierRef of |LeftHandSideExpression| is *true*, then
+ // a. Let _rval_ be ? NamedEvaluation of |AssignmentExpression| with argument _lref_.[[ReferencedName]].
+ // ...
+ //
+ // AssignmentExpression : LeftHandSideExpression `??=` AssignmentExpression
+ // ...
+ // 4. If IsAnonymousFunctionDefinition(|AssignmentExpression|) is *true* and IsIdentifierRef of |LeftHandSideExpression| is *true*, then
+ // a. Let _rval_ be ? NamedEvaluation of |AssignmentExpression| with argument _lref_.[[ReferencedName]].
+ // ...
+
+ left := ast.SkipOuterExpressions(node.Left, ast.OEKPartiallyEmittedExpressions|ast.OEKParentheses)
+ if isPrivateIdentifierPropertyAccessExpression(left) {
+ // obj.#x = ...
+ info := tx.EmitContext().GetPrivateIdentifierInfo(left.Name().AsPrivateIdentifier())
+ if info != nil {
+ assignment := tx.NewPrivateIdentifierAssignment(info, left.Expression(), node.Right, node.OperatorToken)
+ tx.EmitContext().SetOriginal(assignment, node.AsNode())
+ assignment.Loc = node.Loc
+ return assignment
+ }
+ }
+ }
+
+ return tx.Visitor().VisitEachChild(node.AsNode())
+}
+
+func (tx *classPrivateFieldsTransformer) setCurrentClassElementAnd(classElement *ast.ClassElement, visitor func(arg *ast.Node) *ast.Node, arg *ast.Node) *ast.Node {
+ if classElement != tx.currentClassElement {
+ savedCurrentClassElement := tx.currentClassElement
+ tx.currentClassElement = classElement
+ result := visitor(arg)
+ tx.currentClassElement = savedCurrentClassElement
+ return result
+ }
+ return visitor(arg)
+}
+
+func (tx *classPrivateFieldsTransformer) transformClassMembers(node *ast.ClassLikeDeclaration) *ast.NodeList {
+ for _, member := range node.Members() {
+ if ast.IsPrivateIdentifierClassElementDeclaration(member) {
+ // !!! TODO: supports static and auto accessor private identifier class elements
+ if ast.IsPropertyDeclaration(member) && !ast.IsStatic(member) && !ast.IsAutoAccessorPropertyDeclaration(member) {
+ tx.EmitContext().AddPrivateIdentifierToEnvironment(member, member.Name().AsPrivateIdentifier())
+ }
+ }
+ }
+
+ members := tx.classElementVisitor.VisitNodes(node.MemberList())
+
+ var syntheticConstructor *ast.ConstructorDeclaration
+ if !core.Some(members.Nodes, ast.IsConstructorDeclaration) {
+ syntheticConstructor = tx.transformConstructor(nil /*constructor*/, node)
+ }
+
+ if syntheticConstructor != nil {
+ classThisAssignmentBlock := core.Find(members.Nodes, func(member *ast.Node) bool {
+ return isClassThisAssignmentBlock(tx.EmitContext(), member)
+ })
+ classNamedEvaluationHelperBlock := core.Find(members.Nodes, func(member *ast.Node) bool {
+ return isClassNamedEvaluationHelperBlock(tx.EmitContext(), member)
+ })
+ membersArray := make([]*ast.Node, 0)
+ if classThisAssignmentBlock != nil {
+ membersArray = append(membersArray, classThisAssignmentBlock)
+ }
+ if classNamedEvaluationHelperBlock != nil {
+ membersArray = append(membersArray, classNamedEvaluationHelperBlock)
+ }
+ if syntheticConstructor != nil {
+ membersArray = append(membersArray, syntheticConstructor.AsNode())
+ }
+ remainingMembers := members.Nodes
+ if classThisAssignmentBlock != nil || classNamedEvaluationHelperBlock != nil {
+ remainingMembers = core.Filter(remainingMembers, func(member *ast.Node) bool {
+ return member != classThisAssignmentBlock && member != classNamedEvaluationHelperBlock
+ })
+ }
+ membersArray = append(membersArray, remainingMembers...)
+ members = tx.Factory().NewNodeList(membersArray)
+ members.Loc = node.MemberList().Loc
+ }
+
+ return members
+}
+
+func (tx *classPrivateFieldsTransformer) transformConstructor(constructor *ast.ConstructorDeclaration, container *ast.ClassLikeDeclaration) *ast.ConstructorDeclaration {
+ if constructor != nil {
+ constructor = tx.Visitor().VisitNode(constructor.AsNode()).AsConstructorDeclaration()
+ }
+ if tx.EmitContext().GetClassFacts()&printer.ClassFactsWillHoistInitializersToConstructor == 0 {
+ return constructor
+ }
+
+ extendsClauseElement := ast.GetEffectiveBaseTypeNode(container)
+ isDerivedClass := extendsClauseElement != nil && ast.SkipOuterExpressions(extendsClauseElement.Expression(), ast.OEKAll).Kind != ast.KindNullKeyword
+ var parameters *ast.ParameterList
+ if constructor == nil {
+ parameters = tx.EmitContext().VisitParameters(nil, tx.Visitor())
+ } else {
+ parameters = tx.EmitContext().VisitParameters(constructor.ParameterList(), tx.Visitor())
+ }
+ body := tx.transformConstructorBody(container, constructor, isDerivedClass)
+ if body == nil {
+ return constructor
+ }
+
+ if constructor != nil {
+ return tx.Factory().UpdateConstructorDeclaration(
+ constructor,
+ constructor.Modifiers(), /*modifiers*/
+ constructor.TypeParameters, /*typeParameters*/
+ parameters,
+ constructor.Type, /*returnType*/
+ constructor.FullSignature, /*fullSignature*/
+ body,
+ ).AsConstructorDeclaration()
+ }
+
+ result := tx.Factory().NewConstructorDeclaration(nil /*modifiers*/, nil /*typeParameters*/, nil /*parameters*/, nil /*returnType*/, nil /*fullSignature*/, body).AsConstructorDeclaration()
+ if container != nil {
+ result.Loc = container.Loc
+ }
+ tx.EmitContext().AddEmitFlags(result.AsNode(), printer.EFStartOnNewLine)
+
+ return result
+}
+
+func (tx *classPrivateFieldsTransformer) transformConstructorBody(node *ast.ClassLikeDeclaration, constructor *ast.ConstructorDeclaration, isDerivedClass bool) *ast.Node {
+ properties := getPropertiesNeedingInitialization(node)
+
+ // privateMethodsAndAccessors := getPrivateInstanceMethodsAndAccessors(node)
+ // !!! needsConstructorBody := len(properties) > 0 || len(privateMethodsAndAccessors) > 0
+ needsConstructorBody := len(properties) > 0
+
+ // Only generate synthetic constructor when there are property initializers to move.
+ if constructor == nil && !needsConstructorBody {
+ return tx.EmitContext().VisitFunctionBody(nil /*node*/, tx.Visitor())
+ }
+
+ /// !!! tx.EmitContext().ResumeVariableEnvironment()
+
+ // needsSyntheticConstructor := constructor == nil && isDerivedClass
+ // statementOffset := 0
+ statements := make([]*ast.Statement, 0)
+
+ // Add the property initializers. Transforms this:
+ //
+ // private x = 1;
+ //
+ // Into this:
+ //
+ // constructor() {
+ // this.x = 1;
+ // }
+ //
+
+ receiver := tx.Factory().NewThisExpression() // createThis
+
+ // private methods can be called in property initializers, they should execute first.
+ // !!!
+ // initializerStatements = tx.addInstanceMethodStatements(initializerStatements, privateMethodsAndAccessors, receiver)
+ initializerStatements := tx.transformPropertyStatements(properties, receiver)
+
+ statements = append(statements, initializerStatements...)
+ if constructor != nil && constructor.Body != nil {
+ statements = append(statements, tx.Visitor().VisitNodes(constructor.Body.StatementList()).Nodes...)
+ }
+
+ statements = tx.EmitContext().EndAndMergeVariableEnvironment(statements)
+
+ if len(statements) == 0 && constructor == nil {
+ return nil
+ }
+
+ statementsNodeArray := tx.Factory().NewNodeList(statements)
+ if constructor != nil && constructor.Body != nil && len(constructor.Body.Statements()) > 0 {
+ statementsNodeArray.Loc = constructor.Body.StatementList().Loc
+ } else {
+ statementsNodeArray.Loc = node.MemberList().Loc
+ }
+
+ multiline := len(statements) > 0
+ if constructor != nil && constructor.Body != nil && len(constructor.Body.Statements()) >= len(statements) {
+ multiline = constructor.Body.AsBlock().Multiline
+ }
+
+ blockNode := tx.Factory().NewBlock(statementsNodeArray, multiline)
+ if constructor != nil {
+ if constructor.Body != nil {
+ blockNode.Loc = constructor.Body.Loc
+ } else {
+ blockNode.Loc = constructor.Loc
+ }
+ }
+ return blockNode
+}
+
+func (tx *classPrivateFieldsTransformer) transformPropertyStatements(properties []*ast.Node, receiver *ast.LeftHandSideExpression) []*ast.Node {
+ var statements []*ast.Node
+ for _, property := range properties {
+ var expression *ast.Node
+ if !ast.IsStatic(property) {
+ expression = tx.transformProperty(property.AsPropertyDeclaration(), receiver)
+ }
+
+ if expression == nil {
+ continue
+ }
+
+ statement := tx.Factory().NewExpressionStatement(expression)
+ tx.EmitContext().SetOriginal(statement, property)
+ tx.EmitContext().AddEmitFlags(statement, tx.EmitContext().EmitFlags(property)&printer.EFNoComments)
+ tx.EmitContext().SetCommentRange(statement, property.Loc)
+
+ propertyOriginalNode := tx.EmitContext().MostOriginal(property)
+ if ast.IsParameter(propertyOriginalNode) {
+ // replicate comment and source map behavior from the ts transform for parameter properties.
+ tx.EmitContext().SetSourceMapRange(statement, propertyOriginalNode.Loc)
+ tx.EmitContext().RemoveAllComments(statement)
+ } else {
+ tx.EmitContext().SetSourceMapRange(statement, core.NewTextRange(property.Name().Pos(), property.End()))
+ }
+
+ // // `setOriginalNode` *copies* the `emitNode` from `property`, so now both
+ // // `statement` and `expression` have a copy of the synthesized comments.
+ // // Drop the comments from expression to avoid printing them twice.
+ // setSyntheticLeadingComments(expression, undefined);
+ // setSyntheticTrailingComments(expression, undefined);
+
+ // If the property was originally an auto-accessor, don't emit comments here since they will be attached to
+ // the synthezized getter.
+ if ast.HasAccessorModifier(propertyOriginalNode) {
+ tx.EmitContext().AddEmitFlags(statement, printer.EFNoComments)
+ }
+
+ statements = append(statements, statement)
+ }
+
+ return statements
+}
+
+// Transforms a property initializer into an assignment statement.
+func (tx *classPrivateFieldsTransformer) transformProperty(property *ast.PropertyDeclaration, receiver *ast.LeftHandSideExpression) *ast.Node {
+ savedCurrentClassElement := tx.currentClassElement
+ transformed := tx.transformPropertyWorker(property, receiver)
+ if transformed != nil &&
+ ast.HasStaticModifier(property.AsNode()) {
+ tx.EmitContext().SetOriginal(transformed, property.AsNode())
+ tx.EmitContext().SetSourceMapRange(transformed, tx.EmitContext().SourceMapRange(property.Name()))
+ }
+ tx.currentClassElement = savedCurrentClassElement
+ return transformed
+}
+
+func (tx *classPrivateFieldsTransformer) transformPropertyWorker(property *ast.PropertyDeclaration, receiver *ast.LeftHandSideExpression) *ast.Expression {
+ propertyName := property.Name()
+ if ast.HasAccessorModifier(property.AsNode()) {
+ propertyName = tx.Factory().NewGeneratedPrivateNameForNode(property.Name())
+ } else if ast.IsComputedPropertyName(property.Name()) && transformers.IsSimpleInlineableExpression(property.Name().Expression()) {
+ propertyName = tx.Factory().UpdateComputedPropertyName(property.Name().AsComputedPropertyName(), tx.Factory().NewGeneratedNameForNode(property.Name()))
+ }
+
+ if ast.IsPrivateIdentifier(propertyName) {
+ privateIdentifierInfo := tx.EmitContext().GetPrivateIdentifierInfo(propertyName.AsPrivateIdentifier())
+ if privateIdentifierInfo == nil {
+ panic("Undeclared private name for property declaration.")
+ }
+
+ switch info := privateIdentifierInfo.(type) {
+ case *printer.PrivateIdentifierInstanceFieldInfo:
+ {
+ // `createPrivateInstanceFieldInitializer` in Strada
+ initializer := tx.Visitor().VisitNode(property.Initializer)
+ if initializer == nil {
+ initializer = tx.Factory().NewVoidZeroExpression()
+ }
+ arguments := []*ast.Expression{
+ receiver,
+ initializer,
+ }
+ return tx.Factory().NewCallExpression(
+ tx.Factory().NewPropertyAccessExpression(
+ info.BrandCheckIdentifier().AsNode(),
+ nil, /*questionDotToken*/
+ tx.Factory().NewIdentifier("set"),
+ ast.NodeFlagsNone,
+ ),
+ nil, /*questionDotToken*/
+ nil, /*typeArguments*/
+ tx.Factory().NewNodeList(arguments),
+ ast.NodeFlagsNone,
+ )
+ }
+ }
+ }
+ return nil
+}
+
+func (tx *classPrivateFieldsTransformer) visitPropertyAccessExpression(node *ast.PropertyAccessExpression) *ast.Node {
+ if ast.IsPrivateIdentifier(node.Name()) {
+ privateIdentifierInfo := tx.EmitContext().GetPrivateIdentifierInfo(node.Name().AsPrivateIdentifier())
+ if privateIdentifierInfo != nil {
+ privateIdentifierAccess := tx.NewPrivateIdentifierAccess(privateIdentifierInfo, node.Expression)
+ tx.EmitContext().SetOriginal(
+ privateIdentifierAccess,
+ node.AsNode(),
+ )
+ privateIdentifierAccess.Loc = node.Loc
+ return privateIdentifierAccess
+ }
+ }
+ return tx.Visitor().VisitEachChild(node.AsNode())
+}
+
+func (tx *classPrivateFieldsTransformer) NewPrivateIdentifierAccess(info printer.PrivateIdentifierInfo, receiver *ast.Expression) *ast.Expression {
+ receiver = tx.Visitor().VisitNode(receiver)
+ return tx.NewPrivateIdentifierAccessHelper(info, receiver)
+}
+
+func (tx *classPrivateFieldsTransformer) NewPrivateIdentifierAccessHelper(info printer.PrivateIdentifierInfo, receiver *ast.Expression) *ast.Expression {
+ tx.EmitContext().SetCommentRange(receiver, core.NewTextRange(-1, receiver.End()))
+
+ switch v := info.(type) {
+ case *printer.PrivateIdentifierAccessorInfo:
+ return tx.Factory().NewClassPrivateFieldGetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ v.Kind(),
+ v.GetterName,
+ )
+ case *printer.PrivateIdentifierMethodInfo:
+ return tx.Factory().NewClassPrivateFieldGetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ v.Kind(),
+ v.MethodName,
+ )
+ case *printer.PrivateIdentifierInstanceFieldInfo:
+ return tx.Factory().NewClassPrivateFieldGetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ v.Kind(),
+ nil, /*f*/
+ )
+ case *printer.PrivateIdentifierStaticFieldInfo:
+ return tx.Factory().NewClassPrivateFieldGetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ v.Kind(),
+ v.VariableName,
+ )
+ case *printer.PrivateIdentifierUntransformedInfo:
+ panic("Access helpers should not be created for untransformed private elements")
+ default:
+ panic("Unknown private identifier info")
+ }
+}
+
+func (tx *classPrivateFieldsTransformer) NewPrivateIdentifierAssignment(info printer.PrivateIdentifierInfo, receiver *ast.Expression, right *ast.Expression, operatorToken *ast.TokenNode) *ast.Expression {
+ receiver = tx.Visitor().VisitNode(receiver)
+ right = tx.Visitor().VisitNode(right)
+
+ tx.EmitContext().SetCommentRange(receiver, core.NewTextRange(-1, receiver.End()))
+
+ // e.g. #field += 1
+ if checker.IsCompoundAssignment(operatorToken.Kind) {
+ readExpression, initializeExpression := tx.NewCopiableReceiverExpr(receiver)
+ if initializeExpression != nil {
+ receiver = initializeExpression
+ } else {
+ receiver = readExpression
+ }
+ right = tx.Factory().NewBinaryExpression(
+ nil, /*modifiers*/
+ tx.NewPrivateIdentifierAccessHelper(info, readExpression),
+ nil, /*typeNode*/
+ getNonAssignmentOperatorForCompoundAssignment(tx.EmitContext(), operatorToken),
+ right,
+ )
+ }
+
+ switch v := info.(type) {
+ case *printer.PrivateIdentifierAccessorInfo:
+ return tx.Factory().NewClassPrivateFieldSetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ right,
+ v.Kind(),
+ v.SetterName,
+ )
+ case *printer.PrivateIdentifierMethodInfo:
+ return tx.Factory().NewClassPrivateFieldSetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ right,
+ v.Kind(),
+ nil, /*f*/
+ )
+ case *printer.PrivateIdentifierInstanceFieldInfo:
+ return tx.Factory().NewClassPrivateFieldSetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ right,
+ v.Kind(),
+ nil, /*f*/
+ )
+ case *printer.PrivateIdentifierStaticFieldInfo:
+ return tx.Factory().NewClassPrivateFieldSetHelper(
+ receiver,
+ v.BrandCheckIdentifier(),
+ right,
+ v.Kind(),
+ v.VariableName,
+ )
+ case *printer.PrivateIdentifierUntransformedInfo:
+ panic("Access helpers should not be created for untransformed private elements")
+ default:
+ panic("Unknown private element type")
+ }
+}
+
+func (tx *classPrivateFieldsTransformer) NewCopiableReceiverExpr(receiver *ast.Expression) (*ast.Expression, *ast.Expression) {
+ var clone *ast.Expression
+ if ast.NodeIsSynthesized(receiver) {
+ clone = receiver
+ } else {
+ clone = tx.Factory().DeepCloneNode(receiver)
+ }
+ if transformers.IsSimpleInlineableExpression(receiver) {
+ return clone, nil
+ }
+ readExpression := tx.Factory().NewTempVariable()
+ initializeExpression := tx.Factory().NewAssignmentExpression(readExpression, clone)
+ return readExpression, initializeExpression
+}
+
+func isPrivateIdentifierPropertyAccessExpression(node *ast.Node) bool {
+ return ast.IsPropertyAccessExpression(node) && ast.IsPrivateIdentifier(node.Name())
+}
+
+func getPropertiesNeedingInitialization(node *ast.ClassLikeDeclaration) []*ast.Node {
+ var properties []*ast.Node
+
+ for _, member := range node.Members() {
+ if !ast.IsPropertyDeclaration(member) || ast.IsStatic(member) {
+ continue
+ }
+
+ if member.Initializer() != nil ||
+ ast.IsPrivateIdentifier(member.Name()) ||
+ ast.HasAccessorModifier(member) {
+ properties = append(properties, member)
+ }
+ }
+
+ return properties
+}
diff --git a/internal/transformers/estransforms/definitions.go b/internal/transformers/estransforms/definitions.go
index ca0950aa0b..6c7af11394 100644
--- a/internal/transformers/estransforms/definitions.go
+++ b/internal/transformers/estransforms/definitions.go
@@ -12,9 +12,9 @@ var (
// 2025: only module system syntax (import attributes, json modules), untransformed regex modifiers
// 2024: no new downlevel syntax
// 2023: no new downlevel syntax
- NewES2022Transformer = transformers.Chain(NewESNextTransformer, newClassStaticBlockTransformer, newClassFieldsTransformer) // !!! top level await? not transformed, just errored on at lower targets - also more of a module system feature anyway
- NewES2021Transformer = transformers.Chain(NewES2022Transformer, newLogicalAssignmentTransformer) // !!! numeric seperators? always elided by printer?
- NewES2020Transformer = transformers.Chain(NewES2021Transformer, newNullishCoalescingTransformer, newOptionalChainTransformer) // also dynamic import - module system feature
+ NewES2022Transformer = transformers.Chain(NewESNextTransformer, newClassPrivateFieldsTransformer, newClassStaticBlockTransformer, newClassFieldsTransformer) // !!! top level await? not transformed, just errored on at lower targets - also more of a module system feature anyway
+ NewES2021Transformer = transformers.Chain(NewES2022Transformer, newLogicalAssignmentTransformer) // !!! numeric seperators? always elided by printer?
+ NewES2020Transformer = transformers.Chain(NewES2021Transformer, newNullishCoalescingTransformer, newOptionalChainTransformer) // also dynamic import - module system feature
NewES2019Transformer = transformers.Chain(NewES2020Transformer, newOptionalCatchTransformer)
NewES2018Transformer = transformers.Chain(NewES2019Transformer, newObjectRestSpreadTransformer, newforawaitTransformer)
NewES2017Transformer = transformers.Chain(NewES2018Transformer, newAsyncTransformer)
diff --git a/internal/transformers/estransforms/utilities.go b/internal/transformers/estransforms/utilities.go
index 4f745d65bd..eb5733ec73 100644
--- a/internal/transformers/estransforms/utilities.go
+++ b/internal/transformers/estransforms/utilities.go
@@ -47,3 +47,40 @@ func createNotNullCondition(emitContext *printer.EmitContext, left *ast.Node, ri
),
)
}
+
+// For example, += -> +
+func getNonAssignmentOperatorForCompoundAssignment(emitContext *printer.EmitContext, tokenNode *ast.TokenNode) *ast.TokenNode {
+ switch tokenNode.Kind {
+ case ast.KindPlusEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindPlusToken)
+ case ast.KindMinusEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindMinusToken)
+ case ast.KindAsteriskEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindAsteriskToken)
+ case ast.KindAsteriskAsteriskEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindAsteriskAsteriskToken)
+ case ast.KindSlashEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindSlashToken)
+ case ast.KindPercentEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindPercentToken)
+ case ast.KindLessThanLessThanEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindLessThanLessThanToken)
+ case ast.KindGreaterThanGreaterThanEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindGreaterThanGreaterThanToken)
+ case ast.KindGreaterThanGreaterThanGreaterThanEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindGreaterThanGreaterThanGreaterThanToken)
+ case ast.KindAmpersandEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindAmpersandToken)
+ case ast.KindBarEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindBarToken)
+ case ast.KindCaretEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindCaretToken)
+ case ast.KindBarBarEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindBarBarToken)
+ case ast.KindAmpersandAmpersandEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindAmpersandAmpersandToken)
+ case ast.KindQuestionQuestionEqualsToken:
+ return emitContext.Factory.NewToken(ast.KindQuestionQuestionToken)
+ }
+ return nil
+}
diff --git a/internal/transformers/moduletransforms/commonjsmodule.go b/internal/transformers/moduletransforms/commonjsmodule.go
index 5d7c18e295..dfaa5d0f0d 100644
--- a/internal/transformers/moduletransforms/commonjsmodule.go
+++ b/internal/transformers/moduletransforms/commonjsmodule.go
@@ -1725,7 +1725,7 @@ func (tx *CommonJSModuleTransformer) createImportCallExpressionCommonJS(arg *ast
// If the arg is not inlineable, we have to evaluate and ToString() it in the current scope
// Otherwise, we inline it in require() so that it's statically analyzable
- needSyncEval := arg != nil && !isSimpleInlineableExpression(arg)
+ needSyncEval := arg != nil && !transformers.IsSimpleInlineableExpression(arg)
var promiseResolveArguments []*ast.Expression
if needSyncEval {
diff --git a/internal/transformers/moduletransforms/utilities.go b/internal/transformers/moduletransforms/utilities.go
index 5428fdb987..c4a56eece4 100644
--- a/internal/transformers/moduletransforms/utilities.go
+++ b/internal/transformers/moduletransforms/utilities.go
@@ -5,7 +5,6 @@ import (
"github.com/microsoft/typescript-go/internal/core"
"github.com/microsoft/typescript-go/internal/outputpaths"
"github.com/microsoft/typescript-go/internal/printer"
- "github.com/microsoft/typescript-go/internal/transformers"
"github.com/microsoft/typescript-go/internal/tspath"
)
@@ -110,10 +109,3 @@ func isFileLevelReservedGeneratedIdentifier(emitContext *printer.EmitContext, na
info.Flags.IsOptimistic() &&
info.Flags.IsReservedInNestedScopes()
}
-
-// A simple inlinable expression is an expression which can be copied into multiple locations
-// without risk of repeating any sideeffects and whose value could not possibly change between
-// any such locations
-func isSimpleInlineableExpression(expression *ast.Expression) bool {
- return !ast.IsIdentifier(expression) && transformers.IsSimpleCopiableExpression(expression)
-}
diff --git a/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js b/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js
index e5ca06533f..575b29b1bc 100644
--- a/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js
+++ b/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js
@@ -32,30 +32,41 @@ class B {
//// [constructorWithParameterPropertiesAndPrivateFields.es2015.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_privateField, _B_privateField;
// https://github.com/microsoft/TypeScript/issues/48771
class A {
exposedField;
- #privateField;
constructor(arg, exposedField) {
+ _A_privateField.set(this, void 0);
this.exposedField = exposedField;
- ({ key: this.#privateField } = arg);
+ ({ key: __classPrivateFieldGet(this, _A_privateField, "f") } = arg);
}
log() {
- console.log(this.#privateField);
+ console.log(__classPrivateFieldGet(this, _A_privateField, "f"));
console.log(this.exposedField);
}
}
+_A_privateField = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48771
+// https://github.com/microsoft/TypeScript/issues/48771
+);
class B {
exposedField;
- #privateField;
constructor(arg, exposedField) {
- "prologue";
+ _B_privateField.set(this, void 0);
"prologue";
this.exposedField = exposedField;
- ({ key: this.#privateField } = arg);
+ ({ key: __classPrivateFieldGet(this, _B_privateField, "f") } = arg);
}
log() {
- console.log(this.#privateField);
+ console.log(__classPrivateFieldGet(this, _B_privateField, "f"));
console.log(this.exposedField);
}
}
+_B_privateField = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48771
+// https://github.com/microsoft/TypeScript/issues/48771
+);
diff --git a/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js.diff b/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js.diff
index cf2a626f16..1c963955d1 100644
--- a/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/constructorWithParameterPropertiesAndPrivateFields.es2015.js.diff
@@ -1,54 +1,60 @@
--- old.constructorWithParameterPropertiesAndPrivateFields.es2015.js
+++ new.constructorWithParameterPropertiesAndPrivateFields.es2015.js
-@@= skipped -32, +32 lines =@@
+@@= skipped -31, +31 lines =@@
+
//// [constructorWithParameterPropertiesAndPrivateFields.es2015.js]
- // https://github.com/microsoft/TypeScript/issues/48771
+-// https://github.com/microsoft/TypeScript/issues/48771
-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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_privateField, _B_privateField;
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
+ var _A_privateField, _B_privateField;
++// https://github.com/microsoft/TypeScript/issues/48771
class A {
+ exposedField;
-+ #privateField;
constructor(arg, exposedField) {
- var _a;
- this.exposedField = exposedField;
-- _A_privateField.set(this, void 0);
+- this.exposedField = exposedField;
+ _A_privateField.set(this, void 0);
- (_a = this, { key: ({ set value(_b) { __classPrivateFieldSet(_a, _A_privateField, _b, "f"); } }).value } = arg);
-+ ({ key: this.#privateField } = arg);
++ this.exposedField = exposedField;
++ ({ key: __classPrivateFieldGet(this, _A_privateField, "f") } = arg);
}
log() {
-- console.log(__classPrivateFieldGet(this, _A_privateField, "f"));
-+ console.log(this.#privateField);
+ console.log(__classPrivateFieldGet(this, _A_privateField, "f"));
console.log(this.exposedField);
}
}
-_A_privateField = new WeakMap();
++_A_privateField = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48771
++// https://github.com/microsoft/TypeScript/issues/48771
++);
class B {
+ exposedField;
-+ #privateField;
constructor(arg, exposedField) {
- "prologue";
+- "prologue";
- var _a;
-+ "prologue";
- this.exposedField = exposedField;
-- _B_privateField.set(this, void 0);
+- this.exposedField = exposedField;
+ _B_privateField.set(this, void 0);
- (_a = this, { key: ({ set value(_b) { __classPrivateFieldSet(_a, _B_privateField, _b, "f"); } }).value } = arg);
-+ ({ key: this.#privateField } = arg);
++ "prologue";
++ this.exposedField = exposedField;
++ ({ key: __classPrivateFieldGet(this, _B_privateField, "f") } = arg);
}
log() {
-- console.log(__classPrivateFieldGet(this, _B_privateField, "f"));
-+ console.log(this.#privateField);
+ console.log(__classPrivateFieldGet(this, _B_privateField, "f"));
console.log(this.exposedField);
}
}
--_B_privateField = new WeakMap();
\ No newline at end of file
+-_B_privateField = new WeakMap();
++_B_privateField = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48771
++// https://github.com/microsoft/TypeScript/issues/48771
++);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/extendedUnicodePlaneIdentifiers.js b/testdata/baselines/reference/submodule/compiler/extendedUnicodePlaneIdentifiers.js
index a2bf41d45b..d8cce42e13 100644
--- a/testdata/baselines/reference/submodule/compiler/extendedUnicodePlaneIdentifiers.js
+++ b/testdata/baselines/reference/submodule/compiler/extendedUnicodePlaneIdentifiers.js
@@ -46,13 +46,17 @@ const 𝓮𡚭𓀺ⱱ = "ok";
//// [extendedUnicodePlaneIdentifiers.js]
+var _K_𝑚, _K_𝑀;
const 𝑚 = 4;
const 𝑀 = 5;
console.log(𝑀 + 𝑚); // 9
class K {
- #𝑚 = 4;
- #𝑀 = 5;
+ constructor() {
+ _K_𝑚.set(this, 4);
+ _K_𝑀.set(this, 5);
+ }
}
+_K_𝑚 = new WeakMap(), _K_𝑀 = new WeakMap();
// lower 8 bits look like 'a'
const ၡ = 6;
console.log(ၡ ** ၡ);
diff --git a/testdata/baselines/reference/submodule/compiler/extendedUnicodePlaneIdentifiers.js.diff b/testdata/baselines/reference/submodule/compiler/extendedUnicodePlaneIdentifiers.js.diff
deleted file mode 100644
index d65f98211b..0000000000
--- a/testdata/baselines/reference/submodule/compiler/extendedUnicodePlaneIdentifiers.js.diff
+++ /dev/null
@@ -1,22 +0,0 @@
---- old.extendedUnicodePlaneIdentifiers.js
-+++ new.extendedUnicodePlaneIdentifiers.js
-@@= skipped -45, +45 lines =@@
-
-
- //// [extendedUnicodePlaneIdentifiers.js]
--var _K_𝑚, _K_𝑀;
- const 𝑚 = 4;
- const 𝑀 = 5;
- console.log(𝑀 + 𝑚); // 9
- class K {
-- constructor() {
-- _K_𝑚.set(this, 4);
-- _K_𝑀.set(this, 5);
-- }
-+ #𝑚 = 4;
-+ #𝑀 = 5;
- }
--_K_𝑚 = new WeakMap(), _K_𝑀 = new WeakMap();
- // lower 8 bits look like 'a'
- const ၡ = 6;
- console.log(ၡ ** ၡ);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js
index 6d03b088f8..653458926b 100644
--- a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js
+++ b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js
@@ -23,11 +23,16 @@ export declare function __classPrivateFieldIn(a: any, b: any): boolean;
//// [a.js]
+import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
+var _A_x;
@dec
export class A {
- #x = 1;
- async f() { this.#x = await this.#x; }
+ constructor() {
+ _A_x.set(this, 1);
+ }
+ async f() { __classPrivateFieldSet(this, _A_x, await __classPrivateFieldGet(this, _A_x, "f"), "f"); }
g(u) { return #x in u; }
}
+_A_x = new WeakMap();
const o = { a: 1 };
const y = Object.assign({}, o);
diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff
index 215060a0db..4f3d5a6cd1 100644
--- a/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/importHelpersES6.js.diff
@@ -4,27 +4,27 @@
//// [a.js]
--var _A_x;
++import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
+ var _A_x;
-import { __awaiter, __classPrivateFieldGet, __classPrivateFieldIn, __classPrivateFieldSet, __decorate } from "tslib";
-let A = class A {
-- constructor() {
-- _A_x.set(this, 1);
-- }
++@dec
++export class A {
+ constructor() {
+ _A_x.set(this, 1);
+ }
- f() {
- return __awaiter(this, void 0, void 0, function* () { __classPrivateFieldSet(this, _A_x, yield __classPrivateFieldGet(this, _A_x, "f"), "f"); });
- }
- g(u) { return __classPrivateFieldIn(_A_x, u); }
-};
--_A_x = new WeakMap();
++ async f() { __classPrivateFieldSet(this, _A_x, await __classPrivateFieldGet(this, _A_x, "f"), "f"); }
++ g(u) { return #x in u; }
++}
+ _A_x = new WeakMap();
-A = __decorate([
- dec
-], A);
-export { A };
-+@dec
-+export class A {
-+ #x = 1;
-+ async f() { this.#x = await this.#x; }
-+ g(u) { return #x in u; }
-+}
const o = { a: 1 };
const y = Object.assign({}, o);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js
index 47dadd336e..d9478eddd0 100644
--- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js
+++ b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js
@@ -15,13 +15,18 @@ export {}
//// [main.js]
"use strict";
+var _Foo_field;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Foo = void 0;
+const tslib_1 = require("tslib");
class Foo {
- #field = true;
+ constructor() {
+ _Foo_field.set(this, true);
+ }
f() {
- this.#field = this.#field;
+ tslib_1.__classPrivateFieldSet(this, _Foo_field, tslib_1.__classPrivateFieldGet(this, _Foo_field, "f"), "f");
#field in this;
}
}
exports.Foo = Foo;
+_Foo_field = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff
index 21b9d7c63b..68c66e6341 100644
--- a/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff
+++ b/testdata/baselines/reference/submodule/compiler/importHelpersNoHelpersForPrivateFields.js.diff
@@ -1,24 +1,11 @@
--- old.importHelpersNoHelpersForPrivateFields.js
+++ new.importHelpersNoHelpersForPrivateFields.js
-@@= skipped -14, +14 lines =@@
-
- //// [main.js]
- "use strict";
--var _Foo_field;
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Foo = void 0;
--const tslib_1 = require("tslib");
- class Foo {
-- constructor() {
-- _Foo_field.set(this, true);
-- }
-+ #field = true;
+@@= skipped -24, +24 lines =@@
+ }
f() {
-- tslib_1.__classPrivateFieldSet(this, _Foo_field, tslib_1.__classPrivateFieldGet(this, _Foo_field, "f"), "f");
+ tslib_1.__classPrivateFieldSet(this, _Foo_field, tslib_1.__classPrivateFieldGet(this, _Foo_field, "f"), "f");
- tslib_1.__classPrivateFieldIn(_Foo_field, this);
-+ this.#field = this.#field;
+ #field in this;
}
}
- exports.Foo = Foo;
--_Foo_field = new WeakMap();
\ No newline at end of file
+ exports.Foo = Foo;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/privateFieldAssignabilityFromUnknown.js b/testdata/baselines/reference/submodule/compiler/privateFieldAssignabilityFromUnknown.js
index 2a85560e2d..34d3765d58 100644
--- a/testdata/baselines/reference/submodule/compiler/privateFieldAssignabilityFromUnknown.js
+++ b/testdata/baselines/reference/submodule/compiler/privateFieldAssignabilityFromUnknown.js
@@ -10,10 +10,14 @@ const task: Class = {} as unknown;
//// [privateFieldAssignabilityFromUnknown.js]
"use strict";
+var _Class_field;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Class = void 0;
class Class {
- #field;
+ constructor() {
+ _Class_field.set(this, void 0);
+ }
}
exports.Class = Class;
+_Class_field = new WeakMap();
const task = {};
diff --git a/testdata/baselines/reference/submodule/compiler/privateFieldAssignabilityFromUnknown.js.diff b/testdata/baselines/reference/submodule/compiler/privateFieldAssignabilityFromUnknown.js.diff
deleted file mode 100644
index 7226f7e3a1..0000000000
--- a/testdata/baselines/reference/submodule/compiler/privateFieldAssignabilityFromUnknown.js.diff
+++ /dev/null
@@ -1,18 +0,0 @@
---- old.privateFieldAssignabilityFromUnknown.js
-+++ new.privateFieldAssignabilityFromUnknown.js
-@@= skipped -9, +9 lines =@@
-
- //// [privateFieldAssignabilityFromUnknown.js]
- "use strict";
--var _Class_field;
- Object.defineProperty(exports, "__esModule", { value: true });
- exports.Class = void 0;
- class Class {
-- constructor() {
-- _Class_field.set(this, void 0);
-- }
-+ #field;
- }
- exports.Class = Class;
--_Class_field = new WeakMap();
- const task = {};
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/privateNameJsx.js b/testdata/baselines/reference/submodule/compiler/privateNameJsx.js
index 56705c6c86..deda8a3a63 100644
--- a/testdata/baselines/reference/submodule/compiler/privateNameJsx.js
+++ b/testdata/baselines/reference/submodule/compiler/privateNameJsx.js
@@ -11,9 +11,13 @@ class Test {
//// [privateNameJsx.jsx]
+var _Test_prop;
class Test {
- #prop = () =>
;
+ constructor() {
+ _Test_prop.set(this, () => );
+ }
render() {
return ;
}
}
+_Test_prop = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/compiler/privateNameJsx.js.diff b/testdata/baselines/reference/submodule/compiler/privateNameJsx.js.diff
deleted file mode 100644
index c1e750455e..0000000000
--- a/testdata/baselines/reference/submodule/compiler/privateNameJsx.js.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.privateNameJsx.js
-+++ new.privateNameJsx.js
-@@= skipped -10, +10 lines =@@
-
-
- //// [privateNameJsx.jsx]
--var _Test_prop;
- class Test {
-- constructor() {
-- _Test_prop.set(this, () => );
-- }
-+ #prop = () => ;
- render() {
- return ;
- }
- }
--_Test_prop = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/privateNameWeakMapCollision.js b/testdata/baselines/reference/submodule/compiler/privateNameWeakMapCollision.js
index a0dc2201e5..6530a40cde 100644
--- a/testdata/baselines/reference/submodule/compiler/privateNameWeakMapCollision.js
+++ b/testdata/baselines/reference/submodule/compiler/privateNameWeakMapCollision.js
@@ -12,9 +12,13 @@ function test() {
//// [privateNameWeakMapCollision.js]
function test() {
+ var _C_x;
let WeakMap;
let WeakSet;
class C {
- #x;
+ constructor() {
+ _C_x.set(this, void 0);
+ }
}
+ _C_x = new WeakMap();
}
diff --git a/testdata/baselines/reference/submodule/compiler/privateNameWeakMapCollision.js.diff b/testdata/baselines/reference/submodule/compiler/privateNameWeakMapCollision.js.diff
deleted file mode 100644
index 9e86f3ce34..0000000000
--- a/testdata/baselines/reference/submodule/compiler/privateNameWeakMapCollision.js.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.privateNameWeakMapCollision.js
-+++ new.privateNameWeakMapCollision.js
-@@= skipped -11, +11 lines =@@
-
- //// [privateNameWeakMapCollision.js]
- function test() {
-- var _C_x;
- let WeakMap;
- let WeakSet;
- class C {
-- constructor() {
-- _C_x.set(this, void 0);
-- }
-+ #x;
- }
-- _C_x = new WeakMap();
- }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js
index 1027842b21..ab12549ee9 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js
@@ -182,46 +182,78 @@ export class IdentifierNameWithExtendedEscape2 {
}
//# sourceMappingURL=IdentifierNameWithExtendedEscape2.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");
+ 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 _PrivateIdentifierWithEscape1_\u0078;
export class PrivateIdentifierWithEscape1 {
- #\u0078;
constructor() {
- this.#\u0078 = 0;
+ _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
}
doThing() {
- this.#x = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
}
}
+_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map
//// [PrivateIdentifierNameWithEscape2.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 _PrivateIdentifierWithEscape2_x\u0078;
export class PrivateIdentifierWithEscape2 {
- #x\u0078;
constructor() {
- this.#x\u0078 = 0;
+ _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
}
doThing() {
- this.#xx = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
}
}
+_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape2.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");
+ 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 _PrivateIdentifierWithExtendedEscape1_\u{78};
export class PrivateIdentifierWithExtendedEscape1 {
- #\u{78};
constructor() {
- this.#\u{78} = 0;
+ _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
}
doThing() {
- this.#x = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
}
}
+_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map
//// [PrivateIdentifierNameWithExtendedEscape2.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 _PrivateIdentifierWithExtendedEscape2_x\u{78};
export class PrivateIdentifierWithExtendedEscape2 {
- #x\u{78};
constructor() {
- this.#x\u{78} = 0;
+ _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
}
doThing() {
- this.#xx = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
}
}
+_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.diff b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.diff
index 09779c2a4d..4e689f00d6 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.diff
@@ -32,94 +32,93 @@
constructor() {
this.x\u{78} = 0;
}
-@@= skipped -9, +10 lines =@@
- }
- //# sourceMappingURL=IdentifierNameWithExtendedEscape2.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");
-- 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;
--};
+@@= skipped -15, +16 lines =@@
+ 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 _PrivateIdentifierWithEscape1_x;
++var _PrivateIdentifierWithEscape1_\u0078;
export class PrivateIdentifierWithEscape1 {
-+ #\u0078;
constructor() {
- _PrivateIdentifierWithEscape1_x.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 0, "f");
-+ this.#\u0078 = 0;
++ _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 42, "f");
-+ this.#x = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
}
}
-_PrivateIdentifierWithEscape1_x = new WeakMap();
++_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map
//// [PrivateIdentifierNameWithEscape2.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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
+@@= skipped -19, +19 lines =@@
+ 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 _PrivateIdentifierWithEscape2_xx;
++var _PrivateIdentifierWithEscape2_x\u0078;
export class PrivateIdentifierWithEscape2 {
-+ #x\u0078;
constructor() {
- _PrivateIdentifierWithEscape2_xx.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 0, "f");
-+ this.#x\u0078 = 0;
++ _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 42, "f");
-+ this.#xx = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
}
}
-_PrivateIdentifierWithEscape2_xx = new WeakMap();
++_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape2.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");
-- 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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
+@@= skipped -19, +19 lines =@@
+ 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 _PrivateIdentifierWithExtendedEscape1_x;
++var _PrivateIdentifierWithExtendedEscape1_\u{78};
export class PrivateIdentifierWithExtendedEscape1 {
-+ #\u{78};
constructor() {
- _PrivateIdentifierWithExtendedEscape1_x.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 0, "f");
-+ this.#\u{78} = 0;
++ _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 42, "f");
-+ this.#x = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
}
}
-_PrivateIdentifierWithExtendedEscape1_x = new WeakMap();
++_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map
//// [PrivateIdentifierNameWithExtendedEscape2.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 __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
+@@= skipped -19, +19 lines =@@
+ 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 _PrivateIdentifierWithExtendedEscape2_xx;
++var _PrivateIdentifierWithExtendedEscape2_x\u{78};
export class PrivateIdentifierWithExtendedEscape2 {
-+ #x\u{78};
constructor() {
- _PrivateIdentifierWithExtendedEscape2_xx.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 0, "f");
-+ this.#x\u{78} = 0;
++ _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 42, "f");
-+ this.#xx = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
}
}
-_PrivateIdentifierWithExtendedEscape2_xx = new WeakMap();
++_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map
index cfa4795ca4..7ae3223553 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map
@@ -31,17 +31,17 @@
//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMiB7DQogICAgeFx1ezc4fTsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgdGhpcy54XHV7Nzh9ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy54eCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sT0FBTyxpQ0FBaUM7SUFDMUMsT0FBTyxDQUFTO0lBRWhCLGNBQWM7UUFDVixJQUFJLENBQUMsT0FBTyxHQUFHLENBQUMsQ0FBQztJQUFBLENBQ3BCO0lBRUQsT0FBTyxHQUFHO1FBQ04sSUFBSSxDQUFDLEVBQUUsR0FBRyxFQUFFLENBQUM7SUFBQSxDQUNoQjtDQUNKIn0=,ZXhwb3J0IGNsYXNzIElkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICB4XHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy54XHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMueHggPSA0MjsKICAgIH0KfQo=
//// [PrivateIdentifierNameWithEscape1.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,4BAA4B;IACrC,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAA,CAChB;CACJ"}
-//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgew0KICAgICNcdTAwNzg7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuI3ggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sNEJBQTRCO0lBQ3JDLE9BQU8sQ0FBUztJQUVoQixjQUFjO1FBQ1YsSUFBSSxDQUFDLE9BQU8sR0FBRyxDQUFDLENBQUM7SUFBQSxDQUNwQjtJQUVELE9BQU8sR0FBRztRQUNOLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQUEsQ0FDaEI7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
+{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,4BAA4B;IAGrC,cAAc;QAFd,uDAAgB;QAGZ,uBAAA,IAAI,wCAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,wCAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGF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yQyxjQUFjO1FBRmQsdURBQWdCO1FBR1osdUJBQUEsSUFBSSx3Q0FBVyxDQUFDLE1BQUEsQ0FBQztJQUFBLENBQ3BCO0lBRUQsT0FBTyxHQUFHO1FBQ04sdUJBQUEsSUFBSSx3Q0FBTSxFQUFFLE1BQUEsQ0FBQztJQUFBLENBQ2hCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
//// [PrivateIdentifierNameWithEscape2.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,4BAA4B;IACrC,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAAA,CACjB;CACJ"}
-//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgew0KICAgICN4XHUwMDc4Ow0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy4jeHggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sNEJBQTRCO0lBQ3JDLFFBQVEsQ0FBUztJQUVqQixjQUFjO1FBQ1YsSUFBSSxDQUFDLFFBQVEsR0FBRyxDQUFDLENBQUM7SUFBQSxDQUNyQjtJQUVELE9BQU8sR0FBRztRQUNOLElBQUksQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDO0lBQUEsQ0FDakI7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
+{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,4BAA4B;IAGrC,cAAc;QAFd,wDAAiB;QAGb,uBAAA,IAAI,yCAAY,CAAC,MAAA,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,yCAAO,EAAE,MAAA,CAAC;IAAA,CACjB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSB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w0KICAgIH0NCn0NCl9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUyX3hcdTAwNzggPSBuZXcgV2Vha01hcCgpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsTUFBTSxPQUFPLDRCQUE0QjtJQUdyQyxjQUFjO1FBRmQsd0RBQWlCO1FBR2IsdUJBQUEsSUFBSSx5Q0FBWSxDQUFDLE1BQUEsQ0FBQztJQUFBLENBQ3JCO0lBRUQsT0FBTyxHQUFHO1FBQ04sdUJBQUEsSUFBSSx5Q0FBTyxFQUFFLE1BQUEsQ0FBQztJQUFBLENBQ2pCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
//// [PrivateIdentifierNameWithExtendedEscape1.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oCAAoC;IAC7C,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,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"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,oCAAoC;IAG7C,cAAc;QAFd,+DAAgB;QAGZ,uBAAA,IAAI,gDAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,gDAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZT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FBQyxNQUFBLENBQUM7SUFBQSxDQUNwQjtJQUVELE9BQU8sR0FBRztRQUNOLHVCQUFBLElBQUksZ0RBQU0sRUFBRSxNQUFBLENBQUM7SUFBQSxDQUNoQjtDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICAjXHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo=
//// [PrivateIdentifierNameWithExtendedEscape2.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oCAAoC;IAC7C,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAAA,CACjB;CACJ"}
-//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7DQogICAgI3hcdXs3OH07DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICB0aGlzLiN4eCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPVByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLG9DQUFvQztJQUM3QyxRQUFRLENBQVM7SUFFakIsY0FBYztRQUNWLElBQUksQ0FBQyxRQUFRLEdBQUcsQ0FBQyxDQUFDO0lBQUEsQ0FDckI7SUFFRCxPQUFPLEdBQUc7UUFDTixJQUFJLENBQUMsR0FBRyxHQUFHLEVBQUUsQ0FBQztJQUFBLENBQ2pCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
+{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,oCAAoC;IAG7C,cAAc;QAFd,gEAAiB;QAGb,uBAAA,IAAI,iDAAY,CAAC,MAAA,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,iDAAO,EAAE,MAAA,CAAC;IAAA,CACjB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbm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cywgX1ByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMl94XHV7Nzh9LCA0MiwgImYiKTsNCiAgICB9DQp9DQpfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXh0ZW5kZWRFc2NhcGUyX3hcdXs3OH0gPSBuZXcgV2Vha01hcCgpOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLE1BQU0sT0FBTyxvQ0FBb0M7SUFHN0MsY0FBYztRQUZkLGdFQUFpQjtRQUdiLHVCQUFBLElBQUksaURBQVksQ0FBQyxNQUFBLENBQUM7SUFBQSxDQUNyQjtJQUVELE9BQU8sR0FBRztRQUNOLHVCQUFBLElBQUksaURBQU8sRUFBRSxNQUFBLENBQUM7SUFBQSxDQUNqQjtDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map.diff b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map.diff
index 17f4410f9d..d38ae79f86 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map.diff
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).js.map.diff
@@ -30,23 +30,23 @@
//// [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/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCI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QVcsQ0FBQyxNQUFBLENBQUM7SUFDckIsQ0FBQztJQUVELE9BQU87UUFDSCx1QkFBQSxJQUFJLG1DQUFNLEVBQUUsTUFBQSxDQUFDO0lBQ2pCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
-+{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,4BAA4B;IACrC,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAA,CAChB;CACJ"}
-+//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgew0KICAgICNcdTAwNzg7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuI3ggPSA0MjsNCiAgICB9DQp9DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8sNEJBQTRCO0lBQ3JDLE9BQU8sQ0FBUztJQUVoQixjQUFjO1FBQ1YsSUFBSSxDQUFDLE9BQU8sR0FBRyxDQUFDLENBQUM7SUFBQSxDQUNwQjtJQUVELE9BQU8sR0FBRztRQUNOLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQUEsQ0FDaEI7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
++{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,4BAA4B;IAGrC,cAAc;QAFd,uDAAgB;QAGZ,uBAAA,IAAI,wCAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,wCAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
++//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJp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waW5nVVJMPVByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsTUFBTSxPQUFPLDRCQUE0QjtJQUdyQyxjQUFjO1FBRmQsdURBQWdCO1FBR1osdUJBQUEsSUFBSSx3Q0FBVyxDQUFDLE1BQUEsQ0FBQztJQUFBLENBQ3BCO0lBRUQsT0FBTyxHQUFHO1FBQ04sdUJBQUEsSUFBSSx3Q0FBTSxFQUFFLE1BQUEsQ0FBQztJQUFBLENBQ2hCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
//// [PrivateIdentifierNameWithEscape2.js.map]
-{"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,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2x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iAgICBkb1RoaW5nKCkgew0KICAgICAgICBfX2NsYXNzUHJpdmF0ZUZpZWxkU2V0KHRoaXMsIF9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUyX3h4LCA0MiwgImYiKTsNCiAgICB9DQp9DQpfUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMl94eCA9IG5ldyBXZWFrTWFwKCk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsTUFBTSxPQUFPLDRCQUE0QjtJQUdyQztRQUZBLG1EQUFpQjtRQUdiLHVCQUFBLElBQUksb0NBQVksQ0FBQyxNQUFBLENBQUM7SUFDdEIsQ0FBQztJQUVELE9BQU87UUFDSCx1QkFBQSxJQUFJLG9DQUFPLEVBQUUsTUFBQSxDQUFDO0lBQ2xCLENBQUM7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
-+{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,4BAA4B;IACrC,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,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version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,4BAA4B;IAGrC,cAAc;QAFd,wDAAiB;QAGb,uBAAA,IAAI,yCAAY,CAAC,MAAA,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,yCAAO,EAAE,MAAA,CAAC;IAAA,CACjB;CACJ"}
++//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52YWx1ZSA9IHZhbHVlIDogc3RhdGUuc2V0KHJlY2VpdmVyLCB2YWx1ZSkpLCB2YWx1ZTsNCn07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sQ0FBQztJQUFBLENBQ2pCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
//// [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/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpK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NjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLE1BQU0sT0FBTyxvQ0FBb0M7SUFHN0M7UUFGQSwwREFBZ0I7UUFHWix1QkFBQSxJQUFJLDJDQUFXLENBQUMsTUFBQSxDQUFDO0lBQ3JCLENBQUM7SUFFRCxPQUFPO1FBQ0gsdUJBQUEsSUFBSSwyQ0FBTSxFQUFFLE1BQUEsQ0FBQztJQUNqQixDQUFDO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICAjXHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo=
-+{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oCAAoC;IAC7C,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAA,CAChB;CACJ"}
-+//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7DQogICAgI1x1ezc4fTsNCiAgICBjb25zdHJ1Y3RvcigpIHsNCiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy4jeCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPVByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLG9DQUFvQztJQUM3QyxPQUFPLENBQVM7SUFFaEIsY0FBYztRQUNWLElBQUksQ0FBQyxPQUFPLEdBQUcsQ0FBQyxDQUFDO0lBQUEsQ0FDcEI7SUFFRCxPQUFPLEdBQUc7UUFDTixJQUFJLENBQUMsRUFBRSxHQUFHLEVBQUUsQ0FBQztJQUFBLENBQ2hCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICAjXHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo=
++{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,oCAAoC;IAG7C,cAAc;QAFd,+DAAgB;QAGZ,uBAAA,IAAI,gDAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,gDAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
++//// https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AgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo=
//// [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/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT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UFBLE1BQU0sT0FBTyxvQ0FBb0M7SUFHN0M7UUFGQSwyREFBaUI7UUFHYix1QkFBQSxJQUFJLDRDQUFZLENBQUMsTUFBQSxDQUFDO0lBQ3RCLENBQUM7SUFFRCxPQUFPO1FBQ0gsdUJBQUEsSUFBSSw0Q0FBTyxFQUFFLE1BQUEsQ0FBQztJQUNsQixDQUFDO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
-+{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,oCAAoC;IAC7C,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAAA,CACjB;CACJ"}
-+//// https://sokra.github.io/source-map-visualization#base64,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7DQogICAgI3hcdXs3OH07DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICB0aGlzLiN4eCA9IDQyOw0KICAgIH0NCn0NCi8vIyBzb3VyY2VNYXBwaW5nVVJMPVByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsTUFBTSxPQUFPLG9DQUFvQztJQUM3QyxRQUFRLENBQVM7SUFFakIsY0FBYztRQUNWLElBQUksQ0FBQyxRQUFRLEdBQUcsQ0FBQyxDQUFDO0lBQUEsQ0FDckI7SUFFRCxPQUFPLEdBQUc7UUFDTixJQUFJLENBQUMsR0FBRyxHQUFHLEVBQUUsQ0FBQztJQUFBLENBQ2pCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
\ No newline at end of file
++{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;;;;;AAAA,MAAM,OAAO,oCAAoC;IAG7C,cAAc;QAFd,gEAAiB;QAGb,uBAAA,IAAI,iDAAY,CAAC,MAAA,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,iDAAO,EAAE,MAAA,CAAC;IAAA,CACjB;CACJ"}
++//// https://sokra.github.io/source-map-visualization#base64,dmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3R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icodeEscapesInNames01(target=es2015).sourcemap.txt b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt
index 12709beaf8..71b2ea0723 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt
@@ -760,6 +760,13 @@ sources: PrivateIdentifierNameWithEscape1.ts
emittedFile:PrivateIdentifierNameWithEscape1.js
sourceFile:PrivateIdentifierNameWithEscape1.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 _PrivateIdentifierWithEscape1_\u0078;
>>>export class PrivateIdentifierWithEscape1 {
1 >
2 >^^^^^^
@@ -769,58 +776,57 @@ sourceFile:PrivateIdentifierNameWithEscape1.ts
2 >export
3 > class
4 > PrivateIdentifierWithEscape1
-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)
----
->>> #\u0078;
-1 >^^^^
-2 > ^^^^^^^
-3 > ^
-4 > ^^^^^^^^->
-1 > {
- >
-2 > #\u0078
-3 > : number;
-1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0)
-3 >Emitted(2, 13) Source(2, 21) + SourceIndex(0)
+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->^^^^
+1 >^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1 > {
+ > #\u0078: number;
>
>
2 > constructor()
-1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
+1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#\u0078 = 0;
+>>> _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #\u0078: number;
+1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(10, 64) Source(2, 21) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #\u0078
-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, 21) Source(5, 21) + SourceIndex(0)
-5 >Emitted(4, 24) Source(5, 24) + SourceIndex(0)
-6 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-7 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
+2 >
+3 > this
+4 > .#\u0078 =
+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, 76) Source(5, 24) + SourceIndex(0)
+5 >Emitted(11, 77) Source(5, 25) + SourceIndex(0)
+6 >Emitted(11, 83) Source(5, 25) + SourceIndex(0)
+7 >Emitted(11, 84) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -829,46 +835,46 @@ sourceFile:PrivateIdentifierNameWithEscape1.ts
1 >
2 >
> }
-1 >Emitted(5, 5) Source(5, 26) + SourceIndex(0)
-2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(12, 5) Source(5, 26) + SourceIndex(0)
+2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#x = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #x
-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, 16) Source(9, 16) + SourceIndex(0)
-5 >Emitted(7, 19) Source(9, 19) + SourceIndex(0)
-6 >Emitted(7, 21) Source(9, 21) + SourceIndex(0)
-7 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x =
+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, 76) Source(9, 19) + SourceIndex(0)
+5 >Emitted(14, 78) Source(9, 21) + SourceIndex(0)
+6 >Emitted(14, 84) Source(9, 21) + SourceIndex(0)
+7 >Emitted(14, 85) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -876,16 +882,17 @@ sourceFile:PrivateIdentifierNameWithEscape1.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(9, 22) + SourceIndex(0)
-2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(9, 22) + SourceIndex(0)
+2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
+>>>_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithEscape2.js
mapUrl: PrivateIdentifierNameWithEscape2.js.map
@@ -896,6 +903,13 @@ sources: PrivateIdentifierNameWithEscape2.ts
emittedFile:PrivateIdentifierNameWithEscape2.js
sourceFile:PrivateIdentifierNameWithEscape2.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 _PrivateIdentifierWithEscape2_x\u0078;
>>>export class PrivateIdentifierWithEscape2 {
1 >
2 >^^^^^^
@@ -905,58 +919,57 @@ sourceFile:PrivateIdentifierNameWithEscape2.ts
2 >export
3 > class
4 > PrivateIdentifierWithEscape2
-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)
----
->>> #x\u0078;
-1 >^^^^
-2 > ^^^^^^^^
-3 > ^
-4 > ^^^^^^^->
-1 > {
- >
-2 > #x\u0078
-3 > : number;
-1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(2, 13) Source(2, 13) + SourceIndex(0)
-3 >Emitted(2, 14) Source(2, 22) + SourceIndex(0)
+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->^^^^
+1 >^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1 > {
+ > #x\u0078: number;
>
>
2 > constructor()
-1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
+1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#x\u0078 = 0;
+>>> _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #x\u0078: number;
+1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(10, 65) Source(2, 22) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #x\u0078
-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, 22) Source(5, 22) + SourceIndex(0)
-5 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-6 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
-7 >Emitted(4, 27) Source(5, 27) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x\u0078 =
+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, 77) Source(5, 25) + SourceIndex(0)
+5 >Emitted(11, 78) Source(5, 26) + SourceIndex(0)
+6 >Emitted(11, 84) Source(5, 26) + SourceIndex(0)
+7 >Emitted(11, 85) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -965,46 +978,46 @@ sourceFile:PrivateIdentifierNameWithEscape2.ts
1 >
2 >
> }
-1 >Emitted(5, 5) Source(5, 27) + SourceIndex(0)
-2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(12, 5) Source(5, 27) + SourceIndex(0)
+2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#xx = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #xx
-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, 17) Source(9, 17) + SourceIndex(0)
-5 >Emitted(7, 20) Source(9, 20) + SourceIndex(0)
-6 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
-7 >Emitted(7, 23) Source(9, 23) + SourceIndex(0)
+2 >
+3 > this
+4 > .#xx =
+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, 77) Source(9, 20) + SourceIndex(0)
+5 >Emitted(14, 79) Source(9, 22) + SourceIndex(0)
+6 >Emitted(14, 85) Source(9, 22) + SourceIndex(0)
+7 >Emitted(14, 86) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1012,16 +1025,17 @@ sourceFile:PrivateIdentifierNameWithEscape2.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(9, 23) + SourceIndex(0)
-2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(9, 23) + SourceIndex(0)
+2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
+>>>_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape1.js
mapUrl: PrivateIdentifierNameWithExtendedEscape1.js.map
@@ -1032,6 +1046,13 @@ sources: PrivateIdentifierNameWithExtendedEscape1.ts
emittedFile:PrivateIdentifierNameWithExtendedEscape1.js
sourceFile:PrivateIdentifierNameWithExtendedEscape1.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 _PrivateIdentifierWithExtendedEscape1_\u{78};
>>>export class PrivateIdentifierWithExtendedEscape1 {
1 >
2 >^^^^^^
@@ -1041,58 +1062,57 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape1.ts
2 >export
3 > class
4 > PrivateIdentifierWithExtendedEscape1
-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)
----
->>> #\u{78};
-1 >^^^^
-2 > ^^^^^^^
-3 > ^
-4 > ^^^^^^^^->
-1 > {
- >
-2 > #\u{78}
-3 > : number;
-1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0)
-3 >Emitted(2, 13) Source(2, 21) + SourceIndex(0)
+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->^^^^
+1 >^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1 > {
+ > #\u{78}: number;
>
>
2 > constructor()
-1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
+1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#\u{78} = 0;
+>>> _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #\u{78}: number;
+1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(10, 72) Source(2, 21) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #\u{78}
-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, 21) Source(5, 21) + SourceIndex(0)
-5 >Emitted(4, 24) Source(5, 24) + SourceIndex(0)
-6 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-7 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
+2 >
+3 > this
+4 > .#\u{78} =
+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, 84) Source(5, 24) + SourceIndex(0)
+5 >Emitted(11, 85) Source(5, 25) + SourceIndex(0)
+6 >Emitted(11, 91) Source(5, 25) + SourceIndex(0)
+7 >Emitted(11, 92) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1101,46 +1121,46 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape1.ts
1 >
2 >
> }
-1 >Emitted(5, 5) Source(5, 26) + SourceIndex(0)
-2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(12, 5) Source(5, 26) + SourceIndex(0)
+2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#x = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #x
-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, 16) Source(9, 16) + SourceIndex(0)
-5 >Emitted(7, 19) Source(9, 19) + SourceIndex(0)
-6 >Emitted(7, 21) Source(9, 21) + SourceIndex(0)
-7 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x =
+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, 84) Source(9, 19) + SourceIndex(0)
+5 >Emitted(14, 86) Source(9, 21) + SourceIndex(0)
+6 >Emitted(14, 92) Source(9, 21) + SourceIndex(0)
+7 >Emitted(14, 93) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1148,16 +1168,17 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape1.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(9, 22) + SourceIndex(0)
-2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(9, 22) + SourceIndex(0)
+2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
+>>>_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape2.js
mapUrl: PrivateIdentifierNameWithExtendedEscape2.js.map
@@ -1168,6 +1189,13 @@ sources: PrivateIdentifierNameWithExtendedEscape2.ts
emittedFile:PrivateIdentifierNameWithExtendedEscape2.js
sourceFile:PrivateIdentifierNameWithExtendedEscape2.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 _PrivateIdentifierWithExtendedEscape2_x\u{78};
>>>export class PrivateIdentifierWithExtendedEscape2 {
1 >
2 >^^^^^^
@@ -1177,58 +1205,57 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts
2 >export
3 > class
4 > PrivateIdentifierWithExtendedEscape2
-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)
----
->>> #x\u{78};
-1 >^^^^
-2 > ^^^^^^^^
-3 > ^
-4 > ^^^^^^^->
-1 > {
- >
-2 > #x\u{78}
-3 > : number;
-1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(2, 13) Source(2, 13) + SourceIndex(0)
-3 >Emitted(2, 14) Source(2, 22) + SourceIndex(0)
+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->^^^^
+1 >^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1 > {
+ > #x\u{78}: number;
>
>
2 > constructor()
-1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
+1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#x\u{78} = 0;
+>>> _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #x\u{78}: number;
+1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(10, 73) Source(2, 22) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #x\u{78}
-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, 22) Source(5, 22) + SourceIndex(0)
-5 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-6 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
-7 >Emitted(4, 27) Source(5, 27) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x\u{78} =
+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, 85) Source(5, 25) + SourceIndex(0)
+5 >Emitted(11, 86) Source(5, 26) + SourceIndex(0)
+6 >Emitted(11, 92) Source(5, 26) + SourceIndex(0)
+7 >Emitted(11, 93) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1237,46 +1264,46 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts
1 >
2 >
> }
-1 >Emitted(5, 5) Source(5, 27) + SourceIndex(0)
-2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(12, 5) Source(5, 27) + SourceIndex(0)
+2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#xx = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #xx
-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, 17) Source(9, 17) + SourceIndex(0)
-5 >Emitted(7, 20) Source(9, 20) + SourceIndex(0)
-6 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
-7 >Emitted(7, 23) Source(9, 23) + SourceIndex(0)
+2 >
+3 > this
+4 > .#xx =
+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, 85) Source(9, 20) + SourceIndex(0)
+5 >Emitted(14, 87) Source(9, 22) + SourceIndex(0)
+6 >Emitted(14, 93) Source(9, 22) + SourceIndex(0)
+7 >Emitted(14, 94) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1284,14 +1311,15 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(9, 23) + SourceIndex(0)
-2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(9, 23) + SourceIndex(0)
+2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
+>>>_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt.diff b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt.diff
index 6791f1a394..89af84aa3d 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt.diff
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es2015).sourcemap.txt.diff
@@ -584,120 +584,80 @@
---
>>>//# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map===================================================================
JsFile: PrivateIdentifierNameWithEscape1.js
-@@= skipped -34, +34 lines =@@
- emittedFile:PrivateIdentifierNameWithEscape1.js
- sourceFile:PrivateIdentifierNameWithEscape1.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;
-->>>};
+@@= skipped -40, +40 lines =@@
+ >>> 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 _PrivateIdentifierWithEscape1_x;
++>>>var _PrivateIdentifierWithEscape1_\u0078;
>>>export class PrivateIdentifierWithEscape1 {
1 >
2 >^^^^^^
-@@= skipped -16, +9 lines =@@
- 2 >export
- 3 > class
- 4 > PrivateIdentifierWithEscape1
--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)
-+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)
+@@= skipped -17, +17 lines =@@
---
-->>> constructor() {
-+>>> #\u0078;
+ >>> constructor() {
1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^
-+3 > ^
-+4 > ^^^^^^^^->
++2 > ^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 > {
-- > #\u0078: number;
-- >
-- >
--1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
-----
+ > #\u0078: number;
+ >
+ >
++2 > constructor()
+ 1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithEscape1_x.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #\u0078: number;
--1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #\u0078: number;
+ 1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(10, 59) Source(2, 21) + SourceIndex(0)
-----
++2 >Emitted(10, 64) Source(2, 21) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+ >
-+2 > #\u0078
-+3 > : number;
-+1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0)
-+3 >Emitted(2, 13) Source(2, 21) + SourceIndex(0)
-+---
-+>>> constructor() {
-+1->^^^^
-+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^->
-+1->
-+ >
-+ >
-+2 > constructor()
-+1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#\u0078 = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#\u0078 =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -31, +34 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#\u0078 =
-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)
++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, 71) Source(5, 24) + SourceIndex(0)
-5 >Emitted(11, 72) Source(5, 25) + SourceIndex(0)
-6 >Emitted(11, 78) Source(5, 25) + SourceIndex(0)
-7 >Emitted(11, 79) Source(5, 26) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #\u0078
-+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, 21) Source(5, 21) + SourceIndex(0)
-+5 >Emitted(4, 24) Source(5, 24) + SourceIndex(0)
-+6 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-+7 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
++4 >Emitted(11, 76) Source(5, 24) + SourceIndex(0)
++5 >Emitted(11, 77) Source(5, 25) + SourceIndex(0)
++6 >Emitted(11, 83) Source(5, 25) + SourceIndex(0)
++7 >Emitted(11, 84) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -707,73 +667,62 @@
- >
-2 > }
-1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(5, 5) Source(5, 26) + SourceIndex(0)
-+2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(12, 5) Source(5, 26) + SourceIndex(0)
+ 2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 42, "f");
-+>>> this.#x = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#x =
+ 2 >
+ 3 > this
+ 4 > .#x =
-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)
++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, 71) Source(9, 19) + SourceIndex(0)
-5 >Emitted(14, 73) Source(9, 21) + SourceIndex(0)
-6 >Emitted(14, 79) Source(9, 21) + SourceIndex(0)
-7 >Emitted(14, 80) Source(9, 22) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x
-+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, 16) Source(9, 16) + SourceIndex(0)
-+5 >Emitted(7, 19) Source(9, 19) + SourceIndex(0)
-+6 >Emitted(7, 21) Source(9, 21) + SourceIndex(0)
-+7 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
++4 >Emitted(14, 76) Source(9, 19) + SourceIndex(0)
++5 >Emitted(14, 78) Source(9, 21) + SourceIndex(0)
++6 >Emitted(14, 84) Source(9, 21) + SourceIndex(0)
++7 >Emitted(14, 85) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -782,139 +731,98 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(9, 22) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(9, 22) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
--1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+ 1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
->>>_PrivateIdentifierWithEscape1_x = new WeakMap();
++>>>_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithEscape2.js
mapUrl: PrivateIdentifierNameWithEscape2.js.map
-@@= skipped -121, +127 lines =@@
- emittedFile:PrivateIdentifierNameWithEscape2.js
- sourceFile:PrivateIdentifierNameWithEscape2.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;
-->>>};
+@@= skipped -89, +92 lines =@@
+ >>> 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 _PrivateIdentifierWithEscape2_xx;
++>>>var _PrivateIdentifierWithEscape2_x\u0078;
>>>export class PrivateIdentifierWithEscape2 {
1 >
2 >^^^^^^
-@@= skipped -16, +9 lines =@@
- 2 >export
- 3 > class
- 4 > PrivateIdentifierWithEscape2
--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)
-+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)
+@@= skipped -17, +17 lines =@@
---
-->>> constructor() {
-+>>> #x\u0078;
+ >>> constructor() {
1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^^
-+3 > ^
-+4 > ^^^^^^^->
++2 > ^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 > {
-- > #x\u0078: number;
-- >
-- >
--1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
-----
+ > #x\u0078: number;
+ >
+ >
++2 > constructor()
+ 1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithEscape2_xx.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #x\u0078: number;
--1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #x\u0078: number;
+ 1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(10, 60) Source(2, 22) + SourceIndex(0)
-----
++2 >Emitted(10, 65) Source(2, 22) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+ >
-+2 > #x\u0078
-+3 > : number;
-+1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(2, 13) Source(2, 13) + SourceIndex(0)
-+3 >Emitted(2, 14) Source(2, 22) + SourceIndex(0)
-+---
-+>>> constructor() {
-+1->^^^^
-+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^^->
-+1->
-+ >
-+ >
-+2 > constructor()
-+1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#x\u0078 = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#x\u0078 =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -31, +34 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#x\u0078 =
-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)
++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, 72) Source(5, 25) + SourceIndex(0)
-5 >Emitted(11, 73) Source(5, 26) + SourceIndex(0)
-6 >Emitted(11, 79) Source(5, 26) + SourceIndex(0)
-7 >Emitted(11, 80) Source(5, 27) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x\u0078
-+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, 22) Source(5, 22) + SourceIndex(0)
-+5 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-+6 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
-+7 >Emitted(4, 27) Source(5, 27) + SourceIndex(0)
++4 >Emitted(11, 77) Source(5, 25) + SourceIndex(0)
++5 >Emitted(11, 78) Source(5, 26) + SourceIndex(0)
++6 >Emitted(11, 84) Source(5, 26) + SourceIndex(0)
++7 >Emitted(11, 85) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -924,73 +832,62 @@
- >
-2 > }
-1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(5, 5) Source(5, 27) + SourceIndex(0)
-+2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(12, 5) Source(5, 27) + SourceIndex(0)
+ 2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 42, "f");
-+>>> this.#xx = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#xx =
+ 2 >
+ 3 > this
+ 4 > .#xx =
-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)
++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, 72) Source(9, 20) + SourceIndex(0)
-5 >Emitted(14, 74) Source(9, 22) + SourceIndex(0)
-6 >Emitted(14, 80) Source(9, 22) + SourceIndex(0)
-7 >Emitted(14, 81) Source(9, 23) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #xx
-+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, 17) Source(9, 17) + SourceIndex(0)
-+5 >Emitted(7, 20) Source(9, 20) + SourceIndex(0)
-+6 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
-+7 >Emitted(7, 23) Source(9, 23) + SourceIndex(0)
++4 >Emitted(14, 77) Source(9, 20) + SourceIndex(0)
++5 >Emitted(14, 79) Source(9, 22) + SourceIndex(0)
++6 >Emitted(14, 85) Source(9, 22) + SourceIndex(0)
++7 >Emitted(14, 86) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -999,139 +896,98 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(9, 23) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(9, 23) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
--1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+ 1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
->>>_PrivateIdentifierWithEscape2_xx = new WeakMap();
++>>>_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape1.js
mapUrl: PrivateIdentifierNameWithExtendedEscape1.js.map
-@@= skipped -121, +127 lines =@@
- emittedFile:PrivateIdentifierNameWithExtendedEscape1.js
- sourceFile:PrivateIdentifierNameWithExtendedEscape1.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;
-->>>};
+@@= skipped -89, +92 lines =@@
+ >>> 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 _PrivateIdentifierWithExtendedEscape1_x;
++>>>var _PrivateIdentifierWithExtendedEscape1_\u{78};
>>>export class PrivateIdentifierWithExtendedEscape1 {
1 >
2 >^^^^^^
-@@= skipped -16, +9 lines =@@
- 2 >export
- 3 > class
- 4 > PrivateIdentifierWithExtendedEscape1
--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)
-+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)
+@@= skipped -17, +17 lines =@@
---
-->>> constructor() {
-+>>> #\u{78};
+ >>> constructor() {
1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^
-+3 > ^
-+4 > ^^^^^^^^->
++2 > ^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 > {
-- > #\u{78}: number;
-- >
-- >
--1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
-----
+ > #\u{78}: number;
+ >
+ >
++2 > constructor()
+ 1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithExtendedEscape1_x.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #\u{78}: number;
--1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #\u{78}: number;
+ 1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(10, 67) Source(2, 21) + SourceIndex(0)
-----
++2 >Emitted(10, 72) Source(2, 21) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+ >
-+2 > #\u{78}
-+3 > : number;
-+1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(2, 12) Source(2, 12) + SourceIndex(0)
-+3 >Emitted(2, 13) Source(2, 21) + SourceIndex(0)
-+---
-+>>> constructor() {
-+1->^^^^
-+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^->
-+1->
-+ >
-+ >
-+2 > constructor()
-+1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#\u{78} = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#\u{78} =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -31, +34 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#\u{78} =
-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)
++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, 79) Source(5, 24) + SourceIndex(0)
-5 >Emitted(11, 80) Source(5, 25) + SourceIndex(0)
-6 >Emitted(11, 86) Source(5, 25) + SourceIndex(0)
-7 >Emitted(11, 87) Source(5, 26) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #\u{78}
-+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, 21) Source(5, 21) + SourceIndex(0)
-+5 >Emitted(4, 24) Source(5, 24) + SourceIndex(0)
-+6 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-+7 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
++4 >Emitted(11, 84) Source(5, 24) + SourceIndex(0)
++5 >Emitted(11, 85) Source(5, 25) + SourceIndex(0)
++6 >Emitted(11, 91) Source(5, 25) + SourceIndex(0)
++7 >Emitted(11, 92) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1141,73 +997,62 @@
- >
-2 > }
-1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(5, 5) Source(5, 26) + SourceIndex(0)
-+2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(12, 5) Source(5, 26) + SourceIndex(0)
+ 2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 42, "f");
-+>>> this.#x = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#x =
+ 2 >
+ 3 > this
+ 4 > .#x =
-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)
++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, 79) Source(9, 19) + SourceIndex(0)
-5 >Emitted(14, 81) Source(9, 21) + SourceIndex(0)
-6 >Emitted(14, 87) Source(9, 21) + SourceIndex(0)
-7 >Emitted(14, 88) Source(9, 22) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x
-+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, 16) Source(9, 16) + SourceIndex(0)
-+5 >Emitted(7, 19) Source(9, 19) + SourceIndex(0)
-+6 >Emitted(7, 21) Source(9, 21) + SourceIndex(0)
-+7 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
++4 >Emitted(14, 84) Source(9, 19) + SourceIndex(0)
++5 >Emitted(14, 86) Source(9, 21) + SourceIndex(0)
++6 >Emitted(14, 92) Source(9, 21) + SourceIndex(0)
++7 >Emitted(14, 93) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1216,139 +1061,98 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(9, 22) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(9, 22) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
--1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+ 1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
->>>_PrivateIdentifierWithExtendedEscape1_x = new WeakMap();
++>>>_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape2.js
mapUrl: PrivateIdentifierNameWithExtendedEscape2.js.map
-@@= skipped -121, +127 lines =@@
- emittedFile:PrivateIdentifierNameWithExtendedEscape2.js
- sourceFile:PrivateIdentifierNameWithExtendedEscape2.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;
-->>>};
+@@= skipped -89, +92 lines =@@
+ >>> 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 _PrivateIdentifierWithExtendedEscape2_xx;
++>>>var _PrivateIdentifierWithExtendedEscape2_x\u{78};
>>>export class PrivateIdentifierWithExtendedEscape2 {
1 >
2 >^^^^^^
-@@= skipped -16, +9 lines =@@
- 2 >export
- 3 > class
- 4 > PrivateIdentifierWithExtendedEscape2
--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)
-+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)
+@@= skipped -17, +17 lines =@@
---
-->>> constructor() {
-+>>> #x\u{78};
+ >>> constructor() {
1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^^
-+3 > ^
-+4 > ^^^^^^^->
++2 > ^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 > {
-- > #x\u{78}: number;
-- >
-- >
--1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
-----
+ > #x\u{78}: number;
+ >
+ >
++2 > constructor()
+ 1 >Emitted(9, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(9, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithExtendedEscape2_xx.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #x\u{78}: number;
--1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #x\u{78}: number;
+ 1->Emitted(10, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(10, 68) Source(2, 22) + SourceIndex(0)
-----
++2 >Emitted(10, 73) Source(2, 22) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+ >
-+2 > #x\u{78}
-+3 > : number;
-+1 >Emitted(2, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(2, 13) Source(2, 13) + SourceIndex(0)
-+3 >Emitted(2, 14) Source(2, 22) + SourceIndex(0)
-+---
-+>>> constructor() {
-+1->^^^^
-+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^^->
-+1->
-+ >
-+ >
-+2 > constructor()
-+1->Emitted(3, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(3, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#x\u{78} = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#x\u{78} =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -31, +34 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#x\u{78} =
-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)
++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, 80) Source(5, 25) + SourceIndex(0)
-5 >Emitted(11, 81) Source(5, 26) + SourceIndex(0)
-6 >Emitted(11, 87) Source(5, 26) + SourceIndex(0)
-7 >Emitted(11, 88) Source(5, 27) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x\u{78}
-+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, 22) Source(5, 22) + SourceIndex(0)
-+5 >Emitted(4, 25) Source(5, 25) + SourceIndex(0)
-+6 >Emitted(4, 26) Source(5, 26) + SourceIndex(0)
-+7 >Emitted(4, 27) Source(5, 27) + SourceIndex(0)
++4 >Emitted(11, 85) Source(5, 25) + SourceIndex(0)
++5 >Emitted(11, 86) Source(5, 26) + SourceIndex(0)
++6 >Emitted(11, 92) Source(5, 26) + SourceIndex(0)
++7 >Emitted(11, 93) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1358,73 +1162,62 @@
- >
-2 > }
-1 >Emitted(12, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(5, 5) Source(5, 27) + SourceIndex(0)
-+2 >Emitted(5, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(12, 5) Source(5, 27) + SourceIndex(0)
+ 2 >Emitted(12, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(6, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(6, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(6, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(13, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(13, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(13, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 42, "f");
-+>>> this.#xx = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#xx =
+ 2 >
+ 3 > this
+ 4 > .#xx =
-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)
++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, 80) Source(9, 20) + SourceIndex(0)
-5 >Emitted(14, 82) Source(9, 22) + SourceIndex(0)
-6 >Emitted(14, 88) Source(9, 22) + SourceIndex(0)
-7 >Emitted(14, 89) Source(9, 23) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #xx
-+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, 17) Source(9, 17) + SourceIndex(0)
-+5 >Emitted(7, 20) Source(9, 20) + SourceIndex(0)
-+6 >Emitted(7, 22) Source(9, 22) + SourceIndex(0)
-+7 >Emitted(7, 23) Source(9, 23) + SourceIndex(0)
++4 >Emitted(14, 85) Source(9, 20) + SourceIndex(0)
++5 >Emitted(14, 87) Source(9, 22) + SourceIndex(0)
++6 >Emitted(14, 93) Source(9, 22) + SourceIndex(0)
++7 >Emitted(14, 94) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1433,20 +1226,19 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(9, 23) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(9, 23) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
--1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(9, 2) Source(11, 2) + SourceIndex(0)
+ 1 >Emitted(16, 2) Source(11, 2) + SourceIndex(0)
---
->>>_PrivateIdentifierWithExtendedEscape2_xx = new WeakMap();
++>>>_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js
index 04a7ca363e..1a04782bf4 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js
@@ -211,61 +211,93 @@ exports.IdentifierNameWithExtendedEscape2 = IdentifierNameWithExtendedEscape2;
//# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map
//// [PrivateIdentifierNameWithEscape1.js]
"use strict";
+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 _PrivateIdentifierWithEscape1_\u0078;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithEscape1 = void 0;
class PrivateIdentifierWithEscape1 {
- #\u0078;
constructor() {
- this.#\u0078 = 0;
+ _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
}
doThing() {
- this.#x = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
}
}
exports.PrivateIdentifierWithEscape1 = PrivateIdentifierWithEscape1;
+_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map
//// [PrivateIdentifierNameWithEscape2.js]
"use strict";
+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 _PrivateIdentifierWithEscape2_x\u0078;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithEscape2 = void 0;
class PrivateIdentifierWithEscape2 {
- #x\u0078;
constructor() {
- this.#x\u0078 = 0;
+ _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
}
doThing() {
- this.#xx = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
}
}
exports.PrivateIdentifierWithEscape2 = PrivateIdentifierWithEscape2;
+_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map
//// [PrivateIdentifierNameWithExtendedEscape1.js]
"use strict";
+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 _PrivateIdentifierWithExtendedEscape1_\u{78};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithExtendedEscape1 = void 0;
class PrivateIdentifierWithExtendedEscape1 {
- #\u{78};
constructor() {
- this.#\u{78} = 0;
+ _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
}
doThing() {
- this.#x = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
}
}
exports.PrivateIdentifierWithExtendedEscape1 = PrivateIdentifierWithExtendedEscape1;
+_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map
//// [PrivateIdentifierNameWithExtendedEscape2.js]
"use strict";
+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 _PrivateIdentifierWithExtendedEscape2_x\u{78};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithExtendedEscape2 = void 0;
class PrivateIdentifierWithExtendedEscape2 {
- #x\u{78};
constructor() {
- this.#x\u{78} = 0;
+ _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
}
doThing() {
- this.#xx = 42;
+ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
}
}
exports.PrivateIdentifierWithExtendedEscape2 = PrivateIdentifierWithExtendedEscape2;
+_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.diff b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.diff
index 036e7ffc1a..2b42598cd0 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.diff
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.diff
@@ -65,109 +65,105 @@
constructor() {
this.x\u{78} = 0;
}
-@@= skipped -11, +12 lines =@@
- //# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map
- //// [PrivateIdentifierNameWithEscape1.js]
- "use strict";
--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;
--};
+@@= skipped -17, +18 lines =@@
+ 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 _PrivateIdentifierWithEscape1_x;
++var _PrivateIdentifierWithEscape1_\u0078;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithEscape1 = void 0;
class PrivateIdentifierWithEscape1 {
-+ #\u0078;
constructor() {
- _PrivateIdentifierWithEscape1_x.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 0, "f");
-+ this.#\u0078 = 0;
++ _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 42, "f");
-+ this.#x = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
}
}
exports.PrivateIdentifierWithEscape1 = PrivateIdentifierWithEscape1;
-_PrivateIdentifierWithEscape1_x = new WeakMap();
++_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map
//// [PrivateIdentifierNameWithEscape2.js]
"use strict";
--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;
--};
+@@= skipped -23, +23 lines =@@
+ 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 _PrivateIdentifierWithEscape2_xx;
++var _PrivateIdentifierWithEscape2_x\u0078;
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithEscape2 = void 0;
class PrivateIdentifierWithEscape2 {
-+ #x\u0078;
constructor() {
- _PrivateIdentifierWithEscape2_xx.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 0, "f");
-+ this.#x\u0078 = 0;
++ _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 42, "f");
-+ this.#xx = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
}
}
exports.PrivateIdentifierWithEscape2 = PrivateIdentifierWithEscape2;
-_PrivateIdentifierWithEscape2_xx = new WeakMap();
++_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map
//// [PrivateIdentifierNameWithExtendedEscape1.js]
"use strict";
--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;
--};
+@@= skipped -23, +23 lines =@@
+ 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 _PrivateIdentifierWithExtendedEscape1_x;
++var _PrivateIdentifierWithExtendedEscape1_\u{78};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithExtendedEscape1 = void 0;
class PrivateIdentifierWithExtendedEscape1 {
-+ #\u{78};
constructor() {
- _PrivateIdentifierWithExtendedEscape1_x.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 0, "f");
-+ this.#\u{78} = 0;
++ _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 42, "f");
-+ this.#x = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
}
}
exports.PrivateIdentifierWithExtendedEscape1 = PrivateIdentifierWithExtendedEscape1;
-_PrivateIdentifierWithExtendedEscape1_x = new WeakMap();
++_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map
//// [PrivateIdentifierNameWithExtendedEscape2.js]
"use strict";
--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;
--};
+@@= skipped -23, +23 lines =@@
+ 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 _PrivateIdentifierWithExtendedEscape2_xx;
++var _PrivateIdentifierWithExtendedEscape2_x\u{78};
Object.defineProperty(exports, "__esModule", { value: true });
exports.PrivateIdentifierWithExtendedEscape2 = void 0;
class PrivateIdentifierWithExtendedEscape2 {
-+ #x\u{78};
constructor() {
- _PrivateIdentifierWithExtendedEscape2_xx.set(this, void 0);
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 0, "f");
-+ this.#x\u{78} = 0;
++ _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
}
doThing() {
- __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 42, "f");
-+ this.#xx = 42;
++ __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
}
}
exports.PrivateIdentifierWithExtendedEscape2 = PrivateIdentifierWithExtendedEscape2;
-_PrivateIdentifierWithExtendedEscape2_xx = new WeakMap();
++_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map
index 0e13abbe71..0fa85217a1 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map
@@ -31,17 +31,17 @@
//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMuSW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0MjsKICAgIH0KfQo=
//// [PrivateIdentifierNameWithEscape1.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":";;;AAAA;IACI,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAA,CAChB;CACJ"}
-//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMuUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMSA9IHZvaWQgMDsNCmNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgew0KICAgICNcdTAwNzg7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuI3ggPSA0MjsNCiAgICB9DQp9DQpleHBvcnRzLlByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgPSBQcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUxOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTtJQUNJLE9BQU8sQ0FBUztJQUVoQixjQUFjO1FBQ1YsSUFBSSxDQUFDLE9BQU8sR0FBRyxDQUFDLENBQUM7SUFBQSxDQUNwQjtJQUVELE9BQU8sR0FBRztRQUNOLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQUEsQ0FDaEI7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
+{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,cAAc;QAFd,uDAAgB;QAGZ,uBAAA,IAAI,wCAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,wCAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5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bnRpZmllcldpdGhFc2NhcGUxID0gUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMTsNCl9Qcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUxX1x1MDA3OCA9IG5ldyBXZWFrTWFwKCk7DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS5qcy5tYXA=,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7SUFHSSxjQUFjO1FBRmQsdURBQWdCO1FBR1osdUJBQUEsSUFBSSx3Q0FBVyxDQUFDLE1BQUEsQ0FBQztJQUFBLENBQ3BCO0lBRUQsT0FBTyxHQUFHO1FBQ04sdUJBQUEsSUFBSSx3Q0FBTSxFQUFFLE1BQUEsQ0FBQztJQUFBLENBQ2hCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
//// [PrivateIdentifierNameWithEscape2.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":";;;AAAA;IACI,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,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IgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
+{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,cAAc;QAFd,wDAAiB;QAGb,uBAAA,IAAI,yCAAY,CAAC,MAAA,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,yCAAO,EAAE,MAAA,CAAC;IAAA,CACjB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZG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Lm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUE7SUFHSSxjQUFjO1FBRmQsd0RBQWlCO1FBR2IsdUJBQUEsSUFBSSx5Q0FBWSxDQUFDLE1BQUEsQ0FBQztJQUFBLENBQ3JCO0lBRUQsT0FBTyxHQUFHO1FBQ04sdUJBQUEsSUFBSSx5Q0FBTyxFQUFFLE1BQUEsQ0FBQztJQUFBLENBQ2pCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
//// [PrivateIdentifierNameWithExtendedEscape1.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;AAAA;IACI,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAA,CAChB;CACJ"}
-//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMuUHJpdmF0ZUlk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ICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo=
+{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,cAAc;QAFd,+DAAgB;QAGZ,uBAAA,IAAI,gDAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,gDAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgO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WRFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0lBR0ksY0FBYztRQUZkLCtEQUFnQjtRQUdaLHVCQUFBLElBQUksZ0RBQVcsQ0FBQyxNQUFBLENBQUM7SUFBQSxDQUNwQjtJQUVELE9BQU8sR0FBRztRQUNOLHVCQUFBLElBQUksZ0RBQU0sRUFBRSxNQUFBLENBQUM7SUFBQSxDQUNoQjtDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICAjXHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo=
//// [PrivateIdentifierNameWithExtendedEscape2.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;AAAA;IACI,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAAA,CACjB;CACJ"}
-//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1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0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
+{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,cAAc;QAFd,gEAAiB;QAGb,uBAAA,IAAI,iDAAY,CAAC,MAAA,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,iDAAO,EAAE,MAAA,CAAC;IAAA,CACjB;CACJ"}
+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2lu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sNCi8vIyBzb3VyY2VNYXBwaW5nVVJMPVByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0lBR0ksY0FBYztRQUZkLGdFQUFpQjtRQUdiLHVCQUFBLElBQUksaURBQVksQ0FBQyxNQUFBLENBQUM7SUFBQSxDQUNyQjtJQUVELE9BQU8sR0FBRztRQUNOLHVCQUFBLElBQUksaURBQU8sRUFBRSxNQUFBLENBQUM7SUFBQSxDQUNqQjtDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map.diff b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map.diff
index 65704c2b34..094c397168 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map.diff
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).js.map.diff
@@ -52,23 +52,23 @@
//// [PrivateIdentifierNameWithEscape1.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateI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7SUFHckM7UUFGQSxrREFBZ0I7UUFHWix1QkFBQSxJQUFJLG1DQUFXLENBQUMsTUFBQSxDQUFDO0lBQ3JCLENBQUM7SUFFRCxPQUFPO1FBQ0gsdUJBQUEsSUFBSSxtQ0FBTSxFQUFFLE1BQUEsQ0FBQztJQUNqQixDQUFDO0NBQ0o7QUFWRCxvRUFVQyJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
-+{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":";;;AAAA;IACI,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAA,CAChB;CACJ"}
-+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMuUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMSA9IHZvaWQgMDsNCmNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgew0KICAgICNcdTAwNzg7DQogICAgY29uc3RydWN0b3IoKSB7DQogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7DQogICAgfQ0KICAgIGRvVGhpbmcoKSB7DQogICAgICAgIHRoaXMuI3ggPSA0MjsNCiAgICB9DQp9DQpleHBvcnRzLlByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgPSBQcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUxOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTtJQUNJLE9BQU8sQ0FBUztJQUVoQixjQUFjO1FBQ1YsSUFBSSxDQUFDLE9BQU8sR0FBRyxDQUFDLENBQUM7SUFBQSxDQUNwQjtJQUVELE9BQU8sR0FBRztRQUNOLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxDQUFDO0lBQUEsQ0FDaEI7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTEgewogICAgI1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
++{"version":3,"file":"PrivateIdentifierNameWithEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape1.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,cAAc;QAFd,uDAAgB;QAGZ,uBAAA,IAAI,wCAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,wCAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
++//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRT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I1x1MDA3ODogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI1x1MDA3OCA9IDA7CiAgICB9CgogICAgZG9UaGluZygpIHsKICAgICAgICB0aGlzLiN4ID0gNDI7CiAgICB9Cn0K
//// [PrivateIdentifierNameWithEscape2.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,MAAa,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;AAVD,oEAUC"}
-//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IH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XJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsTUFBYSw0QkFBNEI7SUFHckM7UUFGQSxtREFBaUI7UUFHYix1QkFBQSxJQUFJLG9DQUFZLENBQUMsTUFBQSxDQUFDO0lBQ3RCLENBQUM7SUFFRCxPQUFPO1FBQ0gsdUJBQUEsSUFBSSxvQ0FBTyxFQUFFLE1BQUEsQ0FBQztJQUNsQixDQUFDO0NBQ0o7QUFWRCxvRUFVQyJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
-+{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"names":[],"mappings":";;;AAAA;IACI,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAAA,CACjB;CACJ"}
-+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMuUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXNjYXBlMiA9IHZvaWQgMDsNCmNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgew0KICAgICN4XHUwMDc4Ow0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsNCiAgICB9DQogICAgZG9UaGluZygpIHsNCiAgICAgICAgdGhpcy4jeHggPSA0MjsNCiAgICB9DQp9DQpleHBvcnRzLlByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgPSBQcml2YXRlSWRlbnRpZmllcldpdGhFc2NhcGUyOw0KLy8jIHNvdXJjZU1hcHBpbmdVUkw9UHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEVzY2FwZTIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJQcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXNjYXBlMi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQTtJQUNJLFFBQVEsQ0FBUztJQUVqQixjQUFjO1FBQ1YsSUFBSSxDQUFDLFFBQVEsR0FBRyxDQUFDLENBQUM7SUFBQSxDQUNyQjtJQUVELE9BQU8sR0FBRztRQUNOLElBQUksQ0FBQyxHQUFHLEdBQUcsRUFBRSxDQUFDO0lBQUEsQ0FDakI7Q0FDSiJ9,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
++{"version":3,"file":"PrivateIdentifierNameWithEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithEscape2.ts"],"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QUFjO1FBRmQsd0RBQWlCO1FBR2IsdUJBQUEsSUFBSSx5Q0FBWSxDQUFDLE1BQUEsQ0FBQztJQUFBLENBQ3JCO0lBRUQsT0FBTyxHQUFHO1FBQ04sdUJBQUEsSUFBSSx5Q0FBTyxFQUFFLE1BQUEsQ0FBQztJQUFBLENBQ2pCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEVzY2FwZTIgewogICAgI3hcdTAwNzg6IG51bWJlcjsKCiAgICBjb25zdHJ1Y3RvcigpIHsKICAgICAgICB0aGlzLiN4XHUwMDc4ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3h4ID0gNDI7CiAgICB9Cn0K
//// [PrivateIdentifierNameWithExtendedEscape1.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,MAAa,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;AAVD,oFAUC"}
-//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJ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-+{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;AAAA;IACI,OAAO,CAAS;IAEhB,cAAc;QACV,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IAAA,CAChB;CACJ"}
-+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMuUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXh0ZW5kZWRFc2NhcGUxID0gdm9pZCAwOw0KY2xhc3MgUHJpdmF0ZUlkZW50aWZpZXJXaXRoRXh0ZW5kZWRFc2NhcGUxIHsNCiAgICAjXHV7Nzh9Ow0KICAgIGNvbnN0cnVjdG9yKCkgew0KICAgICAgICB0aGlzLiNcdXs3OH0gPSAwOw0KICAgIH0NCiAgICBkb1RoaW5nKCkgew0KICAgICAgICB0aGlzLiN4ID0gNDI7DQogICAgfQ0KfQ0KZXhwb3J0cy5Qcml2YXRlSWRlbnRpZmllcldpdGhFeHRlbmRlZEVzY2FwZTEgPSBQcml2YXRlSWRlbnRpZmllcldpdGhFeHRlbmRlZEVzY2FwZTE7DQovLyMgc291cmNlTWFwcGluZ1VSTD1Qcml2YXRlSWRlbnRpZmllck5hbWVXaXRoRXh0ZW5kZWRFc2NhcGUxLmpzLm1hcA==,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUE7SUFDSSxPQUFPLENBQVM7SUFFaEIsY0FBYztRQUNWLElBQUksQ0FBQyxPQUFPLEdBQUcsQ0FBQyxDQUFDO0lBQUEsQ0FDcEI7SUFFRCxPQUFPLEdBQUc7UUFDTixJQUFJLENBQUMsRUFBRSxHQUFHLEVBQUUsQ0FBQztJQUFBLENBQ2hCO0NBQ0oifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMSB7CiAgICAjXHV7Nzh9OiBudW1iZXI7CgogICAgY29uc3RydWN0b3IoKSB7CiAgICAgICAgdGhpcy4jXHV7Nzh9ID0gMDsKICAgIH0KCiAgICBkb1RoaW5nKCkgewogICAgICAgIHRoaXMuI3ggPSA0MjsKICAgIH0KfQo=
++{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape1.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape1.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,cAAc;QAFd,+DAAgB;QAGZ,uBAAA,IAAI,gDAAW,CAAC,MAAA,CAAC;IAAA,CACpB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,gDAAM,EAAE,MAAA,CAAC;IAAA,CAChB;CACJ"}
++//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcn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KICAgIH0KfQo=
//// [PrivateIdentifierNameWithExtendedEscape2.js.map]
-{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,MAAa,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;AAVD,oFAUC"}
-//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1ZSkgOiBmID8gZi52Y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joiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLE1BQWEsb0NBQW9DO0lBRzdDO1FBRkEsMkRBQWlCO1FBR2IsdUJBQUEsSUFBSSw0Q0FBWSxDQUFDLE1BQUEsQ0FBQztJQUN0QixDQUFDO0lBRUQsT0FBTztRQUNILHVCQUFBLElBQUksNENBQU8sRUFBRSxNQUFBLENBQUM7SUFDbEIsQ0FBQztDQUNKO0FBVkQsb0ZBVUMifQ==,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
-+{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;AAAA;IACI,QAAQ,CAAS;IAEjB,cAAc;QACV,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;IAAA,CACjB;CACJ"}
-+//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KT2JqZWN0LmRlZmluZVByb3BlcnR5KGV4cG9ydHMsICJfX2VzTW9kdWxlIiwgeyB2YWx1ZTogdHJ1ZSB9KTsNCmV4cG9ydHMuUHJpdmF0ZUlkZW50aWZpZXJX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KICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
\ No newline at end of file
++{"version":3,"file":"PrivateIdentifierNameWithExtendedEscape2.js","sourceRoot":"","sources":["PrivateIdentifierNameWithExtendedEscape2.ts"],"names":[],"mappings":";;;;;;;;;;AAAA;IAGI,cAAc;QAFd,gEAAiB;QAGb,uBAAA,IAAI,iDAAY,CAAC,MAAA,CAAC;IAAA,CACrB;IAED,OAAO,GAAG;QACN,uBAAA,IAAI,iDAAO,EAAE,MAAA,CAAC;IAAA,CACjB;CACJ"}
++//// https://sokra.github.io/source-map-visualization#base64,InVzZSBzdHJpY3QiOw0KdmFyIF9fY2xhc3NQcml2YXRlRmllbGRTZXQgPSAodGhpcyAmJiB0aGlzLl9fY2xhc3NQcml2YXRlRmllbGRTZXQpIHx8IGZ1bmN0aW9uIChyZWNlaXZlciwgc3RhdGUsIHZhbHVlLCBraW5kLCBmKSB7DQogICAgaWYgKGtpbmQgPT09ICJtIikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBtZXRob2QgaXMgbm90IHdyaXRhYmxlIik7DQogICAgaWYgKGtpbmQgPT09ICJhIiAmJiAhZikgdGhyb3cgbmV3IFR5cGVFcnJvcigiUHJpdmF0ZSBhY2Nlc3NvciB3YXMgZGVmaW5lZCB3aXRob3V0IGEgc2V0dGVyIik7DQogICAgaWYgKHR5cGVvZiBzdGF0ZSA9PT0gImZ1bmN0aW9uIiA/IHJlY2VpdmVyICE9PSBzdGF0ZSB8fCAhZiA6ICFzdGF0ZS5oYXMocmVjZWl2ZXIpKSB0aHJvdyBuZXcgVHlwZUVycm9yKCJDYW5ub3Qgd3JpdGUgcHJpdmF0ZSBtZW1iZXIgdG8gYW4gb2JqZWN0IHdob3NlIGNsYXNzIGRpZCBub3QgZGVjbGFyZSBpdCIpOw0KICAgIHJldHVybiAoa2luZCA9PT0gImEiID8gZi5jYWxsKHJlY2VpdmVyLCB2YWx1Z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udGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIuanMubWFw,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUHJpdmF0ZUlkZW50aWZpZXJOYW1lV2l0aEV4dGVuZGVkRXNjYXBlMi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIlByaXZhdGVJZGVudGlmaWVyTmFtZVdpdGhFeHRlbmRlZEVzY2FwZTIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBO0lBR0ksY0FBYztRQUZkLGdFQUFpQjtRQUdiLHVCQUFBLElBQUksaURBQVksQ0FBQyxNQUFBLENBQUM7SUFBQSxDQUNyQjtJQUVELE9BQU8sR0FBRztRQUNOLHVCQUFBLElBQUksaURBQU8sRUFBRSxNQUFBLENBQUM7SUFBQSxDQUNqQjtDQUNKIn0=,ZXhwb3J0IGNsYXNzIFByaXZhdGVJZGVudGlmaWVyV2l0aEV4dGVuZGVkRXNjYXBlMiB7CiAgICAjeFx1ezc4fTogbnVtYmVyOwoKICAgIGNvbnN0cnVjdG9yKCkgewogICAgICAgIHRoaXMuI3hcdXs3OH0gPSAwOwogICAgfQoKICAgIGRvVGhpbmcoKSB7CiAgICAgICAgdGhpcy4jeHggPSA0MjsKICAgIH0KfQo=
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt
index 8f187ec2b9..1d6be2a55c 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt
@@ -745,61 +745,67 @@ emittedFile:PrivateIdentifierNameWithEscape1.js
sourceFile:PrivateIdentifierNameWithEscape1.ts
-------------------------------------------------------------------
>>>"use strict";
+>>>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 _PrivateIdentifierWithEscape1_\u0078;
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithEscape1 = void 0;
>>>class PrivateIdentifierWithEscape1 {
1 >
-2 >^^^^^^^^^^^^^->
+2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
----
->>> #\u0078;
-1->^^^^
-2 > ^^^^^^^
-3 > ^
-4 > ^^^^^^^^->
-1->export class PrivateIdentifierWithEscape1 {
- >
-2 > #\u0078
-3 > : number;
-1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(5, 12) Source(2, 12) + SourceIndex(0)
-3 >Emitted(5, 13) Source(2, 21) + SourceIndex(0)
+1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
---
>>> constructor() {
1->^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1->export class PrivateIdentifierWithEscape1 {
+ > #\u0078: number;
>
>
2 > constructor()
-1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
+1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#\u0078 = 0;
+>>> _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #\u0078: number;
+1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(13, 64) Source(2, 21) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #\u0078
-5 > =
-6 > 0
-7 > ;
-1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-4 >Emitted(7, 21) Source(5, 21) + SourceIndex(0)
-5 >Emitted(7, 24) Source(5, 24) + SourceIndex(0)
-6 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-7 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
+2 >
+3 > this
+4 > .#\u0078 =
+5 > 0
+6 >
+7 > ;
+1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
+4 >Emitted(14, 76) Source(5, 24) + SourceIndex(0)
+5 >Emitted(14, 77) Source(5, 25) + SourceIndex(0)
+6 >Emitted(14, 83) Source(5, 25) + SourceIndex(0)
+7 >Emitted(14, 84) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -808,46 +814,46 @@ sourceFile:PrivateIdentifierNameWithEscape1.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(5, 26) + SourceIndex(0)
-2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(5, 26) + SourceIndex(0)
+2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#x = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #x
-5 > =
-6 > 42
-7 > ;
-1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-4 >Emitted(10, 16) Source(9, 16) + SourceIndex(0)
-5 >Emitted(10, 19) Source(9, 19) + SourceIndex(0)
-6 >Emitted(10, 21) Source(9, 21) + SourceIndex(0)
-7 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x =
+5 > 42
+6 >
+7 > ;
+1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
+4 >Emitted(17, 76) Source(9, 19) + SourceIndex(0)
+5 >Emitted(17, 78) Source(9, 21) + SourceIndex(0)
+6 >Emitted(17, 84) Source(9, 21) + SourceIndex(0)
+7 >Emitted(17, 85) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -855,17 +861,18 @@ sourceFile:PrivateIdentifierNameWithEscape1.ts
1 >
2 >
> }
-1 >Emitted(11, 5) Source(9, 22) + SourceIndex(0)
-2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(18, 5) Source(9, 22) + SourceIndex(0)
+2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithEscape1 = PrivateIdentifierWithEscape1;
+>>>_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithEscape2.js
mapUrl: PrivateIdentifierNameWithEscape2.js.map
@@ -877,61 +884,67 @@ emittedFile:PrivateIdentifierNameWithEscape2.js
sourceFile:PrivateIdentifierNameWithEscape2.ts
-------------------------------------------------------------------
>>>"use strict";
+>>>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 _PrivateIdentifierWithEscape2_x\u0078;
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithEscape2 = void 0;
>>>class PrivateIdentifierWithEscape2 {
1 >
-2 >^^^^^^^^^^^^^^->
+2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
----
->>> #x\u0078;
-1->^^^^
-2 > ^^^^^^^^
-3 > ^
-4 > ^^^^^^^->
-1->export class PrivateIdentifierWithEscape2 {
- >
-2 > #x\u0078
-3 > : number;
-1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(5, 13) Source(2, 13) + SourceIndex(0)
-3 >Emitted(5, 14) Source(2, 22) + SourceIndex(0)
+1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
---
>>> constructor() {
1->^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1->export class PrivateIdentifierWithEscape2 {
+ > #x\u0078: number;
>
>
2 > constructor()
-1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
+1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#x\u0078 = 0;
+>>> _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #x\u0078: number;
+1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(13, 65) Source(2, 22) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #x\u0078
-5 > =
-6 > 0
-7 > ;
-1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-4 >Emitted(7, 22) Source(5, 22) + SourceIndex(0)
-5 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-6 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
-7 >Emitted(7, 27) Source(5, 27) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x\u0078 =
+5 > 0
+6 >
+7 > ;
+1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
+4 >Emitted(14, 77) Source(5, 25) + SourceIndex(0)
+5 >Emitted(14, 78) Source(5, 26) + SourceIndex(0)
+6 >Emitted(14, 84) Source(5, 26) + SourceIndex(0)
+7 >Emitted(14, 85) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -940,46 +953,46 @@ sourceFile:PrivateIdentifierNameWithEscape2.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(5, 27) + SourceIndex(0)
-2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(5, 27) + SourceIndex(0)
+2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#xx = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #xx
-5 > =
-6 > 42
-7 > ;
-1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-4 >Emitted(10, 17) Source(9, 17) + SourceIndex(0)
-5 >Emitted(10, 20) Source(9, 20) + SourceIndex(0)
-6 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
-7 >Emitted(10, 23) Source(9, 23) + SourceIndex(0)
+2 >
+3 > this
+4 > .#xx =
+5 > 42
+6 >
+7 > ;
+1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
+4 >Emitted(17, 77) Source(9, 20) + SourceIndex(0)
+5 >Emitted(17, 79) Source(9, 22) + SourceIndex(0)
+6 >Emitted(17, 85) Source(9, 22) + SourceIndex(0)
+7 >Emitted(17, 86) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -987,17 +1000,18 @@ sourceFile:PrivateIdentifierNameWithEscape2.ts
1 >
2 >
> }
-1 >Emitted(11, 5) Source(9, 23) + SourceIndex(0)
-2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(18, 5) Source(9, 23) + SourceIndex(0)
+2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithEscape2 = PrivateIdentifierWithEscape2;
+>>>_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape1.js
mapUrl: PrivateIdentifierNameWithExtendedEscape1.js.map
@@ -1009,61 +1023,67 @@ emittedFile:PrivateIdentifierNameWithExtendedEscape1.js
sourceFile:PrivateIdentifierNameWithExtendedEscape1.ts
-------------------------------------------------------------------
>>>"use strict";
+>>>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 _PrivateIdentifierWithExtendedEscape1_\u{78};
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithExtendedEscape1 = void 0;
>>>class PrivateIdentifierWithExtendedEscape1 {
1 >
-2 >^^^^^^^^^^^^^->
+2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
----
->>> #\u{78};
-1->^^^^
-2 > ^^^^^^^
-3 > ^
-4 > ^^^^^^^^->
-1->export class PrivateIdentifierWithExtendedEscape1 {
- >
-2 > #\u{78}
-3 > : number;
-1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(5, 12) Source(2, 12) + SourceIndex(0)
-3 >Emitted(5, 13) Source(2, 21) + SourceIndex(0)
+1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
---
>>> constructor() {
1->^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1->export class PrivateIdentifierWithExtendedEscape1 {
+ > #\u{78}: number;
>
>
2 > constructor()
-1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
+1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#\u{78} = 0;
+>>> _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #\u{78}: number;
+1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(13, 72) Source(2, 21) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #\u{78}
-5 > =
-6 > 0
-7 > ;
-1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-4 >Emitted(7, 21) Source(5, 21) + SourceIndex(0)
-5 >Emitted(7, 24) Source(5, 24) + SourceIndex(0)
-6 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-7 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
+2 >
+3 > this
+4 > .#\u{78} =
+5 > 0
+6 >
+7 > ;
+1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
+4 >Emitted(14, 84) Source(5, 24) + SourceIndex(0)
+5 >Emitted(14, 85) Source(5, 25) + SourceIndex(0)
+6 >Emitted(14, 91) Source(5, 25) + SourceIndex(0)
+7 >Emitted(14, 92) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1072,46 +1092,46 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape1.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(5, 26) + SourceIndex(0)
-2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(5, 26) + SourceIndex(0)
+2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#x = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #x
-5 > =
-6 > 42
-7 > ;
-1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-4 >Emitted(10, 16) Source(9, 16) + SourceIndex(0)
-5 >Emitted(10, 19) Source(9, 19) + SourceIndex(0)
-6 >Emitted(10, 21) Source(9, 21) + SourceIndex(0)
-7 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x =
+5 > 42
+6 >
+7 > ;
+1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
+4 >Emitted(17, 84) Source(9, 19) + SourceIndex(0)
+5 >Emitted(17, 86) Source(9, 21) + SourceIndex(0)
+6 >Emitted(17, 92) Source(9, 21) + SourceIndex(0)
+7 >Emitted(17, 93) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1119,17 +1139,18 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape1.ts
1 >
2 >
> }
-1 >Emitted(11, 5) Source(9, 22) + SourceIndex(0)
-2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(18, 5) Source(9, 22) + SourceIndex(0)
+2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithExtendedEscape1 = PrivateIdentifierWithExtendedEscape1;
+>>>_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape2.js
mapUrl: PrivateIdentifierNameWithExtendedEscape2.js.map
@@ -1141,61 +1162,67 @@ emittedFile:PrivateIdentifierNameWithExtendedEscape2.js
sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts
-------------------------------------------------------------------
>>>"use strict";
+>>>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 _PrivateIdentifierWithExtendedEscape2_x\u{78};
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithExtendedEscape2 = void 0;
>>>class PrivateIdentifierWithExtendedEscape2 {
1 >
-2 >^^^^^^^^^^^^^^->
+2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
----
->>> #x\u{78};
-1->^^^^
-2 > ^^^^^^^^
-3 > ^
-4 > ^^^^^^^->
-1->export class PrivateIdentifierWithExtendedEscape2 {
- >
-2 > #x\u{78}
-3 > : number;
-1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-2 >Emitted(5, 13) Source(2, 13) + SourceIndex(0)
-3 >Emitted(5, 14) Source(2, 22) + SourceIndex(0)
+1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
---
>>> constructor() {
1->^^^^
2 > ^^^^^^^^^^^^^^
-3 > ^^^^^^^^^->
-1->
+3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+1->export class PrivateIdentifierWithExtendedEscape2 {
+ > #x\u{78}: number;
>
>
2 > constructor()
-1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
+1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
+2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
---
->>> this.#x\u{78} = 0;
+>>> _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^^^^^^
-5 > ^^^
-6 > ^
-7 > ^
-1->{
+2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^^^^^^^^^^^^^^^^^^->
+1->
+2 > #x\u{78}: number;
+1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
+2 >Emitted(13, 73) Source(2, 22) + SourceIndex(0)
+---
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
+1->^^^^^^^^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^
+6 > ^^^^^^
+7 > ^
+1->
+ >
+ > constructor() {
>
-2 > this
-3 > .
-4 > #x\u{78}
-5 > =
-6 > 0
-7 > ;
-1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-4 >Emitted(7, 22) Source(5, 22) + SourceIndex(0)
-5 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-6 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
-7 >Emitted(7, 27) Source(5, 27) + SourceIndex(0)
+2 >
+3 > this
+4 > .#x\u{78} =
+5 > 0
+6 >
+7 > ;
+1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
+4 >Emitted(14, 85) Source(5, 25) + SourceIndex(0)
+5 >Emitted(14, 86) Source(5, 26) + SourceIndex(0)
+6 >Emitted(14, 92) Source(5, 26) + SourceIndex(0)
+7 >Emitted(14, 93) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1204,46 +1231,46 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts
1 >
2 >
> }
-1 >Emitted(8, 5) Source(5, 27) + SourceIndex(0)
-2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
+1 >Emitted(15, 5) Source(5, 27) + SourceIndex(0)
+2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
3 > ^^^
-4 > ^^^^^^^^^->
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
3 > ()
-1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> this.#xx = 42;
+>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
1->^^^^^^^^
-2 > ^^^^
-3 > ^
-4 > ^^^
-5 > ^^^
-6 > ^^
-7 > ^
+2 > ^^^^^^^^^^^^^^^^^^^^^^^
+3 > ^^^^
+4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+5 > ^^
+6 > ^^^^^^
+7 > ^
1->{
>
-2 > this
-3 > .
-4 > #xx
-5 > =
-6 > 42
-7 > ;
-1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-4 >Emitted(10, 17) Source(9, 17) + SourceIndex(0)
-5 >Emitted(10, 20) Source(9, 20) + SourceIndex(0)
-6 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
-7 >Emitted(10, 23) Source(9, 23) + SourceIndex(0)
+2 >
+3 > this
+4 > .#xx =
+5 > 42
+6 >
+7 > ;
+1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
+4 >Emitted(17, 85) Source(9, 20) + SourceIndex(0)
+5 >Emitted(17, 87) Source(9, 22) + SourceIndex(0)
+6 >Emitted(17, 93) Source(9, 22) + SourceIndex(0)
+7 >Emitted(17, 94) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1251,15 +1278,16 @@ sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts
1 >
2 >
> }
-1 >Emitted(11, 5) Source(9, 23) + SourceIndex(0)
-2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
+1 >Emitted(18, 5) Source(9, 23) + SourceIndex(0)
+2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
1 >^
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1 >
>}
-1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithExtendedEscape2 = PrivateIdentifierWithExtendedEscape2;
+>>>_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt.diff b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt.diff
index 5e2fc59175..6a1d4b3aea 100644
--- a/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt.diff
+++ b/testdata/baselines/reference/submodule/compiler/unicodeEscapesInNames01(target=es5).sourcemap.txt.diff
@@ -972,118 +972,92 @@
>>>//# sourceMappingURL=IdentifierNameWithExtendedEscape2.js.map===================================================================
JsFile: PrivateIdentifierNameWithEscape1.js
mapUrl: PrivateIdentifierNameWithEscape1.js.map
-@@= skipped -53, +36 lines =@@
- sourceFile:PrivateIdentifierNameWithEscape1.ts
- -------------------------------------------------------------------
- >>>"use strict";
-->>>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;
-->>>};
+@@= skipped -59, +42 lines =@@
+ >>> 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 _PrivateIdentifierWithEscape1_x;
++>>>var _PrivateIdentifierWithEscape1_\u0078;
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithEscape1 = void 0;
>>>class PrivateIdentifierWithEscape1 {
1 >
-2 >^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-+2 >^^^^^^^^^^^^^->
++2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-2 >export class
-3 > PrivateIdentifierWithEscape1
--1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
+ 1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
-2 >Emitted(11, 7) Source(1, 14) + SourceIndex(0)
-3 >Emitted(11, 35) Source(1, 42) + SourceIndex(0)
-+1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
-+---
-+>>> #\u0078;
-+1->^^^^
-+2 > ^^^^^^^
-+3 > ^
-+4 > ^^^^^^^^->
-+1->export class PrivateIdentifierWithEscape1 {
-+ >
-+2 > #\u0078
-+3 > : number;
-+1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(5, 12) Source(2, 12) + SourceIndex(0)
-+3 >Emitted(5, 13) Source(2, 21) + SourceIndex(0)
---
>>> constructor() {
-1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-1 > {
-- > #\u0078: number;
+1->^^^^
+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^->
-+1->
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++1->export class PrivateIdentifierWithEscape1 {
+ > #\u0078: number;
>
>
-1 >Emitted(12, 5) Source(4, 5) + SourceIndex(0)
-----
++2 > constructor()
++1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithEscape1_x.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithEscape1_\u0078.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #\u0078: number;
--1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #\u0078: number;
+ 1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(13, 59) Source(2, 21) + SourceIndex(0)
-----
++2 >Emitted(13, 64) Source(2, 21) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+2 > constructor()
-+1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#\u0078 = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#\u0078 =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -47, +45 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#\u0078 =
-5 > 0
-6 >
-7 > ;
--1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
--2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
--3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
++5 > 0
++6 >
++7 > ;
+ 1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+ 2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+ 3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
-4 >Emitted(14, 71) Source(5, 24) + SourceIndex(0)
-5 >Emitted(14, 72) Source(5, 25) + SourceIndex(0)
-6 >Emitted(14, 78) Source(5, 25) + SourceIndex(0)
-7 >Emitted(14, 79) Source(5, 26) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #\u0078
-+5 > =
-+6 > 0
-+7 > ;
-+1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-+2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-+3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-+4 >Emitted(7, 21) Source(5, 21) + SourceIndex(0)
-+5 >Emitted(7, 24) Source(5, 24) + SourceIndex(0)
-+6 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-+7 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
++4 >Emitted(14, 76) Source(5, 24) + SourceIndex(0)
++5 >Emitted(14, 77) Source(5, 25) + SourceIndex(0)
++6 >Emitted(14, 83) Source(5, 25) + SourceIndex(0)
++7 >Emitted(14, 84) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1093,73 +1067,62 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(5, 26) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(5, 26) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_x, 42, "f");
-+>>> this.#x = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape1_\u0078, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#x =
+ 2 >
+ 3 > this
+ 4 > .#x =
-5 > 42
-6 >
-7 > ;
--1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
--2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
--3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
++5 > 42
++6 >
++7 > ;
+ 1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+ 2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+ 3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
-4 >Emitted(17, 71) Source(9, 19) + SourceIndex(0)
-5 >Emitted(17, 73) Source(9, 21) + SourceIndex(0)
-6 >Emitted(17, 79) Source(9, 21) + SourceIndex(0)
-7 >Emitted(17, 80) Source(9, 22) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x
-+5 > =
-+6 > 42
-+7 > ;
-+1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-+2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-+3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-+4 >Emitted(10, 16) Source(9, 16) + SourceIndex(0)
-+5 >Emitted(10, 19) Source(9, 19) + SourceIndex(0)
-+6 >Emitted(10, 21) Source(9, 21) + SourceIndex(0)
-+7 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
++4 >Emitted(17, 76) Source(9, 19) + SourceIndex(0)
++5 >Emitted(17, 78) Source(9, 21) + SourceIndex(0)
++6 >Emitted(17, 84) Source(9, 21) + SourceIndex(0)
++7 >Emitted(17, 85) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1168,19 +1131,14 @@
- >
-2 > }
-1 >Emitted(18, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(11, 5) Source(9, 22) + SourceIndex(0)
-+2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(18, 5) Source(9, 22) + SourceIndex(0)
+ 2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
- 1 >^
- 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
- 1 >
- >}
--1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+@@= skipped -73, +76 lines =@@
+ 1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithEscape1 = PrivateIdentifierWithEscape1;
-1->
@@ -1201,121 +1159,96 @@
-2 >Emitted(20, 69) Source(11, 2) + SourceIndex(0)
----
->>>_PrivateIdentifierWithEscape1_x = new WeakMap();
++>>>_PrivateIdentifierWithEscape1_\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithEscape2.js
mapUrl: PrivateIdentifierNameWithEscape2.js.map
-@@= skipped -155, +132 lines =@@
- sourceFile:PrivateIdentifierNameWithEscape2.ts
- -------------------------------------------------------------------
- >>>"use strict";
-->>>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;
-->>>};
+@@= skipped -35, +18 lines =@@
+ >>> 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 _PrivateIdentifierWithEscape2_xx;
++>>>var _PrivateIdentifierWithEscape2_x\u0078;
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithEscape2 = void 0;
>>>class PrivateIdentifierWithEscape2 {
1 >
-2 >^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-+2 >^^^^^^^^^^^^^^->
++2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-2 >export class
-3 > PrivateIdentifierWithEscape2
--1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
+ 1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
-2 >Emitted(11, 7) Source(1, 14) + SourceIndex(0)
-3 >Emitted(11, 35) Source(1, 42) + SourceIndex(0)
-+1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
-+---
-+>>> #x\u0078;
-+1->^^^^
-+2 > ^^^^^^^^
-+3 > ^
-+4 > ^^^^^^^->
-+1->export class PrivateIdentifierWithEscape2 {
-+ >
-+2 > #x\u0078
-+3 > : number;
-+1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(5, 13) Source(2, 13) + SourceIndex(0)
-+3 >Emitted(5, 14) Source(2, 22) + SourceIndex(0)
---
>>> constructor() {
-1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-1 > {
-- > #x\u0078: number;
+1->^^^^
+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^^->
-+1->
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++1->export class PrivateIdentifierWithEscape2 {
+ > #x\u0078: number;
>
>
-1 >Emitted(12, 5) Source(4, 5) + SourceIndex(0)
-----
++2 > constructor()
++1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithEscape2_xx.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithEscape2_x\u0078.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #x\u0078: number;
--1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #x\u0078: number;
+ 1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(13, 60) Source(2, 22) + SourceIndex(0)
-----
++2 >Emitted(13, 65) Source(2, 22) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+2 > constructor()
-+1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#x\u0078 = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#x\u0078 =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -47, +45 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#x\u0078 =
-5 > 0
-6 >
-7 > ;
--1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
--2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
--3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
++5 > 0
++6 >
++7 > ;
+ 1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+ 2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+ 3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
-4 >Emitted(14, 72) Source(5, 25) + SourceIndex(0)
-5 >Emitted(14, 73) Source(5, 26) + SourceIndex(0)
-6 >Emitted(14, 79) Source(5, 26) + SourceIndex(0)
-7 >Emitted(14, 80) Source(5, 27) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x\u0078
-+5 > =
-+6 > 0
-+7 > ;
-+1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-+2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-+3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-+4 >Emitted(7, 22) Source(5, 22) + SourceIndex(0)
-+5 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-+6 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
-+7 >Emitted(7, 27) Source(5, 27) + SourceIndex(0)
++4 >Emitted(14, 77) Source(5, 25) + SourceIndex(0)
++5 >Emitted(14, 78) Source(5, 26) + SourceIndex(0)
++6 >Emitted(14, 84) Source(5, 26) + SourceIndex(0)
++7 >Emitted(14, 85) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1325,73 +1258,62 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(5, 27) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(5, 27) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_xx, 42, "f");
-+>>> this.#xx = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithEscape2_x\u0078, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#xx =
+ 2 >
+ 3 > this
+ 4 > .#xx =
-5 > 42
-6 >
-7 > ;
--1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
--2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
--3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
++5 > 42
++6 >
++7 > ;
+ 1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+ 2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+ 3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
-4 >Emitted(17, 72) Source(9, 20) + SourceIndex(0)
-5 >Emitted(17, 74) Source(9, 22) + SourceIndex(0)
-6 >Emitted(17, 80) Source(9, 22) + SourceIndex(0)
-7 >Emitted(17, 81) Source(9, 23) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #xx
-+5 > =
-+6 > 42
-+7 > ;
-+1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-+2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-+3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-+4 >Emitted(10, 17) Source(9, 17) + SourceIndex(0)
-+5 >Emitted(10, 20) Source(9, 20) + SourceIndex(0)
-+6 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
-+7 >Emitted(10, 23) Source(9, 23) + SourceIndex(0)
++4 >Emitted(17, 77) Source(9, 20) + SourceIndex(0)
++5 >Emitted(17, 79) Source(9, 22) + SourceIndex(0)
++6 >Emitted(17, 85) Source(9, 22) + SourceIndex(0)
++7 >Emitted(17, 86) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1400,19 +1322,14 @@
- >
-2 > }
-1 >Emitted(18, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(11, 5) Source(9, 23) + SourceIndex(0)
-+2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(18, 5) Source(9, 23) + SourceIndex(0)
+ 2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
- 1 >^
- 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
- 1 >
- >}
--1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+@@= skipped -73, +76 lines =@@
+ 1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithEscape2 = PrivateIdentifierWithEscape2;
-1->
@@ -1433,121 +1350,96 @@
-2 >Emitted(20, 69) Source(11, 2) + SourceIndex(0)
----
->>>_PrivateIdentifierWithEscape2_xx = new WeakMap();
++>>>_PrivateIdentifierWithEscape2_x\u0078 = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithEscape2.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape1.js
mapUrl: PrivateIdentifierNameWithExtendedEscape1.js.map
-@@= skipped -155, +132 lines =@@
- sourceFile:PrivateIdentifierNameWithExtendedEscape1.ts
- -------------------------------------------------------------------
- >>>"use strict";
-->>>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;
-->>>};
+@@= skipped -35, +18 lines =@@
+ >>> 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 _PrivateIdentifierWithExtendedEscape1_x;
++>>>var _PrivateIdentifierWithExtendedEscape1_\u{78};
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithExtendedEscape1 = void 0;
>>>class PrivateIdentifierWithExtendedEscape1 {
1 >
-2 >^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-+2 >^^^^^^^^^^^^^->
++2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-2 >export class
-3 > PrivateIdentifierWithExtendedEscape1
--1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
+ 1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
-2 >Emitted(11, 7) Source(1, 14) + SourceIndex(0)
-3 >Emitted(11, 43) Source(1, 50) + SourceIndex(0)
-+1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
-+---
-+>>> #\u{78};
-+1->^^^^
-+2 > ^^^^^^^
-+3 > ^
-+4 > ^^^^^^^^->
-+1->export class PrivateIdentifierWithExtendedEscape1 {
-+ >
-+2 > #\u{78}
-+3 > : number;
-+1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(5, 12) Source(2, 12) + SourceIndex(0)
-+3 >Emitted(5, 13) Source(2, 21) + SourceIndex(0)
---
>>> constructor() {
-1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-1 > {
-- > #\u{78}: number;
+1->^^^^
+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^->
-+1->
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++1->export class PrivateIdentifierWithExtendedEscape1 {
+ > #\u{78}: number;
>
>
-1 >Emitted(12, 5) Source(4, 5) + SourceIndex(0)
-----
++2 > constructor()
++1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithExtendedEscape1_x.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithExtendedEscape1_\u{78}.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #\u{78}: number;
--1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #\u{78}: number;
+ 1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(13, 67) Source(2, 21) + SourceIndex(0)
-----
++2 >Emitted(13, 72) Source(2, 21) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+2 > constructor()
-+1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#\u{78} = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#\u{78} =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -47, +45 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#\u{78} =
-5 > 0
-6 >
-7 > ;
--1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
--2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
--3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
++5 > 0
++6 >
++7 > ;
+ 1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+ 2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+ 3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
-4 >Emitted(14, 79) Source(5, 24) + SourceIndex(0)
-5 >Emitted(14, 80) Source(5, 25) + SourceIndex(0)
-6 >Emitted(14, 86) Source(5, 25) + SourceIndex(0)
-7 >Emitted(14, 87) Source(5, 26) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #\u{78}
-+5 > =
-+6 > 0
-+7 > ;
-+1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-+2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-+3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-+4 >Emitted(7, 21) Source(5, 21) + SourceIndex(0)
-+5 >Emitted(7, 24) Source(5, 24) + SourceIndex(0)
-+6 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-+7 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
++4 >Emitted(14, 84) Source(5, 24) + SourceIndex(0)
++5 >Emitted(14, 85) Source(5, 25) + SourceIndex(0)
++6 >Emitted(14, 91) Source(5, 25) + SourceIndex(0)
++7 >Emitted(14, 92) Source(5, 26) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1557,73 +1449,62 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(5, 26) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(5, 26) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_x, 42, "f");
-+>>> this.#x = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape1_\u{78}, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#x =
+ 2 >
+ 3 > this
+ 4 > .#x =
-5 > 42
-6 >
-7 > ;
--1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
--2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
--3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
++5 > 42
++6 >
++7 > ;
+ 1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+ 2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+ 3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
-4 >Emitted(17, 79) Source(9, 19) + SourceIndex(0)
-5 >Emitted(17, 81) Source(9, 21) + SourceIndex(0)
-6 >Emitted(17, 87) Source(9, 21) + SourceIndex(0)
-7 >Emitted(17, 88) Source(9, 22) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x
-+5 > =
-+6 > 42
-+7 > ;
-+1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-+2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-+3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-+4 >Emitted(10, 16) Source(9, 16) + SourceIndex(0)
-+5 >Emitted(10, 19) Source(9, 19) + SourceIndex(0)
-+6 >Emitted(10, 21) Source(9, 21) + SourceIndex(0)
-+7 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
++4 >Emitted(17, 84) Source(9, 19) + SourceIndex(0)
++5 >Emitted(17, 86) Source(9, 21) + SourceIndex(0)
++6 >Emitted(17, 92) Source(9, 21) + SourceIndex(0)
++7 >Emitted(17, 93) Source(9, 22) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1632,19 +1513,14 @@
- >
-2 > }
-1 >Emitted(18, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(11, 5) Source(9, 22) + SourceIndex(0)
-+2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(18, 5) Source(9, 22) + SourceIndex(0)
+ 2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
- 1 >^
- 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
- 1 >
- >}
--1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+@@= skipped -73, +76 lines =@@
+ 1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithExtendedEscape1 = PrivateIdentifierWithExtendedEscape1;
-1->
@@ -1665,121 +1541,96 @@
-2 >Emitted(20, 85) Source(11, 2) + SourceIndex(0)
----
->>>_PrivateIdentifierWithExtendedEscape1_x = new WeakMap();
++>>>_PrivateIdentifierWithExtendedEscape1_\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape1.js.map===================================================================
JsFile: PrivateIdentifierNameWithExtendedEscape2.js
mapUrl: PrivateIdentifierNameWithExtendedEscape2.js.map
-@@= skipped -155, +132 lines =@@
- sourceFile:PrivateIdentifierNameWithExtendedEscape2.ts
- -------------------------------------------------------------------
- >>>"use strict";
-->>>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;
-->>>};
+@@= skipped -35, +18 lines =@@
+ >>> 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 _PrivateIdentifierWithExtendedEscape2_xx;
++>>>var _PrivateIdentifierWithExtendedEscape2_x\u{78};
>>>Object.defineProperty(exports, "__esModule", { value: true });
>>>exports.PrivateIdentifierWithExtendedEscape2 = void 0;
>>>class PrivateIdentifierWithExtendedEscape2 {
1 >
-2 >^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-+2 >^^^^^^^^^^^^^^->
++2 >^^^^^^^^^^^^^^^^^^^^->
1 >
-2 >export class
-3 > PrivateIdentifierWithExtendedEscape2
--1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
+ 1 >Emitted(11, 1) Source(1, 1) + SourceIndex(0)
-2 >Emitted(11, 7) Source(1, 14) + SourceIndex(0)
-3 >Emitted(11, 43) Source(1, 50) + SourceIndex(0)
-+1 >Emitted(4, 1) Source(1, 1) + SourceIndex(0)
-+---
-+>>> #x\u{78};
-+1->^^^^
-+2 > ^^^^^^^^
-+3 > ^
-+4 > ^^^^^^^->
-+1->export class PrivateIdentifierWithExtendedEscape2 {
-+ >
-+2 > #x\u{78}
-+3 > : number;
-+1->Emitted(5, 5) Source(2, 5) + SourceIndex(0)
-+2 >Emitted(5, 13) Source(2, 13) + SourceIndex(0)
-+3 >Emitted(5, 14) Source(2, 22) + SourceIndex(0)
---
>>> constructor() {
-1 >^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
-1 > {
-- > #x\u{78}: number;
+1->^^^^
+2 > ^^^^^^^^^^^^^^
-+3 > ^^^^^^^^^->
-+1->
++3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
++1->export class PrivateIdentifierWithExtendedEscape2 {
+ > #x\u{78}: number;
>
>
-1 >Emitted(12, 5) Source(4, 5) + SourceIndex(0)
-----
++2 > constructor()
++1->Emitted(12, 5) Source(4, 5) + SourceIndex(0)
++2 >Emitted(12, 19) Source(4, 19) + SourceIndex(0)
+ ---
->>> _PrivateIdentifierWithExtendedEscape2_xx.set(this, void 0);
--1->^^^^^^^^
++>>> _PrivateIdentifierWithExtendedEscape2_x\u{78}.set(this, void 0);
+ 1->^^^^^^^^
-2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^->
--1->
--2 > #x\u{78}: number;
--1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
++2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++3 > ^^^^^^^^^^^^^^^^^^^^^->
+ 1->
+ 2 > #x\u{78}: number;
+ 1->Emitted(13, 9) Source(2, 5) + SourceIndex(0)
-2 >Emitted(13, 68) Source(2, 22) + SourceIndex(0)
-----
++2 >Emitted(13, 73) Source(2, 22) + SourceIndex(0)
+ ---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 0, "f");
--1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 0, "f");
+ 1->^^^^^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^
-6 > ^^^^^^
-7 > ^
--1->
-- >
-- > constructor() {
-+2 > constructor()
-+1->Emitted(6, 5) Source(4, 5) + SourceIndex(0)
-+2 >Emitted(6, 19) Source(4, 19) + SourceIndex(0)
-+---
-+>>> this.#x\u{78} = 0;
-+1->^^^^^^^^
-+2 > ^^^^
-+3 > ^
-+4 > ^^^^^^^^
-+5 > ^^^
-+6 > ^
-+7 > ^
-+1->{
- >
--2 >
--3 > this
--4 > .#x\u{78} =
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^
++6 > ^^^^^^
++7 > ^
+ 1->
+ >
+ > constructor() {
+@@= skipped -47, +45 lines =@@
+ 2 >
+ 3 > this
+ 4 > .#x\u{78} =
-5 > 0
-6 >
-7 > ;
--1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
--2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
--3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
++5 > 0
++6 >
++7 > ;
+ 1->Emitted(14, 9) Source(5, 9) + SourceIndex(0)
+ 2 >Emitted(14, 32) Source(5, 9) + SourceIndex(0)
+ 3 >Emitted(14, 36) Source(5, 13) + SourceIndex(0)
-4 >Emitted(14, 80) Source(5, 25) + SourceIndex(0)
-5 >Emitted(14, 81) Source(5, 26) + SourceIndex(0)
-6 >Emitted(14, 87) Source(5, 26) + SourceIndex(0)
-7 >Emitted(14, 88) Source(5, 27) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #x\u{78}
-+5 > =
-+6 > 0
-+7 > ;
-+1->Emitted(7, 9) Source(5, 9) + SourceIndex(0)
-+2 >Emitted(7, 13) Source(5, 13) + SourceIndex(0)
-+3 >Emitted(7, 14) Source(5, 14) + SourceIndex(0)
-+4 >Emitted(7, 22) Source(5, 22) + SourceIndex(0)
-+5 >Emitted(7, 25) Source(5, 25) + SourceIndex(0)
-+6 >Emitted(7, 26) Source(5, 26) + SourceIndex(0)
-+7 >Emitted(7, 27) Source(5, 27) + SourceIndex(0)
++4 >Emitted(14, 85) Source(5, 25) + SourceIndex(0)
++5 >Emitted(14, 86) Source(5, 26) + SourceIndex(0)
++6 >Emitted(14, 92) Source(5, 26) + SourceIndex(0)
++7 >Emitted(14, 93) Source(5, 27) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1789,73 +1640,62 @@
- >
-2 > }
-1 >Emitted(15, 5) Source(6, 5) + SourceIndex(0)
--2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(8, 5) Source(5, 27) + SourceIndex(0)
-+2 >Emitted(8, 6) Source(6, 6) + SourceIndex(0)
++1 >Emitted(15, 5) Source(5, 27) + SourceIndex(0)
+ 2 >Emitted(15, 6) Source(6, 6) + SourceIndex(0)
---
>>> doThing() {
1->^^^^
2 > ^^^^^^^
-3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
+3 > ^^^
-+4 > ^^^^^^^^^->
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
1->
>
>
2 > doThing
--1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
--2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
+3 > ()
-+1->Emitted(9, 5) Source(8, 5) + SourceIndex(0)
-+2 >Emitted(9, 12) Source(8, 12) + SourceIndex(0)
-+3 >Emitted(9, 15) Source(8, 15) + SourceIndex(0)
+ 1->Emitted(16, 5) Source(8, 5) + SourceIndex(0)
+ 2 >Emitted(16, 12) Source(8, 12) + SourceIndex(0)
++3 >Emitted(16, 15) Source(8, 15) + SourceIndex(0)
---
->>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_xx, 42, "f");
-+>>> this.#xx = 42;
++>>> __classPrivateFieldSet(this, _PrivateIdentifierWithExtendedEscape2_x\u{78}, 42, "f");
1->^^^^^^^^
--2 > ^^^^^^^^^^^^^^^^^^^^^^^
--3 > ^^^^
+ 2 > ^^^^^^^^^^^^^^^^^^^^^^^
+ 3 > ^^^^
-4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-5 > ^^
-6 > ^^^^^^
-7 > ^
-1->() {
-+2 > ^^^^
-+3 > ^
-+4 > ^^^
-+5 > ^^^
-+6 > ^^
-+7 > ^
++4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
++5 > ^^
++6 > ^^^^^^
++7 > ^
+1->{
>
--2 >
--3 > this
--4 > .#xx =
+ 2 >
+ 3 > this
+ 4 > .#xx =
-5 > 42
-6 >
-7 > ;
--1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
--2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
--3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
++5 > 42
++6 >
++7 > ;
+ 1->Emitted(17, 9) Source(9, 9) + SourceIndex(0)
+ 2 >Emitted(17, 32) Source(9, 9) + SourceIndex(0)
+ 3 >Emitted(17, 36) Source(9, 13) + SourceIndex(0)
-4 >Emitted(17, 80) Source(9, 20) + SourceIndex(0)
-5 >Emitted(17, 82) Source(9, 22) + SourceIndex(0)
-6 >Emitted(17, 88) Source(9, 22) + SourceIndex(0)
-7 >Emitted(17, 89) Source(9, 23) + SourceIndex(0)
-+2 > this
-+3 > .
-+4 > #xx
-+5 > =
-+6 > 42
-+7 > ;
-+1->Emitted(10, 9) Source(9, 9) + SourceIndex(0)
-+2 >Emitted(10, 13) Source(9, 13) + SourceIndex(0)
-+3 >Emitted(10, 14) Source(9, 14) + SourceIndex(0)
-+4 >Emitted(10, 17) Source(9, 17) + SourceIndex(0)
-+5 >Emitted(10, 20) Source(9, 20) + SourceIndex(0)
-+6 >Emitted(10, 22) Source(9, 22) + SourceIndex(0)
-+7 >Emitted(10, 23) Source(9, 23) + SourceIndex(0)
++4 >Emitted(17, 85) Source(9, 20) + SourceIndex(0)
++5 >Emitted(17, 87) Source(9, 22) + SourceIndex(0)
++6 >Emitted(17, 93) Source(9, 22) + SourceIndex(0)
++7 >Emitted(17, 94) Source(9, 23) + SourceIndex(0)
---
>>> }
1 >^^^^
@@ -1864,19 +1704,14 @@
- >
-2 > }
-1 >Emitted(18, 5) Source(10, 5) + SourceIndex(0)
--2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
+2 >
+ > }
-+1 >Emitted(11, 5) Source(9, 23) + SourceIndex(0)
-+2 >Emitted(11, 6) Source(10, 6) + SourceIndex(0)
++1 >Emitted(18, 5) Source(9, 23) + SourceIndex(0)
+ 2 >Emitted(18, 6) Source(10, 6) + SourceIndex(0)
---
>>>}
- 1 >^
- 2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
- 1 >
- >}
--1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
-+1 >Emitted(12, 2) Source(11, 2) + SourceIndex(0)
+@@= skipped -73, +76 lines =@@
+ 1 >Emitted(19, 2) Source(11, 2) + SourceIndex(0)
---
>>>exports.PrivateIdentifierWithExtendedEscape2 = PrivateIdentifierWithExtendedEscape2;
-1->
@@ -1897,4 +1732,5 @@
-2 >Emitted(20, 85) Source(11, 2) + SourceIndex(0)
----
->>>_PrivateIdentifierWithExtendedEscape2_xx = new WeakMap();
++>>>_PrivateIdentifierWithExtendedEscape2_x\u{78} = new WeakMap();
>>>//# sourceMappingURL=PrivateIdentifierNameWithExtendedEscape2.js.map
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js b/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js
index ebee5f8e5a..8b88c69ad9 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js
@@ -16,14 +16,27 @@ class C {
//// [classStaticBlock11.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _C_x;
let getX;
class C {
- #x = 1;
constructor(x) {
- this.#x = x;
+ _C_x.set(this, 1);
+ __classPrivateFieldSet(this, _C_x, x, "f");
}
static {
// getX has privileged access to #x
- getX = (obj) => obj.#x;
+ getX = (obj) => __classPrivateFieldGet(obj, _C_x, "f");
}
}
+_C_x = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js.diff
index 2620421c8a..ae4dc86506 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock11(target=es2015).js.diff
@@ -1,35 +1,15 @@
--- old.classStaticBlock11(target=es2015).js
+++ new.classStaticBlock11(target=es2015).js
-@@= skipped -15, +15 lines =@@
-
-
- //// [classStaticBlock11.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _C_x;
- let getX;
- class C {
-+ #x = 1;
- constructor(x) {
-- _C_x.set(this, 1);
-- __classPrivateFieldSet(this, _C_x, x, "f");
-+ this.#x = x;
-+ }
+@@= skipped -33, +33 lines =@@
+ _C_x.set(this, 1);
+ __classPrivateFieldSet(this, _C_x, x, "f");
+ }
+ static {
+ // getX has privileged access to #x
-+ getX = (obj) => obj.#x;
- }
++ getX = (obj) => __classPrivateFieldGet(obj, _C_x, "f");
++ }
}
--_C_x = new WeakMap();
+ _C_x = new WeakMap();
-(() => {
- // getX has privileged access to #x
- getX = (obj) => __classPrivateFieldGet(obj, _C_x, "f");
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js b/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js
index c5919082a4..5b1de0ef2f 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js
@@ -27,24 +27,40 @@ class D {
}
//// [classStaticBlock16.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _C_x, _D_y;
let getX;
class C {
- #x = 1;
constructor(x) {
- this.#x = x;
+ _C_x.set(this, 1);
+ __classPrivateFieldSet(this, _C_x, x, "f");
}
static {
// getX has privileged access to #x
- getX = (obj) => obj.#x;
+ getX = (obj) => __classPrivateFieldGet(obj, _C_x, "f");
getY = (obj) => obj.#y;
}
}
+_C_x = new WeakMap();
let getY;
class D {
- #y = 1;
+ constructor() {
+ _D_y.set(this, 1);
+ }
static {
// getY has privileged access to y
getX = (obj) => obj.#x;
- getY = (obj) => obj.#y;
+ getY = (obj) => __classPrivateFieldGet(obj, _D_y, "f");
}
}
+_D_y = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js.diff b/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js.diff
index 66aeb1d46f..a445950542 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock16.js.diff
@@ -1,36 +1,16 @@
--- old.classStaticBlock16.js
+++ new.classStaticBlock16.js
-@@= skipped -26, +26 lines =@@
- }
-
- //// [classStaticBlock16.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _C_x, _D_y;
- let getX;
- class C {
-+ #x = 1;
- constructor(x) {
-- _C_x.set(this, 1);
-- __classPrivateFieldSet(this, _C_x, x, "f");
-+ this.#x = x;
-+ }
+@@= skipped -44, +44 lines =@@
+ _C_x.set(this, 1);
+ __classPrivateFieldSet(this, _C_x, x, "f");
+ }
+ static {
+ // getX has privileged access to #x
-+ getX = (obj) => obj.#x;
++ getX = (obj) => __classPrivateFieldGet(obj, _C_x, "f");
+ getY = (obj) => obj.#y;
- }
++ }
}
--_C_x = new WeakMap();
+ _C_x = new WeakMap();
-(() => {
- // getX has privileged access to #x
- getX = (obj) => __classPrivateFieldGet(obj, _C_x, "f");
@@ -38,16 +18,16 @@
-})();
let getY;
class D {
-- constructor() {
-- _D_y.set(this, 1);
-+ #y = 1;
+ constructor() {
+ _D_y.set(this, 1);
+ }
+ static {
+ // getY has privileged access to y
+ getX = (obj) => obj.#x;
-+ getY = (obj) => obj.#y;
- }
++ getY = (obj) => __classPrivateFieldGet(obj, _D_y, "f");
++ }
}
--_D_y = new WeakMap();
+ _D_y = new WeakMap();
-(() => {
- // getY has privileged access to y
- getX = (obj) => obj.;
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js b/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js
index 29b34b383b..13ae26f156 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js
@@ -34,22 +34,35 @@ const b = new B(a);
a.getX();
//// [classStaticBlock17.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_x;
let friendA;
class A {
- #x;
constructor(v) {
- this.#x = v;
+ _A_x.set(this, void 0);
+ __classPrivateFieldSet(this, _A_x, v, "f");
}
getX() {
- return this.#x;
+ return __classPrivateFieldGet(this, _A_x, "f");
}
static {
friendA = {
- getX(obj) { return obj.#x; },
- setX(obj, value) { obj.#x = value; }
+ getX(obj) { return __classPrivateFieldGet(obj, _A_x, "f"); },
+ setX(obj, value) { __classPrivateFieldSet(obj, _A_x, value, "f"); }
};
}
}
+_A_x = new WeakMap();
;
class B {
constructor(a) {
diff --git a/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js.diff b/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js.diff
index 0ec78aa46f..6d1f27867a 100644
--- a/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/classStaticBlock17.js.diff
@@ -1,41 +1,17 @@
--- old.classStaticBlock17.js
+++ new.classStaticBlock17.js
-@@= skipped -33, +33 lines =@@
- a.getX();
-
- //// [classStaticBlock17.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_x;
- let friendA;
- class A {
-+ #x;
- constructor(v) {
-- _A_x.set(this, void 0);
-- __classPrivateFieldSet(this, _A_x, v, "f");
-+ this.#x = v;
- }
+@@= skipped -54, +54 lines =@@
getX() {
-- return __classPrivateFieldGet(this, _A_x, "f");
-+ return this.#x;
-+ }
+ return __classPrivateFieldGet(this, _A_x, "f");
+ }
+ static {
+ friendA = {
-+ getX(obj) { return obj.#x; },
-+ setX(obj, value) { obj.#x = value; }
++ getX(obj) { return __classPrivateFieldGet(obj, _A_x, "f"); },
++ setX(obj, value) { __classPrivateFieldSet(obj, _A_x, value, "f"); }
+ };
- }
++ }
}
--_A_x = new WeakMap();
+ _A_x = new WeakMap();
-(() => {
- friendA = {
- getX(obj) { return __classPrivateFieldGet(obj, _A_x, "f"); },
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js
index 72e2fa6631..dbe21fa33b 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js
@@ -19,12 +19,28 @@ class C2 {
//// [decoratorOnClassMethod19.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _C1_x, _C2_x;
class C1 {
- #x;
- @decorator((x) => x.#x)
+ constructor() {
+ _C1_x.set(this, void 0);
+ }
+ @decorator((x) => __classPrivateFieldGet(x, _C1_x, "f"))
y() { }
}
+_C1_x = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48515
+// https://github.com/microsoft/TypeScript/issues/48515
+);
class C2 {
- #x;
+ constructor() {
+ _C2_x.set(this, void 0);
+ }
y(p) { }
}
+_C2_x = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48515
+// https://github.com/microsoft/TypeScript/issues/48515
+);
diff --git a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff
index 98c43eb2f2..7a154ef92d 100644
--- a/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/decoratorOnClassMethod19(target=es2015).js.diff
@@ -16,18 +16,14 @@
-var __param = (this && this.__param) || function (paramIndex, decorator) {
- return function (target, key) { decorator(target, key, paramIndex); }
-};
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _C1_x, _C2_x;
- class C1 {
-- constructor() {
-- _C1_x.set(this, void 0);
-- }
-+ #x;
-+ @decorator((x) => x.#x)
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+@@= skipped -22, +10 lines =@@
+ constructor() {
+ _C1_x.set(this, void 0);
+ }
++ @decorator((x) => __classPrivateFieldGet(x, _C1_x, "f"))
y() { }
}
-_C1_x = new WeakMap();
@@ -39,11 +35,13 @@
- __metadata("design:returntype", void 0)
- ], C1.prototype, "y", null);
-})();
++_C1_x = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48515
++// https://github.com/microsoft/TypeScript/issues/48515
++);
class C2 {
-- constructor() {
-- _C2_x.set(this, void 0);
-- }
-+ #x;
+ constructor() {
+ _C2_x.set(this, void 0);
+ }
y(p) { }
}
-_C2_x = new WeakMap();
@@ -54,4 +52,7 @@
- __metadata("design:paramtypes", [Object]),
- __metadata("design:returntype", void 0)
- ], C2.prototype, "y", null);
--})();
\ No newline at end of file
+-})();
++_C2_x = new WeakMap( // https://github.com/microsoft/TypeScript/issues/48515
++// https://github.com/microsoft/TypeScript/issues/48515
++);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js
index b369d880bb..2df5b7c673 100644
--- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js
@@ -9,7 +9,10 @@ class C {
//// [esDecorators-classDeclaration-fields-nonStaticPrivate.js]
+var _C_field1;
class C {
- @dec
- #field1 = 0;
+ constructor() {
+ _C_field1.set(this, 0);
+ }
}
+_C_field1 = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js.diff
index 1d7d5d06a9..0297869caf 100644
--- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-fields-nonStaticPrivate(target=es2015).js.diff
@@ -24,7 +24,10 @@
- })(),
- _a;
-})();
++var _C_field1;
+class C {
-+ @dec
-+ #field1 = 0;
-+}
\ No newline at end of file
++ constructor() {
++ _C_field1.set(this, 0);
++ }
++}
++_C_field1 = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js
index 094ad5b64a..e2ad4d4318 100644
--- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js
@@ -38,6 +38,7 @@ class C {
}
//// [esDecorators-classDeclaration-outerThisReference.js]
+var _C_a;
// `this` should point to the outer `this` in both cases.
@dec(this)
class A {
@@ -59,7 +60,10 @@ class B {
// private names.
@dec(this)
class C {
- #a = 1;
+ constructor() {
+ _C_a.set(this, 1);
+ }
@dec(this, (x) => x.#a)
b = 2;
}
+_C_a = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js.diff
index 7fed541e14..ae523a0a6e 100644
--- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2015).js.diff
@@ -1,8 +1,10 @@
--- old.esDecorators-classDeclaration-outerThisReference(target=es2015).js
+++ new.esDecorators-classDeclaration-outerThisReference(target=es2015).js
-@@= skipped -38, +38 lines =@@
+@@= skipped -37, +37 lines =@@
+ }
//// [esDecorators-classDeclaration-outerThisReference.js]
++var _C_a;
// `this` should point to the outer `this` in both cases.
-let A = (() => {
- let _outerThis = this;
@@ -112,7 +114,10 @@
-})();
+@dec(this)
+class C {
-+ #a = 1;
++ constructor() {
++ _C_a.set(this, 1);
++ }
+ @dec(this, (x) => x.#a)
+ b = 2;
-+}
\ No newline at end of file
++}
++_C_a = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js
index 094ad5b64a..e2ad4d4318 100644
--- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js
+++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js
@@ -38,6 +38,7 @@ class C {
}
//// [esDecorators-classDeclaration-outerThisReference.js]
+var _C_a;
// `this` should point to the outer `this` in both cases.
@dec(this)
class A {
@@ -59,7 +60,10 @@ class B {
// private names.
@dec(this)
class C {
- #a = 1;
+ constructor() {
+ _C_a.set(this, 1);
+ }
@dec(this, (x) => x.#a)
b = 2;
}
+_C_a = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js.diff b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js.diff
index e17be592cd..e312418f12 100644
--- a/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/esDecorators-classDeclaration-outerThisReference(target=es2021).js.diff
@@ -1,8 +1,10 @@
--- old.esDecorators-classDeclaration-outerThisReference(target=es2021).js
+++ new.esDecorators-classDeclaration-outerThisReference(target=es2021).js
-@@= skipped -38, +38 lines =@@
+@@= skipped -37, +37 lines =@@
+ }
//// [esDecorators-classDeclaration-outerThisReference.js]
++var _C_a;
// `this` should point to the outer `this` in both cases.
-let A = (() => {
- let _outerThis = this;
@@ -112,7 +114,10 @@
-})();
+@dec(this)
+class C {
-+ #a = 1;
++ constructor() {
++ _C_a.set(this, 1);
++ }
+ @dec(this, (x) => x.#a)
+ b = 2;
-+}
\ No newline at end of file
++}
++_C_a = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js b/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js
index 3002832314..78767055a5 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js
@@ -30,30 +30,40 @@ class A {
//// [privateNameAndAny.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_foo;
class A {
- #foo = true;
+ constructor() {
+ _A_foo.set(this, true);
+ }
static #baz = 10;
static #m() { }
method(thing) {
- thing.#foo; // OK
+ __classPrivateFieldGet(thing, _A_foo, "f"); // OK
thing.#m();
thing.#baz;
thing.#bar; // Error
- thing.#foo();
+ __classPrivateFieldGet(// Error
+ thing, _A_foo, "f")();
}
methodU(thing) {
- thing.#foo;
+ __classPrivateFieldGet(thing, _A_foo, "f");
thing.#m();
thing.#baz;
thing.#bar;
- thing.#foo();
+ __classPrivateFieldGet(thing, _A_foo, "f")();
}
methodN(thing) {
- thing.#foo;
+ __classPrivateFieldGet(thing, _A_foo, "f");
thing.#m();
thing.#baz;
thing.#bar;
- thing.#foo();
+ __classPrivateFieldGet(thing, _A_foo, "f")();
}
}
+_A_foo = new WeakMap();
;
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js.diff
index c059991d94..2d54e80dd5 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndAny.js.diff
@@ -5,56 +5,55 @@
//// [privateNameAndAny.js]
-"use strict";
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
-var _a, _A_foo, _A_baz, _A_m;
++var _A_foo;
class A {
-- constructor() {
-- _A_foo.set(this, true);
-- }
-+ #foo = true;
+ constructor() {
+ _A_foo.set(this, true);
+ }
+ static #baz = 10;
+ static #m() { }
method(thing) {
-- __classPrivateFieldGet(thing, _A_foo, "f"); // OK
+ __classPrivateFieldGet(thing, _A_foo, "f"); // OK
- __classPrivateFieldGet(thing, _a, "m", _A_m).call(thing);
- __classPrivateFieldGet(thing, _a, "f", _A_baz);
- thing.; // Error
- __classPrivateFieldGet(thing, _A_foo, "f").call(thing);
-+ thing.#foo; // OK
+ thing.#m();
+ thing.#baz;
+ thing.#bar; // Error
-+ thing.#foo();
++ __classPrivateFieldGet(// Error
++ thing, _A_foo, "f")();
}
methodU(thing) {
-- __classPrivateFieldGet(thing, _A_foo, "f");
+ __classPrivateFieldGet(thing, _A_foo, "f");
- __classPrivateFieldGet(thing, _a, "m", _A_m).call(thing);
- __classPrivateFieldGet(thing, _a, "f", _A_baz);
- thing.;
- __classPrivateFieldGet(thing, _A_foo, "f").call(thing);
-+ thing.#foo;
+ thing.#m();
+ thing.#baz;
+ thing.#bar;
-+ thing.#foo();
++ __classPrivateFieldGet(thing, _A_foo, "f")();
}
methodN(thing) {
-- __classPrivateFieldGet(thing, _A_foo, "f");
+ __classPrivateFieldGet(thing, _A_foo, "f");
- __classPrivateFieldGet(thing, _a, "m", _A_m).call(thing);
- __classPrivateFieldGet(thing, _a, "f", _A_baz);
- thing.;
- __classPrivateFieldGet(thing, _A_foo, "f").call(thing);
-+ thing.#foo;
+ thing.#m();
+ thing.#baz;
+ thing.#bar;
-+ thing.#foo();
++ __classPrivateFieldGet(thing, _A_foo, "f")();
}
}
-_a = A, _A_foo = new WeakMap(), _A_m = function _A_m() { };
-_A_baz = { value: 10 };
++_A_foo = new WeakMap();
;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js b/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js
index 4a4f743c5b..c3cf386bdd 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js
@@ -14,11 +14,13 @@ class A {
//// [privateNameAndIndexSignature.js]
+var _A_foo;
class A {
- #foo = 3;
["#bar"] = this["#bar"]; // Error (private identifiers should not prevent circularity checking for computeds)
constructor(message) {
+ _A_foo.set(this, 3);
this.#f = 3; // Error (index signatures do not implicitly declare private names)
this["#foo"] = 3; // Okay (type has index signature and "#foo" does not collide with private identifier #foo)
}
}
+_A_foo = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js.diff
index 205bf8adfc..5c7a4f8d42 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndIndexSignature.js.diff
@@ -5,16 +5,14 @@
//// [privateNameAndIndexSignature.js]
-"use strict";
--var _A_foo;
+ var _A_foo;
class A {
-+ #foo = 3;
+ ["#bar"] = this["#bar"]; // Error (private identifiers should not prevent circularity checking for computeds)
constructor(message) {
-- _A_foo.set(this, 3);
+ _A_foo.set(this, 3);
- this["#bar"] = this["#bar"]; // Error (private identifiers should not prevent circularity checking for computeds)
- this. = 3; // Error (index signatures do not implicitly declare private names)
+ this.#f = 3; // Error (index signatures do not implicitly declare private names)
this["#foo"] = 3; // Okay (type has index signature and "#foo" does not collide with private identifier #foo)
}
- }
--_A_foo = new WeakMap();
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js b/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js
index e41c5b451c..65ac1367fb 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js
@@ -19,6 +19,11 @@ class C {
}
//// [privateNameAndObjectRestSpread.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -30,17 +35,21 @@ var __rest = (this && this.__rest) || function (s, e) {
}
return t;
};
+var _C_prop;
class C {
- #prop = 1;
+ constructor() {
+ _C_prop.set(this, 1);
+ }
static #propStatic = 1;
method(other) {
const obj = Object.assign({}, other);
- obj.#prop;
+ __classPrivateFieldGet(obj, _C_prop, "f");
const rest = __rest(other, []);
- rest.#prop;
+ __classPrivateFieldGet(rest, _C_prop, "f");
const statics = Object.assign({}, C);
statics.#propStatic;
const sRest = __rest(C, []);
sRest.#propStatic;
}
}
+_C_prop = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js.diff
index d22ac614b7..80be754f80 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndObjectRestSpread.js.diff
@@ -5,36 +5,29 @@
//// [privateNameAndObjectRestSpread.js]
-"use strict";
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
- var __rest = (this && this.__rest) || function (s, e) {
- var t = {};
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
-@@= skipped -17, +11 lines =@@
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+@@= skipped -17, +16 lines =@@
}
return t;
};
-var _a, _C_prop, _C_propStatic;
++var _C_prop;
class C {
-- constructor() {
-- _C_prop.set(this, 1);
-- }
-+ #prop = 1;
+ constructor() {
+ _C_prop.set(this, 1);
+ }
+ static #propStatic = 1;
method(other) {
const obj = Object.assign({}, other);
-- __classPrivateFieldGet(obj, _C_prop, "f");
-+ obj.#prop;
+ __classPrivateFieldGet(obj, _C_prop, "f");
const rest = __rest(other, []);
-- __classPrivateFieldGet(rest, _C_prop, "f");
+ __classPrivateFieldGet(rest, _C_prop, "f");
- const statics = Object.assign({}, _a);
- __classPrivateFieldGet(statics, _a, "f", _C_propStatic);
- const sRest = __rest(_a, []);
- __classPrivateFieldGet(sRest, _a, "f", _C_propStatic);
-+ rest.#prop;
+ const statics = Object.assign({}, C);
+ statics.#propStatic;
+ const sRest = __rest(C, []);
@@ -42,4 +35,5 @@
}
}
-_a = C, _C_prop = new WeakMap();
--_C_propStatic = { value: 1 };
\ No newline at end of file
+-_C_propStatic = { value: 1 };
++_C_prop = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js b/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js
index 1ddf521504..73eb7f75ea 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js
@@ -10,8 +10,12 @@ class A {
//// [privateNameAndStaticInitializer.js]
+var _A_foo, _A_prop;
class A {
- #foo = 1;
+ constructor() {
+ _A_foo.set(this, 1);
+ _A_prop.set(this, 2);
+ }
static inst = new A();
- #prop = 2;
}
+_A_foo = new WeakMap(), _A_prop = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js.diff
index 657afa2067..e09987181a 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameAndStaticInitializer(target=es2015).js.diff
@@ -1,18 +1,10 @@
--- old.privateNameAndStaticInitializer(target=es2015).js
+++ new.privateNameAndStaticInitializer(target=es2015).js
-@@= skipped -9, +9 lines =@@
-
-
- //// [privateNameAndStaticInitializer.js]
--var _A_foo, _A_prop;
- class A {
-- constructor() {
-- _A_foo.set(this, 1);
-- _A_prop.set(this, 2);
-- }
-+ #foo = 1;
+@@= skipped -15, +15 lines =@@
+ _A_foo.set(this, 1);
+ _A_prop.set(this, 2);
+ }
+ static inst = new A();
-+ #prop = 2;
}
--_A_foo = new WeakMap(), _A_prop = new WeakMap();
+ _A_foo = new WeakMap(), _A_prop = new WeakMap();
-A.inst = new A();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js b/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js
index bec7139442..053ae98c22 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js
@@ -18,6 +18,13 @@ class C {
//// [privateNameBadAssignment.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 _C_bar;
exports.#nope = 1; // Error (outside class body)
function A() { }
A.prototype.#no = 2; // Error (outside class body)
@@ -25,9 +32,10 @@ class B {
}
B.#foo = 3; // Error (outside class body)
class C {
- #bar = 6;
constructor() {
- exports.#bar = 6; // Error
+ _C_bar.set(this, 6);
+ __classPrivateFieldSet(exports, _C_bar, 6, "f"); // Error
this.#foo = 3; // Error (undeclared)
}
}
+_C_bar = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js.diff
index 168d1b6882..37823ccc32 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameBadAssignment.js.diff
@@ -1,16 +1,9 @@
--- old.privateNameBadAssignment.js
+++ new.privateNameBadAssignment.js
-@@= skipped -17, +17 lines =@@
-
-
- //// [privateNameBadAssignment.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 _C_bar;
+@@= skipped -24, +24 lines =@@
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
+ };
+ var _C_bar;
-exports. = 1; // Error (outside class body)
+exports.#nope = 1; // Error (outside class body)
function A() { }
@@ -21,13 +14,11 @@
-B. = 3; // Error (outside class body)
+B.#foo = 3; // Error (outside class body)
class C {
-+ #bar = 6;
constructor() {
-- _C_bar.set(this, 6);
-- __classPrivateFieldSet(exports, _C_bar, 6, "f"); // Error
+ _C_bar.set(this, 6);
+ __classPrivateFieldSet(exports, _C_bar, 6, "f"); // Error
- this. = 3; // Error (undeclared)
-+ exports.#bar = 6; // Error
+ this.#foo = 3; // Error (undeclared)
}
}
--_C_bar = new WeakMap();
\ No newline at end of file
+ _C_bar = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js b/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js
index b979c2417b..394a5b7080 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js
@@ -11,13 +11,15 @@ class A extends B {
}
//// [privateNameBadSuper.js]
+var _A_x;
class B {
}
;
class A extends B {
- #x;
constructor() {
+ _A_x.set(this, void 0);
this;
super();
}
}
+_A_x = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js.diff
index 52397364ca..4d4dbd74bf 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameBadSuper.js.diff
@@ -1,19 +1,13 @@
--- old.privateNameBadSuper.js
+++ new.privateNameBadSuper.js
-@@= skipped -10, +10 lines =@@
- }
-
- //// [privateNameBadSuper.js]
--var _A_x;
- class B {
- }
+@@= skipped -16, +16 lines =@@
;
class A extends B {
-+ #x;
constructor() {
++ _A_x.set(this, void 0);
this;
super();
- _A_x.set(this, void 0);
}
}
--_A_x = new WeakMap();
\ No newline at end of file
+ _A_x = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js b/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js
index 1e65c5ab2a..dd462e6b54 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js
@@ -9,8 +9,17 @@ class A {
//// [privateNameCircularReference.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_foo, _A_bar;
class A {
- #foo = this.#bar;
- #bar = this.#foo;
+ constructor() {
+ _A_foo.set(this, __classPrivateFieldGet(this, _A_bar, "f"));
+ _A_bar.set(this, __classPrivateFieldGet(this, _A_foo, "f"));
+ }
["#baz"] = this["#baz"]; // Error (should *not* be private name error)
}
+_A_foo = new WeakMap(), _A_bar = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js.diff
index 5f6525e5a7..852260a163 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameCircularReference.js.diff
@@ -5,20 +5,15 @@
//// [privateNameCircularReference.js]
-"use strict";
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_foo, _A_bar;
- class A {
-- constructor() {
-- _A_foo.set(this, __classPrivateFieldGet(this, _A_bar, "f"));
-- _A_bar.set(this, __classPrivateFieldGet(this, _A_foo, "f"));
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+@@= skipped -11, +10 lines =@@
+ constructor() {
+ _A_foo.set(this, __classPrivateFieldGet(this, _A_bar, "f"));
+ _A_bar.set(this, __classPrivateFieldGet(this, _A_foo, "f"));
- this["#baz"] = this["#baz"]; // Error (should *not* be private name error)
-- }
-+ #foo = this.#bar;
-+ #bar = this.#foo;
+ }
+ ["#baz"] = this["#baz"]; // Error (should *not* be private name error)
}
--_A_foo = new WeakMap(), _A_bar = new WeakMap();
\ No newline at end of file
+ _A_foo = new WeakMap(), _A_bar = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName1(target=es2015).js b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName1(target=es2015).js
index fcde4defcb..171b623314 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName1(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName1(target=es2015).js
@@ -40,26 +40,39 @@ new A().test();
//// [privateNameComputedPropertyName1.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_a, _A_b, _A_c, _A_d, _A_e;
class A {
- #a = 'a';
- #b;
- #c = 'c';
- #d;
- #e = '';
constructor() {
- this.#b = 'b';
- this.#d = 'd';
+ _A_a.set(this, 'a');
+ _A_b.set(this, void 0);
+ _A_c.set(this, 'c');
+ _A_d.set(this, void 0);
+ _A_e.set(this, '');
+ __classPrivateFieldSet(this, _A_b, 'b', "f");
+ __classPrivateFieldSet(this, _A_d, 'd', "f");
}
test() {
const data = { a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' };
- const { [this.#a]: a, [this.#b]: b, [this.#c]: c, [this.#d]: d, [this.#e = 'e']: e, } = data;
+ const { [__classPrivateFieldGet(this, _A_a, "f")]: a, [__classPrivateFieldGet(this, _A_b, "f")]: b, [__classPrivateFieldGet(this, _A_c, "f")]: c, [__classPrivateFieldGet(this, _A_d, "f")]: d, [__classPrivateFieldSet(this, _A_e, 'e', "f")]: e, } = data;
console.log(a, b, c, d, e);
- const a1 = data[this.#a];
- const b1 = data[this.#b];
- const c1 = data[this.#c];
- const d1 = data[this.#d];
- const e1 = data[this.#e];
+ const a1 = data[__classPrivateFieldGet(this, _A_a, "f")];
+ const b1 = data[__classPrivateFieldGet(this, _A_b, "f")];
+ const c1 = data[__classPrivateFieldGet(this, _A_c, "f")];
+ const d1 = data[__classPrivateFieldGet(this, _A_d, "f")];
+ const e1 = data[__classPrivateFieldGet(this, _A_e, "f")];
console.log(a1, b1, c1, d1);
}
}
+_A_a = new WeakMap(), _A_b = new WeakMap(), _A_c = new WeakMap(), _A_d = new WeakMap(), _A_e = new WeakMap();
new A().test();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName1(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName1(target=es2015).js.diff
deleted file mode 100644
index 98b7de58b9..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName1(target=es2015).js.diff
+++ /dev/null
@@ -1,55 +0,0 @@
---- old.privateNameComputedPropertyName1(target=es2015).js
-+++ new.privateNameComputedPropertyName1(target=es2015).js
-@@= skipped -39, +39 lines =@@
-
-
- //// [privateNameComputedPropertyName1.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_a, _A_b, _A_c, _A_d, _A_e;
- class A {
-+ #a = 'a';
-+ #b;
-+ #c = 'c';
-+ #d;
-+ #e = '';
- constructor() {
-- _A_a.set(this, 'a');
-- _A_b.set(this, void 0);
-- _A_c.set(this, 'c');
-- _A_d.set(this, void 0);
-- _A_e.set(this, '');
-- __classPrivateFieldSet(this, _A_b, 'b', "f");
-- __classPrivateFieldSet(this, _A_d, 'd', "f");
-+ this.#b = 'b';
-+ this.#d = 'd';
- }
- test() {
- const data = { a: 'a', b: 'b', c: 'c', d: 'd', e: 'e' };
-- const { [__classPrivateFieldGet(this, _A_a, "f")]: a, [__classPrivateFieldGet(this, _A_b, "f")]: b, [__classPrivateFieldGet(this, _A_c, "f")]: c, [__classPrivateFieldGet(this, _A_d, "f")]: d, [__classPrivateFieldSet(this, _A_e, 'e', "f")]: e, } = data;
-+ const { [this.#a]: a, [this.#b]: b, [this.#c]: c, [this.#d]: d, [this.#e = 'e']: e, } = data;
- console.log(a, b, c, d, e);
-- const a1 = data[__classPrivateFieldGet(this, _A_a, "f")];
-- const b1 = data[__classPrivateFieldGet(this, _A_b, "f")];
-- const c1 = data[__classPrivateFieldGet(this, _A_c, "f")];
-- const d1 = data[__classPrivateFieldGet(this, _A_d, "f")];
-- const e1 = data[__classPrivateFieldGet(this, _A_e, "f")];
-+ const a1 = data[this.#a];
-+ const b1 = data[this.#b];
-+ const c1 = data[this.#c];
-+ const d1 = data[this.#d];
-+ const e1 = data[this.#e];
- console.log(a1, b1, c1, d1);
- }
- }
--_A_a = new WeakMap(), _A_b = new WeakMap(), _A_c = new WeakMap(), _A_d = new WeakMap(), _A_e = new WeakMap();
- new A().test();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js
index da8b47bea9..2d6865c665 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js
@@ -12,9 +12,18 @@ console.log(getX(new A));
//// [privateNameComputedPropertyName2.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_x;
let getX;
class A {
- #x = 100;
- [(getX = (a) => a.#x, "_")]() { }
+ constructor() {
+ _A_x.set(this, 100);
+ }
+ [(getX = (a) => __classPrivateFieldGet(a, _A_x, "f"), "_")]() { }
}
+_A_x = new WeakMap();
console.log(getX(new A));
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js.diff
index 3de853d84e..1f13d480cc 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName2(target=es2015).js.diff
@@ -1,22 +1,11 @@
--- old.privateNameComputedPropertyName2(target=es2015).js
+++ new.privateNameComputedPropertyName2(target=es2015).js
-@@= skipped -11, +11 lines =@@
-
-
- //// [privateNameComputedPropertyName2.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_x;
- let getX;
- class A {
-- constructor() {
-- _A_x.set(this, 100);
-- }
+@@= skipped -22, +22 lines =@@
+ constructor() {
+ _A_x.set(this, 100);
+ }
- [(_A_x = new WeakMap(), getX = (a) => __classPrivateFieldGet(a, _A_x, "f"), "_")]() { }
-+ #x = 100;
-+ [(getX = (a) => a.#x, "_")]() { }
++ [(getX = (a) => __classPrivateFieldGet(a, _A_x, "f"), "_")]() { }
}
++_A_x = new WeakMap();
console.log(getX(new A));
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js
index d911eaa76e..a6ada379e5 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js
@@ -27,20 +27,37 @@ console.log(new Foo("NAME").getValue(100));
//// [privateNameComputedPropertyName3.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Foo_name;
class Foo {
- #name;
constructor(name) {
- this.#name = name;
+ _Foo_name.set(this, void 0);
+ __classPrivateFieldSet(this, _Foo_name, name, "f");
}
getValue(x) {
+ var _Bar_y;
const obj = this;
class Bar {
- #y = 100;
+ constructor() {
+ _Bar_y.set(this, 100);
+ }
[obj.#name]() {
- return x + this.#y;
+ return x + __classPrivateFieldGet(this, _Bar_y, "f");
}
}
- return new Bar()[obj.#name]();
+ _Bar_y = new WeakMap();
+ return new Bar()[__classPrivateFieldGet(obj, _Foo_name, "f")]();
}
}
+_Foo_name = new WeakMap();
console.log(new Foo("NAME").getValue(100));
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js.diff
index 7a05f9ce20..94a2849f64 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameComputedPropertyName3(target=es2015).js.diff
@@ -1,45 +1,15 @@
--- old.privateNameComputedPropertyName3(target=es2015).js
+++ new.privateNameComputedPropertyName3(target=es2015).js
-@@= skipped -26, +26 lines =@@
-
-
- //// [privateNameComputedPropertyName3.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _Foo_name;
- class Foo {
-+ #name;
- constructor(name) {
-- _Foo_name.set(this, void 0);
-- __classPrivateFieldSet(this, _Foo_name, name, "f");
-+ this.#name = name;
- }
- getValue(x) {
-- var _Bar_y;
- const obj = this;
- class Bar {
-- constructor() {
-- _Bar_y.set(this, 100);
-- }
+@@= skipped -50, +50 lines =@@
+ constructor() {
+ _Bar_y.set(this, 100);
+ }
- [(_Bar_y = new WeakMap(), __classPrivateFieldGet(obj, _Foo_name, "f"))]() {
-- return x + __classPrivateFieldGet(this, _Bar_y, "f");
-+ #y = 100;
+ [obj.#name]() {
-+ return x + this.#y;
+ return x + __classPrivateFieldGet(this, _Bar_y, "f");
}
}
-- return new Bar()[__classPrivateFieldGet(obj, _Foo_name, "f")]();
-+ return new Bar()[obj.#name]();
++ _Bar_y = new WeakMap();
+ return new Bar()[__classPrivateFieldGet(obj, _Foo_name, "f")]();
}
- }
--_Foo_name = new WeakMap();
- console.log(new Foo("NAME").getValue(100));
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameConstructorSignature.js b/testdata/baselines/reference/submodule/conformance/privateNameConstructorSignature.js
index 05aa3763bb..c6210e97b1 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameConstructorSignature.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameConstructorSignature.js
@@ -20,12 +20,22 @@ interface C {
//// [privateNameConstructorSignature.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 _C_x;
class C {
- #x;
+ constructor() {
+ _C_x.set(this, void 0);
+ }
static test() {
- new C().#x = 10;
+ __classPrivateFieldSet(new C(), _C_x, 10, "f");
const y = new C();
const z = new y();
z.x = 123;
}
}
+_C_x = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameConstructorSignature.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameConstructorSignature.js.diff
deleted file mode 100644
index d325ca027d..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNameConstructorSignature.js.diff
+++ /dev/null
@@ -1,27 +0,0 @@
---- old.privateNameConstructorSignature.js
-+++ new.privateNameConstructorSignature.js
-@@= skipped -19, +19 lines =@@
-
-
- //// [privateNameConstructorSignature.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 _C_x;
- class C {
-- constructor() {
-- _C_x.set(this, void 0);
-- }
-+ #x;
- static test() {
-- __classPrivateFieldSet(new C(), _C_x, 10, "f");
-+ new C().#x = 10;
- const y = new C();
- const z = new y();
- z.x = 123;
- }
- }
--_C_x = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js b/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js
index 5d3102b25e..22085ab5e3 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js
@@ -13,14 +13,18 @@ class A {
//// [privateNameDeclaration.js]
+var _A_foo, _A_bar;
class A {
- #foo;
- #bar = 6;
+ constructor() {
+ _A_foo.set(this, void 0);
+ _A_bar.set(this, 6);
+ }
baz;
qux = 6;
quux() {
}
}
+_A_foo = new WeakMap(), _A_bar = new WeakMap();
//// [privateNameDeclaration.d.ts]
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js.diff
index 9ca19ec2eb..7188ab6726 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameDeclaration.js.diff
@@ -1,24 +1,13 @@
--- old.privateNameDeclaration.js
+++ new.privateNameDeclaration.js
-@@= skipped -12, +12 lines =@@
-
-
- //// [privateNameDeclaration.js]
--var _A_foo, _A_bar;
- class A {
-- constructor() {
-- _A_foo.set(this, void 0);
-- _A_bar.set(this, 6);
+@@= skipped -17, +17 lines =@@
+ constructor() {
+ _A_foo.set(this, void 0);
+ _A_bar.set(this, 6);
- this.qux = 6;
-- }
-+ #foo;
-+ #bar = 6;
+ }
+ baz;
+ qux = 6;
quux() {
}
- }
--_A_foo = new WeakMap(), _A_bar = new WeakMap();
-
-
- //// [privateNameDeclaration.d.ts]
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameDeclarationMerging.js b/testdata/baselines/reference/submodule/conformance/privateNameDeclarationMerging.js
index 39c3cf6c0c..f3a55fb886 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameDeclarationMerging.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameDeclarationMerging.js
@@ -18,15 +18,24 @@ interface C {
//// [privateNameDeclarationMerging.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _C_x;
class D {
}
;
class C {
- #x;
+ constructor() {
+ _C_x.set(this, void 0);
+ }
foo() {
const c = new C();
- c.#x; // OK
+ __classPrivateFieldGet(c, _C_x, "f"); // OK
const d = new C();
- d.#x; // Error
+ __classPrivateFieldGet(d, _C_x, "f"); // Error
}
}
+_C_x = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameDeclarationMerging.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameDeclarationMerging.js.diff
deleted file mode 100644
index 8f32f354a8..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNameDeclarationMerging.js.diff
+++ /dev/null
@@ -1,30 +0,0 @@
---- old.privateNameDeclarationMerging.js
-+++ new.privateNameDeclarationMerging.js
-@@= skipped -17, +17 lines =@@
-
-
- //// [privateNameDeclarationMerging.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _C_x;
- class D {
- }
- ;
- class C {
-- constructor() {
-- _C_x.set(this, void 0);
-- }
-+ #x;
- foo() {
- const c = new C();
-- __classPrivateFieldGet(c, _C_x, "f"); // OK
-+ c.#x; // OK
- const d = new C();
-- __classPrivateFieldGet(d, _C_x, "f"); // Error
-+ d.#x; // Error
- }
- }
--_C_x = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js b/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js
index d760e7bc86..3c51fbf673 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js
@@ -407,53 +407,84 @@ function StaticSetter() {
//// [privateNameDuplicateField.js]
function Field() {
+ var _A_Field_Field_foo, _A_Field_Field_foo_1, _A_Field_Method_foo, _A_Field_Getter_foo, _A_Field_Setter_foo, _A_Field_StaticField_foo, _A_Field_StaticMethod_foo, _A_Field_StaticGetter_foo, _A_Field_StaticSetter_foo;
// Error
class A_Field_Field {
+ constructor() {
+ _A_Field_Field_foo_1.set(this, "foo");
+ _A_Field_Field_foo_1.set(this, "foo");
+ }
#foo = "foo";
#foo = "foo";
}
+ _A_Field_Field_foo = new WeakMap(), _A_Field_Field_foo_1 = new WeakMap();
// Error
class A_Field_Method {
- #foo = "foo";
+ constructor() {
+ _A_Field_Method_foo.set(this, "foo");
+ }
#foo() { }
}
+ _A_Field_Method_foo = new WeakMap();
// Error
class A_Field_Getter {
- #foo = "foo";
+ constructor() {
+ _A_Field_Getter_foo.set(this, "foo");
+ }
get #foo() { return ""; }
}
+ _A_Field_Getter_foo = new WeakMap();
// Error
class A_Field_Setter {
- #foo = "foo";
+ constructor() {
+ _A_Field_Setter_foo.set(this, "foo");
+ }
set #foo(value) { }
}
+ _A_Field_Setter_foo = new WeakMap();
// Error
class A_Field_StaticField {
- #foo = "foo";
+ constructor() {
+ _A_Field_StaticField_foo.set(this, "foo");
+ }
static #foo = "foo";
}
+ _A_Field_StaticField_foo = new WeakMap();
// Error
class A_Field_StaticMethod {
- #foo = "foo";
+ constructor() {
+ _A_Field_StaticMethod_foo.set(this, "foo");
+ }
static #foo() { }
}
+ _A_Field_StaticMethod_foo = new WeakMap();
// Error
class A_Field_StaticGetter {
- #foo = "foo";
+ constructor() {
+ _A_Field_StaticGetter_foo.set(this, "foo");
+ }
static get #foo() { return ""; }
}
+ _A_Field_StaticGetter_foo = new WeakMap();
// Error
class A_Field_StaticSetter {
- #foo = "foo";
+ constructor() {
+ _A_Field_StaticSetter_foo.set(this, "foo");
+ }
static set #foo(value) { }
}
+ _A_Field_StaticSetter_foo = new WeakMap();
}
function Method() {
+ var _A_Method_Field_foo;
// Error
class A_Method_Field {
+ constructor() {
+ _A_Method_Field_foo.set(this, "foo");
+ }
#foo() { }
- #foo = "foo";
}
+ _A_Method_Field_foo = new WeakMap();
// Error
class A_Method_Method {
#foo() { }
@@ -491,11 +522,15 @@ function Method() {
}
}
function Getter() {
+ var _A_Getter_Field_foo;
// Error
class A_Getter_Field {
+ constructor() {
+ _A_Getter_Field_foo.set(this, "foo");
+ }
get #foo() { return ""; }
- #foo = "foo";
}
+ _A_Getter_Field_foo = new WeakMap();
// Error
class A_Getter_Method {
get #foo() { return ""; }
@@ -533,11 +568,15 @@ function Getter() {
}
}
function Setter() {
+ var _A_Setter_Field_foo;
// Error
class A_Setter_Field {
+ constructor() {
+ _A_Setter_Field_foo.set(this, "foo");
+ }
set #foo(value) { }
- #foo = "foo";
}
+ _A_Setter_Field_foo = new WeakMap();
// Error
class A_Setter_Method {
set #foo(value) { }
@@ -575,11 +614,15 @@ function Setter() {
}
}
function StaticField() {
+ var _A_StaticField_Field_foo;
// Error
class A_StaticField_Field {
+ constructor() {
+ _A_StaticField_Field_foo.set(this, "foo");
+ }
static #foo = "foo";
- #foo = "foo";
}
+ _A_StaticField_Field_foo = new WeakMap();
// Error
class A_StaticField_Method {
static #foo = "foo";
@@ -617,11 +660,15 @@ function StaticField() {
}
}
function StaticMethod() {
+ var _A_StaticMethod_Field_foo;
// Error
class A_StaticMethod_Field {
+ constructor() {
+ _A_StaticMethod_Field_foo.set(this, "foo");
+ }
static #foo() { }
- #foo = "foo";
}
+ _A_StaticMethod_Field_foo = new WeakMap();
// Error
class A_StaticMethod_Method {
static #foo() { }
@@ -659,11 +706,15 @@ function StaticMethod() {
}
}
function StaticGetter() {
+ var _A_StaticGetter_Field_foo;
// Error
class A_StaticGetter_Field {
+ constructor() {
+ _A_StaticGetter_Field_foo.set(this, "foo");
+ }
static get #foo() { return ""; }
- #foo = "foo";
}
+ _A_StaticGetter_Field_foo = new WeakMap();
// Error
class A_StaticGetter_Method {
static get #foo() { return ""; }
@@ -701,11 +752,15 @@ function StaticGetter() {
}
}
function StaticSetter() {
+ var _A_StaticSetter_Field_foo;
// Error
class A_StaticSetter_Field {
+ constructor() {
+ _A_StaticSetter_Field_foo.set(this, "foo");
+ }
static set #foo(value) { }
- #foo = "foo";
}
+ _A_StaticSetter_Field_foo = new WeakMap();
// Error
class A_StaticSetter_Method {
static set #foo(value) { }
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js.diff
index f85cb974e8..c5e50b0f9a 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameDuplicateField.js.diff
@@ -7,84 +7,102 @@
-"use strict";
function Field() {
- var _A_Field_Field_foo, _A_Field_Field_foo_1, _A_Field_Method_instances, _A_Field_Method_foo, _A_Field_Method_foo_1, _A_Field_Getter_instances, _A_Field_Getter_foo, _A_Field_Getter_foo_get, _A_Field_Setter_instances, _A_Field_Setter_foo, _A_Field_Setter_foo_set, _a, _A_Field_StaticField_foo, _A_Field_StaticField_foo_1, _b, _A_Field_StaticMethod_foo, _A_Field_StaticMethod_foo_1, _c, _A_Field_StaticGetter_foo, _A_Field_StaticGetter_foo_get, _d, _A_Field_StaticSetter_foo, _A_Field_StaticSetter_foo_set;
++ var _A_Field_Field_foo, _A_Field_Field_foo_1, _A_Field_Method_foo, _A_Field_Getter_foo, _A_Field_Setter_foo, _A_Field_StaticField_foo, _A_Field_StaticMethod_foo, _A_Field_StaticGetter_foo, _A_Field_StaticSetter_foo;
// Error
class A_Field_Field {
-- constructor() {
-- _A_Field_Field_foo_1.set(this, "foo");
-- _A_Field_Field_foo_1.set(this, "foo");
-- }
- #foo = "foo";
- #foo = "foo";
- }
-- _A_Field_Field_foo = new WeakMap(), _A_Field_Field_foo_1 = new WeakMap();
+ constructor() {
+@@= skipped -16, +15 lines =@@
// Error
class A_Field_Method {
-- constructor() {
+ constructor() {
- _A_Field_Method_instances.add(this);
-- }
- #foo = "foo";
++ _A_Field_Method_foo.set(this, "foo");
+ }
+- #foo = "foo";
#foo() { }
}
- _A_Field_Method_foo = new WeakMap(), _A_Field_Method_instances = new WeakSet();
++ _A_Field_Method_foo = new WeakMap();
// Error
class A_Field_Getter {
-- constructor() {
+ constructor() {
- _A_Field_Getter_instances.add(this);
-- }
- #foo = "foo";
++ _A_Field_Getter_foo.set(this, "foo");
+ }
+- #foo = "foo";
get #foo() { return ""; }
}
- _A_Field_Getter_foo = new WeakMap(), _A_Field_Getter_instances = new WeakSet();
++ _A_Field_Getter_foo = new WeakMap();
// Error
class A_Field_Setter {
-- constructor() {
+ constructor() {
- _A_Field_Setter_instances.add(this);
-- }
- #foo = "foo";
++ _A_Field_Setter_foo.set(this, "foo");
+ }
+- #foo = "foo";
set #foo(value) { }
}
- _A_Field_Setter_foo = new WeakMap(), _A_Field_Setter_instances = new WeakSet();
++ _A_Field_Setter_foo = new WeakMap();
// Error
class A_Field_StaticField {
-- constructor() {
+ constructor() {
- _A_Field_StaticField_foo_1 = { value: "foo" };
-- }
- #foo = "foo";
++ _A_Field_StaticField_foo.set(this, "foo");
+ }
+- #foo = "foo";
static #foo = "foo";
}
- _a = A_Field_StaticField, _A_Field_StaticField_foo = new WeakMap();
- _A_Field_StaticField_foo_1 = { value: "foo" };
++ _A_Field_StaticField_foo = new WeakMap();
// Error
class A_Field_StaticMethod {
- #foo = "foo";
+- #foo = "foo";
++ constructor() {
++ _A_Field_StaticMethod_foo.set(this, "foo");
++ }
static #foo() { }
}
- _b = A_Field_StaticMethod, _A_Field_StaticMethod_foo = new WeakMap();
++ _A_Field_StaticMethod_foo = new WeakMap();
// Error
class A_Field_StaticGetter {
- #foo = "foo";
+- #foo = "foo";
++ constructor() {
++ _A_Field_StaticGetter_foo.set(this, "foo");
++ }
static get #foo() { return ""; }
}
- _c = A_Field_StaticGetter, _A_Field_StaticGetter_foo = new WeakMap();
++ _A_Field_StaticGetter_foo = new WeakMap();
// Error
class A_Field_StaticSetter {
- #foo = "foo";
+- #foo = "foo";
++ constructor() {
++ _A_Field_StaticSetter_foo.set(this, "foo");
++ }
static set #foo(value) { }
}
- _d = A_Field_StaticSetter, _A_Field_StaticSetter_foo = new WeakMap();
++ _A_Field_StaticSetter_foo = new WeakMap();
}
function Method() {
- var _A_Method_Field_instances, _A_Method_Field_foo, _A_Method_Field_foo_1, _A_Method_Method_instances, _A_Method_Method_foo, _A_Method_Method_foo_1, _A_Method_Getter_instances, _A_Method_Getter_foo, _A_Method_Getter_foo_get, _A_Method_Setter_instances, _A_Method_Setter_foo, _A_Method_Setter_foo_set, _A_Method_StaticField_instances, _a, _A_Method_StaticField_foo, _A_Method_StaticField_foo_1, _A_Method_StaticMethod_instances, _b, _A_Method_StaticMethod_foo, _A_Method_StaticMethod_foo_1, _A_Method_StaticGetter_instances, _c, _A_Method_StaticGetter_foo, _A_Method_StaticGetter_foo_get, _A_Method_StaticSetter_instances, _d, _A_Method_StaticSetter_foo, _A_Method_StaticSetter_foo_set;
++ var _A_Method_Field_foo;
// Error
class A_Method_Field {
-- constructor() {
+ constructor() {
- _A_Method_Field_instances.add(this);
- _A_Method_Field_foo_1.set(this, "foo");
-- }
++ _A_Method_Field_foo.set(this, "foo");
+ }
#foo() { }
- #foo = "foo";
+- #foo = "foo";
}
- _A_Method_Field_foo_1 = new WeakMap(), _A_Method_Field_instances = new WeakSet();
++ _A_Method_Field_foo = new WeakMap();
// Error
class A_Method_Method {
- constructor() {
@@ -152,16 +170,18 @@
}
function Getter() {
- var _A_Getter_Field_instances, _A_Getter_Field_foo_get, _A_Getter_Field_foo, _A_Getter_Method_instances, _A_Getter_Method_foo_get, _A_Getter_Method_foo, _A_Getter_Getter_instances, _A_Getter_Getter_foo_get, _A_Getter_Getter_foo_1_get, _A_Getter_Setter_instances, _A_Getter_Setter_foo_get, _A_Getter_Setter_foo_set, _A_Getter_StaticField_instances, _a, _A_Getter_StaticField_foo_get, _A_Getter_StaticField_foo, _A_Getter_StaticMethod_instances, _b, _A_Getter_StaticMethod_foo_get, _A_Getter_StaticMethod_foo, _A_Getter_StaticGetter_instances, _c, _A_Getter_StaticGetter_foo_get, _A_Getter_StaticGetter_foo_1_get, _A_Getter_StaticSetter_instances, _d, _A_Getter_StaticSetter_foo_get, _A_Getter_StaticSetter_foo_set;
++ var _A_Getter_Field_foo;
// Error
class A_Getter_Field {
-- constructor() {
+ constructor() {
- _A_Getter_Field_instances.add(this);
-- _A_Getter_Field_foo.set(this, "foo");
-- }
+ _A_Getter_Field_foo.set(this, "foo");
+ }
get #foo() { return ""; }
- #foo = "foo";
+- #foo = "foo";
}
- _A_Getter_Field_foo = new WeakMap(), _A_Getter_Field_instances = new WeakSet();
++ _A_Getter_Field_foo = new WeakMap();
// Error
class A_Getter_Method {
- constructor() {
@@ -228,16 +248,18 @@
}
function Setter() {
- var _A_Setter_Field_instances, _A_Setter_Field_foo_set, _A_Setter_Field_foo, _A_Setter_Method_instances, _A_Setter_Method_foo_set, _A_Setter_Method_foo, _A_Setter_Getter_instances, _A_Setter_Getter_foo_set, _A_Setter_Getter_foo_get, _A_Setter_Setter_instances, _A_Setter_Setter_foo_set, _A_Setter_Setter_foo_1_set, _A_Setter_StaticField_instances, _a, _A_Setter_StaticField_foo_set, _A_Setter_StaticField_foo, _A_Setter_StaticMethod_instances, _b, _A_Setter_StaticMethod_foo_set, _A_Setter_StaticMethod_foo, _A_Setter_StaticGetter_instances, _c, _A_Setter_StaticGetter_foo_set, _A_Setter_StaticGetter_foo_get, _A_Setter_StaticSetter_instances, _d, _A_Setter_StaticSetter_foo_set, _A_Setter_StaticSetter_foo_1_set;
++ var _A_Setter_Field_foo;
// Error
class A_Setter_Field {
-- constructor() {
+ constructor() {
- _A_Setter_Field_instances.add(this);
-- _A_Setter_Field_foo.set(this, "foo");
-- }
+ _A_Setter_Field_foo.set(this, "foo");
+ }
set #foo(value) { }
- #foo = "foo";
+- #foo = "foo";
}
- _A_Setter_Field_foo = new WeakMap(), _A_Setter_Field_instances = new WeakSet();
++ _A_Setter_Field_foo = new WeakMap();
// Error
class A_Setter_Method {
- constructor() {
@@ -305,16 +327,19 @@
}
function StaticField() {
- var _a, _A_StaticField_Field_foo, _A_StaticField_Field_foo_1, _A_StaticField_Method_instances, _b, _A_StaticField_Method_foo, _A_StaticField_Method_foo_1, _A_StaticField_Getter_instances, _c, _A_StaticField_Getter_foo, _A_StaticField_Getter_foo_get, _A_StaticField_Setter_instances, _d, _A_StaticField_Setter_foo, _A_StaticField_Setter_foo_set, _e, _A_StaticField_StaticField_foo, _A_StaticField_StaticField_foo_1, _f, _A_StaticField_StaticMethod_foo, _A_StaticField_StaticMethod_foo_1, _g, _A_StaticField_StaticGetter_foo, _A_StaticField_StaticGetter_foo_get, _h, _A_StaticField_StaticSetter_foo, _A_StaticField_StaticSetter_foo_set;
++ var _A_StaticField_Field_foo;
// Error
class A_StaticField_Field {
-- constructor() {
+ constructor() {
- _A_StaticField_Field_foo_1.set(this, "foo");
-- }
++ _A_StaticField_Field_foo.set(this, "foo");
+ }
static #foo = "foo";
- #foo = "foo";
+- #foo = "foo";
}
- _a = A_StaticField_Field, _A_StaticField_Field_foo_1 = new WeakMap();
- _A_StaticField_Field_foo_1.set(A_StaticField_Field, "foo");
++ _A_StaticField_Field_foo = new WeakMap();
// Error
class A_StaticField_Method {
- constructor() {
@@ -371,15 +396,18 @@
}
function StaticMethod() {
- var _a, _A_StaticMethod_Field_foo, _A_StaticMethod_Field_foo_1, _A_StaticMethod_Method_instances, _b, _A_StaticMethod_Method_foo, _A_StaticMethod_Method_foo_1, _A_StaticMethod_Getter_instances, _c, _A_StaticMethod_Getter_foo, _A_StaticMethod_Getter_foo_get, _A_StaticMethod_Setter_instances, _d, _A_StaticMethod_Setter_foo, _A_StaticMethod_Setter_foo_set, _e, _A_StaticMethod_StaticField_foo, _A_StaticMethod_StaticField_foo_1, _f, _A_StaticMethod_StaticMethod_foo, _A_StaticMethod_StaticMethod_foo_1, _g, _A_StaticMethod_StaticGetter_foo, _A_StaticMethod_StaticGetter_foo_get, _h, _A_StaticMethod_StaticSetter_foo, _A_StaticMethod_StaticSetter_foo_set;
++ var _A_StaticMethod_Field_foo;
// Error
class A_StaticMethod_Field {
-- constructor() {
+ constructor() {
- _A_StaticMethod_Field_foo_1.set(this, "foo");
-- }
++ _A_StaticMethod_Field_foo.set(this, "foo");
+ }
static #foo() { }
- #foo = "foo";
+- #foo = "foo";
}
- _a = A_StaticMethod_Field, _A_StaticMethod_Field_foo_1 = new WeakMap();
++ _A_StaticMethod_Field_foo = new WeakMap();
// Error
class A_StaticMethod_Method {
- constructor() {
@@ -435,15 +463,17 @@
}
function StaticGetter() {
- var _a, _A_StaticGetter_Field_foo_get, _A_StaticGetter_Field_foo, _A_StaticGetter_Method_instances, _b, _A_StaticGetter_Method_foo_get, _A_StaticGetter_Method_foo, _A_StaticGetter_Getter_instances, _c, _A_StaticGetter_Getter_foo_get, _A_StaticGetter_Getter_foo_1_get, _A_StaticGetter_Setter_instances, _d, _A_StaticGetter_Setter_foo_get, _A_StaticGetter_Setter_foo_set, _e, _A_StaticGetter_StaticField_foo_get, _A_StaticGetter_StaticField_foo, _f, _A_StaticGetter_StaticMethod_foo_get, _A_StaticGetter_StaticMethod_foo, _g, _A_StaticGetter_StaticGetter_foo_get, _A_StaticGetter_StaticGetter_foo_1_get, _h, _A_StaticGetter_StaticSetter_foo_get, _A_StaticGetter_StaticSetter_foo_set;
++ var _A_StaticGetter_Field_foo;
// Error
class A_StaticGetter_Field {
-- constructor() {
-- _A_StaticGetter_Field_foo.set(this, "foo");
-- }
+ constructor() {
+ _A_StaticGetter_Field_foo.set(this, "foo");
+ }
static get #foo() { return ""; }
- #foo = "foo";
+- #foo = "foo";
}
- _a = A_StaticGetter_Field, _A_StaticGetter_Field_foo = new WeakMap();
++ _A_StaticGetter_Field_foo = new WeakMap();
// Error
class A_StaticGetter_Method {
- constructor() {
@@ -498,15 +528,17 @@
}
function StaticSetter() {
- var _a, _A_StaticSetter_Field_foo_set, _A_StaticSetter_Field_foo, _A_StaticSetter_Method_instances, _b, _A_StaticSetter_Method_foo_set, _A_StaticSetter_Method_foo, _A_StaticSetter_Getter_instances, _c, _A_StaticSetter_Getter_foo_set, _A_StaticSetter_Getter_foo_get, _A_StaticSetter_Setter_instances, _d, _A_StaticSetter_Setter_foo_set, _A_StaticSetter_Setter_foo_1_set, _e, _A_StaticSetter_StaticField_foo_set, _A_StaticSetter_StaticField_foo, _f, _A_StaticSetter_StaticMethod_foo_set, _A_StaticSetter_StaticMethod_foo, _g, _A_StaticSetter_StaticGetter_foo_set, _A_StaticSetter_StaticGetter_foo_get, _h, _A_StaticSetter_StaticSetter_foo_set, _A_StaticSetter_StaticSetter_foo_1_set;
++ var _A_StaticSetter_Field_foo;
// Error
class A_StaticSetter_Field {
-- constructor() {
-- _A_StaticSetter_Field_foo.set(this, "foo");
-- }
+ constructor() {
+ _A_StaticSetter_Field_foo.set(this, "foo");
+ }
static set #foo(value) { }
- #foo = "foo";
+- #foo = "foo";
}
- _a = A_StaticSetter_Field, _A_StaticSetter_Field_foo = new WeakMap();
++ _A_StaticSetter_Field_foo = new WeakMap();
// Error
class A_StaticSetter_Method {
- constructor() {
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js b/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js
index 36658283a5..54ffed857a 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js
@@ -16,9 +16,11 @@ class A {
//// [privateNameES5Ban.js]
+var _A_field;
class A {
- constructor() { }
- #field = 123;
+ constructor() {
+ _A_field.set(this, 123);
+ }
#method() { }
static #sField = "hello world";
static #sMethod() { }
@@ -27,3 +29,4 @@ class A {
static get #sAcc() { return 0; }
static set #sAcc(x) { }
}
+_A_field = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js.diff
index 0006add52b..48abfe4169 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameES5Ban.js.diff
@@ -11,14 +11,15 @@
- _A_instances.add(this);
- _A_field.set(this, 123);
- }
-- }
++var _A_field;
++class A {
++ constructor() {
++ _A_field.set(this, 123);
+ }
- _a = A, _A_field = new WeakMap(), _A_instances = new WeakSet(), _A_method = function _A_method() { }, _A_sMethod = function _A_sMethod() { }, _A_acc_get = function _A_acc_get() { return ""; }, _A_acc_set = function _A_acc_set(x) { }, _A_sAcc_get = function _A_sAcc_get() { return 0; }, _A_sAcc_set = function _A_sAcc_set(x) { };
- _A_sField = { value: "hello world" };
- return A;
-})();
-+class A {
-+ constructor() { }
-+ #field = 123;
+ #method() { }
+ static #sField = "hello world";
+ static #sMethod() { }
@@ -26,4 +27,5 @@
+ set #acc(x) { }
+ static get #sAcc() { return 0; }
+ static set #sAcc(x) { }
-+}
\ No newline at end of file
++}
++_A_field = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js
index 9dc03d8f06..3f3527c7e1 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js
@@ -14,8 +14,13 @@ export declare function __classPrivateFieldSet(receiver: T,
//// [main.js]
+import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
+var _C_a;
export class C {
- #a = 1;
+ constructor() {
+ _C_a.set(this, 1);
+ }
#b() { this.#c = 42; }
- set #c(v) { this.#a += v; }
+ set #c(v) { __classPrivateFieldSet(this, _C_a, __classPrivateFieldGet(this, _C_a, "f") + v, "f"); }
}
+_C_a = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js.diff
index e23c135a7b..8c7c6a9cb7 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameEmitHelpers.js.diff
@@ -5,14 +5,15 @@
//// [main.js]
-var _C_instances, _C_a, _C_b, _C_c_set;
--import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
+ import { __classPrivateFieldGet, __classPrivateFieldSet } from "tslib";
++var _C_a;
export class C {
-- constructor() {
+ constructor() {
- _C_instances.add(this);
-- _C_a.set(this, 1);
-- }
-+ #a = 1;
+ _C_a.set(this, 1);
+ }
+ #b() { this.#c = 42; }
-+ set #c(v) { this.#a += v; }
++ set #c(v) { __classPrivateFieldSet(this, _C_a, __classPrivateFieldGet(this, _C_a, "f") + v, "f"); }
}
--_C_a = new WeakMap(), _C_instances = new WeakSet(), _C_b = function _C_b() { __classPrivateFieldSet(this, _C_instances, 42, "a", _C_c_set); }, _C_c_set = function _C_c_set(v) { __classPrivateFieldSet(this, _C_a, __classPrivateFieldGet(this, _C_a, "f") + v, "f"); };
\ No newline at end of file
+-_C_a = new WeakMap(), _C_instances = new WeakSet(), _C_b = function _C_b() { __classPrivateFieldSet(this, _C_instances, 42, "a", _C_c_set); }, _C_c_set = function _C_c_set(v) { __classPrivateFieldSet(this, _C_a, __classPrivateFieldGet(this, _C_a, "f") + v, "f"); };
++_C_a = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameField.js b/testdata/baselines/reference/submodule/conformance/privateNameField.js
index 4286ee9651..263cb7a37c 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameField.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameField.js
@@ -10,9 +10,17 @@ class A {
//// [privateNameField.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 _A_name;
class A {
- #name;
constructor(name) {
- this.#name = name;
+ _A_name.set(this, void 0);
+ __classPrivateFieldSet(this, _A_name, name, "f");
}
}
+_A_name = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameField.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameField.js.diff
index fb24c8758a..dc4dc0f879 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameField.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameField.js.diff
@@ -5,19 +5,6 @@
//// [privateNameField.js]
-"use strict";
--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 _A_name;
- class A {
-+ #name;
- constructor(name) {
-- _A_name.set(this, void 0);
-- __classPrivateFieldSet(this, _A_name, name, "f");
-+ this.#name = name;
- }
- }
--_A_name = new WeakMap();
\ No newline at end of file
+ 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");
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldAccess.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldAccess.js
index c56be5b93a..8c6f8c33f8 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldAccess.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldAccess.js
@@ -10,9 +10,16 @@ class A {
//// [privateNameFieldAccess.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_myField;
class A {
- #myField = "hello world";
constructor() {
- console.log(this.#myField);
+ _A_myField.set(this, "hello world");
+ console.log(__classPrivateFieldGet(this, _A_myField, "f"));
}
}
+_A_myField = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldAccess.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldAccess.js.diff
deleted file mode 100644
index 8349f3fe40..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldAccess.js.diff
+++ /dev/null
@@ -1,21 +0,0 @@
---- old.privateNameFieldAccess.js
-+++ new.privateNameFieldAccess.js
-@@= skipped -9, +9 lines =@@
-
-
- //// [privateNameFieldAccess.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_myField;
- class A {
-+ #myField = "hello world";
- constructor() {
-- _A_myField.set(this, "hello world");
-- console.log(__classPrivateFieldGet(this, _A_myField, "f"));
-+ console.log(this.#myField);
- }
- }
--_A_myField = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js
index b3bf657088..d301d6a2c1 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js
@@ -38,38 +38,50 @@ class A {
//// [privateNameFieldAssignment.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_field;
class A {
- #field = 0;
constructor() {
- var _a, _b;
- this.#field = 1;
- this.#field += 2;
- this.#field -= 3;
- this.#field /= 4;
- this.#field *= 5;
- (_a = this).#field = Math.pow(_a.#field, 6);
- this.#field %= 7;
- this.#field <<= 8;
- this.#field >>= 9;
- this.#field >>>= 10;
- this.#field &= 11;
- this.#field |= 12;
- this.#field ^= 13;
- A.getInstance().#field = 1;
- A.getInstance().#field += 2;
- A.getInstance().#field -= 3;
- A.getInstance().#field /= 4;
- A.getInstance().#field *= 5;
- (_b = A.getInstance()).#field = Math.pow(_b.#field, 6);
- A.getInstance().#field %= 7;
- A.getInstance().#field <<= 8;
- A.getInstance().#field >>= 9;
- A.getInstance().#field >>>= 10;
- A.getInstance().#field &= 11;
- A.getInstance().#field |= 12;
- A.getInstance().#field ^= 13;
+ _A_field.set(this, 0);
+ __classPrivateFieldSet(this, _A_field, 1, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") + 2, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") - 3, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") / 4, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") * 5, "f");
+ __classPrivateFieldSet(this, _A_field, Math.pow(__classPrivateFieldGet(this, _A_field, "f"), 6), "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") % 7, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") << 8, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") >> 9, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") >>> 10, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") & 11, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") | 12, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") ^ 13, "f");
+ __classPrivateFieldSet(A.getInstance(), _A_field, 1, "f");
+ __classPrivateFieldSet(_a = A.getInstance(), _A_field, __classPrivateFieldGet(_a, _A_field, "f") + 2, "f");
+ __classPrivateFieldSet(_b = A.getInstance(), _A_field, __classPrivateFieldGet(_b, _A_field, "f") - 3, "f");
+ __classPrivateFieldSet(_c = A.getInstance(), _A_field, __classPrivateFieldGet(_c, _A_field, "f") / 4, "f");
+ __classPrivateFieldSet(_d = A.getInstance(), _A_field, __classPrivateFieldGet(_d, _A_field, "f") * 5, "f");
+ __classPrivateFieldSet(_e = A.getInstance(), _A_field, Math.pow(__classPrivateFieldGet(_e, _A_field, "f"), 6), "f");
+ __classPrivateFieldSet(_f = A.getInstance(), _A_field, __classPrivateFieldGet(_f, _A_field, "f") % 7, "f");
+ __classPrivateFieldSet(_g = A.getInstance(), _A_field, __classPrivateFieldGet(_g, _A_field, "f") << 8, "f");
+ __classPrivateFieldSet(_h = A.getInstance(), _A_field, __classPrivateFieldGet(_h, _A_field, "f") >> 9, "f");
+ __classPrivateFieldSet(_j = A.getInstance(), _A_field, __classPrivateFieldGet(_j, _A_field, "f") >>> 10, "f");
+ __classPrivateFieldSet(_k = A.getInstance(), _A_field, __classPrivateFieldGet(_k, _A_field, "f") & 11, "f");
+ __classPrivateFieldSet(_l = A.getInstance(), _A_field, __classPrivateFieldGet(_l, _A_field, "f") | 12, "f");
+ __classPrivateFieldSet(_m = A.getInstance(), _A_field, __classPrivateFieldGet(_m, _A_field, "f") ^ 13, "f");
}
static getInstance() {
return new A();
}
}
+_A_field = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js.diff
index dacd0e89ae..b0ae265bc2 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldAssignment.js.diff
@@ -1,82 +1,10 @@
--- old.privateNameFieldAssignment.js
+++ new.privateNameFieldAssignment.js
-@@= skipped -37, +37 lines =@@
-
-
- //// [privateNameFieldAssignment.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_field;
+@@= skipped -51, +51 lines =@@
+ var _A_field;
class A {
-+ #field = 0;
constructor() {
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
-- _A_field.set(this, 0);
-- __classPrivateFieldSet(this, _A_field, 1, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") + 2, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") - 3, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") / 4, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") * 5, "f");
-- __classPrivateFieldSet(this, _A_field, Math.pow(__classPrivateFieldGet(this, _A_field, "f"), 6), "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") % 7, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") << 8, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") >> 9, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") >>> 10, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") & 11, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") | 12, "f");
-- __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") ^ 13, "f");
-- __classPrivateFieldSet(A.getInstance(), _A_field, 1, "f");
-- __classPrivateFieldSet(_a = A.getInstance(), _A_field, __classPrivateFieldGet(_a, _A_field, "f") + 2, "f");
-- __classPrivateFieldSet(_b = A.getInstance(), _A_field, __classPrivateFieldGet(_b, _A_field, "f") - 3, "f");
-- __classPrivateFieldSet(_c = A.getInstance(), _A_field, __classPrivateFieldGet(_c, _A_field, "f") / 4, "f");
-- __classPrivateFieldSet(_d = A.getInstance(), _A_field, __classPrivateFieldGet(_d, _A_field, "f") * 5, "f");
-- __classPrivateFieldSet(_e = A.getInstance(), _A_field, Math.pow(__classPrivateFieldGet(_e, _A_field, "f"), 6), "f");
-- __classPrivateFieldSet(_f = A.getInstance(), _A_field, __classPrivateFieldGet(_f, _A_field, "f") % 7, "f");
-- __classPrivateFieldSet(_g = A.getInstance(), _A_field, __classPrivateFieldGet(_g, _A_field, "f") << 8, "f");
-- __classPrivateFieldSet(_h = A.getInstance(), _A_field, __classPrivateFieldGet(_h, _A_field, "f") >> 9, "f");
-- __classPrivateFieldSet(_j = A.getInstance(), _A_field, __classPrivateFieldGet(_j, _A_field, "f") >>> 10, "f");
-- __classPrivateFieldSet(_k = A.getInstance(), _A_field, __classPrivateFieldGet(_k, _A_field, "f") & 11, "f");
-- __classPrivateFieldSet(_l = A.getInstance(), _A_field, __classPrivateFieldGet(_l, _A_field, "f") | 12, "f");
-- __classPrivateFieldSet(_m = A.getInstance(), _A_field, __classPrivateFieldGet(_m, _A_field, "f") ^ 13, "f");
-+ var _a, _b;
-+ this.#field = 1;
-+ this.#field += 2;
-+ this.#field -= 3;
-+ this.#field /= 4;
-+ this.#field *= 5;
-+ (_a = this).#field = Math.pow(_a.#field, 6);
-+ this.#field %= 7;
-+ this.#field <<= 8;
-+ this.#field >>= 9;
-+ this.#field >>>= 10;
-+ this.#field &= 11;
-+ this.#field |= 12;
-+ this.#field ^= 13;
-+ A.getInstance().#field = 1;
-+ A.getInstance().#field += 2;
-+ A.getInstance().#field -= 3;
-+ A.getInstance().#field /= 4;
-+ A.getInstance().#field *= 5;
-+ (_b = A.getInstance()).#field = Math.pow(_b.#field, 6);
-+ A.getInstance().#field %= 7;
-+ A.getInstance().#field <<= 8;
-+ A.getInstance().#field >>= 9;
-+ A.getInstance().#field >>>= 10;
-+ A.getInstance().#field &= 11;
-+ A.getInstance().#field |= 12;
-+ A.getInstance().#field ^= 13;
- }
- static getInstance() {
- return new A();
- }
- }
--_A_field = new WeakMap();
\ No newline at end of file
+ _A_field.set(this, 0);
+ __classPrivateFieldSet(this, _A_field, 1, "f");
+ __classPrivateFieldSet(this, _A_field, __classPrivateFieldGet(this, _A_field, "f") + 2, "f");
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js
index cee2f08b3f..8f589f6084 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js
@@ -23,22 +23,31 @@ class A {
//// [privateNameFieldCallExpression.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_fieldFunc, _A_fieldFunc2;
class A {
- #fieldFunc = function () { this.x = 10; };
- #fieldFunc2 = function (a, ...b) { };
+ constructor() {
+ _A_fieldFunc.set(this, function () { this.x = 10; });
+ _A_fieldFunc2.set(this, function (a, ...b) { });
+ }
x = 1;
test() {
var _a;
- this.#fieldFunc();
- (_a = this.#fieldFunc) === null || _a === void 0 ? void 0 : _a.call(this);
- const func = this.#fieldFunc;
+ __classPrivateFieldGet(this, _A_fieldFunc, "f")();
+ (_a = __classPrivateFieldGet(this, _A_fieldFunc, "f")) === null || _a === void 0 ? void 0 : _a();
+ const func = __classPrivateFieldGet(this, _A_fieldFunc, "f");
func();
- new this.#fieldFunc();
+ new (__classPrivateFieldGet(this, _A_fieldFunc, "f"))();
const arr = [1, 2];
- this.#fieldFunc2(0, ...arr, 3);
- const b = new this.#fieldFunc2(0, ...arr, 3);
- const str = this.#fieldFunc2 `head${1}middle${2}tail`;
- this.getInstance().#fieldFunc2 `test${1}and${2}`;
+ __classPrivateFieldGet(this, _A_fieldFunc2, "f")(0, ...arr, 3);
+ const b = new (__classPrivateFieldGet(this, _A_fieldFunc2, "f"))(0, ...arr, 3);
+ const str = __classPrivateFieldGet(this, _A_fieldFunc2, "f") `head${1}middle${2}tail`;
+ __classPrivateFieldGet(this.getInstance(), _A_fieldFunc2, "f") `test${1}and${2}`;
}
getInstance() { return new A(); }
}
+_A_fieldFunc = new WeakMap(), _A_fieldFunc2 = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js.diff
index 24e3f33bd1..9a81b617b0 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldCallExpression.js.diff
@@ -1,46 +1,30 @@
--- old.privateNameFieldCallExpression.js
+++ new.privateNameFieldCallExpression.js
-@@= skipped -22, +22 lines =@@
-
-
- //// [privateNameFieldCallExpression.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_fieldFunc, _A_fieldFunc2;
- class A {
-- constructor() {
-- _A_fieldFunc.set(this, function () { this.x = 10; });
-- _A_fieldFunc2.set(this, function (a, ...b) { });
+@@= skipped -32, +32 lines =@@
+ constructor() {
+ _A_fieldFunc.set(this, function () { this.x = 10; });
+ _A_fieldFunc2.set(this, function (a, ...b) { });
- this.x = 1;
-- }
-+ #fieldFunc = function () { this.x = 10; };
-+ #fieldFunc2 = function (a, ...b) { };
+ }
+ x = 1;
test() {
var _a;
- var _b;
- __classPrivateFieldGet(this, _A_fieldFunc, "f").call(this);
- (_a = __classPrivateFieldGet(this, _A_fieldFunc, "f")) === null || _a === void 0 ? void 0 : _a.call(this);
-- const func = __classPrivateFieldGet(this, _A_fieldFunc, "f");
-+ this.#fieldFunc();
-+ (_a = this.#fieldFunc) === null || _a === void 0 ? void 0 : _a.call(this);
-+ const func = this.#fieldFunc;
++ __classPrivateFieldGet(this, _A_fieldFunc, "f")();
++ (_a = __classPrivateFieldGet(this, _A_fieldFunc, "f")) === null || _a === void 0 ? void 0 : _a();
+ const func = __classPrivateFieldGet(this, _A_fieldFunc, "f");
func();
-- new (__classPrivateFieldGet(this, _A_fieldFunc, "f"))();
-+ new this.#fieldFunc();
+ new (__classPrivateFieldGet(this, _A_fieldFunc, "f"))();
const arr = [1, 2];
- __classPrivateFieldGet(this, _A_fieldFunc2, "f").call(this, 0, ...arr, 3);
-- const b = new (__classPrivateFieldGet(this, _A_fieldFunc2, "f"))(0, ...arr, 3);
++ __classPrivateFieldGet(this, _A_fieldFunc2, "f")(0, ...arr, 3);
+ const b = new (__classPrivateFieldGet(this, _A_fieldFunc2, "f"))(0, ...arr, 3);
- const str = __classPrivateFieldGet(this, _A_fieldFunc2, "f").bind(this) `head${1}middle${2}tail`;
- __classPrivateFieldGet((_b = this.getInstance()), _A_fieldFunc2, "f").bind(_b) `test${1}and${2}`;
-+ this.#fieldFunc2(0, ...arr, 3);
-+ const b = new this.#fieldFunc2(0, ...arr, 3);
-+ const str = this.#fieldFunc2 `head${1}middle${2}tail`;
-+ this.getInstance().#fieldFunc2 `test${1}and${2}`;
++ const str = __classPrivateFieldGet(this, _A_fieldFunc2, "f") `head${1}middle${2}tail`;
++ __classPrivateFieldGet(this.getInstance(), _A_fieldFunc2, "f") `test${1}and${2}`;
}
getInstance() { return new A(); }
- }
--_A_fieldFunc = new WeakMap(), _A_fieldFunc2 = new WeakMap();
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js
index ac633693b5..1a7d88a61a 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js
@@ -17,14 +17,18 @@ class B {
//// [privateNameFieldClassExpression.js]
+var _B_foo, _B_foo2;
class B {
- #foo = class {
- constructor() {
- console.log("hello");
- }
- static test = 123;
- };
- #foo2 = class Foo {
- static otherClass = 123;
- };
+ constructor() {
+ _B_foo.set(this, class {
+ constructor() {
+ console.log("hello");
+ }
+ static test = 123;
+ });
+ _B_foo2.set(this, class Foo {
+ static otherClass = 123;
+ });
+ }
}
+_B_foo = new WeakMap(), _B_foo2 = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js.diff
index 16adf3652c..4c0bc5a0b3 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldClassExpression.js.diff
@@ -8,9 +8,9 @@
- if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
- return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
-};
--var _B_foo, _B_foo2;
+ var _B_foo, _B_foo2;
class B {
-- constructor() {
+ constructor() {
- var _a, _b;
- _B_foo.set(this, (_a = class {
- constructor() {
@@ -24,15 +24,15 @@
- },
- _b.otherClass = 123,
- _b));
-- }
-+ #foo = class {
-+ constructor() {
-+ console.log("hello");
-+ }
-+ static test = 123;
-+ };
-+ #foo2 = class Foo {
-+ static otherClass = 123;
-+ };
++ _B_foo.set(this, class {
++ constructor() {
++ console.log("hello");
++ }
++ static test = 123;
++ });
++ _B_foo2.set(this, class Foo {
++ static otherClass = 123;
++ });
+ }
}
--_B_foo = new WeakMap(), _B_foo2 = new WeakMap();
\ No newline at end of file
+ _B_foo = new WeakMap(), _B_foo2 = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js
index e9bb242d0c..d78d563314 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js
@@ -16,12 +16,21 @@ class Derived extends Base {
//// [privateNameFieldDerivedClasses.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Base_prop;
class Base {
- #prop = 123;
+ constructor() {
+ _Base_prop.set(this, 123);
+ }
static method(x) {
- console.log(x.#prop);
+ console.log(__classPrivateFieldGet(x, _Base_prop, "f"));
}
}
+_Base_prop = new WeakMap();
class Derived extends Base {
static method(x) {
console.log(x.#prop);
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js.diff
index 17012d00ee..136b6d603e 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldDerivedClasses.js.diff
@@ -1,26 +1,7 @@
--- old.privateNameFieldDerivedClasses.js
+++ new.privateNameFieldDerivedClasses.js
-@@= skipped -15, +15 lines =@@
-
-
- //// [privateNameFieldDerivedClasses.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _Base_prop;
- class Base {
-- constructor() {
-- _Base_prop.set(this, 123);
-- }
-+ #prop = 123;
- static method(x) {
-- console.log(__classPrivateFieldGet(x, _Base_prop, "f"));
-+ console.log(x.#prop);
- }
- }
--_Base_prop = new WeakMap();
+@@= skipped -32, +32 lines =@@
+ _Base_prop = new WeakMap();
class Derived extends Base {
static method(x) {
- console.log(x.);
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js b/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js
index c2063d7044..96e3095fea 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js
@@ -27,8 +27,19 @@ class A {
//// [privateNameFieldDestructuredBinding.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+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 _A_field;
class A {
- #field = 1;
otherObject = new A();
testObject() {
return { x: 10, y: 6 };
@@ -37,16 +48,18 @@ class A {
return [10, 11];
}
constructor() {
+ _A_field.set(this, 1);
let y;
- ({ x: this.#field, y } = this.testObject());
- ([this.#field, y] = this.testArray());
- ({ a: this.#field, b: [this.#field] } = { a: 1, b: [2] });
- [this.#field, [this.#field]] = [1, [2]];
- ({ a: this.#field = 1, b: [this.#field = 1] } = { b: [] });
- [this.#field = 2] = [];
- [this.otherObject.#field = 2] = [];
+ ({ x: __classPrivateFieldGet(this, _A_field, "f"), y } = this.testObject());
+ ([__classPrivateFieldGet(this, _A_field, "f"), y] = this.testArray());
+ ({ a: __classPrivateFieldGet(this, _A_field, "f"), b: [__classPrivateFieldGet(this, _A_field, "f")] } = { a: 1, b: [2] });
+ [__classPrivateFieldGet(this, _A_field, "f"), [__classPrivateFieldGet(this, _A_field, "f")]] = [1, [2]];
+ ({ a: __classPrivateFieldSet(this, _A_field, 1, "f"), b: [__classPrivateFieldSet(this, _A_field, 1, "f")] } = { b: [] });
+ [__classPrivateFieldSet(this, _A_field, 2, "f")] = [];
+ [__classPrivateFieldSet(this.otherObject, _A_field, 2, "f")] = [];
}
static test(_a) {
- [_a.#field] = [2];
+ [__classPrivateFieldGet(_a, _A_field, "f")] = [2];
}
}
+_A_field = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js.diff
index 72ae035c48..0db6372ee6 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldDestructuredBinding(target=es2015).js.diff
@@ -4,25 +4,28 @@
//// [privateNameFieldDestructuredBinding.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 _A_field;
++var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
++ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
++ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
++ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
++};
+ 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");
+@@= skipped -8, +13 lines =@@
+ };
+ var _A_field;
class A {
-+ #field = 1;
+ otherObject = new A();
testObject() {
return { x: 10, y: 6 };
}
-@@= skipped -15, +10 lines =@@
+@@= skipped -7, +8 lines =@@
return [10, 11];
}
constructor() {
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
-- _A_field.set(this, 1);
+ _A_field.set(this, 1);
- this.otherObject = new A();
let y;
- (_b = this, { x: ({ set value(_m) { __classPrivateFieldSet(_b, _A_field, _m, "f"); } }).value, y } = this.testObject());
@@ -32,17 +35,17 @@
- (_h = this, _j = this, { a: ({ set value(_m) { __classPrivateFieldSet(_h, _A_field, _m, "f"); } }).value = 1, b: [({ set value(_m) { __classPrivateFieldSet(_j, _A_field, _m, "f"); } }).value = 1] } = { b: [] });
- _k = this, [({ set value(_m) { __classPrivateFieldSet(_k, _A_field, _m, "f"); } }).value = 2] = [];
- _l = this.otherObject, [({ set value(_m) { __classPrivateFieldSet(_l, _A_field, _m, "f"); } }).value = 2] = [];
-+ ({ x: this.#field, y } = this.testObject());
-+ ([this.#field, y] = this.testArray());
-+ ({ a: this.#field, b: [this.#field] } = { a: 1, b: [2] });
-+ [this.#field, [this.#field]] = [1, [2]];
-+ ({ a: this.#field = 1, b: [this.#field = 1] } = { b: [] });
-+ [this.#field = 2] = [];
-+ [this.otherObject.#field = 2] = [];
++ ({ x: __classPrivateFieldGet(this, _A_field, "f"), y } = this.testObject());
++ ([__classPrivateFieldGet(this, _A_field, "f"), y] = this.testArray());
++ ({ a: __classPrivateFieldGet(this, _A_field, "f"), b: [__classPrivateFieldGet(this, _A_field, "f")] } = { a: 1, b: [2] });
++ [__classPrivateFieldGet(this, _A_field, "f"), [__classPrivateFieldGet(this, _A_field, "f")]] = [1, [2]];
++ ({ a: __classPrivateFieldSet(this, _A_field, 1, "f"), b: [__classPrivateFieldSet(this, _A_field, 1, "f")] } = { b: [] });
++ [__classPrivateFieldSet(this, _A_field, 2, "f")] = [];
++ [__classPrivateFieldSet(this.otherObject, _A_field, 2, "f")] = [];
}
static test(_a) {
- [({ set value(_b) { __classPrivateFieldSet(_a, _A_field, _b, "f"); } }).value] = [2];
-+ [_a.#field] = [2];
++ [__classPrivateFieldGet(_a, _A_field, "f")] = [2];
}
}
--_A_field = new WeakMap();
\ No newline at end of file
+ _A_field = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldInitializer.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldInitializer.js
index e6f9aac9d0..4f3b94a337 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldInitializer.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldInitializer.js
@@ -8,7 +8,11 @@ class A {
//// [privateNameFieldInitializer.js]
+var _A_field, _A_uninitialized;
class A {
- #field = 10;
- #uninitialized;
+ constructor() {
+ _A_field.set(this, 10);
+ _A_uninitialized.set(this, void 0);
+ }
}
+_A_field = new WeakMap(), _A_uninitialized = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldInitializer.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldInitializer.js.diff
deleted file mode 100644
index 21738054a6..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldInitializer.js.diff
+++ /dev/null
@@ -1,16 +0,0 @@
---- old.privateNameFieldInitializer.js
-+++ new.privateNameFieldInitializer.js
-@@= skipped -7, +7 lines =@@
-
-
- //// [privateNameFieldInitializer.js]
--var _A_field, _A_uninitialized;
- class A {
-- constructor() {
-- _A_field.set(this, 10);
-- _A_uninitialized.set(this, void 0);
-- }
-+ #field = 10;
-+ #uninitialized;
- }
--_A_field = new WeakMap(), _A_uninitialized = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js
index 1e23479d00..d36fff2ca6 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js
@@ -27,21 +27,34 @@ class Foo {
//// [privateNameFieldParenthesisLeftAssignment.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Foo_p;
class Foo {
- #p;
constructor(value) {
- this.#p = value;
+ _Foo_p.set(this, void 0);
+ __classPrivateFieldSet(this, _Foo_p, value, "f");
}
t1(p) {
- this.#p = p;
+ __classPrivateFieldGet(this, _Foo_p, "f") = p;
}
t2(p) {
- this.#p = p;
+ __classPrivateFieldGet(this, _Foo_p, "f") = p;
}
t3(p) {
- (this.#p) = p;
+ __classPrivateFieldSet(this, _Foo_p, p, "f");
}
t4(p) {
- (((this.#p))) = p;
+ __classPrivateFieldSet(this, _Foo_p, p, "f");
}
}
+_Foo_p = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js.diff
index 2b79fd2f7e..2fa57b87fa 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldParenthesisLeftAssignment.js.diff
@@ -1,38 +1,27 @@
--- old.privateNameFieldParenthesisLeftAssignment.js
+++ new.privateNameFieldParenthesisLeftAssignment.js
-@@= skipped -26, +26 lines =@@
-
-
- //// [privateNameFieldParenthesisLeftAssignment.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 _Foo_p;
+@@= skipped -32, +32 lines =@@
+ 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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
++ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
++ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
++ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
++};
+ var _Foo_p;
class Foo {
-+ #p;
constructor(value) {
-- _Foo_p.set(this, void 0);
-- __classPrivateFieldSet(this, _Foo_p, value, "f");
-+ this.#p = value;
+@@= skipped -7, +12 lines =@@
+ __classPrivateFieldSet(this, _Foo_p, value, "f");
}
t1(p) {
- __classPrivateFieldSet(this, _Foo_p, p, "f");
-+ this.#p = p;
++ __classPrivateFieldGet(this, _Foo_p, "f") = p;
}
t2(p) {
- __classPrivateFieldSet(this, _Foo_p, p, "f");
-+ this.#p = p;
++ __classPrivateFieldGet(this, _Foo_p, "f") = p;
}
t3(p) {
-- __classPrivateFieldSet(this, _Foo_p, p, "f");
-+ (this.#p) = p;
- }
- t4(p) {
-- __classPrivateFieldSet(this, _Foo_p, p, "f");
-+ (((this.#p))) = p;
- }
- }
--_Foo_p = new WeakMap();
\ No newline at end of file
+ __classPrivateFieldSet(this, _Foo_p, p, "f");
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js b/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js
index 7203e21ebb..7f347b69e5 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js
@@ -54,51 +54,64 @@ class C {
//// [privateNameFieldUnaryMutation.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+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 _C_test;
class C {
- #test = 24;
constructor() {
- this.#test++;
- this.#test--;
- ++this.#test;
- --this.#test;
- const a = this.#test++;
- const b = this.#test--;
- const c = ++this.#test;
- const d = --this.#test;
- for (this.#test = 0; this.#test < 10; ++this.#test) { }
- for (this.#test = 0; this.#test < 10; this.#test++) { }
- (this.#test)++;
- (this.#test)--;
- ++(this.#test);
- --(this.#test);
- const e = (this.#test)++;
- const f = (this.#test)--;
- const g = ++(this.#test);
- const h = --(this.#test);
- for (this.#test = 0; this.#test < 10; ++(this.#test)) { }
- for (this.#test = 0; this.#test < 10; (this.#test)++) { }
+ _C_test.set(this, 24);
+ __classPrivateFieldGet(this, _C_test, "f")++;
+ __classPrivateFieldGet(this, _C_test, "f")--;
+ ++__classPrivateFieldGet(this, _C_test, "f");
+ --__classPrivateFieldGet(this, _C_test, "f");
+ const a = __classPrivateFieldGet(this, _C_test, "f")++;
+ const b = __classPrivateFieldGet(this, _C_test, "f")--;
+ const c = ++__classPrivateFieldGet(this, _C_test, "f");
+ const d = --__classPrivateFieldGet(this, _C_test, "f");
+ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; ++__classPrivateFieldGet(this, _C_test, "f")) { }
+ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldGet(this, _C_test, "f")++) { }
+ (__classPrivateFieldGet(this, _C_test, "f"))++;
+ (__classPrivateFieldGet(this, _C_test, "f"))--;
+ ++(__classPrivateFieldGet(this, _C_test, "f"));
+ --(__classPrivateFieldGet(this, _C_test, "f"));
+ const e = (__classPrivateFieldGet(this, _C_test, "f"))++;
+ const f = (__classPrivateFieldGet(this, _C_test, "f"))--;
+ const g = ++(__classPrivateFieldGet(this, _C_test, "f"));
+ const h = --(__classPrivateFieldGet(this, _C_test, "f"));
+ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; ++(__classPrivateFieldGet(this, _C_test, "f"))) { }
+ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; (__classPrivateFieldGet(this, _C_test, "f"))++) { }
}
test() {
- this.getInstance().#test++;
- this.getInstance().#test--;
- ++this.getInstance().#test;
- --this.getInstance().#test;
- const a = this.getInstance().#test++;
- const b = this.getInstance().#test--;
- const c = ++this.getInstance().#test;
- const d = --this.getInstance().#test;
- for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++this.getInstance().#test) { }
- for (this.getInstance().#test = 0; this.getInstance().#test < 10; this.getInstance().#test++) { }
- (this.getInstance().#test)++;
- (this.getInstance().#test)--;
- ++(this.getInstance().#test);
- --(this.getInstance().#test);
- const e = (this.getInstance().#test)++;
- const f = (this.getInstance().#test)--;
- const g = ++(this.getInstance().#test);
- const h = --(this.getInstance().#test);
- for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++(this.getInstance().#test)) { }
- for (this.getInstance().#test = 0; this.getInstance().#test < 10; (this.getInstance().#test)++) { }
+ __classPrivateFieldGet(this.getInstance(), _C_test, "f")++;
+ __classPrivateFieldGet(this.getInstance(), _C_test, "f")--;
+ ++__classPrivateFieldGet(this.getInstance(), _C_test, "f");
+ --__classPrivateFieldGet(this.getInstance(), _C_test, "f");
+ const a = __classPrivateFieldGet(this.getInstance(), _C_test, "f")++;
+ const b = __classPrivateFieldGet(this.getInstance(), _C_test, "f")--;
+ const c = ++__classPrivateFieldGet(this.getInstance(), _C_test, "f");
+ const d = --__classPrivateFieldGet(this.getInstance(), _C_test, "f");
+ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; ++__classPrivateFieldGet(this.getInstance(), _C_test, "f")) { }
+ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldGet(this.getInstance(), _C_test, "f")++) { }
+ (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))++;
+ (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))--;
+ ++(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
+ --(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
+ const e = (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))++;
+ const f = (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))--;
+ const g = ++(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
+ const h = --(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
+ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; ++(__classPrivateFieldGet(this.getInstance(), _C_test, "f"))) { }
+ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))++) { }
}
getInstance() { return new C(); }
}
+_C_test = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js.diff
index 6905ee7589..174978c0db 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameFieldUnaryMutation.js.diff
@@ -1,26 +1,11 @@
--- old.privateNameFieldUnaryMutation.js
+++ new.privateNameFieldUnaryMutation.js
-@@= skipped -53, +53 lines =@@
-
-
- //// [privateNameFieldUnaryMutation.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--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 _C_test;
+@@= skipped -67, +67 lines =@@
+ var _C_test;
class C {
-+ #test = 24;
constructor() {
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z;
-- _C_test.set(this, 24);
+ _C_test.set(this, 24);
- __classPrivateFieldSet(this, _C_test, (_a = __classPrivateFieldGet(this, _C_test, "f"), _a++, _a), "f");
- __classPrivateFieldSet(this, _C_test, (_b = __classPrivateFieldGet(this, _C_test, "f"), _b--, _b), "f");
- __classPrivateFieldSet(this, _C_test, (_c = __classPrivateFieldGet(this, _C_test, "f"), ++_c), "f");
@@ -41,26 +26,26 @@
- const h = __classPrivateFieldSet(this, _C_test, (_x = __classPrivateFieldGet(this, _C_test, "f"), --_x), "f");
- for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldSet(this, _C_test, (_y = __classPrivateFieldGet(this, _C_test, "f"), ++_y), "f")) { }
- for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldSet(this, _C_test, (_z = __classPrivateFieldGet(this, _C_test, "f"), _z++, _z), "f")) { }
-+ this.#test++;
-+ this.#test--;
-+ ++this.#test;
-+ --this.#test;
-+ const a = this.#test++;
-+ const b = this.#test--;
-+ const c = ++this.#test;
-+ const d = --this.#test;
-+ for (this.#test = 0; this.#test < 10; ++this.#test) { }
-+ for (this.#test = 0; this.#test < 10; this.#test++) { }
-+ (this.#test)++;
-+ (this.#test)--;
-+ ++(this.#test);
-+ --(this.#test);
-+ const e = (this.#test)++;
-+ const f = (this.#test)--;
-+ const g = ++(this.#test);
-+ const h = --(this.#test);
-+ for (this.#test = 0; this.#test < 10; ++(this.#test)) { }
-+ for (this.#test = 0; this.#test < 10; (this.#test)++) { }
++ __classPrivateFieldGet(this, _C_test, "f")++;
++ __classPrivateFieldGet(this, _C_test, "f")--;
++ ++__classPrivateFieldGet(this, _C_test, "f");
++ --__classPrivateFieldGet(this, _C_test, "f");
++ const a = __classPrivateFieldGet(this, _C_test, "f")++;
++ const b = __classPrivateFieldGet(this, _C_test, "f")--;
++ const c = ++__classPrivateFieldGet(this, _C_test, "f");
++ const d = --__classPrivateFieldGet(this, _C_test, "f");
++ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; ++__classPrivateFieldGet(this, _C_test, "f")) { }
++ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; __classPrivateFieldGet(this, _C_test, "f")++) { }
++ (__classPrivateFieldGet(this, _C_test, "f"))++;
++ (__classPrivateFieldGet(this, _C_test, "f"))--;
++ ++(__classPrivateFieldGet(this, _C_test, "f"));
++ --(__classPrivateFieldGet(this, _C_test, "f"));
++ const e = (__classPrivateFieldGet(this, _C_test, "f"))++;
++ const f = (__classPrivateFieldGet(this, _C_test, "f"))--;
++ const g = ++(__classPrivateFieldGet(this, _C_test, "f"));
++ const h = --(__classPrivateFieldGet(this, _C_test, "f"));
++ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; ++(__classPrivateFieldGet(this, _C_test, "f"))) { }
++ for (__classPrivateFieldSet(this, _C_test, 0, "f"); __classPrivateFieldGet(this, _C_test, "f") < 10; (__classPrivateFieldGet(this, _C_test, "f"))++) { }
}
test() {
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19;
@@ -84,27 +69,26 @@
- const h = __classPrivateFieldSet(_14 = this.getInstance(), _C_test, (_15 = __classPrivateFieldGet(_14, _C_test, "f"), --_15), "f");
- for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldSet(_16 = this.getInstance(), _C_test, (_17 = __classPrivateFieldGet(_16, _C_test, "f"), ++_17), "f")) { }
- for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldSet(_18 = this.getInstance(), _C_test, (_19 = __classPrivateFieldGet(_18, _C_test, "f"), _19++, _19), "f")) { }
-+ this.getInstance().#test++;
-+ this.getInstance().#test--;
-+ ++this.getInstance().#test;
-+ --this.getInstance().#test;
-+ const a = this.getInstance().#test++;
-+ const b = this.getInstance().#test--;
-+ const c = ++this.getInstance().#test;
-+ const d = --this.getInstance().#test;
-+ for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++this.getInstance().#test) { }
-+ for (this.getInstance().#test = 0; this.getInstance().#test < 10; this.getInstance().#test++) { }
-+ (this.getInstance().#test)++;
-+ (this.getInstance().#test)--;
-+ ++(this.getInstance().#test);
-+ --(this.getInstance().#test);
-+ const e = (this.getInstance().#test)++;
-+ const f = (this.getInstance().#test)--;
-+ const g = ++(this.getInstance().#test);
-+ const h = --(this.getInstance().#test);
-+ for (this.getInstance().#test = 0; this.getInstance().#test < 10; ++(this.getInstance().#test)) { }
-+ for (this.getInstance().#test = 0; this.getInstance().#test < 10; (this.getInstance().#test)++) { }
++ __classPrivateFieldGet(this.getInstance(), _C_test, "f")++;
++ __classPrivateFieldGet(this.getInstance(), _C_test, "f")--;
++ ++__classPrivateFieldGet(this.getInstance(), _C_test, "f");
++ --__classPrivateFieldGet(this.getInstance(), _C_test, "f");
++ const a = __classPrivateFieldGet(this.getInstance(), _C_test, "f")++;
++ const b = __classPrivateFieldGet(this.getInstance(), _C_test, "f")--;
++ const c = ++__classPrivateFieldGet(this.getInstance(), _C_test, "f");
++ const d = --__classPrivateFieldGet(this.getInstance(), _C_test, "f");
++ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; ++__classPrivateFieldGet(this.getInstance(), _C_test, "f")) { }
++ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; __classPrivateFieldGet(this.getInstance(), _C_test, "f")++) { }
++ (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))++;
++ (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))--;
++ ++(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
++ --(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
++ const e = (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))++;
++ const f = (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))--;
++ const g = ++(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
++ const h = --(__classPrivateFieldGet(this.getInstance(), _C_test, "f"));
++ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; ++(__classPrivateFieldGet(this.getInstance(), _C_test, "f"))) { }
++ for (__classPrivateFieldSet(this.getInstance(), _C_test, 0, "f"); __classPrivateFieldGet(this.getInstance(), _C_test, "f") < 10; (__classPrivateFieldGet(this.getInstance(), _C_test, "f"))++) { }
}
getInstance() { return new C(); }
- }
--_C_test = new WeakMap();
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js b/testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js
index e0d789d956..7dc181edad 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js
@@ -13,10 +13,19 @@ class C {
//// [privateNameHashCharName.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _C_;
#;
class C {
- #;
+ constructor() {
+ _C_.set(this, void 0);
+ }
m() {
- this.#;
+ __classPrivateFieldGet(this, _C_, "f");
}
}
+_C_ = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js.diff
deleted file mode 100644
index ce0a642a2e..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNameHashCharName.js.diff
+++ /dev/null
@@ -1,24 +0,0 @@
---- old.privateNameHashCharName.js
-+++ new.privateNameHashCharName.js
-@@= skipped -12, +12 lines =@@
-
-
- //// [privateNameHashCharName.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _C_;
- #;
- class C {
-- constructor() {
-- _C_.set(this, void 0);
-- }
-+ #;
- m() {
-- __classPrivateFieldGet(this, _C_, "f");
-+ this.#;
- }
- }
--_C_ = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js b/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js
index 9a4f39d796..b518117286 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js
@@ -49,8 +49,11 @@ export { }
//// [privateNameInInExpressionTransform.js]
+var _Foo_field, _Bar_field;
class Foo {
- #field = 1;
+ constructor() {
+ _Foo_field.set(this, 1);
+ }
#method() { }
static #staticField = 2;
static #staticMethod() { }
@@ -77,12 +80,16 @@ class Foo {
10;
}
}
+_Foo_field = new WeakMap();
class Bar {
- #field = 1;
+ constructor() {
+ _Bar_field.set(this, 1);
+ }
check(v) {
#field in v; // expect Bar's 'field' WeakMap
}
}
+_Bar_field = new WeakMap();
function syntaxError(v) {
return #field in v; // expect `return in v` so runtime will have a syntax error
}
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js.diff b/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js.diff
index 7759a823bc..b55525478a 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameInInExpressionTransform(target=es2020).js.diff
@@ -9,12 +9,12 @@
- return typeof state === "function" ? receiver === state : state.has(receiver);
-};
-var _Foo_instances, _a, _Foo_field, _Foo_method, _Foo_staticField, _Foo_staticMethod, _Bar_field;
++var _Foo_field, _Bar_field;
class Foo {
-- constructor() {
+ constructor() {
- _Foo_instances.add(this);
-- _Foo_field.set(this, 1);
-- }
-+ #field = 1;
+ _Foo_field.set(this, 1);
+ }
+ #method() { }
+ static #staticField = 2;
+ static #staticMethod() { }
@@ -53,17 +53,17 @@
}
-_a = Foo, _Foo_field = new WeakMap(), _Foo_instances = new WeakSet(), _Foo_method = function _Foo_method() { }, _Foo_staticMethod = function _Foo_staticMethod() { };
-_Foo_staticField = { value: 2 };
++_Foo_field = new WeakMap();
class Bar {
-- constructor() {
-- _Bar_field.set(this, 1);
-- }
-+ #field = 1;
+ constructor() {
+ _Bar_field.set(this, 1);
+ }
check(v) {
- __classPrivateFieldIn(_Bar_field, v); // expect Bar's 'field' WeakMap
+ #field in v; // expect Bar's 'field' WeakMap
}
}
--_Bar_field = new WeakMap();
+ _Bar_field = new WeakMap();
function syntaxError(v) {
- return in v; // expect `return in v` so runtime will have a syntax error
+ return #field in v; // expect `return in v` so runtime will have a syntax error
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js b/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js
index 075457f19d..63e2e0d23f 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js
@@ -12,16 +12,31 @@ class Test {
//// [privateNameInLhsReceiverExpression.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Test_y;
class Test {
- #y = 123;
+ constructor() {
+ _Test_y.set(this, 123);
+ }
static something(obj) {
- obj[(new class {
- #x = 1;
+ __classPrivateFieldSet(obj[(new class {
+ = 1;
s = "prop";
- }).s].#y = 1;
- obj[(new class {
- #x = 1;
+ }).s], _Test_y, 1, "f");
+ __classPrivateFieldSet(_a = obj[(new class {
+ = 1;
s = "prop";
- }).s].#y += 1;
+ }).s], _Test_y, __classPrivateFieldGet(_a, _Test_y, "f") + 1, "f");
}
}
+_Test_y = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js.diff
index ffeb4475b7..334f4b53af 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameInLhsReceiverExpression.js.diff
@@ -1,26 +1,8 @@
--- old.privateNameInLhsReceiverExpression.js
+++ new.privateNameInLhsReceiverExpression.js
-@@= skipped -11, +11 lines =@@
-
-
- //// [privateNameInLhsReceiverExpression.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _Test_y;
- class Test {
-- constructor() {
-- _Test_y.set(this, 123);
-- }
-+ #y = 123;
+@@= skipped -28, +28 lines =@@
+ _Test_y.set(this, 123);
+ }
static something(obj) {
- var _x, _a, _x_1, _b, _c;
- __classPrivateFieldSet(obj[(new (_a = class {
@@ -39,14 +21,14 @@
- },
- _x_1 = new WeakMap(),
- _b)).s], _Test_y, __classPrivateFieldGet(_c, _Test_y, "f") + 1, "f");
-+ obj[(new class {
-+ #x = 1;
++ __classPrivateFieldSet(obj[(new class {
++ = 1;
+ s = "prop";
-+ }).s].#y = 1;
-+ obj[(new class {
-+ #x = 1;
++ }).s], _Test_y, 1, "f");
++ __classPrivateFieldSet(_a = obj[(new class {
++ = 1;
+ s = "prop";
-+ }).s].#y += 1;
++ }).s], _Test_y, __classPrivateFieldGet(_a, _Test_y, "f") + 1, "f");
}
}
--_Test_y = new WeakMap();
\ No newline at end of file
+ _Test_y = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js b/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js
index e4ba38dbbc..48fbd24895 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js
@@ -12,12 +12,14 @@ class A extends B {
//// [privateNameLateSuper.js]
+var _A_x;
class B {
}
class A extends B {
- #x;
constructor() {
+ _A_x.set(this, void 0);
void 0;
super();
}
}
+_A_x = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js.diff
index c8177ec3b0..3d34abe7d1 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameLateSuper.js.diff
@@ -1,18 +1,13 @@
--- old.privateNameLateSuper.js
+++ new.privateNameLateSuper.js
-@@= skipped -11, +11 lines =@@
-
-
- //// [privateNameLateSuper.js]
--var _A_x;
- class B {
+@@= skipped -16, +16 lines =@@
}
class A extends B {
-+ #x;
constructor() {
++ _A_x.set(this, void 0);
void 0;
super();
- _A_x.set(this, void 0);
}
}
--_A_x = new WeakMap();
\ No newline at end of file
+ _A_x = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js
index 911296fcfc..1de39c4ce7 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js
@@ -18,17 +18,28 @@ class Base {
//// [privateNameNestedClassFieldShadowing.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Base_x;
class Base {
- #x;
constructor() {
+ _Base_x.set(this, void 0);
+ var _Derived_x;
class Derived {
- #x;
+ constructor() {
+ _Derived_x.set(this, void 0);
+ }
testBase(x) {
- console.log(x.#x);
+ console.log(__classPrivateFieldGet(x, _Derived_x, "f"));
}
testDerived(x) {
- console.log(x.#x);
+ console.log(__classPrivateFieldGet(x, _Derived_x, "f"));
}
}
+ _Derived_x = new WeakMap();
}
}
+_Base_x = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js.diff
index 05efe7f058..7da6df7107 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassFieldShadowing.js.diff
@@ -1,35 +1,12 @@
--- old.privateNameNestedClassFieldShadowing.js
+++ new.privateNameNestedClassFieldShadowing.js
-@@= skipped -17, +17 lines =@@
-
-
- //// [privateNameNestedClassFieldShadowing.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _Base_x;
+@@= skipped -25, +25 lines =@@
+ var _Base_x;
class Base {
-+ #x;
constructor() {
- var _Derived_x;
-- _Base_x.set(this, void 0);
+ _Base_x.set(this, void 0);
++ var _Derived_x;
class Derived {
-- constructor() {
-- _Derived_x.set(this, void 0);
-- }
-+ #x;
- testBase(x) {
-- console.log(__classPrivateFieldGet(x, _Derived_x, "f"));
-+ console.log(x.#x);
- }
- testDerived(x) {
-- console.log(__classPrivateFieldGet(x, _Derived_x, "f"));
-+ console.log(x.#x);
- }
- }
-- _Derived_x = new WeakMap();
- }
- }
--_Base_x = new WeakMap();
\ No newline at end of file
+ constructor() {
+ _Derived_x.set(this, void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js
index 65575222d8..da3ebc9280 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js
@@ -12,11 +12,17 @@ class A {
//// [privateNameNestedClassNameConflict.js]
+var _A_foo;
class A {
- #foo;
constructor() {
+ _A_foo.set(this, void 0);
+ var _A_foo_1;
class A {
- #foo;
+ constructor() {
+ _A_foo_1.set(this, void 0);
+ }
}
+ _A_foo_1 = new WeakMap();
}
}
+_A_foo = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js.diff
index b34ba51daf..7d7e8998d3 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNestedClassNameConflict.js.diff
@@ -1,22 +1,12 @@
--- old.privateNameNestedClassNameConflict.js
+++ new.privateNameNestedClassNameConflict.js
-@@= skipped -11, +11 lines =@@
-
-
- //// [privateNameNestedClassNameConflict.js]
--var _A_foo;
+@@= skipped -14, +14 lines =@@
+ var _A_foo;
class A {
-+ #foo;
constructor() {
- var _A_foo_1;
-- _A_foo.set(this, void 0);
+ _A_foo.set(this, void 0);
++ var _A_foo_1;
class A {
-- constructor() {
-- _A_foo_1.set(this, void 0);
-- }
-+ #foo;
- }
-- _A_foo_1 = new WeakMap();
- }
- }
--_A_foo = new WeakMap();
\ No newline at end of file
+ constructor() {
+ _A_foo_1.set(this, void 0);
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js b/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js
index 43d5506838..0809a88016 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js
@@ -27,24 +27,33 @@ class C {
//// [privateNameNestedMethodAccess.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _C_foo;
class C {
- #foo = 42;
+ constructor() {
+ _C_foo.set(this, 42);
+ }
#bar() { new C().#baz; }
get #baz() { return 42; }
m() {
return class D {
#bar() { }
constructor() {
- new C().#foo;
+ __classPrivateFieldGet(new C(), _C_foo, "f");
new C().#bar; // Error
new C().#baz;
new D().#bar;
}
n(x) {
- x.#foo;
+ __classPrivateFieldGet(x, _C_foo, "f");
x.#bar;
x.#unknown; // Error
}
};
}
}
+_C_foo = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js.diff
index a5d292ccd9..483d4c0ec4 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNestedMethodAccess.js.diff
@@ -1,21 +1,16 @@
--- old.privateNameNestedMethodAccess.js
+++ new.privateNameNestedMethodAccess.js
-@@= skipped -26, +26 lines =@@
-
-
- //// [privateNameNestedMethodAccess.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
+@@= skipped -31, +31 lines =@@
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
-var _C_instances, _a, _C_foo, _C_bar, _C_baz_get;
++var _C_foo;
class C {
-- constructor() {
+ constructor() {
- _C_instances.add(this);
-- _C_foo.set(this, 42);
-- }
-+ #foo = 42;
+ _C_foo.set(this, 42);
+ }
+ #bar() { new C().#baz; }
+ get #baz() { return 42; }
m() {
@@ -40,17 +35,18 @@
+ return class D {
+ #bar() { }
+ constructor() {
-+ new C().#foo;
++ __classPrivateFieldGet(new C(), _C_foo, "f");
+ new C().#bar; // Error
+ new C().#baz;
+ new D().#bar;
+ }
+ n(x) {
-+ x.#foo;
++ __classPrivateFieldGet(x, _C_foo, "f");
+ x.#bar;
+ x.#unknown; // Error
+ }
+ };
}
}
--_a = C, _C_foo = new WeakMap(), _C_instances = new WeakSet(), _C_bar = function _C_bar() { __classPrivateFieldGet(new _a(), _C_instances, "a", _C_baz_get); }, _C_baz_get = function _C_baz_get() { return 42; };
\ No newline at end of file
+-_a = C, _C_foo = new WeakMap(), _C_instances = new WeakSet(), _C_bar = function _C_bar() { __classPrivateFieldGet(new _a(), _C_instances, "a", _C_baz_get); }, _C_baz_get = function _C_baz_get() { return 42; };
++_C_foo = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js b/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js
index 940f5db5e2..c23a51a8b1 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js
@@ -9,7 +9,11 @@ new A().#foo = 4; // Error
//// [privateNameNotAccessibleOutsideDefiningClass.js]
+var _A_foo;
class A {
- #foo = 3;
+ constructor() {
+ _A_foo.set(this, 3);
+ }
}
+_A_foo = new WeakMap();
new A().#foo = 4; // Error
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js.diff b/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js.diff
index db774ee59f..34677d7426 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameNotAccessibleOutsideDefiningClass.js.diff
@@ -5,13 +5,12 @@
//// [privateNameNotAccessibleOutsideDefiningClass.js]
-"use strict";
--var _A_foo;
+ var _A_foo;
class A {
-- constructor() {
-- _A_foo.set(this, 3);
-- }
-+ #foo = 3;
+ constructor() {
+@@= skipped -8, +7 lines =@@
+ }
}
--_A_foo = new WeakMap();
+ _A_foo = new WeakMap();
-new A(). = 4; // Error
+new A().#foo = 4; // Error
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js b/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js
index 1844f2cb06..03445a4333 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js
+++ b/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js
@@ -54,8 +54,11 @@ class TestNonStatics {
}
//// [privateNameWhenNotUseDefineForClassFieldsInEsNext.js]
+var _TestWithStatics_prop, _TestNonStatics_prop;
class TestWithStatics {
- #prop = 0;
+ constructor() {
+ _TestWithStatics_prop.set(this, 0);
+ }
static dd = new TestWithStatics().#prop; // OK
static ["X_ z_ zz"] = class Inner {
#foo = 10;
@@ -78,8 +81,11 @@ class TestWithStatics {
}
};
}
+_TestWithStatics_prop = new WeakMap();
class TestNonStatics {
- #prop = 0;
+ constructor() {
+ _TestNonStatics_prop.set(this, 0);
+ }
dd = new TestNonStatics().#prop; // OK
["X_ z_ zz"] = class Inner {
#foo = 10;
@@ -102,3 +108,4 @@ class TestNonStatics {
}
};
}
+_TestNonStatics_prop = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js.diff b/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js.diff
index ef432593a8..aca6d3e2cf 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNameWhenNotUseDefineForClassFieldsInEsNext(target=es2020).js.diff
@@ -11,41 +11,50 @@
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
-};
-var _TestWithStatics_prop, _Inner_foo, _a, _TestNonStatics_prop;
++var _TestWithStatics_prop, _TestNonStatics_prop;
class TestWithStatics {
-- constructor() {
-- _TestWithStatics_prop.set(this, 0);
-- }
--}
--_TestWithStatics_prop = new WeakMap();
--TestWithStatics.dd = __classPrivateFieldGet(new TestWithStatics(), _TestWithStatics_prop, "f"); // OK
--TestWithStatics["X_ z_ zz"] = (_a = class Inner {
-- constructor() {
-- _Inner_foo.set(this, 10);
-- }
-+ #prop = 0;
+ constructor() {
+ _TestWithStatics_prop.set(this, 0);
+ }
+ static dd = new TestWithStatics().#prop; // OK
+ static ["X_ z_ zz"] = class Inner {
+ #foo = 10;
- m() {
-- __classPrivateFieldGet(new TestWithStatics(), _TestWithStatics_prop, "f"); // OK
++ m() {
+ new TestWithStatics().#prop; // OK
- }
++ }
+ static C = class InnerInner {
+ m() {
+ new TestWithStatics().#prop; // OK
+ new Inner().#foo; // OK
+ }
+ };
- static M() {
- return class {
- m() {
-- __classPrivateFieldGet(new TestWithStatics(), _TestWithStatics_prop, "f"); // OK
-- __classPrivateFieldGet(new _a(), _Inner_foo, "f"); // OK
++ static M() {
++ return class {
++ m() {
+ new TestWithStatics().#prop; // OK
+ new Inner().#foo; // OK
- }
- };
- }
++ }
++ };
++ }
++ };
+ }
+ _TestWithStatics_prop = new WeakMap();
+-TestWithStatics.dd = __classPrivateFieldGet(new TestWithStatics(), _TestWithStatics_prop, "f"); // OK
+-TestWithStatics["X_ z_ zz"] = (_a = class Inner {
+- constructor() {
+- _Inner_foo.set(this, 10);
+- }
+- m() {
+- __classPrivateFieldGet(new TestWithStatics(), _TestWithStatics_prop, "f"); // OK
+- }
+- static M() {
+- return class {
+- m() {
+- __classPrivateFieldGet(new TestWithStatics(), _TestWithStatics_prop, "f"); // OK
+- __classPrivateFieldGet(new _a(), _Inner_foo, "f"); // OK
+- }
+- };
+- }
- },
- _Inner_foo = new WeakMap(),
- _a.C = class InnerInner {
@@ -55,12 +64,10 @@
- }
- },
- _a);
-+ };
-+}
class TestNonStatics {
-- constructor() {
+ constructor() {
- var _Inner_foo_1, _b;
-- _TestNonStatics_prop.set(this, 0);
+ _TestNonStatics_prop.set(this, 0);
- this.dd = __classPrivateFieldGet(new TestNonStatics(), _TestNonStatics_prop, "f"); // OK
- this["X_ z_ zz"] = (_b = class Inner {
- constructor() {
@@ -72,7 +79,21 @@
- }
- };
- }
-+ #prop = 0;
+- m() {
+- __classPrivateFieldGet(new TestNonStatics(), _TestNonStatics_prop, "f"); // Ok
+- }
+- static M() {
+- return class {
+- m() {
+- __classPrivateFieldGet(new TestNonStatics(), _TestNonStatics_prop, "f"); // OK
+- __classPrivateFieldGet(new _b(), _Inner_foo_1, "f"); // OK
+- }
+- };
+- }
+- },
+- _Inner_foo_1 = new WeakMap(),
+- _b);
+ }
+ dd = new TestNonStatics().#prop; // OK
+ ["X_ z_ zz"] = class Inner {
+ #foo = 10;
@@ -87,21 +108,7 @@
+ };
+ static M() {
+ return class {
- m() {
-- __classPrivateFieldGet(new TestNonStatics(), _TestNonStatics_prop, "f"); // Ok
-- }
-- static M() {
-- return class {
-- m() {
-- __classPrivateFieldGet(new TestNonStatics(), _TestNonStatics_prop, "f"); // OK
-- __classPrivateFieldGet(new _b(), _Inner_foo_1, "f"); // OK
-- }
-- };
-- }
-- },
-- _Inner_foo_1 = new WeakMap(),
-- _b);
-- }
++ m() {
+ new TestNonStatics().#prop; // OK
+ new Inner().#foo; // OK
+ }
@@ -109,4 +116,4 @@
+ }
+ };
}
--_TestNonStatics_prop = new WeakMap();
\ No newline at end of file
+ _TestNonStatics_prop = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js
index a4b71d5457..f69be50d20 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js
@@ -12,9 +12,12 @@ class A {
//// [privateNamesAndDecorators.js]
+var _A_foo;
class A {
- @dec // Error
- #foo = 1;
+ constructor() {
+ _A_foo.set(this, 1);
+ }
@dec // Error
#bar() { }
}
+_A_foo = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff
index 28d66e630a..b54c5f0519 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndDecorators.js.diff
@@ -5,14 +5,14 @@
//// [privateNamesAndDecorators.js]
-var _A_instances, _A_foo, _A_bar;
++var _A_foo;
class A {
-- constructor() {
+ constructor() {
- _A_instances.add(this);
-- _A_foo.set(this, 1);
-- }
-+ @dec // Error
-+ #foo = 1;
+ _A_foo.set(this, 1);
+ }
+ @dec // Error
+ #bar() { }
}
--_A_foo = new WeakMap(), _A_instances = new WeakSet(), _A_bar = function _A_bar() { };
\ No newline at end of file
+-_A_foo = new WeakMap(), _A_instances = new WeakSet(), _A_bar = function _A_bar() { };
++_A_foo = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js b/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js
index 34bd5601b8..297b05d8e2 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js
@@ -18,16 +18,25 @@ class B extends A {
//// [privateNamesAndFields.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 _A_foo, _B_foo;
class A {
- #foo;
constructor() {
- this.#foo = 3;
+ _A_foo.set(this, void 0);
+ __classPrivateFieldSet(this, _A_foo, 3, "f");
}
}
+_A_foo = new WeakMap();
class B extends A {
- #foo;
constructor() {
+ _B_foo.set(this, void 0);
super();
- this.#foo = "some string";
+ __classPrivateFieldSet(this, _B_foo, "some string", "f");
}
}
+_B_foo = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js.diff
index afe4b0da14..bf4bd628bb 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndFields.js.diff
@@ -5,29 +5,16 @@
//// [privateNamesAndFields.js]
-"use strict";
--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 _A_foo, _B_foo;
- class A {
-+ #foo;
- constructor() {
-- _A_foo.set(this, void 0);
-- __classPrivateFieldSet(this, _A_foo, 3, "f");
-+ this.#foo = 3;
- }
- }
--_A_foo = new WeakMap();
+ 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");
+@@= skipped -17, +16 lines =@@
+ _A_foo = new WeakMap();
class B extends A {
-+ #foo;
constructor() {
- super();
-- _B_foo.set(this, void 0);
-- __classPrivateFieldSet(this, _B_foo, "some string", "f");
-+ this.#foo = "some string";
+- super();
+ _B_foo.set(this, void 0);
++ super();
+ __classPrivateFieldSet(this, _B_foo, "some string", "f");
}
- }
--_B_foo = new WeakMap();
\ No newline at end of file
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js b/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js
index fa551b1e3b..7bf55df44f 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js
@@ -30,22 +30,35 @@ b = a; // Error
//// [privateNamesAndGenericClasses-2.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+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 _C_foo;
class C {
- #foo;
#bar() {
- return this.#foo;
+ return __classPrivateFieldGet(this, _C_foo, "f");
}
constructor(t) {
- this.#foo = t;
+ _C_foo.set(this, void 0);
+ __classPrivateFieldSet(this, _C_foo, t, "f");
t = this.#bar();
}
set baz(t) {
- this.#foo = t;
+ __classPrivateFieldSet(this, _C_foo, t, "f");
}
get baz() {
- return this.#foo;
+ return __classPrivateFieldGet(this, _C_foo, "f");
}
}
+_C_foo = new WeakMap();
let a = new C(3);
let b = new C("hello");
a.baz = 5; // OK
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js.diff
index f58e1df341..789fb34382 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndGenericClasses-2.js.diff
@@ -5,43 +5,36 @@
//// [privateNamesAndGenericClasses-2.js]
-"use strict";
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+@@= skipped -12, +11 lines =@@
+ 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 _C_instances, _C_foo, _C_bar;
++var _C_foo;
class C {
-+ #foo;
+ #bar() {
-+ return this.#foo;
++ return __classPrivateFieldGet(this, _C_foo, "f");
+ }
constructor(t) {
- _C_instances.add(this);
-- _C_foo.set(this, void 0);
-- __classPrivateFieldSet(this, _C_foo, t, "f");
+ _C_foo.set(this, void 0);
+ __classPrivateFieldSet(this, _C_foo, t, "f");
- t = __classPrivateFieldGet(this, _C_instances, "m", _C_bar).call(this);
-+ this.#foo = t;
+ t = this.#bar();
}
set baz(t) {
-- __classPrivateFieldSet(this, _C_foo, t, "f");
-+ this.#foo = t;
- }
- get baz() {
-- return __classPrivateFieldGet(this, _C_foo, "f");
-+ return this.#foo;
+ __classPrivateFieldSet(this, _C_foo, t, "f");
+@@= skipped -15, +17 lines =@@
+ return __classPrivateFieldGet(this, _C_foo, "f");
}
}
-_C_foo = new WeakMap(), _C_instances = new WeakSet(), _C_bar = function _C_bar() {
- return __classPrivateFieldGet(this, _C_foo, "f");
-};
++_C_foo = new WeakMap();
let a = new C(3);
let b = new C("hello");
a.baz = 5; // OK
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js b/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js
index 8055e48995..f37eab8337 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js
@@ -15,10 +15,11 @@ class C {
//// [privateNamesAndIndexedAccess.js]
+var _C_bar;
class C {
foo = 3;
- #bar = 3;
constructor() {
+ _C_bar.set(this, 3);
const ok = 3;
// not supported yet, could support in future:
const badForNow, #bar;
@@ -27,3 +28,4 @@ class C {
const badAlways = 3; // Error
}
}
+_C_bar = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js.diff
index 4cc49f4b13..f065548275 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndIndexedAccess.js.diff
@@ -5,18 +5,11 @@
//// [privateNamesAndIndexedAccess.js]
-"use strict";
--var _C_bar;
+ var _C_bar;
class C {
+ foo = 3;
-+ #bar = 3;
constructor() {
- this.foo = 3;
-- _C_bar.set(this, 3);
+ _C_bar.set(this, 3);
const ok = 3;
- // not supported yet, could support in future:
- const badForNow, #bar;
-@@= skipped -14, +12 lines =@@
- const badAlways = 3; // Error
- }
- }
--_C_bar = new WeakMap();
\ No newline at end of file
+ // not supported yet, could support in future:
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js b/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js
index 75b2915bd3..2493a41ba5 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js
@@ -24,8 +24,11 @@ k = "fooProp"; // Error
//// [privateNamesAndkeyof.js]
+var _A_fooField;
class A {
- #fooField = 3;
+ constructor() {
+ _A_fooField.set(this, 3);
+ }
#fooMethod() { }
;
get #fooProp() { return 1; }
@@ -35,6 +38,7 @@ class A {
bar = 3;
baz = 3;
}
+_A_fooField = new WeakMap();
// `keyof A` should not include '#foo*'
let k = "bar"; // OK
k = "baz"; // OK
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js.diff
index 36085aef1c..d91fec98c1 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesAndkeyof.js.diff
@@ -6,17 +6,17 @@
//// [privateNamesAndkeyof.js]
-"use strict";
-var _A_instances, _A_fooField, _A_fooMethod, _A_fooProp_get, _A_fooProp_set;
++var _A_fooField;
class A {
-- constructor() {
+ constructor() {
- _A_instances.add(this);
-- _A_fooField.set(this, 3);
+ _A_fooField.set(this, 3);
- this.bar = 3;
- this.baz = 3;
-- }
+ }
- ;
- ;
- ;
-+ #fooField = 3;
+ #fooMethod() { }
+ ;
+ get #fooProp() { return 1; }
@@ -27,6 +27,7 @@
+ baz = 3;
}
-_A_fooField = new WeakMap(), _A_instances = new WeakSet(), _A_fooMethod = function _A_fooMethod() { }, _A_fooProp_get = function _A_fooProp_get() { return 1; }, _A_fooProp_set = function _A_fooProp_set(value) { };
++_A_fooField = new WeakMap();
// `keyof A` should not include '#foo*'
let k = "bar"; // OK
k = "baz"; // OK
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js
index 18b56dee38..f29560d6b5 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js
@@ -17,15 +17,27 @@ class Child extends Parent {
//// [privateNamesConstructorChain-1.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Parent_foo, _Child_foo, _Child_bar;
class Parent {
- #foo = 3;
+ constructor() {
+ _Parent_foo.set(this, 3);
+ }
static #bar = 5;
accessChildProps() {
- new Child().#foo; // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
+ __classPrivateFieldGet(new Child(), _Parent_foo, "f"); // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
Child.#bar; // Error: not found
}
}
+_Parent_foo = new WeakMap();
class Child extends Parent {
- #foo = "foo"; // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
- #bar = "bar"; // OK
+ constructor() {
+ _Child_foo.set(this, "foo"); // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
+ _Child_bar.set(this, "bar"); // OK
+ }
}
+_Child_foo = new WeakMap(), _Child_bar = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js.diff
index f7ebf765fb..ba2a40af63 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-1.js.diff
@@ -1,37 +1,28 @@
--- old.privateNamesConstructorChain-1.js
+++ new.privateNamesConstructorChain-1.js
-@@= skipped -16, +16 lines =@@
-
-
- //// [privateNamesConstructorChain-1.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
+@@= skipped -21, +21 lines =@@
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
-var _a, _Parent_foo, _Parent_bar, _Child_foo, _Child_bar;
++var _Parent_foo, _Child_foo, _Child_bar;
class Parent {
-- constructor() {
-- _Parent_foo.set(this, 3);
-- }
-+ #foo = 3;
+ constructor() {
+ _Parent_foo.set(this, 3);
+ }
+ static #bar = 5;
accessChildProps() {
-- __classPrivateFieldGet(new Child(), _Parent_foo, "f"); // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
+ __classPrivateFieldGet(new Child(), _Parent_foo, "f"); // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
- __classPrivateFieldGet(Child, _a, "f", _Parent_bar); // Error: not found
-+ new Child().#foo; // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
+ Child.#bar; // Error: not found
}
}
-_a = Parent, _Parent_foo = new WeakMap();
-_Parent_bar = { value: 5 };
++_Parent_foo = new WeakMap();
class Child extends Parent {
-- constructor() {
+ constructor() {
- super(...arguments);
-- _Child_foo.set(this, "foo"); // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
-- _Child_bar.set(this, "bar"); // OK
-- }
-+ #foo = "foo"; // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
-+ #bar = "bar"; // OK
- }
--_Child_foo = new WeakMap(), _Child_bar = new WeakMap();
\ No newline at end of file
+ _Child_foo.set(this, "foo"); // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
+ _Child_bar.set(this, "bar"); // OK
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js
index 53c56f7b44..94a5cf843e 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js
@@ -19,16 +19,28 @@ new Parent().accessChildProps();
//// [privateNamesConstructorChain-2.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Parent_foo, _Child_foo, _Child_bar;
class Parent {
- #foo = 3;
+ constructor() {
+ _Parent_foo.set(this, 3);
+ }
static #bar = 5;
accessChildProps() {
- new Child().#foo; // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
+ __classPrivateFieldGet(new Child(), _Parent_foo, "f"); // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
Child.#bar; // Error: not found
}
}
+_Parent_foo = new WeakMap();
class Child extends Parent {
- #foo = "foo"; // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
- #bar = "bar"; // OK
+ constructor() {
+ _Child_foo.set(this, "foo"); // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
+ _Child_bar.set(this, "bar"); // OK
+ }
}
+_Child_foo = new WeakMap(), _Child_bar = new WeakMap();
new Parent().accessChildProps();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js.diff
index 545b6a90ab..19998f20f7 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesConstructorChain-2.js.diff
@@ -1,38 +1,28 @@
--- old.privateNamesConstructorChain-2.js
+++ new.privateNamesConstructorChain-2.js
-@@= skipped -18, +18 lines =@@
-
-
- //// [privateNamesConstructorChain-2.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
+@@= skipped -23, +23 lines =@@
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
-var _a, _Parent_foo, _Parent_bar, _Child_foo, _Child_bar;
++var _Parent_foo, _Child_foo, _Child_bar;
class Parent {
-- constructor() {
-- _Parent_foo.set(this, 3);
-- }
-+ #foo = 3;
+ constructor() {
+ _Parent_foo.set(this, 3);
+ }
+ static #bar = 5;
accessChildProps() {
-- __classPrivateFieldGet(new Child(), _Parent_foo, "f"); // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
+ __classPrivateFieldGet(new Child(), _Parent_foo, "f"); // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
- __classPrivateFieldGet(Child, _a, "f", _Parent_bar); // Error: not found
-+ new Child().#foo; // OK (`#foo` was added when `Parent`'s constructor was called on `child`)
+ Child.#bar; // Error: not found
}
}
-_a = Parent, _Parent_foo = new WeakMap();
-_Parent_bar = { value: 5 };
++_Parent_foo = new WeakMap();
class Child extends Parent {
-- constructor() {
+ constructor() {
- super(...arguments);
-- _Child_foo.set(this, "foo"); // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
-- _Child_bar.set(this, "bar"); // OK
-- }
-+ #foo = "foo"; // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
-+ #bar = "bar"; // OK
- }
--_Child_foo = new WeakMap(), _Child_bar = new WeakMap();
- new Parent().accessChildProps();
\ No newline at end of file
+ _Child_foo.set(this, "foo"); // OK (Child's #foo does not conflict, as `Parent`'s `#foo` is not accessible)
+ _Child_bar.set(this, "bar"); // OK
+ }
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js b/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js
index dc49af5c15..b6f7a04c81 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js
@@ -30,21 +30,36 @@ b = a; // Error
//// [privateNamesInGenericClasses.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+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 _C_foo;
class C {
- #foo;
- #method() { return this.#foo; }
- get #prop() { return this.#foo; }
- set #prop(value) { this.#foo = value; }
- bar(x) { return x.#foo; } // OK
+ constructor() {
+ _C_foo.set(this, void 0);
+ }
+ #method() { return __classPrivateFieldGet(this, _C_foo, "f"); }
+ get #prop() { return __classPrivateFieldGet(this, _C_foo, "f"); }
+ set #prop(value) { __classPrivateFieldSet(this, _C_foo, value, "f"); }
+ bar(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
bar2(x) { return x.#method(); } // OK
bar3(x) { return x.#prop; } // OK
- baz(x) { return x.#foo; } // OK
+ baz(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
baz2(x) { return x.#method; } // OK
baz3(x) { return x.#prop; } // OK
- quux(x) { return x.#foo; } // OK
+ quux(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
quux2(x) { return x.#method; } // OK
quux3(x) { return x.#prop; } // OK
}
+_C_foo = new WeakMap();
a.#foo; // Error
a.#method; // Error
a.#prop; // Error
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js.diff
index 0dd33e5d44..ad429e26ac 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInGenericClasses.js.diff
@@ -5,43 +5,36 @@
//// [privateNamesInGenericClasses.js]
-"use strict";
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+@@= skipped -12, +11 lines =@@
+ 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 _C_instances, _C_foo, _C_method, _C_prop_get, _C_prop_set;
++var _C_foo;
class C {
-- constructor() {
+ constructor() {
- _C_instances.add(this);
-- _C_foo.set(this, void 0);
-- }
-- bar(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
+ _C_foo.set(this, void 0);
+ }
++ #method() { return __classPrivateFieldGet(this, _C_foo, "f"); }
++ get #prop() { return __classPrivateFieldGet(this, _C_foo, "f"); }
++ set #prop(value) { __classPrivateFieldSet(this, _C_foo, value, "f"); }
+ bar(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
- bar2(x) { return __classPrivateFieldGet(x, _C_instances, "m", _C_method).call(x); } // OK
- bar3(x) { return __classPrivateFieldGet(x, _C_instances, "a", _C_prop_get); } // OK
-- baz(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
-- baz2(x) { return __classPrivateFieldGet(x, _C_instances, "m", _C_method); } // OK
-- baz3(x) { return __classPrivateFieldGet(x, _C_instances, "a", _C_prop_get); } // OK
-- quux(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
-- quux2(x) { return __classPrivateFieldGet(x, _C_instances, "m", _C_method); } // OK
-- quux3(x) { return __classPrivateFieldGet(x, _C_instances, "a", _C_prop_get); } // OK
-+ #foo;
-+ #method() { return this.#foo; }
-+ get #prop() { return this.#foo; }
-+ set #prop(value) { this.#foo = value; }
-+ bar(x) { return x.#foo; } // OK
+ bar2(x) { return x.#method(); } // OK
+ bar3(x) { return x.#prop; } // OK
-+ baz(x) { return x.#foo; } // OK
+ baz(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
+- baz2(x) { return __classPrivateFieldGet(x, _C_instances, "m", _C_method); } // OK
+- baz3(x) { return __classPrivateFieldGet(x, _C_instances, "a", _C_prop_get); } // OK
+ baz2(x) { return x.#method; } // OK
+ baz3(x) { return x.#prop; } // OK
-+ quux(x) { return x.#foo; } // OK
+ quux(x) { return __classPrivateFieldGet(x, _C_foo, "f"); } // OK
+- quux2(x) { return __classPrivateFieldGet(x, _C_instances, "m", _C_method); } // OK
+- quux3(x) { return __classPrivateFieldGet(x, _C_instances, "a", _C_prop_get); } // OK
+ quux2(x) { return x.#method; } // OK
+ quux3(x) { return x.#prop; } // OK
}
@@ -49,6 +42,7 @@
-a.; // Error
-a.; // Error
-a.; // Error
++_C_foo = new WeakMap();
+a.#foo; // Error
+a.#method; // Error
+a.#prop; // Error
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js
index db6b1e818d..8f374f2e67 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js
@@ -29,22 +29,34 @@ new A().method();
//// [privateNamesInNestedClasses-1.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_foo, _A_bar;
class A {
- #foo = "A's #foo";
- #bar = "A's #bar";
+ constructor() {
+ _A_foo.set(this, "A's #foo");
+ _A_bar.set(this, "A's #bar");
+ }
method() {
+ var _B_foo;
class B {
- #foo = "B's #foo";
+ constructor() {
+ _B_foo.set(this, "B's #foo");
+ }
bar(a) {
- a.#foo; // OK, no compile-time error, don't know what `a` is
+ __classPrivateFieldGet(a, _B_foo, "f"); // OK, no compile-time error, don't know what `a` is
}
baz(a) {
- a.#foo; // compile-time error, shadowed
+ __classPrivateFieldGet(a, _B_foo, "f"); // compile-time error, shadowed
}
quux(b) {
- b.#foo; // OK
+ __classPrivateFieldGet(b, _B_foo, "f"); // OK
}
}
+ _B_foo = new WeakMap();
const a = new A();
new B().bar(a);
new B().baz(a);
@@ -52,4 +64,5 @@ class A {
new B().quux(b);
}
}
+_A_foo = new WeakMap(), _A_bar = new WeakMap();
new A().method();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js.diff
index 2c2b294168..b77c640e7f 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-1.js.diff
@@ -5,46 +5,6 @@
//// [privateNamesInNestedClasses-1.js]
-"use strict";
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_foo, _A_bar;
- class A {
-- constructor() {
-- _A_foo.set(this, "A's #foo");
-- _A_bar.set(this, "A's #bar");
-- }
-+ #foo = "A's #foo";
-+ #bar = "A's #bar";
- method() {
-- var _B_foo;
- class B {
-- constructor() {
-- _B_foo.set(this, "B's #foo");
-- }
-+ #foo = "B's #foo";
- bar(a) {
-- __classPrivateFieldGet(a, _B_foo, "f"); // OK, no compile-time error, don't know what `a` is
-+ a.#foo; // OK, no compile-time error, don't know what `a` is
- }
- baz(a) {
-- __classPrivateFieldGet(a, _B_foo, "f"); // compile-time error, shadowed
-+ a.#foo; // compile-time error, shadowed
- }
- quux(b) {
-- __classPrivateFieldGet(b, _B_foo, "f"); // OK
-+ b.#foo; // OK
- }
- }
-- _B_foo = new WeakMap();
- const a = new A();
- new B().bar(a);
- new B().baz(a);
-@@= skipped -36, +23 lines =@@
- new B().quux(b);
- }
- }
--_A_foo = new WeakMap(), _A_bar = new WeakMap();
- new A().method();
\ No newline at end of file
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js
index ec7135c231..7220240269 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js
@@ -22,9 +22,10 @@ class A {
class A {
static #x = 5;
constructor() {
+ var _B_x;
class B {
- #x = 5;
constructor() {
+ _B_x.set(this, 5);
class C {
constructor() {
A.#x; // error
@@ -32,5 +33,6 @@ class A {
}
}
}
+ _B_x = new WeakMap();
}
}
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js.diff
index e47ef6ae74..a5e0970911 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInNestedClasses-2.js.diff
@@ -14,11 +14,10 @@
class A {
+ static #x = 5;
constructor() {
-- var _B_x;
+ var _B_x;
class B {
-+ #x = 5;
- constructor() {
-- _B_x.set(this, 5);
+@@= skipped -15, +9 lines =@@
+ _B_x.set(this, 5);
class C {
constructor() {
- __classPrivateFieldGet(_a, _B_x, "f"); // error
@@ -26,8 +25,8 @@
}
}
}
- }
-- _B_x = new WeakMap();
+@@= skipped -8, +8 lines =@@
+ _B_x = new WeakMap();
}
}
-_a = A;
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js
index a3f08edf1c..c06b1f4bda 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js
@@ -37,11 +37,14 @@ abstract class B {
//// [privateNamesIncompatibleModifiers.js]
+var _A_foo, _A_bar, _A_baz, _A_qux, _B_quux;
class A {
- #foo = 3; // Error
- #bar = 3; // Error
- #baz = 3; // Error
- #qux = 3; // OK
+ constructor() {
+ _A_foo.set(this, 3); // Error
+ _A_bar.set(this, 3); // Error
+ _A_baz.set(this, 3); // Error
+ _A_qux.set(this, 3); // OK
+ }
#fooMethod() { return 3; } // Error
#barMethod() { return 3; } // Error
#bazMethod() { return 3; } // Error
@@ -60,6 +63,10 @@ class A {
async get #asyncProp() { return 1; } // Error
async set #asyncProp(value) { } // Error
}
+_A_foo = new WeakMap(), _A_bar = new WeakMap(), _A_baz = new WeakMap(), _A_qux = new WeakMap();
class B {
- #quux = 3; // Error
+ constructor() {
+ _B_quux.set(this, 3); // Error
+ }
}
+_B_quux = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js.diff
index bbf37dba5b..25bac429d6 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiers.js.diff
@@ -28,18 +28,15 @@
- function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
-};
-var _A_instances, _A_foo, _A_bar, _A_baz, _A_qux, _A_fooMethod, _A_barMethod, _A_bazMethod, _A_quxMethod, _A_asyncMethod, _A_genMethod, _A_asyncGenMethod, _A_fooProp_get, _A_fooProp_set, _A_barProp_get, _A_barProp_set, _A_bazProp_get, _A_bazProp_set, _A_quxProp_get, _A_quxProp_set, _A_whatProp_get, _A_whatProp_set, _A_asyncProp_get, _A_asyncProp_set;
++var _A_foo, _A_bar, _A_baz, _A_qux, _B_quux;
class A {
-- constructor() {
+ constructor() {
- _A_instances.add(this);
-- _A_foo.set(this, 3); // Error
-- _A_bar.set(this, 3); // Error
-- _A_baz.set(this, 3); // Error
-- _A_qux.set(this, 3); // OK
-- }
-+ #foo = 3; // Error
-+ #bar = 3; // Error
-+ #baz = 3; // Error
-+ #qux = 3; // OK
+ _A_foo.set(this, 3); // Error
+ _A_bar.set(this, 3); // Error
+ _A_baz.set(this, 3); // Error
+ _A_qux.set(this, 3); // OK
+ }
+ #fooMethod() { return 3; } // Error
+ #barMethod() { return 3; } // Error
+ #bazMethod() { return 3; } // Error
@@ -65,6 +62,10 @@
-}, _A_asyncProp_set = function _A_asyncProp_set(value) {
- return __awaiter(this, void 0, void 0, function* () { });
-};
++_A_foo = new WeakMap(), _A_bar = new WeakMap(), _A_baz = new WeakMap(), _A_qux = new WeakMap();
class B {
-+ #quux = 3; // Error
- }
\ No newline at end of file
++ constructor() {
++ _B_quux.set(this, 3); // Error
++ }
+ }
++_B_quux = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js
index 8af06915e9..4132fbd3c9 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js
@@ -62,19 +62,22 @@ class A {
//// [privateNamesIncompatibleModifiersJs.js]
+var _A_a, _A_b, _A_c;
class A {
- /**
- * @public
- */
- #a = 1;
- /**
- * @private
- */
- #b = 1;
- /**
- * @protected
- */
- #c = 1;
+ constructor() {
+ /**
+ * @public
+ */
+ _A_a.set(this, 1);
+ /**
+ * @private
+ */
+ _A_b.set(this, 1);
+ /**
+ * @protected
+ */
+ _A_c.set(this, 1);
+ }
/**
* @public
*/
@@ -112,3 +115,4 @@ class A {
*/
set #cProp(value) { }
}
+_A_a = new WeakMap(), _A_b = new WeakMap(), _A_c = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js.diff
index 2cfcf8c3d0..04ff94efc8 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesIncompatibleModifiersJs.js.diff
@@ -6,34 +6,17 @@
//// [privateNamesIncompatibleModifiersJs.js]
-"use strict";
-var _A_instances, _A_a, _A_b, _A_c, _A_aMethod, _A_bMethod, _A_cMethod, _A_aProp_get, _A_aProp_set, _A_bProp_get, _A_bProp_set, _A_cProp_get, _A_cProp_set;
++var _A_a, _A_b, _A_c;
class A {
-- constructor() {
+ constructor() {
- _A_instances.add(this);
-- /**
-- * @public
-- */
-- _A_a.set(this, 1);
-- /**
-- * @private
-- */
-- _A_b.set(this, 1);
-- /**
-- * @protected
-- */
-- _A_c.set(this, 1);
-- }
-+ /**
-+ * @public
-+ */
-+ #a = 1;
-+ /**
-+ * @private
-+ */
-+ #b = 1;
-+ /**
-+ * @protected
-+ */
-+ #c = 1;
+ /**
+ * @public
+ */
+@@= skipped -18, +16 lines =@@
+ */
+ _A_c.set(this, 1);
+ }
+ /**
+ * @public
+ */
@@ -71,4 +54,5 @@
+ */
+ set #cProp(value) { }
}
--_A_a = new WeakMap(), _A_b = new WeakMap(), _A_c = new WeakMap(), _A_instances = new WeakSet(), _A_aMethod = function _A_aMethod() { return 1; }, _A_bMethod = function _A_bMethod() { return 1; }, _A_cMethod = function _A_cMethod() { return 1; }, _A_aProp_get = function _A_aProp_get() { return 1; }, _A_aProp_set = function _A_aProp_set(value) { }, _A_bProp_get = function _A_bProp_get() { return 1; }, _A_bProp_set = function _A_bProp_set(value) { }, _A_cProp_get = function _A_cProp_get() { return 1; }, _A_cProp_set = function _A_cProp_set(value) { };
\ No newline at end of file
+-_A_a = new WeakMap(), _A_b = new WeakMap(), _A_c = new WeakMap(), _A_instances = new WeakSet(), _A_aMethod = function _A_aMethod() { return 1; }, _A_bMethod = function _A_bMethod() { return 1; }, _A_cMethod = function _A_cMethod() { return 1; }, _A_aProp_get = function _A_aProp_get() { return 1; }, _A_aProp_set = function _A_aProp_set(value) { }, _A_bProp_get = function _A_bProp_get() { return 1; }, _A_bProp_set = function _A_bProp_set(value) { }, _A_cProp_get = function _A_cProp_get() { return 1; }, _A_cProp_set = function _A_cProp_set(value) { };
++_A_a = new WeakMap(), _A_b = new WeakMap(), _A_c = new WeakMap();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js b/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js
index ad0521b209..4f081ab48f 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js
@@ -16,12 +16,22 @@ function func(x: I) {
//// [privateNamesInterfaceExtendingClass.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 _C_prop;
class C {
- #prop;
+ constructor() {
+ _C_prop.set(this, void 0);
+ }
func(x) {
- x.#prop = 123;
+ __classPrivateFieldSet(x, _C_prop, 123, "f");
}
}
+_C_prop = new WeakMap();
function func(x) {
x.#prop = 123;
}
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js.diff
index d1cdad4938..ceedc3dc3d 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesInterfaceExtendingClass.js.diff
@@ -1,27 +1,8 @@
--- old.privateNamesInterfaceExtendingClass.js
+++ new.privateNamesInterfaceExtendingClass.js
-@@= skipped -15, +15 lines =@@
-
-
- //// [privateNamesInterfaceExtendingClass.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 _C_prop;
- class C {
-- constructor() {
-- _C_prop.set(this, void 0);
-- }
-+ #prop;
- func(x) {
-- __classPrivateFieldSet(x, _C_prop, 123, "f");
-+ x.#prop = 123;
- }
+@@= skipped -32, +32 lines =@@
}
--_C_prop = new WeakMap();
+ _C_prop = new WeakMap();
function func(x) {
- x. = 123;
+ x.#prop = 123;
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js b/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js
index ea8cdeff8c..2b850335cb 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js
@@ -10,9 +10,16 @@ class A {
//// [privateNamesNoDelete.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_v;
class A {
- #v = 1;
constructor() {
- delete this.#v; // Error: The operand of a delete operator cannot be a private name.
+ _A_v.set(this, 1);
+ delete __classPrivateFieldGet(this, _A_v, "f"); // Error: The operand of a delete operator cannot be a private name.
}
}
+_A_v = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js.diff
index ea6d3324a1..2838273dd3 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesNoDelete.js.diff
@@ -5,18 +5,6 @@
//// [privateNamesNoDelete.js]
-"use strict";
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _A_v;
- class A {
-+ #v = 1;
- constructor() {
-- _A_v.set(this, 1);
-- delete __classPrivateFieldGet(this, _A_v, "f"); // Error: The operand of a delete operator cannot be a private name.
-+ delete this.#v; // Error: The operand of a delete operator cannot be a private name.
- }
- }
--_A_v = new WeakMap();
\ No newline at end of file
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js
index fa7402ccff..2e2180fd5f 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js
@@ -13,10 +13,17 @@ const b: A = new B(); // Error: Property #foo is missing
//// [privateNamesUnique-1.js]
+var _A_foo, _B_foo;
class A {
- #foo;
+ constructor() {
+ _A_foo.set(this, void 0);
+ }
}
+_A_foo = new WeakMap();
class B {
- #foo;
+ constructor() {
+ _B_foo.set(this, void 0);
+ }
}
+_B_foo = new WeakMap();
const b = new B(); // Error: Property #foo is missing
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js.diff
index f10c1f6ebb..7593dc087a 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-1.js.diff
@@ -5,19 +5,6 @@
//// [privateNamesUnique-1.js]
-"use strict";
--var _A_foo, _B_foo;
+ var _A_foo, _B_foo;
class A {
-- constructor() {
-- _A_foo.set(this, void 0);
-- }
-+ #foo;
- }
--_A_foo = new WeakMap();
- class B {
-- constructor() {
-- _B_foo.set(this, void 0);
-- }
-+ #foo;
- }
--_B_foo = new WeakMap();
- const b = new B(); // Error: Property #foo is missing
\ No newline at end of file
+ constructor() {
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-2.js b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-2.js
index d625fa6f0c..563007f6b8 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-2.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-2.js
@@ -23,16 +23,29 @@ a.copy(b); // error
//// [b.js]
+var _Foo_x;
export class Foo {
- #x;
+ constructor() {
+ _Foo_x.set(this, void 0);
+ }
}
+_Foo_x = new WeakMap();
//// [a.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _Foo_x;
export class Foo {
- #x;
+ constructor() {
+ _Foo_x.set(this, void 0);
+ }
copy(other) {
- other.#x; // error
+ __classPrivateFieldGet(other, _Foo_x, "f"); // error
}
}
+_Foo_x = new WeakMap();
//// [main.js]
import { Foo as A } from "./a";
import { Foo as B } from "./b";
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-2.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-2.js.diff
deleted file mode 100644
index dc2b6de266..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-2.js.diff
+++ /dev/null
@@ -1,35 +0,0 @@
---- old.privateNamesUnique-2.js
-+++ new.privateNamesUnique-2.js
-@@= skipped -22, +22 lines =@@
-
-
- //// [b.js]
--var _Foo_x;
- export class Foo {
-- constructor() {
-- _Foo_x.set(this, void 0);
-- }
-+ #x;
- }
--_Foo_x = new WeakMap();
- //// [a.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _Foo_x;
- export class Foo {
-- constructor() {
-- _Foo_x.set(this, void 0);
-- }
-+ #x;
- copy(other) {
-- __classPrivateFieldGet(other, _Foo_x, "f"); // error
-+ other.#x; // error
- }
- }
--_Foo_x = new WeakMap();
- //// [main.js]
- import { Foo as A } from "./a";
- import { Foo as B } from "./b";
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js
index 5fe8075c32..5afd9a983f 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js
@@ -17,10 +17,17 @@ class B {
//// [privateNamesUnique-3.js]
+var _A_foo;
class A {
- #foo = 1;
+ constructor() {
+ _A_foo.set(this, 1);
+ // because static and instance private names
+ // share the same lexical scope
+ // https://tc39.es/proposal-class-fields/#prod-ClassBody
+ }
static #foo = true; // error (duplicate)
}
+_A_foo = new WeakMap();
class B {
static #foo = true;
test(x) {
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js.diff
index 0119e914e7..375f8051f8 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-3.js.diff
@@ -10,18 +10,21 @@
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
-};
-var _a, _A_foo, _A_foo_1, _b, _B_foo;
++var _A_foo;
class A {
-- constructor() {
+ constructor() {
- _A_foo_1 = { value: 1 };
-- // because static and instance private names
-- // share the same lexical scope
-- // https://tc39.es/proposal-class-fields/#prod-ClassBody
-- }
- #foo = 1;
++ _A_foo.set(this, 1);
+ // because static and instance private names
+ // share the same lexical scope
+ // https://tc39.es/proposal-class-fields/#prod-ClassBody
+ }
+- #foo = 1;
static #foo = true; // error (duplicate)
}
-_a = A, _A_foo = new WeakMap();
-_A_foo_1 = { value: true }; // error (duplicate)
++_A_foo = new WeakMap();
class B {
+ static #foo = true;
test(x) {
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-4.js b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-4.js
index f276844411..7fe019a7dc 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-4.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-4.js
@@ -10,9 +10,13 @@ const c: C = a;
//// [privateNamesUnique-4.js]
+var _C_something;
class A1 {
}
class C {
- #something;
+ constructor() {
+ _C_something.set(this, void 0);
+ }
}
+_C_something = new WeakMap();
const c = a;
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-4.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-4.js.diff
deleted file mode 100644
index 9372922ec2..0000000000
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-4.js.diff
+++ /dev/null
@@ -1,17 +0,0 @@
---- old.privateNamesUnique-4.js
-+++ new.privateNamesUnique-4.js
-@@= skipped -9, +9 lines =@@
-
-
- //// [privateNamesUnique-4.js]
--var _C_something;
- class A1 {
- }
- class C {
-- constructor() {
-- _C_something.set(this, void 0);
-- }
-+ #something;
- }
--_C_something = new WeakMap();
- const c = a;
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js
index 411eeabed2..837d523760 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js
@@ -16,11 +16,22 @@ const b: A2 = new B();
//// [privateNamesUnique-5.js]
+var _A_foo, _B_foo;
// same as privateNamesUnique-1, but with an interface
class A {
- #foo;
+ constructor() {
+ _A_foo.set(this, void 0);
+ }
}
+_A_foo = new WeakMap( // same as privateNamesUnique-1, but with an interface
+// same as privateNamesUnique-1, but with an interface
+);
class B {
- #foo;
+ constructor() {
+ _B_foo.set(this, void 0);
+ }
}
+_B_foo = new WeakMap( // same as privateNamesUnique-1, but with an interface
+// same as privateNamesUnique-1, but with an interface
+);
const b = new B();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js.diff
index f565316124..c1ee9df93c 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUnique-5.js.diff
@@ -5,20 +5,25 @@
//// [privateNamesUnique-5.js]
-"use strict";
- // same as privateNamesUnique-1, but with an interface
--var _A_foo, _B_foo;
+-// same as privateNamesUnique-1, but with an interface
+ var _A_foo, _B_foo;
++// same as privateNamesUnique-1, but with an interface
class A {
-- constructor() {
-- _A_foo.set(this, void 0);
-- }
-+ #foo;
+ constructor() {
+ _A_foo.set(this, void 0);
+ }
}
-_A_foo = new WeakMap();
++_A_foo = new WeakMap( // same as privateNamesUnique-1, but with an interface
++// same as privateNamesUnique-1, but with an interface
++);
class B {
-- constructor() {
-- _B_foo.set(this, void 0);
-- }
-+ #foo;
+ constructor() {
+ _B_foo.set(this, void 0);
+ }
}
-_B_foo = new WeakMap();
++_B_foo = new WeakMap( // same as privateNamesUnique-1, but with an interface
++// same as privateNamesUnique-1, but with an interface
++);
const b = new B();
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js b/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js
index 2057159283..f2b061fe9f 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js
@@ -23,21 +23,39 @@ class B {
//// [privateNamesUseBeforeDef.js]
+var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _A_foo, _A_bar, _A2_foo, _A3_foo, _B_foo, _B_bar;
class A {
- #foo = this.#bar; // Error
- #bar = 3;
+ constructor() {
+ _A_foo.set(this, __classPrivateFieldGet(this, _A_bar, "f")); // Error
+ _A_bar.set(this, 3);
+ }
}
+_A_foo = new WeakMap(), _A_bar = new WeakMap();
class A2 {
- #foo = this.#bar(); // No Error
+ constructor() {
+ _A2_foo.set(this, this.#bar()); // No Error
+ }
#bar() { return 3; }
;
}
+_A2_foo = new WeakMap();
class A3 {
- #foo = this.#bar; // No Error
+ constructor() {
+ _A3_foo.set(this, this.#bar); // No Error
+ }
get #bar() { return 3; }
;
}
+_A3_foo = new WeakMap();
class B {
- #foo = this.#bar; // Error
- #bar = this.#foo;
+ constructor() {
+ _B_foo.set(this, __classPrivateFieldGet(this, _B_bar, "f")); // Error
+ _B_bar.set(this, __classPrivateFieldGet(this, _B_foo, "f"));
+ }
}
+_B_foo = new WeakMap(), _B_bar = new WeakMap();
diff --git a/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js.diff b/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js.diff
index 20b66d407e..cfcf45e2f5 100644
--- a/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/privateNamesUseBeforeDef.js.diff
@@ -1,50 +1,38 @@
--- old.privateNamesUseBeforeDef.js
+++ new.privateNamesUseBeforeDef.js
-@@= skipped -22, +22 lines =@@
-
-
- //// [privateNamesUseBeforeDef.js]
--var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
+@@= skipped -27, +27 lines =@@
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
-var _A_foo, _A_bar, _A2_instances, _A2_foo, _A2_bar, _A3_instances, _A3_foo, _A3_bar_get, _B_foo, _B_bar;
++var _A_foo, _A_bar, _A2_foo, _A3_foo, _B_foo, _B_bar;
class A {
-- constructor() {
-- _A_foo.set(this, __classPrivateFieldGet(this, _A_bar, "f")); // Error
-- _A_bar.set(this, 3);
-- }
-+ #foo = this.#bar; // Error
-+ #bar = 3;
- }
--_A_foo = new WeakMap(), _A_bar = new WeakMap();
+ constructor() {
+ _A_foo.set(this, __classPrivateFieldGet(this, _A_bar, "f")); // Error
+@@= skipped -10, +10 lines =@@
+ _A_foo = new WeakMap(), _A_bar = new WeakMap();
class A2 {
-- constructor() {
+ constructor() {
- _A2_instances.add(this);
- _A2_foo.set(this, __classPrivateFieldGet(this, _A2_instances, "m", _A2_bar).call(this)); // No Error
-- }
-+ #foo = this.#bar(); // No Error
++ _A2_foo.set(this, this.#bar()); // No Error
+ }
+ #bar() { return 3; }
;
}
-_A2_foo = new WeakMap(), _A2_instances = new WeakSet(), _A2_bar = function _A2_bar() { return 3; };
++_A2_foo = new WeakMap();
class A3 {
-- constructor() {
+ constructor() {
- _A3_instances.add(this);
- _A3_foo.set(this, __classPrivateFieldGet(this, _A3_instances, "a", _A3_bar_get)); // No Error
-- }
-+ #foo = this.#bar; // No Error
++ _A3_foo.set(this, this.#bar); // No Error
+ }
+ get #bar() { return 3; }
;
}
-_A3_foo = new WeakMap(), _A3_instances = new WeakSet(), _A3_bar_get = function _A3_bar_get() { return 3; };
++_A3_foo = new WeakMap();
class B {
-- constructor() {
-- _B_foo.set(this, __classPrivateFieldGet(this, _B_bar, "f")); // Error
-- _B_bar.set(this, __classPrivateFieldGet(this, _B_foo, "f"));
-- }
-+ #foo = this.#bar; // Error
-+ #bar = this.#foo;
- }
--_B_foo = new WeakMap(), _B_bar = new WeakMap();
\ No newline at end of file
+ constructor() {
+ _B_foo.set(this, __classPrivateFieldGet(this, _B_bar, "f")); // Error
\ No newline at end of file
diff --git a/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js b/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js
index 37af274c84..0116b63422 100644
--- a/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js
+++ b/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js
@@ -163,17 +163,40 @@ class C13 {
//// [strictPropertyInitialization.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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+};
+var _C1_f, _C1_g, _C1_h, _C1_i, _C4_d, _C4_e, _C4_f, _C5_b, _C6_b, _C7_b, _C10_d, _C11_b;
// Properties with non-undefined types require initialization
class C1 {
+ constructor() {
+ _C1_f.set(this, void 0); //Error
+ _C1_g.set(this, void 0);
+ _C1_h.set(this, void 0); //Error
+ _C1_i.set(this, void 0);
+ }
a; // Error
b;
c; // Error
d;
- #f; //Error
- #g;
- #h; //Error
- #i;
}
+_C1_f = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+), _C1_g = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+), _C1_h = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+), _C1_i = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+);
// No strict initialization checks for static members
class C3 {
static a;
@@ -183,47 +206,65 @@ class C3 {
}
// Initializer satisfies strict initialization check
class C4 {
+ constructor() {
+ _C4_d.set(this, 0);
+ _C4_e.set(this, 0);
+ _C4_f.set(this, "abc");
+ }
a = 0;
b = 0;
c = "abc";
- #d = 0;
- #e = 0;
- #f = "abc";
}
+_C4_d = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+), _C4_e = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+), _C4_f = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+);
// Assignment in constructor satisfies strict initialization check
class C5 {
a;
- #b;
constructor() {
+ _C5_b.set(this, void 0);
this.a = 0;
- this.#b = 0;
+ __classPrivateFieldSet(this, _C5_b, 0, "f");
}
}
+_C5_b = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+);
// All code paths must contain assignment
class C6 {
a; // Error
- #b;
constructor(cond) {
+ _C6_b.set(this, void 0);
if (cond) {
return;
}
this.a = 0;
- this.#b = 0;
+ __classPrivateFieldSet(this, _C6_b, 0, "f");
}
}
+_C6_b = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+);
class C7 {
a;
- #b;
constructor(cond) {
+ _C7_b.set(this, void 0);
if (cond) {
this.a = 1;
- this.#b = 1;
+ __classPrivateFieldSet(this, _C7_b, 1, "f");
return;
}
this.a = 0;
- this.#b = 1;
+ __classPrivateFieldSet(this, _C7_b, 1, "f");
}
}
+_C7_b = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+);
// Properties with string literal names aren't checked
class C8 {
a; // Error
@@ -243,24 +284,30 @@ class C10 {
a;
b;
c;
- #d;
constructor() {
+ _C10_d.set(this, void 0);
let x = this.a; // Error
this.a = this.b; // Error
- this.b = this.#d; //Error
+ this.b = __classPrivateFieldGet(this, _C10_d, "f"); //Error
this.b = x;
- this.#d = x;
+ __classPrivateFieldSet(this, _C10_d, x, "f");
let y = this.c;
}
}
+_C10_d = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+);
class C11 {
a;
- #b;
constructor() {
+ _C11_b.set(this, void 0);
this.a = someValue();
- this.#b = someValue();
+ __classPrivateFieldSet(this, _C11_b, someValue(), "f");
}
}
+_C11_b = new WeakMap( // Properties with non-undefined types require initialization
+// Properties with non-undefined types require initialization
+);
const a = 'a';
const b = Symbol();
class C12 {
diff --git a/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js.diff b/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js.diff
index be32773553..d8db5e454e 100644
--- a/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js.diff
+++ b/testdata/baselines/reference/submodule/conformance/strictPropertyInitialization.js.diff
@@ -5,36 +5,37 @@
//// [strictPropertyInitialization.js]
-"use strict";
- // Properties with non-undefined types require initialization
--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 __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
-- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
-- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
-- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
--};
--var _C1_f, _C1_g, _C1_h, _C1_i, _C4_d, _C4_e, _C4_f, _C5_b, _C6_b, _C7_b, _C10_d, _C11_b;
+-// Properties with non-undefined types require initialization
+ 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");
+@@= skipped -14, +12 lines =@@
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
+ };
+ var _C1_f, _C1_g, _C1_h, _C1_i, _C4_d, _C4_e, _C4_f, _C5_b, _C6_b, _C7_b, _C10_d, _C11_b;
++// Properties with non-undefined types require initialization
class C1 {
-- constructor() {
-- _C1_f.set(this, void 0); //Error
-- _C1_g.set(this, void 0);
-- _C1_h.set(this, void 0); //Error
-- _C1_i.set(this, void 0);
-- }
+ constructor() {
+ _C1_f.set(this, void 0); //Error
+@@= skipped -7, +8 lines =@@
+ _C1_h.set(this, void 0); //Error
+ _C1_i.set(this, void 0);
+ }
+ a; // Error
+ b;
+ c; // Error
+ d;
-+ #f; //Error
-+ #g;
-+ #h; //Error
-+ #i;
}
-_C1_f = new WeakMap(), _C1_g = new WeakMap(), _C1_h = new WeakMap(), _C1_i = new WeakMap();
++_C1_f = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++), _C1_g = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++), _C1_h = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++), _C1_i = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++);
// No strict initialization checks for static members
class C3 {
+ static a;
@@ -44,66 +45,66 @@
}
// Initializer satisfies strict initialization check
class C4 {
-- constructor() {
+ constructor() {
- this.a = 0;
- this.b = 0;
- this.c = "abc";
-- _C4_d.set(this, 0);
-- _C4_e.set(this, 0);
-- _C4_f.set(this, "abc");
-- }
+ _C4_d.set(this, 0);
+ _C4_e.set(this, 0);
+ _C4_f.set(this, "abc");
+ }
+ a = 0;
+ b = 0;
+ c = "abc";
-+ #d = 0;
-+ #e = 0;
-+ #f = "abc";
}
-_C4_d = new WeakMap(), _C4_e = new WeakMap(), _C4_f = new WeakMap();
++_C4_d = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++), _C4_e = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++), _C4_f = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++);
// Assignment in constructor satisfies strict initialization check
class C5 {
+ a;
-+ #b;
constructor() {
-- _C5_b.set(this, void 0);
+ _C5_b.set(this, void 0);
this.a = 0;
-- __classPrivateFieldSet(this, _C5_b, 0, "f");
-+ this.#b = 0;
+ __classPrivateFieldSet(this, _C5_b, 0, "f");
}
}
-_C5_b = new WeakMap();
++_C5_b = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++);
// All code paths must contain assignment
class C6 {
+ a; // Error
-+ #b;
constructor(cond) {
-- _C6_b.set(this, void 0);
+ _C6_b.set(this, void 0);
if (cond) {
- return;
- }
- this.a = 0;
-- __classPrivateFieldSet(this, _C6_b, 0, "f");
-+ this.#b = 0;
+@@= skipped -37, +63 lines =@@
+ __classPrivateFieldSet(this, _C6_b, 0, "f");
}
}
-_C6_b = new WeakMap();
++_C6_b = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++);
class C7 {
+ a;
-+ #b;
constructor(cond) {
-- _C7_b.set(this, void 0);
+ _C7_b.set(this, void 0);
if (cond) {
- this.a = 1;
-- __classPrivateFieldSet(this, _C7_b, 1, "f");
-+ this.#b = 1;
- return;
- }
- this.a = 0;
-- __classPrivateFieldSet(this, _C7_b, 1, "f");
-+ this.#b = 1;
+@@= skipped -13, +16 lines =@@
+ __classPrivateFieldSet(this, _C7_b, 1, "f");
}
}
-_C7_b = new WeakMap();
++_C7_b = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++);
// Properties with string literal names aren't checked
class C8 {
+ a; // Error
@@ -123,31 +124,29 @@
+ a;
+ b;
+ c;
-+ #d;
constructor() {
-- _C10_d.set(this, void 0);
+ _C10_d.set(this, void 0);
let x = this.a; // Error
- this.a = this.b; // Error
-- this.b = __classPrivateFieldGet(this, _C10_d, "f"); //Error
-+ this.b = this.#d; //Error
- this.b = x;
-- __classPrivateFieldSet(this, _C10_d, x, "f");
-+ this.#d = x;
+@@= skipped -20, +32 lines =@@
let y = this.c;
}
}
-_C10_d = new WeakMap();
++_C10_d = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++);
class C11 {
+ a;
-+ #b;
constructor() {
-- _C11_b.set(this, void 0);
+ _C11_b.set(this, void 0);
this.a = someValue();
-- __classPrivateFieldSet(this, _C11_b, someValue(), "f");
-+ this.#b = someValue();
+ __classPrivateFieldSet(this, _C11_b, someValue(), "f");
}
}
-_C11_b = new WeakMap();
++_C11_b = new WeakMap( // Properties with non-undefined types require initialization
++// Properties with non-undefined types require initialization
++);
const a = 'a';
const b = Symbol();
class C12 {
@@ -157,7 +156,7 @@
constructor() {
this[a] = 1;
this[b] = 1;
-@@= skipped -115, +116 lines =@@
+@@= skipped -24, +32 lines =@@
E["B"] = "B";
})(E || (E = {}));
class C13 {