Decorators normative changes (#52582)
This commit is contained in:
Родитель
0ef9e8eac9
Коммит
6c9792aa87
|
@ -46445,6 +46445,10 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
|||
let lastStatic: Node | undefined, lastDeclare: Node | undefined, lastAsync: Node | undefined, lastOverride: Node | undefined, firstDecorator: Decorator | undefined;
|
||||
let flags = ModifierFlags.None;
|
||||
let sawExportBeforeDecorators = false;
|
||||
// We parse decorators and modifiers in four contiguous chunks:
|
||||
// [...leadingDecorators, ...leadingModifiers, ...trailingDecorators, ...trailingModifiers]. It is an error to
|
||||
// have both leading and trailing decorators.
|
||||
let hasLeadingDecorators = false;
|
||||
for (const modifier of (node as HasModifiers).modifiers!) {
|
||||
if (isDecorator(modifier)) {
|
||||
if (!nodeCanBeDecorated(legacyDecorators, node, node.parent, node.parent.parent)) {
|
||||
|
@ -46461,13 +46465,35 @@ export function createTypeChecker(host: TypeCheckerHost): TypeChecker {
|
|||
return grammarErrorOnFirstToken(node, Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name);
|
||||
}
|
||||
}
|
||||
|
||||
// if we've seen any modifiers aside from `export`, `default`, or another decorator, then this is an invalid position
|
||||
if (flags & ~(ModifierFlags.ExportDefault | ModifierFlags.Decorator)) {
|
||||
return grammarErrorOnNode(modifier, Diagnostics.Decorators_are_not_valid_here);
|
||||
}
|
||||
|
||||
// if we've already seen leading decorators and leading modifiers, then trailing decorators are an invalid position
|
||||
if (hasLeadingDecorators && flags & ModifierFlags.Modifier) {
|
||||
Debug.assertIsDefined(firstDecorator);
|
||||
const sourceFile = getSourceFileOfNode(modifier);
|
||||
if (!hasParseDiagnostics(sourceFile)) {
|
||||
addRelatedInfo(
|
||||
error(modifier, Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),
|
||||
createDiagnosticForNode(firstDecorator, Diagnostics.Decorator_used_before_export_here));
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
flags |= ModifierFlags.Decorator;
|
||||
if (flags & ModifierFlags.Export) {
|
||||
|
||||
// if we have not yet seen a modifier, then these are leading decorators
|
||||
if (!(flags & ModifierFlags.Modifier)) {
|
||||
hasLeadingDecorators = true;
|
||||
}
|
||||
else if (flags & ModifierFlags.Export) {
|
||||
sawExportBeforeDecorators = true;
|
||||
}
|
||||
|
||||
firstDecorator ??= modifier;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -1589,6 +1589,10 @@
|
|||
"category": "Error",
|
||||
"code": 1485
|
||||
},
|
||||
"Decorator used before 'export' here.": {
|
||||
"category": "Error",
|
||||
"code": 1486
|
||||
},
|
||||
|
||||
"The types of '{0}' are incompatible between these types.": {
|
||||
"category": "Error",
|
||||
|
@ -6560,7 +6564,7 @@
|
|||
"category": "Error",
|
||||
"code": 8037
|
||||
},
|
||||
"Decorators must come after 'export' or 'export default' in JavaScript files.": {
|
||||
"Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.": {
|
||||
"category": "Error",
|
||||
"code": 8038
|
||||
},
|
||||
|
|
|
@ -25,6 +25,7 @@ import {
|
|||
isComputedPropertyName,
|
||||
isIdentifier,
|
||||
memoize,
|
||||
ObjectLiteralElementLike,
|
||||
PrivateIdentifier,
|
||||
ScriptTarget,
|
||||
setEmitFlags,
|
||||
|
@ -250,155 +251,97 @@ export function createEmitHelperFactory(context: TransformationContext): EmitHel
|
|||
]);
|
||||
}
|
||||
|
||||
// Per https://github.com/tc39/proposal-decorators/issues/494, we may need to change the emit for the `access` object
|
||||
// so that it does not need to be used via `.call`. The following two sections represent the options presented in
|
||||
// tc39/proposal-decorators#494
|
||||
//
|
||||
// === Current approach (`access.get.call(obj)`, `access.set.call(obj, value)`) ===
|
||||
//
|
||||
// function createESDecorateClassElementAccessGetMethod(elementName: ESDecorateName) {
|
||||
// const accessor = elementName.computed ?
|
||||
// factory.createElementAccessExpression(factory.createThis(), elementName.name) :
|
||||
// factory.createPropertyAccessExpression(factory.createThis(), elementName.name);
|
||||
//
|
||||
// return factory.createMethodDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*asteriskToken*/ undefined,
|
||||
// "get",
|
||||
// /*questionToken*/ undefined,
|
||||
// /*typeParameters*/ undefined,
|
||||
// [],
|
||||
// /*type*/ undefined,
|
||||
// factory.createBlock([factory.createReturnStatement(accessor)])
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// function createESDecorateClassElementAccessSetMethod(elementName: ESDecorateName) {
|
||||
// const accessor = elementName.computed ?
|
||||
// factory.createElementAccessExpression(factory.createThis(), elementName.name) :
|
||||
// factory.createPropertyAccessExpression(factory.createThis(), elementName.name);
|
||||
//
|
||||
// return factory.createMethodDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*asteriskToken*/ undefined,
|
||||
// "set",
|
||||
// /*questionToken*/ undefined,
|
||||
// /*typeParameters*/ undefined,
|
||||
// [factory.createParameterDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*dotDotDotToken*/ undefined,
|
||||
// factory.createIdentifier("value")
|
||||
// )],
|
||||
// /*type*/ undefined,
|
||||
// factory.createBlock([
|
||||
// factory.createExpressionStatement(
|
||||
// factory.createAssignment(
|
||||
// accessor,
|
||||
// factory.createIdentifier("value")
|
||||
// )
|
||||
// )
|
||||
// ])
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// function createESDecorateClassElementAccessObject(name: ESDecorateName, access: ESDecorateClassElementAccess) {
|
||||
// const properties: ObjectLiteralElementLike[] = [];
|
||||
// if (access.get) properties.push(createESDecorateClassElementAccessGetMethod(name));
|
||||
// if (access.set) properties.push(createESDecorateClassElementAccessSetMethod(name));
|
||||
// return factory.createObjectLiteralExpression(properties);
|
||||
// }
|
||||
//
|
||||
// === Suggested approach (`access.get(obj)`, `access.set(obj, value)`, `access.has(obj)`) ===
|
||||
//
|
||||
// function createESDecorateClassElementAccessGetMethod(elementName: ESDecorateName) {
|
||||
// const accessor = elementName.computed ?
|
||||
// factory.createElementAccessExpression(factory.createIdentifier("obj"), elementName.name) :
|
||||
// factory.createPropertyAccessExpression(factory.createIdentifier("obj"), elementName.name);
|
||||
//
|
||||
// return factory.createMethodDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*asteriskToken*/ undefined,
|
||||
// "get",
|
||||
// /*questionToken*/ undefined,
|
||||
// /*typeParameters*/ undefined,
|
||||
// [factory.createParameterDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*dotDotDotToken*/ undefined,
|
||||
// factory.createIdentifier("obj")
|
||||
// )],
|
||||
// /*type*/ undefined,
|
||||
// factory.createBlock([factory.createReturnStatement(accessor)])
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// function createESDecorateClassElementAccessSetMethod(elementName: ESDecorateName) {
|
||||
// const accessor = elementName.computed ?
|
||||
// factory.createElementAccessExpression(factory.createIdentifier("obj"), elementName.name) :
|
||||
// factory.createPropertyAccessExpression(factory.createIdentifier("obj"), elementName.name);
|
||||
//
|
||||
// return factory.createMethodDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*asteriskToken*/ undefined,
|
||||
// "set",
|
||||
// /*questionToken*/ undefined,
|
||||
// /*typeParameters*/ undefined,
|
||||
// [factory.createParameterDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*dotDotDotToken*/ undefined,
|
||||
// factory.createIdentifier("obj")
|
||||
// ),
|
||||
// factory.createParameterDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*dotDotDotToken*/ undefined,
|
||||
// factory.createIdentifier("value")
|
||||
// )],
|
||||
// /*type*/ undefined,
|
||||
// factory.createBlock([
|
||||
// factory.createExpressionStatement(
|
||||
// factory.createAssignment(
|
||||
// accessor,
|
||||
// factory.createIdentifier("value")
|
||||
// )
|
||||
// )
|
||||
// ])
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// function createESDecorateClassElementAccessHasMethod(elementName: ESDecorateName) {
|
||||
// const propertyName =
|
||||
// elementName.computed ? elementName.name :
|
||||
// isIdentifier(elementName.name) ? factory.createStringLiteralFromNode(elementName.name) :
|
||||
// elementName.name;
|
||||
//
|
||||
// return factory.createMethodDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*asteriskToken*/ undefined,
|
||||
// "has",
|
||||
// /*questionToken*/ undefined,
|
||||
// /*typeParameters*/ undefined,
|
||||
// [factory.createParameterDeclaration(
|
||||
// /*modifiers*/ undefined,
|
||||
// /*dotDotDotToken*/ undefined,
|
||||
// factory.createIdentifier("obj")
|
||||
// )],
|
||||
// /*type*/ undefined,
|
||||
// factory.createBlock([factory.createReturnStatement(
|
||||
// factory.createBinaryExpression(
|
||||
// propertyName,
|
||||
// SyntaxKind.InKeyword,
|
||||
// factory.createIdentifier("obj")
|
||||
// )
|
||||
// )])
|
||||
// );
|
||||
// }
|
||||
//
|
||||
// function createESDecorateClassElementAccessObject(name: ESDecorateName, access: ESDecorateClassElementAccess) {
|
||||
// const properties: ObjectLiteralElementLike[] = [];
|
||||
// if (access.get) properties.push(createESDecorateClassElementAccessGetMethod(name));
|
||||
// if (access.set) properties.push(createESDecorateClassElementAccessSetMethod(name));
|
||||
// property.push(createESDecorateClassElementAccessHasMethod(name));
|
||||
// return factory.createObjectLiteralExpression(properties);
|
||||
// }
|
||||
|
||||
function createESDecorateClassElementAccessGetMethod(elementName: ESDecorateName) {
|
||||
const accessor = elementName.computed ?
|
||||
factory.createElementAccessExpression(factory.createIdentifier("obj"), elementName.name) :
|
||||
factory.createPropertyAccessExpression(factory.createIdentifier("obj"), elementName.name);
|
||||
|
||||
return factory.createPropertyAssignment(
|
||||
"get",
|
||||
factory.createArrowFunction(
|
||||
/*modifiers*/ undefined,
|
||||
/*typeParameters*/ undefined,
|
||||
[factory.createParameterDeclaration(
|
||||
/*modifiers*/ undefined,
|
||||
/*dotDotDotToken*/ undefined,
|
||||
factory.createIdentifier("obj")
|
||||
)],
|
||||
/*type*/ undefined,
|
||||
/*equalsGreaterThanToken*/ undefined,
|
||||
accessor
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function createESDecorateClassElementAccessSetMethod(elementName: ESDecorateName) {
|
||||
const accessor = elementName.computed ?
|
||||
factory.createElementAccessExpression(factory.createIdentifier("obj"), elementName.name) :
|
||||
factory.createPropertyAccessExpression(factory.createIdentifier("obj"), elementName.name);
|
||||
|
||||
return factory.createPropertyAssignment(
|
||||
"set",
|
||||
factory.createArrowFunction(
|
||||
/*modifiers*/ undefined,
|
||||
/*typeParameters*/ undefined,
|
||||
[factory.createParameterDeclaration(
|
||||
/*modifiers*/ undefined,
|
||||
/*dotDotDotToken*/ undefined,
|
||||
factory.createIdentifier("obj")
|
||||
),
|
||||
factory.createParameterDeclaration(
|
||||
/*modifiers*/ undefined,
|
||||
/*dotDotDotToken*/ undefined,
|
||||
factory.createIdentifier("value")
|
||||
)],
|
||||
/*type*/ undefined,
|
||||
/*equalsGreaterThanToken*/ undefined,
|
||||
factory.createBlock([
|
||||
factory.createExpressionStatement(
|
||||
factory.createAssignment(
|
||||
accessor,
|
||||
factory.createIdentifier("value")
|
||||
)
|
||||
)
|
||||
])
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function createESDecorateClassElementAccessHasMethod(elementName: ESDecorateName) {
|
||||
const propertyName =
|
||||
elementName.computed ? elementName.name :
|
||||
isIdentifier(elementName.name) ? factory.createStringLiteralFromNode(elementName.name) :
|
||||
elementName.name;
|
||||
|
||||
return factory.createPropertyAssignment(
|
||||
"has",
|
||||
factory.createArrowFunction(
|
||||
/*modifiers*/ undefined,
|
||||
/*typeParameters*/ undefined,
|
||||
[factory.createParameterDeclaration(
|
||||
/*modifiers*/ undefined,
|
||||
/*dotDotDotToken*/ undefined,
|
||||
factory.createIdentifier("obj")
|
||||
)],
|
||||
/*type*/ undefined,
|
||||
/*equalsGreaterThanToken*/ undefined,
|
||||
factory.createBinaryExpression(
|
||||
propertyName,
|
||||
SyntaxKind.InKeyword,
|
||||
factory.createIdentifier("obj")
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
function createESDecorateClassElementAccessObject(name: ESDecorateName, access: ESDecorateClassElementAccess) {
|
||||
const properties: ObjectLiteralElementLike[] = [];
|
||||
properties.push(createESDecorateClassElementAccessHasMethod(name));
|
||||
if (access.get) properties.push(createESDecorateClassElementAccessGetMethod(name));
|
||||
if (access.set) properties.push(createESDecorateClassElementAccessSetMethod(name));
|
||||
return factory.createObjectLiteralExpression(properties);
|
||||
}
|
||||
|
||||
function createESDecorateClassElementContextObject(contextIn: ESDecorateClassElementContext) {
|
||||
return factory.createObjectLiteralExpression([
|
||||
|
@ -406,9 +349,7 @@ export function createEmitHelperFactory(context: TransformationContext): EmitHel
|
|||
factory.createPropertyAssignment(factory.createIdentifier("name"), contextIn.name.computed ? contextIn.name.name : factory.createStringLiteralFromNode(contextIn.name.name)),
|
||||
factory.createPropertyAssignment(factory.createIdentifier("static"), contextIn.static ? factory.createTrue() : factory.createFalse()),
|
||||
factory.createPropertyAssignment(factory.createIdentifier("private"), contextIn.private ? factory.createTrue() : factory.createFalse()),
|
||||
|
||||
// Disabled, pending resolution of https://github.com/tc39/proposal-decorators/issues/494
|
||||
// factory.createPropertyAssignment(factory.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access))
|
||||
factory.createPropertyAssignment(factory.createIdentifier("access"), createESDecorateClassElementAccessObject(contextIn.name, contextIn.access))
|
||||
]);
|
||||
}
|
||||
|
||||
|
|
|
@ -7710,20 +7710,36 @@ namespace Parser {
|
|||
function parseModifiers(allowDecorators: boolean, permitConstAsModifier?: boolean, stopOnStartOfClassStaticBlock?: boolean): NodeArray<ModifierLike> | undefined {
|
||||
const pos = getNodePos();
|
||||
let list: ModifierLike[] | undefined;
|
||||
let modifier, hasSeenStaticModifier = false;
|
||||
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
||||
if (modifier.kind === SyntaxKind.StaticKeyword) hasSeenStaticModifier = true;
|
||||
list = append(list, modifier);
|
||||
}
|
||||
let decorator, modifier, hasSeenStaticModifier = false, hasLeadingModifier = false, hasTrailingDecorator = false;
|
||||
|
||||
// Decorators should be contiguous in a list of modifiers (i.e., `[...leadingModifiers, ...decorators, ...trailingModifiers]`).
|
||||
// The leading modifiers *should* only contain `export` and `default` when decorators are present, but we'll handle errors for any other leading modifiers in the checker.
|
||||
// Decorators should be contiguous in a list of modifiers but can potentially appear in two places (i.e., `[...leadingDecorators, ...leadingModifiers, ...trailingDecorators, ...trailingModifiers]`).
|
||||
// The leading modifiers *should* only contain `export` and `default` when trailingDecorators are present, but we'll handle errors for any other leading modifiers in the checker.
|
||||
// It is illegal to have both leadingDecorators and trailingDecorators, but we will report that as a grammar check in the checker.
|
||||
|
||||
// parse leading decorators
|
||||
if (allowDecorators && token() === SyntaxKind.AtToken) {
|
||||
let decorator;
|
||||
while (decorator = tryParseDecorator()) {
|
||||
list = append(list, decorator);
|
||||
}
|
||||
}
|
||||
|
||||
// parse leading modifiers
|
||||
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
||||
if (modifier.kind === SyntaxKind.StaticKeyword) hasSeenStaticModifier = true;
|
||||
list = append(list, modifier);
|
||||
hasLeadingModifier = true;
|
||||
}
|
||||
|
||||
// parse trailing decorators, but only if we parsed any leading modifiers
|
||||
if (hasLeadingModifier && allowDecorators && token() === SyntaxKind.AtToken) {
|
||||
while (decorator = tryParseDecorator()) {
|
||||
list = append(list, decorator);
|
||||
hasTrailingDecorator = true;
|
||||
}
|
||||
}
|
||||
|
||||
// parse trailing modifiers, but only if we parsed any trailing decorators
|
||||
if (hasTrailingDecorator) {
|
||||
while (modifier = tryParseModifier(hasSeenStaticModifier, permitConstAsModifier, stopOnStartOfClassStaticBlock)) {
|
||||
if (modifier.kind === SyntaxKind.StaticKeyword) hasSeenStaticModifier = true;
|
||||
list = append(list, modifier);
|
||||
|
|
|
@ -3,6 +3,7 @@ import {
|
|||
__String,
|
||||
addInternalEmitFlags,
|
||||
addRange,
|
||||
addRelatedInfo,
|
||||
append,
|
||||
arrayFrom,
|
||||
arrayIsEqualTo,
|
||||
|
@ -2957,14 +2958,21 @@ export function createProgram(rootNamesOrOptions: readonly string[] | CreateProg
|
|||
}
|
||||
else if (isClassDeclaration(parent)) {
|
||||
const exportIndex = findIndex(parent.modifiers, isExportModifier);
|
||||
const defaultIndex = findIndex(parent.modifiers, isDefaultModifier);
|
||||
if (exportIndex >= 0 && decoratorIndex < exportIndex) {
|
||||
// report illegal decorator before `export default`
|
||||
diagnostics.push(createDiagnosticForNode(parent.modifiers[decoratorIndex], Diagnostics.Decorators_must_come_after_export_or_export_default_in_JavaScript_files));
|
||||
}
|
||||
else if (defaultIndex >= 0 && decoratorIndex < defaultIndex) {
|
||||
// report illegal decorator before `export default`
|
||||
diagnostics.push(createDiagnosticForNode(parent.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here));
|
||||
if (exportIndex >= 0) {
|
||||
const defaultIndex = findIndex(parent.modifiers, isDefaultModifier);
|
||||
if (decoratorIndex > exportIndex && defaultIndex >= 0 && decoratorIndex < defaultIndex) {
|
||||
// report illegal decorator between `export` and `default`
|
||||
diagnostics.push(createDiagnosticForNode(parent.modifiers[decoratorIndex], Diagnostics.Decorators_are_not_valid_here));
|
||||
}
|
||||
else if (exportIndex >= 0 && decoratorIndex < exportIndex) {
|
||||
const trailingDecoratorIndex = findIndex(parent.modifiers, isDecorator, exportIndex);
|
||||
if (trailingDecoratorIndex >= 0) {
|
||||
diagnostics.push(addRelatedInfo(
|
||||
createDiagnosticForNode(parent.modifiers[trailingDecoratorIndex], Diagnostics.Decorators_may_not_appear_after_export_or_export_default_if_they_also_appear_before_export),
|
||||
createDiagnosticForNode(parent.modifiers[decoratorIndex], Diagnostics.Decorator_used_before_export_here),
|
||||
));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/**
|
||||
* The decorator context types provided to class member decorators.
|
||||
* The decorator context types provided to class element decorators.
|
||||
*/
|
||||
type ClassMemberDecoratorContext =
|
||||
| ClassMethodDecoratorContext
|
||||
|
@ -60,34 +60,37 @@ interface ClassMethodDecoratorContext<
|
|||
This = unknown,
|
||||
Value extends (this: This, ...args: any) => any = (this: This, ...args: any) => any,
|
||||
> {
|
||||
/** The kind of class member that was decorated. */
|
||||
/** The kind of class element that was decorated. */
|
||||
readonly kind: "method";
|
||||
|
||||
/** The name of the decorated class member. */
|
||||
/** The name of the decorated class element. */
|
||||
readonly name: string | symbol;
|
||||
|
||||
/** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
|
||||
/** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
|
||||
readonly static: boolean;
|
||||
|
||||
/** A value indicating whether the class member has a private name. */
|
||||
/** A value indicating whether the class element has a private name. */
|
||||
readonly private: boolean;
|
||||
|
||||
// NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
|
||||
// /** An object that can be used to access the current value of the class member at runtime. */
|
||||
// readonly access: {
|
||||
// /**
|
||||
// * Gets the current value of the method from the provided receiver.
|
||||
// *
|
||||
// * @example
|
||||
// * let fn = context.access.get.call(instance);
|
||||
// */
|
||||
// get(this: This): Value;
|
||||
// };
|
||||
/** An object that can be used to access the current value of the class element at runtime. */
|
||||
readonly access: {
|
||||
/**
|
||||
* Determines whether an object has a property with the same name as the decorated element.
|
||||
*/
|
||||
has(object: This): boolean;
|
||||
/**
|
||||
* Gets the current value of the method from the provided object.
|
||||
*
|
||||
* @example
|
||||
* let fn = context.access.get(instance);
|
||||
*/
|
||||
get(object: This): Value;
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` member), or before instance initializers are run (when
|
||||
* decorating a non-`static` member).
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
*
|
||||
* @example
|
||||
* ```ts
|
||||
|
@ -121,34 +124,37 @@ interface ClassGetterDecoratorContext<
|
|||
This = unknown,
|
||||
Value = unknown,
|
||||
> {
|
||||
/** The kind of class member that was decorated. */
|
||||
/** The kind of class element that was decorated. */
|
||||
readonly kind: "getter";
|
||||
|
||||
/** The name of the decorated class member. */
|
||||
/** The name of the decorated class element. */
|
||||
readonly name: string | symbol;
|
||||
|
||||
/** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
|
||||
/** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
|
||||
readonly static: boolean;
|
||||
|
||||
/** A value indicating whether the class member has a private name. */
|
||||
/** A value indicating whether the class element has a private name. */
|
||||
readonly private: boolean;
|
||||
|
||||
// NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
|
||||
// /** An object that can be used to access the current value of the class member at runtime. */
|
||||
// readonly access: {
|
||||
// /**
|
||||
// * Invokes the getter on the provided receiver.
|
||||
// *
|
||||
// * @example
|
||||
// * let value = context.access.get.call(instance);
|
||||
// */
|
||||
// get(this: This): Value;
|
||||
// };
|
||||
/** An object that can be used to access the current value of the class element at runtime. */
|
||||
readonly access: {
|
||||
/**
|
||||
* Determines whether an object has a property with the same name as the decorated element.
|
||||
*/
|
||||
has(object: This): boolean;
|
||||
/**
|
||||
* Invokes the getter on the provided object.
|
||||
*
|
||||
* @example
|
||||
* let value = context.access.get(instance);
|
||||
*/
|
||||
get(object: This): Value;
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` member), or before instance initializers are run (when
|
||||
* decorating a non-`static` member).
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
}
|
||||
|
@ -163,34 +169,37 @@ interface ClassSetterDecoratorContext<
|
|||
This = unknown,
|
||||
Value = unknown,
|
||||
> {
|
||||
/** The kind of class member that was decorated. */
|
||||
/** The kind of class element that was decorated. */
|
||||
readonly kind: "setter";
|
||||
|
||||
/** The name of the decorated class member. */
|
||||
/** The name of the decorated class element. */
|
||||
readonly name: string | symbol;
|
||||
|
||||
/** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
|
||||
/** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
|
||||
readonly static: boolean;
|
||||
|
||||
/** A value indicating whether the class member has a private name. */
|
||||
/** A value indicating whether the class element has a private name. */
|
||||
readonly private: boolean;
|
||||
|
||||
// NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
|
||||
/** An object that can be used to access the current value of the class member at runtime. */
|
||||
// readonly access: {
|
||||
// /**
|
||||
// * Invokes the setter on the provided receiver.
|
||||
// *
|
||||
// * @example
|
||||
// * context.access.set.call(instance, value);
|
||||
// */
|
||||
// set(this: This, value: Value): void;
|
||||
// };
|
||||
/** An object that can be used to access the current value of the class element at runtime. */
|
||||
readonly access: {
|
||||
/**
|
||||
* Determines whether an object has a property with the same name as the decorated element.
|
||||
*/
|
||||
has(object: This): boolean;
|
||||
/**
|
||||
* Invokes the setter on the provided object.
|
||||
*
|
||||
* @example
|
||||
* context.access.set(instance, value);
|
||||
*/
|
||||
set(object: This, value: Value): void;
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` member), or before instance initializers are run (when
|
||||
* decorating a non-`static` member).
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
}
|
||||
|
@ -205,42 +214,46 @@ interface ClassAccessorDecoratorContext<
|
|||
This = unknown,
|
||||
Value = unknown,
|
||||
> {
|
||||
/** The kind of class member that was decorated. */
|
||||
/** The kind of class element that was decorated. */
|
||||
readonly kind: "accessor";
|
||||
|
||||
/** The name of the decorated class member. */
|
||||
/** The name of the decorated class element. */
|
||||
readonly name: string | symbol;
|
||||
|
||||
/** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
|
||||
/** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
|
||||
readonly static: boolean;
|
||||
|
||||
/** A value indicating whether the class member has a private name. */
|
||||
/** A value indicating whether the class element has a private name. */
|
||||
readonly private: boolean;
|
||||
|
||||
// NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
|
||||
// /** An object that can be used to access the current value of the class member at runtime. */
|
||||
// readonly access: {
|
||||
// /**
|
||||
// * Invokes the getter on the provided receiver.
|
||||
// *
|
||||
// * @example
|
||||
// * let value = context.access.get.call(instance);
|
||||
// */
|
||||
// get(this: This): Value;
|
||||
/** An object that can be used to access the current value of the class element at runtime. */
|
||||
readonly access: {
|
||||
/**
|
||||
* Determines whether an object has a property with the same name as the decorated element.
|
||||
*/
|
||||
has(object: This): boolean;
|
||||
|
||||
// /**
|
||||
// * Invokes the setter on the provided receiver.
|
||||
// *
|
||||
// * @example
|
||||
// * context.access.set.call(instance, value);
|
||||
// */
|
||||
// set(this: This, value: Value): void;
|
||||
// };
|
||||
/**
|
||||
* Invokes the getter on the provided object.
|
||||
*
|
||||
* @example
|
||||
* let value = context.access.get(instance);
|
||||
*/
|
||||
get(object: This): Value;
|
||||
|
||||
/**
|
||||
* Invokes the setter on the provided object.
|
||||
*
|
||||
* @example
|
||||
* context.access.set(instance, value);
|
||||
*/
|
||||
set(object: This, value: Value): void;
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` member), or before instance initializers are run (when
|
||||
* decorating a non-`static` member).
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
}
|
||||
|
@ -302,36 +315,40 @@ interface ClassFieldDecoratorContext<
|
|||
This = unknown,
|
||||
Value = unknown,
|
||||
> {
|
||||
/** The kind of class member that was decorated. */
|
||||
/** The kind of class element that was decorated. */
|
||||
readonly kind: "field";
|
||||
|
||||
/** The name of the decorated class member. */
|
||||
/** The name of the decorated class element. */
|
||||
readonly name: string | symbol;
|
||||
|
||||
/** A value indicating whether the class member is a static (`true`) or instance (`false`) member. */
|
||||
/** A value indicating whether the class element is a static (`true`) or instance (`false`) element. */
|
||||
readonly static: boolean;
|
||||
|
||||
/** A value indicating whether the class member has a private name. */
|
||||
/** A value indicating whether the class element has a private name. */
|
||||
readonly private: boolean;
|
||||
|
||||
// NOTE: Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
|
||||
// /** An object that can be used to access the current value of the class member at runtime. */
|
||||
// readonly access: {
|
||||
// /**
|
||||
// * Gets the value of the field on the provided receiver.
|
||||
// */
|
||||
// get(this: This): Value;
|
||||
/** An object that can be used to access the current value of the class element at runtime. */
|
||||
readonly access: {
|
||||
/**
|
||||
* Determines whether an object has a property with the same name as the decorated element.
|
||||
*/
|
||||
has(object: This): boolean;
|
||||
|
||||
// /**
|
||||
// * Sets the value of the field on the provided receiver.
|
||||
// */
|
||||
// set(this: This, value: Value): void;
|
||||
// };
|
||||
/**
|
||||
* Gets the value of the field on the provided object.
|
||||
*/
|
||||
get(object: This): Value;
|
||||
|
||||
/**
|
||||
* Sets the value of the field on the provided object.
|
||||
*/
|
||||
set(object: This, value: Value): void;
|
||||
};
|
||||
|
||||
/**
|
||||
* Adds a callback to be invoked either before static initializers are run (when
|
||||
* decorating a `static` member), or before instance initializers are run (when
|
||||
* decorating a non-`static` member).
|
||||
* decorating a `static` element), or before instance initializers are run (when
|
||||
* decorating a non-`static` element).
|
||||
*/
|
||||
addInitializer(initializer: (this: This) => void): void;
|
||||
}
|
||||
|
|
|
@ -704,7 +704,7 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
});
|
||||
});
|
||||
// Disabled pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
|
||||
describe.skip(".access", () => {
|
||||
describe(".access", () => {
|
||||
describe("for: class", () => {
|
||||
it("is not set", () => {
|
||||
const { context } = exec`
|
||||
|
@ -716,7 +716,7 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
});
|
||||
});
|
||||
describe("for: method", () => {
|
||||
it("is { get }", () => {
|
||||
it("is { has, get }", () => {
|
||||
const { context } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -725,10 +725,11 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
}
|
||||
`;
|
||||
assert.isObject(context.access);
|
||||
assert.hasAllKeys(context.access, ["get"]);
|
||||
assert.hasAllKeys(context.access, ["has", "get"]);
|
||||
assert.isFunction(context.access.has);
|
||||
assert.isFunction(context.access.get);
|
||||
});
|
||||
it("accesses value using 'this'", () => {
|
||||
it("test public element presence via .has", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -736,27 +737,56 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
static method() {}
|
||||
}
|
||||
`;
|
||||
assert.strictEqual(context.access.get.call(C), C.method);
|
||||
|
||||
const obj = { method() {} };
|
||||
assert.strictEqual(context.access.get.call(obj), obj.method);
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isTrue(context.access.has({ method() {} }));
|
||||
assert.isFalse(context.access.has({ }));
|
||||
});
|
||||
it("can access value for private name", () => {
|
||||
const { context, C } = exec`
|
||||
it("test private element presence via .has", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static #method() {}
|
||||
}
|
||||
export class D {
|
||||
static #method() {}
|
||||
}
|
||||
`;
|
||||
assert.isFunction(context.access.get.call(C));
|
||||
|
||||
const obj = { ["#method"]() {} };
|
||||
assert.throws(() => context.access.get.call(obj));
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isFalse(context.access.has(D));
|
||||
assert.isFalse(context.access.has({ }));
|
||||
});
|
||||
it("read public element of argument", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static method() {}
|
||||
}
|
||||
`;
|
||||
assert.strictEqual(context.access.get(C), C.method);
|
||||
const obj = { method() {} };
|
||||
assert.isTrue(context.access.has(obj));
|
||||
assert.strictEqual(context.access.get(obj), obj.method);
|
||||
});
|
||||
it("read private element of argument", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static #method() {}
|
||||
}
|
||||
export class D {
|
||||
static #method() {}
|
||||
}
|
||||
`;
|
||||
assert.isFunction(context.access.get(C));
|
||||
assert.throws(() => context.access.get(D));
|
||||
assert.throws(() => context.access.get({ ["#method"]() {} }));
|
||||
});
|
||||
});
|
||||
describe("for: getter", () => {
|
||||
it("is { get }", () => {
|
||||
it("is { has, get }", () => {
|
||||
const { context } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -765,10 +795,11 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
}
|
||||
`;
|
||||
assert.isObject(context.access);
|
||||
assert.hasAllKeys(context.access, ["get"]);
|
||||
assert.hasAllKeys(context.access, ["has", "get"]);
|
||||
assert.isFunction(context.access.has);
|
||||
assert.isFunction(context.access.get);
|
||||
});
|
||||
it("accesses value using 'this'", () => {
|
||||
it("test public element presence via .has", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -776,27 +807,56 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
static get x() { return 1; }
|
||||
}
|
||||
`;
|
||||
assert.strictEqual(context.access.get.call(C), 1);
|
||||
|
||||
const obj = { x: 2 };
|
||||
assert.strictEqual(context.access.get.call(obj), 2);
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isTrue(context.access.has({
|
||||
get x() { return 2; }
|
||||
}));
|
||||
assert.isFalse(context.access.has({ }));
|
||||
});
|
||||
it("can access value for private name", () => {
|
||||
it("test private element presence via .has", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static #method() {}
|
||||
}
|
||||
export class D {
|
||||
static #method() {}
|
||||
}
|
||||
`;
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isFalse(context.access.has(D));
|
||||
assert.isFalse(context.access.has({ }));
|
||||
});
|
||||
it("read public element of argument", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static get x() { return 1; }
|
||||
}
|
||||
`;
|
||||
assert.strictEqual(context.access.get(C), 1);
|
||||
assert.strictEqual(context.access.get({ x: 2 }), 2);
|
||||
});
|
||||
it("read private element of argument", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static get #x() { return 1; }
|
||||
}
|
||||
export class D {
|
||||
static get #x() { return 1; }
|
||||
}
|
||||
`;
|
||||
assert.strictEqual(context.access.get.call(C), 1);
|
||||
|
||||
const obj = { "#x": 2 };
|
||||
assert.throws(() => context.access.get.call(obj));
|
||||
assert.strictEqual(context.access.get(C), 1);
|
||||
assert.throws(() => context.access.get(D));
|
||||
assert.throws(() => context.access.get({ "#x": 2 }));
|
||||
});
|
||||
});
|
||||
describe("for: setter", () => {
|
||||
it("is { set }", () => {
|
||||
it("is { has, set }", () => {
|
||||
const { context } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -805,10 +865,38 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
}
|
||||
`;
|
||||
assert.isObject(context.access);
|
||||
assert.hasAllKeys(context.access, ["set"]);
|
||||
assert.hasAllKeys(context.access, ["has", "set"]);
|
||||
assert.isFunction(context.access.has);
|
||||
assert.isFunction(context.access.set);
|
||||
});
|
||||
it("accesses value using 'this'", () => {
|
||||
it("test public element presence via .has", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static set x(v: number) { }
|
||||
}
|
||||
`;
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isTrue(context.access.has({ x: 2 }));
|
||||
assert.isFalse(context.access.has({ }));
|
||||
});
|
||||
it("test private element presence via .has", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static set #x(v: number) { }
|
||||
}
|
||||
export class D {
|
||||
static set #x(v: number) { }
|
||||
}
|
||||
`;
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isFalse(context.access.has(D));
|
||||
assert.isFalse(context.access.has({ "#x": 2 }));
|
||||
});
|
||||
it("write public element of argument", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -817,29 +905,31 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
static y: number;
|
||||
}
|
||||
`;
|
||||
context.access.set.call(C, 1);
|
||||
context.access.set(C, 1);
|
||||
assert.strictEqual(C.y, 1);
|
||||
|
||||
const obj = { x: 2 };
|
||||
context.access.set.call(obj, 3);
|
||||
context.access.set(obj, 3);
|
||||
assert.strictEqual(obj.x, 3);
|
||||
});
|
||||
it("can access value for private name", () => {
|
||||
const { context, C } = exec`
|
||||
it("write private element of argument", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static set #x(v: number) {}
|
||||
}
|
||||
export class D {
|
||||
static set #x(v: number) {}
|
||||
}
|
||||
`;
|
||||
context.access.set.call(C, 1);
|
||||
|
||||
const obj = { "#x": 2 };
|
||||
assert.throws(() => context.access.set.call(obj, 3));
|
||||
context.access.set(C, 1);
|
||||
assert.throws(() => context.access.set(D, 3));
|
||||
assert.throws(() => context.access.set({ "#x": 2 }, 3));
|
||||
});
|
||||
});
|
||||
describe("for: field", () => {
|
||||
it("is { get, set }", () => {
|
||||
it("is { has, get, set }", () => {
|
||||
const { context } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -848,11 +938,39 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
}
|
||||
`;
|
||||
assert.isObject(context.access);
|
||||
assert.hasAllKeys(context.access, ["get", "set"]);
|
||||
assert.hasAllKeys(context.access, ["has", "get", "set"]);
|
||||
assert.isFunction(context.access.has);
|
||||
assert.isFunction(context.access.get);
|
||||
assert.isFunction(context.access.set);
|
||||
});
|
||||
it("accesses value using 'this'", () => {
|
||||
it("test public element presence via .has", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static x: number = 1;
|
||||
}
|
||||
`;
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isTrue(context.access.has({ x: 2 }));
|
||||
assert.isFalse(context.access.has({ }));
|
||||
});
|
||||
it("test private element presence via .has", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static #x: number = 1;
|
||||
}
|
||||
export class D {
|
||||
static #x: number = 1;
|
||||
}
|
||||
`;
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isFalse(context.access.has(D));
|
||||
assert.isFalse(context.access.has({ "#x": 2 }));
|
||||
});
|
||||
it("read/write public element of argument", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -861,36 +979,41 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
}
|
||||
`;
|
||||
|
||||
assert.strictEqual(context.access.get.call(C), 1);
|
||||
context.access.set.call(C, 2);
|
||||
assert.strictEqual(context.access.get(C), 1);
|
||||
context.access.set(C, 2);
|
||||
assert.strictEqual(C.x, 2);
|
||||
|
||||
const obj = { x: 2 };
|
||||
assert.strictEqual(context.access.get.call(obj), 2);
|
||||
context.access.set.call(obj, 3);
|
||||
assert.strictEqual(context.access.get(obj), 2);
|
||||
context.access.set(obj, 3);
|
||||
assert.strictEqual(obj.x, 3);
|
||||
});
|
||||
it("can access value for private name", () => {
|
||||
const { context, C } = exec`
|
||||
it("read/write private element of argument", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static #x: number = 1;
|
||||
static getX() { return this.#x; }
|
||||
}
|
||||
export class D {
|
||||
static #x: number = 1;
|
||||
}
|
||||
`;
|
||||
|
||||
assert.strictEqual(context.access.get.call(C), 1);
|
||||
context.access.set.call(C, 2);
|
||||
assert.strictEqual(context.access.get(C), 1);
|
||||
context.access.set(C, 2);
|
||||
assert.strictEqual(C.getX(), 2);
|
||||
|
||||
const obj = { "#x": 2 };
|
||||
assert.throws(() => context.access.get.call(obj));
|
||||
assert.throws(() => context.access.set.call(obj, 3));
|
||||
assert.throws(() => context.access.get(D));
|
||||
assert.throws(() => context.access.set(D, 3));
|
||||
|
||||
assert.throws(() => context.access.get({ "#x": 2 }));
|
||||
assert.throws(() => context.access.set({ "#x": 2 }, 3));
|
||||
});
|
||||
});
|
||||
describe("for: auto-accessor", () => {
|
||||
it("is { get, set }", () => {
|
||||
it("is { has, get, set }", () => {
|
||||
const { context } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -898,11 +1021,39 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
static accessor x: number;
|
||||
}
|
||||
`;
|
||||
assert.hasAllKeys(context.access, ["get", "set"]);
|
||||
assert.hasAllKeys(context.access, ["has", "get", "set"]);
|
||||
assert.isFunction(context.access.has);
|
||||
assert.isFunction(context.access.get);
|
||||
assert.isFunction(context.access.set);
|
||||
});
|
||||
it("accesses value using 'this'", () => {
|
||||
it("test public element presence via .has", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static accessor x: number = 1;
|
||||
}
|
||||
`;
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isTrue(context.access.has({ x: 2 }));
|
||||
assert.isFalse(context.access.has({ }));
|
||||
});
|
||||
it("test private element presence via .has", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static accessor #x: number = 1;
|
||||
}
|
||||
export class D {
|
||||
static accessor #x: number = 1;
|
||||
}
|
||||
`;
|
||||
assert.isTrue(context.access.has(C));
|
||||
assert.isFalse(context.access.has(D));
|
||||
assert.isFalse(context.access.has({ "#x": 2 }));
|
||||
});
|
||||
it("read/write public element of argument", () => {
|
||||
const { context, C } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
|
@ -911,32 +1062,37 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
}
|
||||
`;
|
||||
|
||||
assert.strictEqual(context.access.get.call(C), 1);
|
||||
context.access.set.call(C, 2);
|
||||
assert.strictEqual(context.access.get(C), 1);
|
||||
context.access.set(C, 2);
|
||||
assert.strictEqual(C.x, 2);
|
||||
|
||||
const obj = { x: 2 };
|
||||
assert.strictEqual(context.access.get.call(obj), 2);
|
||||
context.access.set.call(obj, 3);
|
||||
assert.strictEqual(context.access.get(obj), 2);
|
||||
context.access.set(obj, 3);
|
||||
assert.strictEqual(obj.x, 3);
|
||||
});
|
||||
it("can access value for private name", () => {
|
||||
const { context, C } = exec`
|
||||
it("read/write private element of argument", () => {
|
||||
const { context, C, D } = exec`
|
||||
export let context;
|
||||
export class C {
|
||||
@((t, c) => { context = c; })
|
||||
static accessor #x: number = 1;
|
||||
static getX() { return this.#x; }
|
||||
}
|
||||
export class D {
|
||||
static accessor #x: number = 1;
|
||||
}
|
||||
`;
|
||||
|
||||
assert.strictEqual(context.access.get.call(C), 1);
|
||||
context.access.set.call(C, 2);
|
||||
assert.strictEqual(context.access.get(C), 1);
|
||||
context.access.set(C, 2);
|
||||
assert.strictEqual(C.getX(), 2);
|
||||
|
||||
const obj = { "#x": 2 };
|
||||
assert.throws(() => context.access.get.call(obj));
|
||||
assert.throws(() => context.access.set.call(obj, 3));
|
||||
assert.throws(() => context.access.get(D));
|
||||
assert.throws(() => context.access.set(D, 3));
|
||||
|
||||
assert.throws(() => context.access.get({ "#x": 2 }));
|
||||
assert.throws(() => context.access.set({ "#x": 2 }, 3));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -2223,13 +2379,12 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
});
|
||||
|
||||
// see https://github.com/tc39/proposal-decorators#access-and-metadata-sidechanneling
|
||||
// Disabled, pending the outcome of https://github.com/tc39/proposal-decorators/issues/494
|
||||
it.skip(`dependency injection (${targetName})`, () => {
|
||||
it(`dependency injection (${targetName})`, () => {
|
||||
const { result } = exec`
|
||||
const INJECTIONS = new WeakMap<object, { injectionKey: string, set: (this: any, value: any) => void }[]>();
|
||||
const INJECTIONS = new WeakMap<object, { injectionKey: string, set: (object: any, value: any) => void }[]>();
|
||||
|
||||
function createInjections() {
|
||||
const injections: { injectionKey: string, set: (this: any, value: any) => void }[] = [];
|
||||
const injections: { injectionKey: string, set: (object: any, value: any) => void }[] = [];
|
||||
|
||||
function injectable<T extends new (...args: any) => any>(Class: T, context: ClassDecoratorContext<T>) {
|
||||
INJECTIONS.set(Class, injections);
|
||||
|
@ -2259,7 +2414,7 @@ describe("unittests:: evaluation:: esDecorators", () => {
|
|||
let instance = new Class();
|
||||
|
||||
for (const { injectionKey, set } of INJECTIONS.get(Class) || []) {
|
||||
set.call(instance, this.lookup(injectionKey));
|
||||
set(instance, this.lookup(injectionKey));
|
||||
}
|
||||
|
||||
return instance;
|
||||
|
|
|
@ -37,12 +37,12 @@ let C = (() => {
|
|||
}
|
||||
},
|
||||
(() => {
|
||||
__esDecorate(_a, null, _get_method1_decorators, { kind: "getter", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_method1_decorators, { kind: "setter", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators, { kind: "getter", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators, { kind: "setter", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators_1, { kind: "getter", name: _b, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators_1, { kind: "setter", name: _c, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_method1_decorators, { kind: "getter", name: "method1", static: false, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_method1_decorators, { kind: "setter", name: "method1", static: false, private: false, access: { has: obj => "method1" in obj, set: (obj, value) => { obj.method1 = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators, { kind: "getter", name: "method2", static: false, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators, { kind: "setter", name: "method2", static: false, private: false, access: { has: obj => "method2" in obj, set: (obj, value) => { obj["method2"] = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators_1, { kind: "getter", name: _b, static: false, private: false, access: { has: obj => _b in obj, get: obj => obj[_b] } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators_1, { kind: "setter", name: _c, static: false, private: false, access: { has: obj => _c in obj, set: (obj, value) => { obj[_c] = value; } } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -26,12 +26,12 @@ let C = (() => {
|
|||
let _set_member_decorators_1;
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(this, null, _get_method1_decorators, { kind: "getter", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_method1_decorators, { kind: "setter", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_member_decorators, { kind: "getter", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_member_decorators, { kind: "setter", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_member_decorators_1, { kind: "getter", name: _a, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_member_decorators_1, { kind: "setter", name: _b, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_method1_decorators, { kind: "getter", name: "method1", static: false, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_method1_decorators, { kind: "setter", name: "method1", static: false, private: false, access: { has: obj => "method1" in obj, set: (obj, value) => { obj.method1 = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_member_decorators, { kind: "getter", name: "method2", static: false, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_member_decorators, { kind: "setter", name: "method2", static: false, private: false, access: { has: obj => "method2" in obj, set: (obj, value) => { obj["method2"] = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_member_decorators_1, { kind: "getter", name: _a, static: false, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_member_decorators_1, { kind: "setter", name: _b, static: false, private: false, access: { has: obj => _b in obj, set: (obj, value) => { obj[_b] = value; } } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
get method1() { return 0; }
|
||||
set method1(value) { }
|
||||
|
|
|
@ -55,12 +55,12 @@ var C = function () {
|
|||
return C;
|
||||
}()),
|
||||
(function () {
|
||||
__esDecorate(_a, null, _get_method1_decorators, { kind: "getter", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_method1_decorators, { kind: "setter", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators, { kind: "getter", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators, { kind: "setter", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators_1, { kind: "getter", name: _b, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators_1, { kind: "setter", name: _c, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_method1_decorators, { kind: "getter", name: "method1", static: false, private: false, access: { has: function (obj) { return "method1" in obj; }, get: function (obj) { return obj.method1; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_method1_decorators, { kind: "setter", name: "method1", static: false, private: false, access: { has: function (obj) { return "method1" in obj; }, set: function (obj, value) { obj.method1 = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators, { kind: "getter", name: "method2", static: false, private: false, access: { has: function (obj) { return "method2" in obj; }, get: function (obj) { return obj["method2"]; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators, { kind: "setter", name: "method2", static: false, private: false, access: { has: function (obj) { return "method2" in obj; }, set: function (obj, value) { obj["method2"] = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _get_member_decorators_1, { kind: "getter", name: _b, static: false, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _set_member_decorators_1, { kind: "setter", name: _c, static: false, private: false, access: { has: function (obj) { return _c in obj; }, set: function (obj, value) { obj[_c] = value; } } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
}();
|
||||
|
|
|
@ -27,8 +27,8 @@ let C = (() => {
|
|||
(() => {
|
||||
_private_get_method1_decorators = [dec(1)];
|
||||
_private_set_method1_decorators = [dec(2)];
|
||||
__esDecorate(_a, _private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _private_get_method1_decorators, { kind: "getter", name: "#method1", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, _private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _private_set_method1_decorators, { kind: "setter", name: "#method1", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, _private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _private_get_method1_decorators, { kind: "getter", name: "#method1", static: false, private: true, access: { has: obj => __classPrivateFieldIn(_C_instances, obj), get: obj => __classPrivateFieldGet(obj, _C_instances, "a", _C_method1_get) } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, _private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _private_set_method1_decorators, { kind: "setter", name: "#method1", static: false, private: true, access: { has: obj => __classPrivateFieldIn(_C_instances, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _C_instances, value, "a", _C_method1_set); } } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -18,8 +18,8 @@ let C = (() => {
|
|||
static {
|
||||
_private_get_method1_decorators = [dec(1)];
|
||||
_private_set_method1_decorators = [dec(2)];
|
||||
__esDecorate(this, _private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _private_get_method1_decorators, { kind: "getter", name: "#method1", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, _private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _private_set_method1_decorators, { kind: "setter", name: "#method1", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, _private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _private_get_method1_decorators, { kind: "getter", name: "#method1", static: false, private: true, access: { has: obj => #method1 in obj, get: obj => obj.#method1 } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, _private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _private_set_method1_decorators, { kind: "setter", name: "#method1", static: false, private: true, access: { has: obj => #method1 in obj, set: (obj, value) => { obj.#method1 = value; } } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
get #method1() { return _private_get_method1_descriptor.get.call(this); }
|
||||
set #method1(value) { return _private_set_method1_descriptor.set.call(this, value); }
|
||||
|
|
|
@ -34,12 +34,12 @@ let C = (() => {
|
|||
static set [(_static_set_member_decorators_1 = [dec(32)], _c = __propKey(method3))](value) { }
|
||||
},
|
||||
(() => {
|
||||
__esDecorate(_a, null, _static_get_method1_decorators, { kind: "getter", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_method1_decorators, { kind: "setter", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators, { kind: "getter", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators, { kind: "setter", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators_1, { kind: "getter", name: _b, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators_1, { kind: "setter", name: _c, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_method1_decorators, { kind: "getter", name: "method1", static: true, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_method1_decorators, { kind: "setter", name: "method1", static: true, private: false, access: { has: obj => "method1" in obj, set: (obj, value) => { obj.method1 = value; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators, { kind: "getter", name: "method2", static: true, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators, { kind: "setter", name: "method2", static: true, private: false, access: { has: obj => "method2" in obj, set: (obj, value) => { obj["method2"] = value; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators_1, { kind: "getter", name: _b, static: true, private: false, access: { has: obj => _b in obj, get: obj => obj[_b] } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators_1, { kind: "setter", name: _c, static: true, private: false, access: { has: obj => _c in obj, set: (obj, value) => { obj[_c] = value; } } }, null, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
|
|
|
@ -26,12 +26,12 @@ let C = (() => {
|
|||
let _static_set_member_decorators_1;
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(this, null, _static_get_method1_decorators, { kind: "getter", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_set_method1_decorators, { kind: "setter", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_get_member_decorators, { kind: "getter", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_set_member_decorators, { kind: "setter", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_get_member_decorators_1, { kind: "getter", name: _a, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_set_member_decorators_1, { kind: "setter", name: _b, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_get_method1_decorators, { kind: "getter", name: "method1", static: true, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_set_method1_decorators, { kind: "setter", name: "method1", static: true, private: false, access: { has: obj => "method1" in obj, set: (obj, value) => { obj.method1 = value; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_get_member_decorators, { kind: "getter", name: "method2", static: true, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_set_member_decorators, { kind: "setter", name: "method2", static: true, private: false, access: { has: obj => "method2" in obj, set: (obj, value) => { obj["method2"] = value; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_get_member_decorators_1, { kind: "getter", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_set_member_decorators_1, { kind: "setter", name: _b, static: true, private: false, access: { has: obj => _b in obj, set: (obj, value) => { obj[_b] = value; } } }, null, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static get method1() { return 0; }
|
||||
|
|
|
@ -54,12 +54,12 @@ var C = function () {
|
|||
return C;
|
||||
}()),
|
||||
(function () {
|
||||
__esDecorate(_a, null, _static_get_method1_decorators, { kind: "getter", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_method1_decorators, { kind: "setter", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators, { kind: "getter", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators, { kind: "setter", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators_1, { kind: "getter", name: _b, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators_1, { kind: "setter", name: _c, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_method1_decorators, { kind: "getter", name: "method1", static: true, private: false, access: { has: function (obj) { return "method1" in obj; }, get: function (obj) { return obj.method1; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_method1_decorators, { kind: "setter", name: "method1", static: true, private: false, access: { has: function (obj) { return "method1" in obj; }, set: function (obj, value) { obj.method1 = value; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators, { kind: "getter", name: "method2", static: true, private: false, access: { has: function (obj) { return "method2" in obj; }, get: function (obj) { return obj["method2"]; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators, { kind: "setter", name: "method2", static: true, private: false, access: { has: function (obj) { return "method2" in obj; }, set: function (obj, value) { obj["method2"] = value; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_get_member_decorators_1, { kind: "getter", name: _b, static: true, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_set_member_decorators_1, { kind: "setter", name: _c, static: true, private: false, access: { has: function (obj) { return _c in obj; }, set: function (obj, value) { obj[_c] = value; } } }, null, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
|
|
|
@ -32,8 +32,8 @@ let C = (() => {
|
|||
(() => {
|
||||
_static_private_get_method1_decorators = [dec(1)];
|
||||
_static_private_set_method1_decorators = [dec(2)];
|
||||
__esDecorate(_a, _static_private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _static_private_get_method1_decorators, { kind: "getter", name: "#method1", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, _static_private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _static_private_set_method1_decorators, { kind: "setter", name: "#method1", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, _static_private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _static_private_get_method1_decorators, { kind: "getter", name: "#method1", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_a, obj), get: obj => __classPrivateFieldGet(obj, _a, "a", _C_method1_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, _static_private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _static_private_set_method1_decorators, { kind: "setter", name: "#method1", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_a, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _a, value, "a", _C_method1_set); } } }, null, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
|
|
|
@ -28,8 +28,8 @@ let C = (() => {
|
|||
static {
|
||||
_static_private_get_method1_decorators = [dec(1)];
|
||||
_static_private_set_method1_decorators = [dec(2)];
|
||||
__esDecorate(this, _static_private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _static_private_get_method1_decorators, { kind: "getter", name: "#method1", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _static_private_set_method1_decorators, { kind: "setter", name: "#method1", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_method1_descriptor = { get: __setFunctionName(function () { return 0; }, "#method1", "get") }, _static_private_get_method1_decorators, { kind: "getter", name: "#method1", static: true, private: true, access: { has: obj => #method1 in obj, get: obj => obj.#method1 } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_method1_descriptor = { set: __setFunctionName(function (value) { }, "#method1", "set") }, _static_private_set_method1_decorators, { kind: "setter", name: "#method1", static: true, private: true, access: { has: obj => #method1 in obj, set: (obj, value) => { obj.#method1 = value; } } }, null, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static get #method1() { return _static_private_get_method1_descriptor.get.call(this); }
|
||||
|
|
|
@ -181,16 +181,16 @@ let C = (() => {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
|
@ -161,16 +161,16 @@ let C = (() => {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: this }, _classDecorators, { kind: "class", name: this.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
|
@ -181,16 +181,16 @@ let C = (() => {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
|
@ -161,16 +161,16 @@ let C = (() => {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: this }, _classDecorators, { kind: "class", name: this.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
|
@ -0,0 +1,98 @@
|
|||
tests/cases/conformance/esDecorators/classDeclaration/file13.ts(2,1): error TS1434: Unexpected keyword or identifier.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file13.ts(2,1): error TS2304: Cannot find name 'abstract'.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file14.ts(2,1): error TS1128: Declaration or statement expected.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file14.ts(2,8): error TS1434: Unexpected keyword or identifier.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file14.ts(2,8): error TS2304: Cannot find name 'abstract'.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file15.ts(2,16): error TS2304: Cannot find name 'abstract'.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file15.ts(2,25): error TS1005: ';' expected.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file3.ts(2,8): error TS1206: Decorators are not valid here.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file6.ts(2,13): error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file7.ts(2,21): error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/global.ts (0 errors) ====
|
||||
/** @type {*} */
|
||||
var dec;
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file1.ts (0 errors) ====
|
||||
// ok
|
||||
@dec export class C1 { }
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file2.ts (0 errors) ====
|
||||
// ok
|
||||
@dec export default class C2 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file3.ts (1 errors) ====
|
||||
// error
|
||||
export @dec default class C3 {}
|
||||
~~~~
|
||||
!!! error TS1206: Decorators are not valid here.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file4.ts (0 errors) ====
|
||||
// ok
|
||||
export @dec class C4 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file5.ts (0 errors) ====
|
||||
// ok
|
||||
export default @dec class C5 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file6.ts (1 errors) ====
|
||||
// error
|
||||
@dec export @dec class C6 {}
|
||||
~~~~
|
||||
!!! error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
!!! related TS1486 tests/cases/conformance/esDecorators/classDeclaration/file6.ts:2:1: Decorator used before 'export' here.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file7.ts (1 errors) ====
|
||||
// error
|
||||
@dec export default @dec class C7 {}
|
||||
~~~~
|
||||
!!! error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
!!! related TS1486 tests/cases/conformance/esDecorators/classDeclaration/file7.ts:2:1: Decorator used before 'export' here.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file8.ts (0 errors) ====
|
||||
// ok
|
||||
@dec abstract class C8 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file9.ts (0 errors) ====
|
||||
// ok
|
||||
@dec export abstract class C9 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file10.ts (0 errors) ====
|
||||
// ok
|
||||
@dec export default abstract class C10 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file11.ts (0 errors) ====
|
||||
// ok
|
||||
export @dec abstract class C11 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file12.ts (0 errors) ====
|
||||
// ok
|
||||
export default @dec abstract class C12 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file13.ts (2 errors) ====
|
||||
// error
|
||||
abstract @dec class C13 {}
|
||||
~~~~~~~~
|
||||
!!! error TS1434: Unexpected keyword or identifier.
|
||||
~~~~~~~~
|
||||
!!! error TS2304: Cannot find name 'abstract'.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file14.ts (3 errors) ====
|
||||
// error
|
||||
export abstract @dec class C14 {}
|
||||
~~~~~~
|
||||
!!! error TS1128: Declaration or statement expected.
|
||||
~~~~~~~~
|
||||
!!! error TS1434: Unexpected keyword or identifier.
|
||||
~~~~~~~~
|
||||
!!! error TS2304: Cannot find name 'abstract'.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file15.ts (2 errors) ====
|
||||
// error
|
||||
export default abstract @dec class C15 {}
|
||||
~~~~~~~~
|
||||
!!! error TS2304: Cannot find name 'abstract'.
|
||||
~
|
||||
!!! error TS1005: ';' expected.
|
||||
|
|
@ -0,0 +1,156 @@
|
|||
//// [tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts] ////
|
||||
|
||||
//// [global.ts]
|
||||
/** @type {*} */
|
||||
var dec;
|
||||
|
||||
//// [file1.ts]
|
||||
// ok
|
||||
@dec export class C1 { }
|
||||
|
||||
//// [file2.ts]
|
||||
// ok
|
||||
@dec export default class C2 {}
|
||||
|
||||
//// [file3.ts]
|
||||
// error
|
||||
export @dec default class C3 {}
|
||||
|
||||
//// [file4.ts]
|
||||
// ok
|
||||
export @dec class C4 {}
|
||||
|
||||
//// [file5.ts]
|
||||
// ok
|
||||
export default @dec class C5 {}
|
||||
|
||||
//// [file6.ts]
|
||||
// error
|
||||
@dec export @dec class C6 {}
|
||||
|
||||
//// [file7.ts]
|
||||
// error
|
||||
@dec export default @dec class C7 {}
|
||||
|
||||
//// [file8.ts]
|
||||
// ok
|
||||
@dec abstract class C8 {}
|
||||
|
||||
//// [file9.ts]
|
||||
// ok
|
||||
@dec export abstract class C9 {}
|
||||
|
||||
//// [file10.ts]
|
||||
// ok
|
||||
@dec export default abstract class C10 {}
|
||||
|
||||
//// [file11.ts]
|
||||
// ok
|
||||
export @dec abstract class C11 {}
|
||||
|
||||
//// [file12.ts]
|
||||
// ok
|
||||
export default @dec abstract class C12 {}
|
||||
|
||||
//// [file13.ts]
|
||||
// error
|
||||
abstract @dec class C13 {}
|
||||
|
||||
//// [file14.ts]
|
||||
// error
|
||||
export abstract @dec class C14 {}
|
||||
|
||||
//// [file15.ts]
|
||||
// error
|
||||
export default abstract @dec class C15 {}
|
||||
|
||||
|
||||
//// [global.js]
|
||||
/** @type {*} */
|
||||
var dec;
|
||||
//// [file1.js]
|
||||
// ok
|
||||
@dec
|
||||
export class C1 {
|
||||
}
|
||||
//// [file2.js]
|
||||
// ok
|
||||
@dec
|
||||
export default class C2 {
|
||||
}
|
||||
//// [file3.js]
|
||||
// error
|
||||
export
|
||||
@dec
|
||||
default class C3 {
|
||||
}
|
||||
//// [file4.js]
|
||||
// ok
|
||||
export
|
||||
@dec
|
||||
class C4 {
|
||||
}
|
||||
//// [file5.js]
|
||||
// ok
|
||||
export default
|
||||
@dec
|
||||
class C5 {
|
||||
}
|
||||
//// [file6.js]
|
||||
// error
|
||||
@dec
|
||||
export
|
||||
@dec
|
||||
class C6 {
|
||||
}
|
||||
//// [file7.js]
|
||||
// error
|
||||
@dec
|
||||
export default
|
||||
@dec
|
||||
class C7 {
|
||||
}
|
||||
//// [file8.js]
|
||||
// ok
|
||||
@dec
|
||||
class C8 {
|
||||
}
|
||||
//// [file9.js]
|
||||
// ok
|
||||
@dec
|
||||
export class C9 {
|
||||
}
|
||||
//// [file10.js]
|
||||
// ok
|
||||
@dec
|
||||
export default class C10 {
|
||||
}
|
||||
//// [file11.js]
|
||||
// ok
|
||||
export
|
||||
@dec
|
||||
class C11 {
|
||||
}
|
||||
//// [file12.js]
|
||||
// ok
|
||||
export default
|
||||
@dec
|
||||
class C12 {
|
||||
}
|
||||
//// [file13.js]
|
||||
// error
|
||||
abstract;
|
||||
@dec
|
||||
class C13 {
|
||||
}
|
||||
//// [file14.js]
|
||||
abstract;
|
||||
@dec
|
||||
class C14 {
|
||||
}
|
||||
//// [file15.js]
|
||||
// error
|
||||
export default abstract;
|
||||
@dec
|
||||
class C15 {
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
=== tests/cases/conformance/esDecorators/classDeclaration/global.ts ===
|
||||
/** @type {*} */
|
||||
var dec;
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file1.ts ===
|
||||
// ok
|
||||
@dec export class C1 { }
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C1 : Symbol(C1, Decl(file1.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file2.ts ===
|
||||
// ok
|
||||
@dec export default class C2 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C2 : Symbol(C2, Decl(file2.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file3.ts ===
|
||||
// error
|
||||
export @dec default class C3 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C3 : Symbol(C3, Decl(file3.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file4.ts ===
|
||||
// ok
|
||||
export @dec class C4 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C4 : Symbol(C4, Decl(file4.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file5.ts ===
|
||||
// ok
|
||||
export default @dec class C5 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C5 : Symbol(C5, Decl(file5.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file6.ts ===
|
||||
// error
|
||||
@dec export @dec class C6 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C6 : Symbol(C6, Decl(file6.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file7.ts ===
|
||||
// error
|
||||
@dec export default @dec class C7 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C7 : Symbol(C7, Decl(file7.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file8.ts ===
|
||||
// ok
|
||||
@dec abstract class C8 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C8 : Symbol(C8, Decl(file8.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file9.ts ===
|
||||
// ok
|
||||
@dec export abstract class C9 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C9 : Symbol(C9, Decl(file9.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file10.ts ===
|
||||
// ok
|
||||
@dec export default abstract class C10 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C10 : Symbol(C10, Decl(file10.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file11.ts ===
|
||||
// ok
|
||||
export @dec abstract class C11 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C11 : Symbol(C11, Decl(file11.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file12.ts ===
|
||||
// ok
|
||||
export default @dec abstract class C12 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C12 : Symbol(C12, Decl(file12.ts, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file13.ts ===
|
||||
// error
|
||||
abstract @dec class C13 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C13 : Symbol(C13, Decl(file13.ts, 1, 8))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file14.ts ===
|
||||
// error
|
||||
export abstract @dec class C14 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C14 : Symbol(C14, Decl(file14.ts, 1, 15))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file15.ts ===
|
||||
// error
|
||||
export default abstract @dec class C15 {}
|
||||
>dec : Symbol(dec, Decl(global.ts, 1, 3))
|
||||
>C15 : Symbol(C15, Decl(file15.ts, 1, 23))
|
||||
|
|
@ -0,0 +1,100 @@
|
|||
=== tests/cases/conformance/esDecorators/classDeclaration/global.ts ===
|
||||
/** @type {*} */
|
||||
var dec;
|
||||
>dec : any
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file1.ts ===
|
||||
// ok
|
||||
@dec export class C1 { }
|
||||
>dec : any
|
||||
>C1 : C1
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file2.ts ===
|
||||
// ok
|
||||
@dec export default class C2 {}
|
||||
>dec : any
|
||||
>C2 : C2
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file3.ts ===
|
||||
// error
|
||||
export @dec default class C3 {}
|
||||
>dec : any
|
||||
>C3 : C3
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file4.ts ===
|
||||
// ok
|
||||
export @dec class C4 {}
|
||||
>dec : any
|
||||
>C4 : C4
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file5.ts ===
|
||||
// ok
|
||||
export default @dec class C5 {}
|
||||
>dec : any
|
||||
>C5 : C5
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file6.ts ===
|
||||
// error
|
||||
@dec export @dec class C6 {}
|
||||
>dec : any
|
||||
>dec : any
|
||||
>C6 : C6
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file7.ts ===
|
||||
// error
|
||||
@dec export default @dec class C7 {}
|
||||
>dec : any
|
||||
>dec : any
|
||||
>C7 : C7
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file8.ts ===
|
||||
// ok
|
||||
@dec abstract class C8 {}
|
||||
>dec : any
|
||||
>C8 : C8
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file9.ts ===
|
||||
// ok
|
||||
@dec export abstract class C9 {}
|
||||
>dec : any
|
||||
>C9 : C9
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file10.ts ===
|
||||
// ok
|
||||
@dec export default abstract class C10 {}
|
||||
>dec : any
|
||||
>C10 : C10
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file11.ts ===
|
||||
// ok
|
||||
export @dec abstract class C11 {}
|
||||
>dec : any
|
||||
>C11 : C11
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file12.ts ===
|
||||
// ok
|
||||
export default @dec abstract class C12 {}
|
||||
>dec : any
|
||||
>C12 : C12
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file13.ts ===
|
||||
// error
|
||||
abstract @dec class C13 {}
|
||||
>abstract : any
|
||||
>dec : any
|
||||
>C13 : C13
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file14.ts ===
|
||||
// error
|
||||
export abstract @dec class C14 {}
|
||||
>abstract : any
|
||||
>dec : any
|
||||
>C14 : C14
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file15.ts ===
|
||||
// error
|
||||
export default abstract @dec class C15 {}
|
||||
>abstract : any
|
||||
>dec : any
|
||||
>C15 : C15
|
||||
|
|
@ -1,23 +1,19 @@
|
|||
tests/cases/conformance/esDecorators/classDeclaration/file1.js(2,1): error TS8038: Decorators must come after 'export' or 'export default' in JavaScript files.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file2.js(2,1): error TS8038: Decorators must come after 'export' or 'export default' in JavaScript files.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file3.js(2,8): error TS1206: Decorators are not valid here.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file6.js(2,13): error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
tests/cases/conformance/esDecorators/classDeclaration/file7.js(2,21): error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/global.js (0 errors) ====
|
||||
/** @type {*} */
|
||||
var dec;
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file1.js (1 errors) ====
|
||||
// error
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file1.js (0 errors) ====
|
||||
// ok
|
||||
@dec export class C1 { }
|
||||
~~~~
|
||||
!!! error TS8038: Decorators must come after 'export' or 'export default' in JavaScript files.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file2.js (1 errors) ====
|
||||
// error
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file2.js (0 errors) ====
|
||||
// ok
|
||||
@dec export default class C2 {}
|
||||
~~~~
|
||||
!!! error TS8038: Decorators must come after 'export' or 'export default' in JavaScript files.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file3.js (1 errors) ====
|
||||
// error
|
||||
|
@ -32,4 +28,18 @@ tests/cases/conformance/esDecorators/classDeclaration/file3.js(2,8): error TS120
|
|||
==== tests/cases/conformance/esDecorators/classDeclaration/file5.js (0 errors) ====
|
||||
// ok
|
||||
export default @dec class C5 {}
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file6.js (1 errors) ====
|
||||
// error
|
||||
@dec export @dec class C6 {}
|
||||
~~~~
|
||||
!!! error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
!!! related TS1486 tests/cases/conformance/esDecorators/classDeclaration/file6.js:2:1: Decorator used before 'export' here.
|
||||
|
||||
==== tests/cases/conformance/esDecorators/classDeclaration/file7.js (1 errors) ====
|
||||
// error
|
||||
@dec export default @dec class C7 {}
|
||||
~~~~
|
||||
!!! error TS8038: Decorators may not appear after 'export' or 'export default' if they also appear before 'export'.
|
||||
!!! related TS1486 tests/cases/conformance/esDecorators/classDeclaration/file7.js:2:1: Decorator used before 'export' here.
|
||||
|
|
@ -4,13 +4,13 @@ var dec;
|
|||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file1.js ===
|
||||
// error
|
||||
// ok
|
||||
@dec export class C1 { }
|
||||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
>C1 : Symbol(C1, Decl(file1.js, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file2.js ===
|
||||
// error
|
||||
// ok
|
||||
@dec export default class C2 {}
|
||||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
>C2 : Symbol(C2, Decl(file2.js, 0, 0))
|
||||
|
@ -33,3 +33,17 @@ export default @dec class C5 {}
|
|||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
>C5 : Symbol(C5, Decl(file5.js, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file6.js ===
|
||||
// error
|
||||
@dec export @dec class C6 {}
|
||||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
>C6 : Symbol(C6, Decl(file6.js, 0, 0))
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file7.js ===
|
||||
// error
|
||||
@dec export default @dec class C7 {}
|
||||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
>dec : Symbol(dec, Decl(global.js, 1, 3))
|
||||
>C7 : Symbol(C7, Decl(file7.js, 0, 0))
|
||||
|
||||
|
|
|
@ -4,13 +4,13 @@ var dec;
|
|||
>dec : any
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file1.js ===
|
||||
// error
|
||||
// ok
|
||||
@dec export class C1 { }
|
||||
>dec : any
|
||||
>C1 : C1
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file2.js ===
|
||||
// error
|
||||
// ok
|
||||
@dec export default class C2 {}
|
||||
>dec : any
|
||||
>C2 : C2
|
||||
|
@ -33,3 +33,17 @@ export default @dec class C5 {}
|
|||
>dec : any
|
||||
>C5 : C5
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file6.js ===
|
||||
// error
|
||||
@dec export @dec class C6 {}
|
||||
>dec : any
|
||||
>dec : any
|
||||
>C6 : C6
|
||||
|
||||
=== tests/cases/conformance/esDecorators/classDeclaration/file7.js ===
|
||||
// error
|
||||
@dec export default @dec class C7 {}
|
||||
>dec : any
|
||||
>dec : any
|
||||
>C7 : C7
|
||||
|
||||
|
|
|
@ -34,9 +34,9 @@ let C = (() => {
|
|||
_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(() => {
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false, access: { has: obj => _b in obj, get: obj => obj[_b], set: (obj, value) => { obj[_b] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -49,9 +49,9 @@ let C = (() => {
|
|||
_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(() => {
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false, access: { has: obj => _b in obj, get: obj => obj[_b], set: (obj, value) => { obj[_b] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -29,9 +29,9 @@ let C = (() => {
|
|||
}
|
||||
static { _field1_decorators = [dec(1)], _member_decorators = [dec(2)], _member_decorators_1 = [dec(3)], _a = __propKey(field3); }
|
||||
static {
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _a, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _a, static: false, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
|
|
@ -23,9 +23,9 @@ let C = (() => {
|
|||
let _member_initializers_1 = [];
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _a, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _a, static: false, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
}
|
||||
field1 = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _field1_initializers, 1));
|
||||
["field2"] = __runInitializers(this, _member_initializers, 2);
|
||||
|
|
|
@ -35,9 +35,9 @@ var C = function () {
|
|||
_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(function () {
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false, access: { has: function (obj) { return "field1" in obj; }, get: function (obj) { return obj.field1; }, set: function (obj, value) { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false, access: { has: function (obj) { return "field2" in obj; }, get: function (obj) { return obj["field2"]; }, set: function (obj, value) { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; }, set: function (obj, value) { obj[_b] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
}();
|
||||
|
|
|
@ -50,9 +50,9 @@ var C = function () {
|
|||
_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(function () {
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false, access: { has: function (obj) { return "field1" in obj; }, get: function (obj) { return obj.field1; }, set: function (obj, value) { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false, access: { has: function (obj) { return "field2" in obj; }, get: function (obj) { return obj["field2"]; }, set: function (obj, value) { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _b, static: false, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; }, set: function (obj, value) { obj[_b] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
}();
|
||||
|
|
|
@ -29,9 +29,9 @@ let C = (() => {
|
|||
}
|
||||
static { _field1_decorators = [dec(1)], _member_decorators = [dec(2)], _member_decorators_1 = [dec(3)], _a = __propKey(field3); }
|
||||
static {
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _a, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _field1_decorators, { kind: "field", name: "field1", static: false, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators, { kind: "field", name: "field2", static: false, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _member_decorators_1, { kind: "field", name: _a, static: false, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
}
|
||||
};
|
||||
})();
|
||||
|
|
|
@ -36,9 +36,9 @@ let C = (() => {
|
|||
set [_b](value) { __classPrivateFieldSet(this, _C__b_accessor_storage, value, "f"); }
|
||||
},
|
||||
(() => {
|
||||
__esDecorate(_a, null, _field1_decorators, { kind: "accessor", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators, { kind: "accessor", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators_1, { kind: "accessor", name: _b, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _field1_decorators, { kind: "accessor", name: "field1", static: false, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators, { kind: "accessor", name: "field2", static: false, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators_1, { kind: "accessor", name: _b, static: false, private: false, access: { has: obj => _b in obj, get: obj => obj[_b], set: (obj, value) => { obj[_b] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -23,9 +23,9 @@ let C = (() => {
|
|||
let _member_initializers_1 = [];
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(this, null, _field1_decorators, { kind: "accessor", name: "field1", static: false, private: false }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators, { kind: "accessor", name: "field2", static: false, private: false }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators_1, { kind: "accessor", name: _a, static: false, private: false }, _member_initializers_1, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _field1_decorators, { kind: "accessor", name: "field1", static: false, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators, { kind: "accessor", name: "field2", static: false, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _member_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators_1, { kind: "accessor", name: _a, static: false, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _member_initializers_1, _instanceExtraInitializers);
|
||||
}
|
||||
#field1_accessor_storage = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _field1_initializers, 1));
|
||||
get field1() { return this.#field1_accessor_storage; }
|
||||
|
|
|
@ -20,7 +20,7 @@ let C = (() => {
|
|||
_C_field1 = new WeakMap(),
|
||||
(() => {
|
||||
_private_field1_decorators = [dec];
|
||||
__esDecorate(null, null, _private_field1_decorators, { kind: "field", name: "#field1", static: false, private: true }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _private_field1_decorators, { kind: "field", name: "#field1", static: false, private: true, access: { has: obj => __classPrivateFieldIn(_C_field1, obj), get: obj => __classPrivateFieldGet(obj, _C_field1, "f"), set: (obj, value) => { __classPrivateFieldSet(obj, _C_field1, value, "f"); } } }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -14,7 +14,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_field1_decorators = [dec];
|
||||
__esDecorate(null, null, _private_field1_decorators, { kind: "field", name: "#field1", static: false, private: true }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _private_field1_decorators, { kind: "field", name: "#field1", static: false, private: true, access: { has: obj => #field1 in obj, get: obj => obj.#field1, set: (obj, value) => { obj.#field1 = value; } } }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
}
|
||||
#field1 = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _private_field1_initializers, 0));
|
||||
};
|
||||
|
|
|
@ -25,7 +25,7 @@ let C = (() => {
|
|||
_C_field1_set = function _C_field1_set(value) { return _private_field1_descriptor.set.call(this, value); },
|
||||
(() => {
|
||||
_private_field1_decorators = [dec];
|
||||
__esDecorate(_a, _private_field1_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _C_field1_accessor_storage, "f"); }, "#field1", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _C_field1_accessor_storage, value, "f"); }, "#field1", "set") }, _private_field1_decorators, { kind: "accessor", name: "#field1", static: false, private: true }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_a, _private_field1_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _C_field1_accessor_storage, "f"); }, "#field1", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _C_field1_accessor_storage, value, "f"); }, "#field1", "set") }, _private_field1_decorators, { kind: "accessor", name: "#field1", static: false, private: true, access: { has: obj => __classPrivateFieldIn(_C_instances, obj), get: obj => __classPrivateFieldGet(obj, _C_instances, "a", _C_field1_get), set: (obj, value) => { __classPrivateFieldSet(obj, _C_instances, value, "a", _C_field1_set); } } }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -15,7 +15,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_field1_decorators = [dec];
|
||||
__esDecorate(this, _private_field1_descriptor = { get: __setFunctionName(function () { return this.#field1_accessor_storage; }, "#field1", "get"), set: __setFunctionName(function (value) { this.#field1_accessor_storage = value; }, "#field1", "set") }, _private_field1_decorators, { kind: "accessor", name: "#field1", static: false, private: true }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, _private_field1_descriptor = { get: __setFunctionName(function () { return this.#field1_accessor_storage; }, "#field1", "get"), set: __setFunctionName(function (value) { this.#field1_accessor_storage = value; }, "#field1", "set") }, _private_field1_decorators, { kind: "accessor", name: "#field1", static: false, private: true, access: { has: obj => #field1 in obj, get: obj => obj.#field1, set: (obj, value) => { obj.#field1 = value; } } }, _private_field1_initializers, _instanceExtraInitializers);
|
||||
}
|
||||
#field1_accessor_storage = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _private_field1_initializers, 0));
|
||||
get #field1() { return _private_field1_descriptor.get.call(this); }
|
||||
|
|
|
@ -29,9 +29,9 @@ let C = (() => {
|
|||
_static_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(() => {
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false, access: { has: obj => _b in obj, get: obj => obj[_b], set: (obj, value) => { obj[_b] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a.field1 = __runInitializers(_a, _static_field1_initializers, 1),
|
||||
|
|
|
@ -29,9 +29,9 @@ let C = (() => {
|
|||
_static_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(() => {
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false, access: { has: obj => _b in obj, get: obj => obj[_b], set: (obj, value) => { obj[_b] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
Object.defineProperty(_a, "field1", {
|
||||
|
|
|
@ -24,9 +24,9 @@ let C = (() => {
|
|||
return class C {
|
||||
static { _static_field1_decorators = [dec(1)], _static_member_decorators = [dec(2)], _static_member_decorators_1 = [dec(3)], _a = __propKey(field3); }
|
||||
static {
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _a, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static { this.field1 = __runInitializers(this, _static_field1_initializers, 1); }
|
||||
|
|
|
@ -23,9 +23,9 @@ let C = (() => {
|
|||
let _static_member_initializers_1 = [];
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _a, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static field1 = __runInitializers(this, _static_field1_initializers, 1);
|
||||
|
|
|
@ -33,9 +33,9 @@ var C = function () {
|
|||
_static_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(function () {
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false, access: { has: function (obj) { return "field1" in obj; }, get: function (obj) { return obj.field1; }, set: function (obj, value) { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false, access: { has: function (obj) { return "field2" in obj; }, get: function (obj) { return obj["field2"]; }, set: function (obj, value) { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; }, set: function (obj, value) { obj[_b] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a.field1 = __runInitializers(_a, _static_field1_initializers, 1),
|
||||
|
|
|
@ -33,9 +33,9 @@ var C = function () {
|
|||
_static_member_decorators_1 = [dec(3)],
|
||||
_b = __propKey(field3),
|
||||
(function () {
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false, access: { has: function (obj) { return "field1" in obj; }, get: function (obj) { return obj.field1; }, set: function (obj, value) { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false, access: { has: function (obj) { return "field2" in obj; }, get: function (obj) { return obj["field2"]; }, set: function (obj, value) { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _b, static: true, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; }, set: function (obj, value) { obj[_b] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
Object.defineProperty(_a, "field1", {
|
||||
|
|
|
@ -24,9 +24,9 @@ let C = (() => {
|
|||
return class C {
|
||||
static { _static_field1_decorators = [dec(1)], _static_member_decorators = [dec(2)], _static_member_decorators_1 = [dec(3)], _a = __propKey(field3); }
|
||||
static {
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _a, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_field1_decorators, { kind: "field", name: "field1", static: true, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators, { kind: "field", name: "field2", static: true, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_member_decorators_1, { kind: "field", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static { this.field1 = __runInitializers(this, _static_field1_initializers, 1); }
|
||||
|
|
|
@ -39,9 +39,9 @@ let C = (() => {
|
|||
static set [_b](value) { __classPrivateFieldSet(_a, _a, value, "f", _C__b_accessor_storage); }
|
||||
},
|
||||
(() => {
|
||||
__esDecorate(_a, null, _static_field1_decorators, { kind: "accessor", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators, { kind: "accessor", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators_1, { kind: "accessor", name: _b, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_field1_decorators, { kind: "accessor", name: "field1", static: true, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators, { kind: "accessor", name: "field2", static: true, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators_1, { kind: "accessor", name: _b, static: true, private: false, access: { has: obj => _b in obj, get: obj => obj[_b], set: (obj, value) => { obj[_b] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_C_field1_accessor_storage = { value: __runInitializers(_a, _static_field1_initializers, 1) },
|
||||
|
|
|
@ -31,9 +31,9 @@ let C = (() => {
|
|||
let _static_member_initializers_1 = [];
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(this, null, _static_field1_decorators, { kind: "accessor", name: "field1", static: true, private: false }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators, { kind: "accessor", name: "field2", static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators_1, { kind: "accessor", name: _a, static: true, private: false }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_field1_decorators, { kind: "accessor", name: "field1", static: true, private: false, access: { has: obj => "field1" in obj, get: obj => obj.field1, set: (obj, value) => { obj.field1 = value; } } }, _static_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators, { kind: "accessor", name: "field2", static: true, private: false, access: { has: obj => "field2" in obj, get: obj => obj["field2"], set: (obj, value) => { obj["field2"] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators_1, { kind: "accessor", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _static_member_initializers_1, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static #field1_accessor_storage = __runInitializers(this, _static_field1_initializers, 1);
|
||||
|
|
|
@ -25,7 +25,7 @@ let C = (() => {
|
|||
},
|
||||
(() => {
|
||||
_static_private_field1_decorators = [dec];
|
||||
__esDecorate(null, null, _static_private_field1_decorators, { kind: "field", name: "#field1", static: true, private: true }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_field1_decorators, { kind: "field", name: "#field1", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_a, obj), get: obj => __classPrivateFieldGet(obj, _a, "f", _C_field1), set: (obj, value) => { __classPrivateFieldSet(obj, _a, value, "f", _C_field1); } } }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_C_field1 = { value: __runInitializers(_a, _static_private_field1_initializers, 0) },
|
||||
|
|
|
@ -23,7 +23,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_field1_decorators = [dec];
|
||||
__esDecorate(null, null, _static_private_field1_decorators, { kind: "field", name: "#field1", static: true, private: true }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_field1_decorators, { kind: "field", name: "#field1", static: true, private: true, access: { has: obj => #field1 in obj, get: obj => obj.#field1, set: (obj, value) => { obj.#field1 = value; } } }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static #field1 = __runInitializers(this, _static_private_field1_initializers, 0);
|
||||
|
|
|
@ -28,7 +28,7 @@ let C = (() => {
|
|||
_C_field1_set = function _C_field1_set(value) { return _static_private_field1_descriptor.set.call(this, value); },
|
||||
(() => {
|
||||
_static_private_field1_decorators = [dec];
|
||||
__esDecorate(_a, _static_private_field1_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_a, _a, "f", _C_field1_accessor_storage); }, "#field1", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_a, _a, value, "f", _C_field1_accessor_storage); }, "#field1", "set") }, _static_private_field1_decorators, { kind: "accessor", name: "#field1", static: true, private: true }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_a, _static_private_field1_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_a, _a, "f", _C_field1_accessor_storage); }, "#field1", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_a, _a, value, "f", _C_field1_accessor_storage); }, "#field1", "set") }, _static_private_field1_decorators, { kind: "accessor", name: "#field1", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_a, obj), get: obj => __classPrivateFieldGet(obj, _a, "a", _C_field1_get), set: (obj, value) => { __classPrivateFieldSet(obj, _a, value, "a", _C_field1_set); } } }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_C_field1_accessor_storage = { value: __runInitializers(this, _static_private_field1_initializers, 0) },
|
||||
|
|
|
@ -24,7 +24,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_field1_decorators = [dec];
|
||||
__esDecorate(this, _static_private_field1_descriptor = { get: __setFunctionName(function () { return this.#field1_accessor_storage; }, "#field1", "get"), set: __setFunctionName(function (value) { this.#field1_accessor_storage = value; }, "#field1", "set") }, _static_private_field1_decorators, { kind: "accessor", name: "#field1", static: true, private: true }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_field1_descriptor = { get: __setFunctionName(function () { return this.#field1_accessor_storage; }, "#field1", "get"), set: __setFunctionName(function (value) { this.#field1_accessor_storage = value; }, "#field1", "set") }, _static_private_field1_decorators, { kind: "accessor", name: "#field1", static: true, private: true, access: { has: obj => #field1 in obj, get: obj => obj.#field1, set: (obj, value) => { obj.#field1 = value; } } }, _static_private_field1_initializers, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static #field1_accessor_storage = __runInitializers(this, _static_private_field1_initializers, 0);
|
||||
|
|
|
@ -28,9 +28,9 @@ let C = (() => {
|
|||
}
|
||||
},
|
||||
(() => {
|
||||
__esDecorate(_a, null, _method1_decorators, { kind: "method", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators, { kind: "method", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators_1, { kind: "method", name: _b, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _method1_decorators, { kind: "method", name: "method1", static: false, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators, { kind: "method", name: "method2", static: false, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators_1, { kind: "method", name: _b, static: false, private: false, access: { has: obj => _b in obj, get: obj => obj[_b] } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -20,9 +20,9 @@ let C = (() => {
|
|||
let _member_decorators_1;
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(this, null, _method1_decorators, { kind: "method", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators, { kind: "method", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators_1, { kind: "method", name: _a, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _method1_decorators, { kind: "method", name: "method1", static: false, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators, { kind: "method", name: "method2", static: false, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _member_decorators_1, { kind: "method", name: _a, static: false, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
method1() { }
|
||||
["method2"]() { }
|
||||
|
|
|
@ -30,9 +30,9 @@ var C = function () {
|
|||
return C;
|
||||
}()),
|
||||
(function () {
|
||||
__esDecorate(_a, null, _method1_decorators, { kind: "method", name: "method1", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators, { kind: "method", name: "method2", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators_1, { kind: "method", name: _b, static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _method1_decorators, { kind: "method", name: "method1", static: false, private: false, access: { has: function (obj) { return "method1" in obj; }, get: function (obj) { return obj.method1; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators, { kind: "method", name: "method2", static: false, private: false, access: { has: function (obj) { return "method2" in obj; }, get: function (obj) { return obj["method2"]; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _member_decorators_1, { kind: "method", name: _b, static: false, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; } } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
}();
|
||||
|
|
|
@ -22,7 +22,7 @@ let C = (() => {
|
|||
_C_method1_get = function _C_method1_get() { return _private_method1_descriptor.value; },
|
||||
(() => {
|
||||
_private_method1_decorators = [dec];
|
||||
__esDecorate(_a, _private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _private_method1_decorators, { kind: "method", name: "#method1", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, _private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _private_method1_decorators, { kind: "method", name: "#method1", static: false, private: true, access: { has: obj => __classPrivateFieldIn(_C_instances, obj), get: obj => __classPrivateFieldGet(obj, _C_instances, "a", _C_method1_get) } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -14,7 +14,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_method1_decorators = [dec];
|
||||
__esDecorate(this, _private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _private_method1_decorators, { kind: "method", name: "#method1", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, _private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _private_method1_decorators, { kind: "method", name: "#method1", static: false, private: true, access: { has: obj => #method1 in obj, get: obj => obj.#method1 } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
get #method1() { return _private_method1_descriptor.value; }
|
||||
constructor() {
|
||||
|
|
|
@ -25,9 +25,9 @@ let C = (() => {
|
|||
static [(_static_method1_decorators = [dec(1)], _static_member_decorators = [dec(2)], _static_member_decorators_1 = [dec(3)], _b = __propKey(method3))]() { }
|
||||
},
|
||||
(() => {
|
||||
__esDecorate(_a, null, _static_method1_decorators, { kind: "method", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators, { kind: "method", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators_1, { kind: "method", name: _b, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_method1_decorators, { kind: "method", name: "method1", static: true, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators, { kind: "method", name: "method2", static: true, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators_1, { kind: "method", name: _b, static: true, private: false, access: { has: obj => _b in obj, get: obj => obj[_b] } }, null, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
|
|
|
@ -20,9 +20,9 @@ let C = (() => {
|
|||
let _static_member_decorators_1;
|
||||
return class C {
|
||||
static {
|
||||
__esDecorate(this, null, _static_method1_decorators, { kind: "method", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators, { kind: "method", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators_1, { kind: "method", name: _a, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_method1_decorators, { kind: "method", name: "method1", static: true, private: false, access: { has: obj => "method1" in obj, get: obj => obj.method1 } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators, { kind: "method", name: "method2", static: true, private: false, access: { has: obj => "method2" in obj, get: obj => obj["method2"] } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _static_member_decorators_1, { kind: "method", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] } }, null, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static method1() { }
|
||||
|
|
|
@ -29,9 +29,9 @@ var C = function () {
|
|||
return C;
|
||||
}()),
|
||||
(function () {
|
||||
__esDecorate(_a, null, _static_method1_decorators, { kind: "method", name: "method1", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators, { kind: "method", name: "method2", static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators_1, { kind: "method", name: _b, static: true, private: false }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_method1_decorators, { kind: "method", name: "method1", static: true, private: false, access: { has: function (obj) { return "method1" in obj; }, get: function (obj) { return obj.method1; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators, { kind: "method", name: "method2", static: true, private: false, access: { has: function (obj) { return "method2" in obj; }, get: function (obj) { return obj["method2"]; } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, null, _static_member_decorators_1, { kind: "method", name: _b, static: true, private: false, access: { has: function (obj) { return _b in obj; }, get: function (obj) { return obj[_b]; } } }, null, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
|
|
|
@ -22,7 +22,7 @@ let C = (() => {
|
|||
_C_method1_get = function _C_method1_get() { return _static_private_method1_descriptor.value; },
|
||||
(() => {
|
||||
_static_private_method1_decorators = [dec];
|
||||
__esDecorate(_a, _static_private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _static_private_method1_decorators, { kind: "method", name: "#method1", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_a, _static_private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _static_private_method1_decorators, { kind: "method", name: "#method1", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_a, obj), get: obj => __classPrivateFieldGet(obj, _a, "a", _C_method1_get) } }, null, _staticExtraInitializers);
|
||||
__runInitializers(_a, _staticExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
|
|
|
@ -19,7 +19,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_method1_decorators = [dec];
|
||||
__esDecorate(this, _static_private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _static_private_method1_decorators, { kind: "method", name: "#method1", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_method1_descriptor = { value: __setFunctionName(function () { }, "#method1") }, _static_private_method1_decorators, { kind: "method", name: "#method1", static: true, private: true, access: { has: obj => #method1 in obj, get: obj => obj.#method1 } }, null, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static get #method1() { return _static_private_method1_descriptor.value; }
|
||||
|
|
|
@ -27,7 +27,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_x_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _private_x_descriptor = { get: tslib_1.__setFunctionName(function () { return this.#x_accessor_storage; }, "#x", "get"), set: tslib_1.__setFunctionName(function (value) { this.#x_accessor_storage = value; }, "#x", "set") }, _private_x_decorators, { kind: "accessor", name: "#x", static: false, private: true }, _private_x_initializers, _instanceExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _private_x_descriptor = { get: tslib_1.__setFunctionName(function () { return this.#x_accessor_storage; }, "#x", "get"), set: tslib_1.__setFunctionName(function (value) { this.#x_accessor_storage = value; }, "#x", "set") }, _private_x_decorators, { kind: "accessor", name: "#x", static: false, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } } }, _private_x_initializers, _instanceExtraInitializers);
|
||||
}
|
||||
#x_accessor_storage = (tslib_1.__runInitializers(this, _instanceExtraInitializers), tslib_1.__runInitializers(this, _private_x_initializers, void 0));
|
||||
get #x() { return _private_x_descriptor.get.call(this); }
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_x_decorators = [dec];
|
||||
tslib_1.__esDecorate(null, null, _private_x_decorators, { kind: "field", name: "#x", static: false, private: true }, _private_x_initializers, _instanceExtraInitializers);
|
||||
tslib_1.__esDecorate(null, null, _private_x_decorators, { kind: "field", name: "#x", static: false, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } } }, _private_x_initializers, _instanceExtraInitializers);
|
||||
}
|
||||
#x = (tslib_1.__runInitializers(this, _instanceExtraInitializers), tslib_1.__runInitializers(this, _private_x_initializers, void 0));
|
||||
};
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_get_foo_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _private_get_foo_descriptor = { get: tslib_1.__setFunctionName(function () { return 1; }, "#foo", "get") }, _private_get_foo_decorators, { kind: "getter", name: "#foo", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _private_get_foo_descriptor = { get: tslib_1.__setFunctionName(function () { return 1; }, "#foo", "get") }, _private_get_foo_decorators, { kind: "getter", name: "#foo", static: false, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
get #foo() { return _private_get_foo_descriptor.get.call(this); }
|
||||
constructor() {
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_foo_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _private_foo_descriptor = { value: tslib_1.__setFunctionName(function () { }, "#foo") }, _private_foo_decorators, { kind: "method", name: "#foo", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _private_foo_descriptor = { value: tslib_1.__setFunctionName(function () { }, "#foo") }, _private_foo_decorators, { kind: "method", name: "#foo", static: false, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
get #foo() { return _private_foo_descriptor.value; }
|
||||
constructor() {
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_private_set_foo_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _private_set_foo_descriptor = { set: tslib_1.__setFunctionName(function (value) { }, "#foo", "set") }, _private_set_foo_decorators, { kind: "setter", name: "#foo", static: false, private: true }, null, _instanceExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _private_set_foo_descriptor = { set: tslib_1.__setFunctionName(function (value) { }, "#foo", "set") }, _private_set_foo_decorators, { kind: "setter", name: "#foo", static: false, private: true, access: { has: obj => #foo in obj, set: (obj, value) => { obj.#foo = value; } } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
set #foo(value) { return _private_set_foo_descriptor.set.call(this, value); }
|
||||
constructor() {
|
||||
|
|
|
@ -27,7 +27,7 @@ let C = (() => {
|
|||
let _static_member_initializers = [];
|
||||
return class C {
|
||||
static {
|
||||
tslib_1.__esDecorate(this, null, _static_member_decorators, { kind: "accessor", name: _a, static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, null, _static_member_decorators, { kind: "accessor", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static #_a_accessor_storage = tslib_1.__runInitializers(this, _static_member_initializers, void 0);
|
||||
|
|
|
@ -27,7 +27,7 @@ let C = (() => {
|
|||
let _static_member_initializers = [];
|
||||
return class C {
|
||||
static {
|
||||
tslib_1.__esDecorate(null, null, _static_member_decorators, { kind: "field", name: _a, static: true, private: false }, _static_member_initializers, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(null, null, _static_member_decorators, { kind: "field", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a], set: (obj, value) => { obj[_a] = value; } } }, _static_member_initializers, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static [(_static_member_decorators = [dec], _a = tslib_1.__propKey(x))] = tslib_1.__runInitializers(this, _static_member_initializers, void 0);
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
let _static_get_member_decorators;
|
||||
return class C {
|
||||
static {
|
||||
tslib_1.__esDecorate(this, null, _static_get_member_decorators, { kind: "getter", name: _a, static: true, private: false }, null, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, null, _static_get_member_decorators, { kind: "getter", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] } }, null, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static get [(_static_get_member_decorators = [dec], _a = tslib_1.__propKey(x))]() { return 1; }
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
let _static_member_decorators;
|
||||
return class C {
|
||||
static {
|
||||
tslib_1.__esDecorate(this, null, _static_member_decorators, { kind: "method", name: _a, static: true, private: false }, null, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, null, _static_member_decorators, { kind: "method", name: _a, static: true, private: false, access: { has: obj => _a in obj, get: obj => obj[_a] } }, null, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static [(_static_member_decorators = [dec], _a = tslib_1.__propKey(x))]() { }
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
let _static_set_member_decorators;
|
||||
return class C {
|
||||
static {
|
||||
tslib_1.__esDecorate(this, null, _static_set_member_decorators, { kind: "setter", name: _a, static: true, private: false }, null, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, null, _static_set_member_decorators, { kind: "setter", name: _a, static: true, private: false, access: { has: obj => _a in obj, set: (obj, value) => { obj[_a] = value; } } }, null, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static set [(_static_set_member_decorators = [dec], _a = tslib_1.__propKey(x))](value) { }
|
||||
|
|
|
@ -27,7 +27,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_x_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _static_private_x_descriptor = { get: tslib_1.__setFunctionName(function () { return this.#x_accessor_storage; }, "#x", "get"), set: tslib_1.__setFunctionName(function (value) { this.#x_accessor_storage = value; }, "#x", "set") }, _static_private_x_decorators, { kind: "accessor", name: "#x", static: true, private: true }, _static_private_x_initializers, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _static_private_x_descriptor = { get: tslib_1.__setFunctionName(function () { return this.#x_accessor_storage; }, "#x", "get"), set: tslib_1.__setFunctionName(function (value) { this.#x_accessor_storage = value; }, "#x", "set") }, _static_private_x_decorators, { kind: "accessor", name: "#x", static: true, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } } }, _static_private_x_initializers, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static #x_accessor_storage = tslib_1.__runInitializers(this, _static_private_x_initializers, void 0);
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_x_decorators = [dec];
|
||||
tslib_1.__esDecorate(null, null, _static_private_x_decorators, { kind: "field", name: "#x", static: true, private: true }, _static_private_x_initializers, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(null, null, _static_private_x_decorators, { kind: "field", name: "#x", static: true, private: true, access: { has: obj => #x in obj, get: obj => obj.#x, set: (obj, value) => { obj.#x = value; } } }, _static_private_x_initializers, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static #x = tslib_1.__runInitializers(this, _static_private_x_initializers, void 0);
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_get_foo_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _static_private_get_foo_descriptor = { get: tslib_1.__setFunctionName(function () { return 1; }, "#foo", "get") }, _static_private_get_foo_decorators, { kind: "getter", name: "#foo", static: true, private: true }, null, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _static_private_get_foo_descriptor = { get: tslib_1.__setFunctionName(function () { return 1; }, "#foo", "get") }, _static_private_get_foo_decorators, { kind: "getter", name: "#foo", static: true, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo } }, null, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static get #foo() { return _static_private_get_foo_descriptor.get.call(this); }
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_foo_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _static_private_foo_descriptor = { value: tslib_1.__setFunctionName(function () { }, "#foo") }, _static_private_foo_decorators, { kind: "method", name: "#foo", static: true, private: true }, null, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _static_private_foo_descriptor = { value: tslib_1.__setFunctionName(function () { }, "#foo") }, _static_private_foo_decorators, { kind: "method", name: "#foo", static: true, private: true, access: { has: obj => #foo in obj, get: obj => obj.#foo } }, null, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static get #foo() { return _static_private_foo_descriptor.value; }
|
||||
|
|
|
@ -26,7 +26,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_static_private_set_foo_decorators = [dec];
|
||||
tslib_1.__esDecorate(this, _static_private_set_foo_descriptor = { set: tslib_1.__setFunctionName(function (value) { }, "#foo", "set") }, _static_private_set_foo_decorators, { kind: "setter", name: "#foo", static: true, private: true }, null, _staticExtraInitializers);
|
||||
tslib_1.__esDecorate(this, _static_private_set_foo_descriptor = { set: tslib_1.__setFunctionName(function (value) { }, "#foo", "set") }, _static_private_set_foo_decorators, { kind: "setter", name: "#foo", static: true, private: true, access: { has: obj => #foo in obj, set: (obj, value) => { obj.#foo = value; } } }, null, _staticExtraInitializers);
|
||||
tslib_1.__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static set #foo(value) { return _static_private_set_foo_descriptor.set.call(this, value); }
|
||||
|
|
|
@ -54,7 +54,7 @@ let A = (() => {
|
|||
__setFunctionName(_classThis, "A");
|
||||
(() => {
|
||||
_b_decorators = [dec(_outerThis)];
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
||||
A = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _classExtraInitializers);
|
||||
|
@ -85,7 +85,7 @@ let B = (() => {
|
|||
_b = (_b_decorators = [dec(this)], f(this));
|
||||
__setFunctionName(_classThis_1, "B");
|
||||
(() => {
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, _classDescriptor_1 = { value: _classThis_1 }, _classDecorators_1, { kind: "class", name: _classThis_1.name }, null, _classExtraInitializers_1);
|
||||
B = _classThis_1 = _classDescriptor_1.value;
|
||||
__runInitializers(_classThis_1, _classExtraInitializers_1);
|
||||
|
@ -114,7 +114,7 @@ let C = (() => {
|
|||
__setFunctionName(_classThis_2, "C");
|
||||
(() => {
|
||||
_b_decorators = [dec(_outerThis_1, (x) => __classPrivateFieldGet(x, _a, "f"))];
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, _classDescriptor_2 = { value: _classThis_2 }, _classDecorators_2, { kind: "class", name: _classThis_2.name }, null, _classExtraInitializers_2);
|
||||
C = _classThis_2 = _classDescriptor_2.value;
|
||||
__runInitializers(_classThis_2, _classExtraInitializers_2);
|
||||
|
|
|
@ -54,7 +54,7 @@ let A = (() => {
|
|||
__setFunctionName(_classThis, "A");
|
||||
(() => {
|
||||
_b_decorators = [dec(_outerThis)];
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
||||
A = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _classExtraInitializers);
|
||||
|
@ -85,7 +85,7 @@ let B = (() => {
|
|||
_b = (_b_decorators = [dec(this)], f(this));
|
||||
__setFunctionName(_classThis_1, "B");
|
||||
(() => {
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, _classDescriptor_1 = { value: _classThis_1 }, _classDecorators_1, { kind: "class", name: _classThis_1.name }, null, _classExtraInitializers_1);
|
||||
B = _classThis_1 = _classDescriptor_1.value;
|
||||
__runInitializers(_classThis_1, _classExtraInitializers_1);
|
||||
|
@ -114,7 +114,7 @@ let C = (() => {
|
|||
__setFunctionName(_classThis_2, "C");
|
||||
(() => {
|
||||
_b_decorators = [dec(_outerThis_1, (x) => __classPrivateFieldGet(x, _a, "f"))];
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, _classDescriptor_2 = { value: _classThis_2 }, _classDecorators_2, { kind: "class", name: _classThis_2.name }, null, _classExtraInitializers_2);
|
||||
C = _classThis_2 = _classDescriptor_2.value;
|
||||
__runInitializers(_classThis_2, _classExtraInitializers_2);
|
||||
|
|
|
@ -49,7 +49,7 @@ let A = (() => {
|
|||
var A = class {
|
||||
static {
|
||||
_b_decorators = [dec(_outerThis)];
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: this }, _classDecorators, { kind: "class", name: this.name }, null, _classExtraInitializers);
|
||||
A = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _classExtraInitializers);
|
||||
|
@ -70,7 +70,7 @@ let B = (() => {
|
|||
let _b_initializers = [];
|
||||
var B = class {
|
||||
static {
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, _classDescriptor_1 = { value: this }, _classDecorators_1, { kind: "class", name: this.name }, null, _classExtraInitializers_1);
|
||||
B = _classThis_1 = _classDescriptor_1.value;
|
||||
__runInitializers(_classThis_1, _classExtraInitializers_1);
|
||||
|
@ -97,7 +97,7 @@ let C = (() => {
|
|||
var C = class {
|
||||
static {
|
||||
_b_decorators = [dec(_outerThis_1, (x) => x.#a)];
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false }, _b_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, null, _b_decorators, { kind: "field", name: "b", static: false, private: false, access: { has: obj => "b" in obj, get: obj => obj.b, set: (obj, value) => { obj.b = value; } } }, _b_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, _classDescriptor_2 = { value: this }, _classDecorators_2, { kind: "class", name: this.name }, null, _classExtraInitializers_2);
|
||||
C = _classThis_2 = _classDescriptor_2.value;
|
||||
__runInitializers(_classThis_2, _classExtraInitializers_2);
|
||||
|
|
|
@ -23,7 +23,7 @@ let C = (() => {
|
|||
},
|
||||
(() => {
|
||||
_speak_decorators = [bound];
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false, access: { has: obj => "speak" in obj, get: obj => obj.speak } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -28,7 +28,7 @@ let C = (() => {
|
|||
},
|
||||
(() => {
|
||||
_speak_decorators = [bound];
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false, access: { has: obj => "speak" in obj, get: obj => obj.speak } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
})();
|
||||
|
|
|
@ -16,7 +16,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_speak_decorators = [bound];
|
||||
__esDecorate(this, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false, access: { has: obj => "speak" in obj, get: obj => obj.speak } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
constructor(message) {
|
||||
this.message = (__runInitializers(this, _instanceExtraInitializers), message);
|
||||
|
|
|
@ -16,7 +16,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_speak_decorators = [bound];
|
||||
__esDecorate(this, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false, access: { has: obj => "speak" in obj, get: obj => obj.speak } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
message = (__runInitializers(this, _instanceExtraInitializers), void 0);
|
||||
constructor(message) {
|
||||
|
|
|
@ -25,7 +25,7 @@ var C = function () {
|
|||
}()),
|
||||
(function () {
|
||||
_speak_decorators = [bound];
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false, access: { has: function (obj) { return "speak" in obj; }, get: function (obj) { return obj.speak; } } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
}();
|
||||
|
|
|
@ -35,7 +35,7 @@ var C = function () {
|
|||
}()),
|
||||
(function () {
|
||||
_speak_decorators = [bound];
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_a, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false, access: { has: function (obj) { return "speak" in obj; }, get: function (obj) { return obj.speak; } } }, null, _instanceExtraInitializers);
|
||||
})(),
|
||||
_a;
|
||||
}();
|
||||
|
|
|
@ -16,7 +16,7 @@ let C = (() => {
|
|||
return class C {
|
||||
static {
|
||||
_speak_decorators = [bound];
|
||||
__esDecorate(this, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _speak_decorators, { kind: "method", name: "speak", static: false, private: false, access: { has: obj => "speak" in obj, get: obj => obj.speak } }, null, _instanceExtraInitializers);
|
||||
}
|
||||
constructor(message) {
|
||||
this.message = (__runInitializers(this, _instanceExtraInitializers), message);
|
||||
|
|
|
@ -96,6 +96,10 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|||
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 __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
||||
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
||||
return typeof state === "function" ? receiver === state : state.has(receiver);
|
||||
};
|
||||
let C = (() => {
|
||||
var _method_get, _x_get, _x_set, _y, _z_accessor_storage, _z_get, _z_set, _z_1_accessor_storage;
|
||||
let _classDecorators = [dec, dec];
|
||||
|
@ -151,16 +155,16 @@ let C = (() => {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -57,6 +57,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
>>> 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 __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
||||
>>> if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
||||
>>> return typeof state === "function" ? receiver === state : state.has(receiver);
|
||||
>>>};
|
||||
>>>let C = (() => {
|
||||
1 >^^^^
|
||||
2 > ^
|
||||
|
@ -67,8 +71,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
>@dec
|
||||
>class
|
||||
2 > C
|
||||
1 >Emitted(50, 5) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(50, 6) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(54, 5) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(54, 6) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> var _method_get, _x_get, _x_set, _y, _z_accessor_storage, _z_get, _z_set, _z_1_accessor_storage;
|
||||
>>> let _classDecorators = [dec, dec];
|
||||
|
@ -81,10 +85,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(52, 29) Source(3, 2) + SourceIndex(0)
|
||||
2 >Emitted(52, 32) Source(3, 5) + SourceIndex(0)
|
||||
3 >Emitted(52, 34) Source(4, 2) + SourceIndex(0)
|
||||
4 >Emitted(52, 37) Source(4, 5) + SourceIndex(0)
|
||||
1->Emitted(56, 29) Source(3, 2) + SourceIndex(0)
|
||||
2 >Emitted(56, 32) Source(3, 5) + SourceIndex(0)
|
||||
3 >Emitted(56, 34) Source(4, 2) + SourceIndex(0)
|
||||
4 >Emitted(56, 37) Source(4, 5) + SourceIndex(0)
|
||||
---
|
||||
>>> let _classDescriptor;
|
||||
>>> let _classExtraInitializers = [];
|
||||
|
@ -116,8 +120,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
1 >
|
||||
>class
|
||||
2 > C
|
||||
1 >Emitted(76, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(76, 10) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(80, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(80, 10) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> constructor() {
|
||||
>>> this.y = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _y_initializers, 1));
|
||||
|
@ -146,11 +150,11 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > =
|
||||
4 > 1
|
||||
5 > ;
|
||||
1->Emitted(78, 13) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(78, 19) Source(20, 6) + SourceIndex(0)
|
||||
3 >Emitted(78, 117) Source(20, 9) + SourceIndex(0)
|
||||
4 >Emitted(78, 118) Source(20, 10) + SourceIndex(0)
|
||||
5 >Emitted(78, 121) Source(20, 11) + SourceIndex(0)
|
||||
1->Emitted(82, 13) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(82, 19) Source(20, 6) + SourceIndex(0)
|
||||
3 >Emitted(82, 117) Source(20, 9) + SourceIndex(0)
|
||||
4 >Emitted(82, 118) Source(20, 10) + SourceIndex(0)
|
||||
5 >Emitted(82, 121) Source(20, 11) + SourceIndex(0)
|
||||
---
|
||||
>>> _z_1_accessor_storage.set(this, __runInitializers(this, _z_initializers, 1));
|
||||
1 >^^^^^^^^^^^^
|
||||
|
@ -165,10 +169,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > z =
|
||||
3 > 1
|
||||
4 > ;
|
||||
1 >Emitted(79, 13) Source(24, 14) + SourceIndex(0)
|
||||
2 >Emitted(79, 86) Source(24, 18) + SourceIndex(0)
|
||||
3 >Emitted(79, 87) Source(24, 19) + SourceIndex(0)
|
||||
4 >Emitted(79, 90) Source(24, 20) + SourceIndex(0)
|
||||
1 >Emitted(83, 13) Source(24, 14) + SourceIndex(0)
|
||||
2 >Emitted(83, 86) Source(24, 18) + SourceIndex(0)
|
||||
3 >Emitted(83, 87) Source(24, 19) + SourceIndex(0)
|
||||
4 >Emitted(83, 90) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
1 >^^^^^^^^
|
||||
|
@ -197,8 +201,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
> static accessor #z = 1;
|
||||
>
|
||||
2 > }
|
||||
1 >Emitted(80, 9) Source(45, 1) + SourceIndex(0)
|
||||
2 >Emitted(80, 10) Source(45, 2) + SourceIndex(0)
|
||||
1 >Emitted(84, 9) Source(45, 1) + SourceIndex(0)
|
||||
2 >Emitted(84, 10) Source(45, 2) + SourceIndex(0)
|
||||
---
|
||||
>>> method() { }
|
||||
1->^^^^^^^^
|
||||
|
@ -210,10 +214,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > method
|
||||
3 > () {
|
||||
4 > }
|
||||
1->Emitted(81, 9) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(81, 15) Source(8, 11) + SourceIndex(0)
|
||||
3 >Emitted(81, 20) Source(8, 15) + SourceIndex(0)
|
||||
4 >Emitted(81, 21) Source(8, 16) + SourceIndex(0)
|
||||
1->Emitted(85, 9) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(85, 15) Source(8, 11) + SourceIndex(0)
|
||||
3 >Emitted(85, 20) Source(8, 15) + SourceIndex(0)
|
||||
4 >Emitted(85, 21) Source(8, 16) + SourceIndex(0)
|
||||
---
|
||||
>>> get x() { return 1; }
|
||||
1->^^^^^^^^
|
||||
|
@ -238,15 +242,15 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
7 > ;
|
||||
8 >
|
||||
9 > }
|
||||
1->Emitted(82, 9) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(82, 13) Source(12, 9) + SourceIndex(0)
|
||||
3 >Emitted(82, 14) Source(12, 10) + SourceIndex(0)
|
||||
4 >Emitted(82, 19) Source(12, 15) + SourceIndex(0)
|
||||
5 >Emitted(82, 26) Source(12, 22) + SourceIndex(0)
|
||||
6 >Emitted(82, 27) Source(12, 23) + SourceIndex(0)
|
||||
7 >Emitted(82, 28) Source(12, 24) + SourceIndex(0)
|
||||
8 >Emitted(82, 29) Source(12, 25) + SourceIndex(0)
|
||||
9 >Emitted(82, 30) Source(12, 26) + SourceIndex(0)
|
||||
1->Emitted(86, 9) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(86, 13) Source(12, 9) + SourceIndex(0)
|
||||
3 >Emitted(86, 14) Source(12, 10) + SourceIndex(0)
|
||||
4 >Emitted(86, 19) Source(12, 15) + SourceIndex(0)
|
||||
5 >Emitted(86, 26) Source(12, 22) + SourceIndex(0)
|
||||
6 >Emitted(86, 27) Source(12, 23) + SourceIndex(0)
|
||||
7 >Emitted(86, 28) Source(12, 24) + SourceIndex(0)
|
||||
8 >Emitted(86, 29) Source(12, 25) + SourceIndex(0)
|
||||
9 >Emitted(86, 30) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>> set x(value) { }
|
||||
1 >^^^^^^^^
|
||||
|
@ -268,13 +272,13 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
5 > value: number
|
||||
6 > ) {
|
||||
7 > }
|
||||
1 >Emitted(83, 9) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(83, 13) Source(16, 9) + SourceIndex(0)
|
||||
3 >Emitted(83, 14) Source(16, 10) + SourceIndex(0)
|
||||
4 >Emitted(83, 15) Source(16, 11) + SourceIndex(0)
|
||||
5 >Emitted(83, 20) Source(16, 24) + SourceIndex(0)
|
||||
6 >Emitted(83, 24) Source(16, 28) + SourceIndex(0)
|
||||
7 >Emitted(83, 25) Source(16, 29) + SourceIndex(0)
|
||||
1 >Emitted(87, 9) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(87, 13) Source(16, 9) + SourceIndex(0)
|
||||
3 >Emitted(87, 14) Source(16, 10) + SourceIndex(0)
|
||||
4 >Emitted(87, 15) Source(16, 11) + SourceIndex(0)
|
||||
5 >Emitted(87, 20) Source(16, 24) + SourceIndex(0)
|
||||
6 >Emitted(87, 24) Source(16, 28) + SourceIndex(0)
|
||||
7 >Emitted(87, 25) Source(16, 29) + SourceIndex(0)
|
||||
---
|
||||
>>> get z() { return __classPrivateFieldGet(this, _z_1_accessor_storage, "f"); }
|
||||
1->^^^^^^^^
|
||||
|
@ -294,10 +298,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > accessor
|
||||
3 > z
|
||||
4 > = 1;
|
||||
1->Emitted(84, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(84, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(84, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(84, 85) Source(24, 20) + SourceIndex(0)
|
||||
1->Emitted(88, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(88, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(88, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(88, 85) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> set z(value) { __classPrivateFieldSet(this, _z_1_accessor_storage, value, "f"); }
|
||||
1->^^^^^^^^
|
||||
|
@ -308,10 +312,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > accessor
|
||||
3 > z
|
||||
4 > = 1;
|
||||
1->Emitted(85, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(85, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(85, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(85, 90) Source(24, 20) + SourceIndex(0)
|
||||
1->Emitted(89, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(89, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(89, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(89, 90) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> };
|
||||
>>> _z_1_accessor_storage = new WeakMap();
|
||||
|
@ -333,10 +337,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1 >Emitted(95, 31) Source(6, 6) + SourceIndex(0)
|
||||
2 >Emitted(95, 34) Source(6, 9) + SourceIndex(0)
|
||||
3 >Emitted(95, 36) Source(7, 6) + SourceIndex(0)
|
||||
4 >Emitted(95, 39) Source(7, 9) + SourceIndex(0)
|
||||
1 >Emitted(99, 31) Source(6, 6) + SourceIndex(0)
|
||||
2 >Emitted(99, 34) Source(6, 9) + SourceIndex(0)
|
||||
3 >Emitted(99, 36) Source(7, 6) + SourceIndex(0)
|
||||
4 >Emitted(99, 39) Source(7, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _get_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -352,10 +356,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(96, 30) Source(10, 6) + SourceIndex(0)
|
||||
2 >Emitted(96, 33) Source(10, 9) + SourceIndex(0)
|
||||
3 >Emitted(96, 35) Source(11, 6) + SourceIndex(0)
|
||||
4 >Emitted(96, 38) Source(11, 9) + SourceIndex(0)
|
||||
1->Emitted(100, 30) Source(10, 6) + SourceIndex(0)
|
||||
2 >Emitted(100, 33) Source(10, 9) + SourceIndex(0)
|
||||
3 >Emitted(100, 35) Source(11, 6) + SourceIndex(0)
|
||||
4 >Emitted(100, 38) Source(11, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _set_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -370,10 +374,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(97, 30) Source(14, 6) + SourceIndex(0)
|
||||
2 >Emitted(97, 33) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(97, 35) Source(15, 6) + SourceIndex(0)
|
||||
4 >Emitted(97, 38) Source(15, 9) + SourceIndex(0)
|
||||
1->Emitted(101, 30) Source(14, 6) + SourceIndex(0)
|
||||
2 >Emitted(101, 33) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(101, 35) Source(15, 6) + SourceIndex(0)
|
||||
4 >Emitted(101, 38) Source(15, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _y_decorators = [dec, dec];
|
||||
1 >^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -389,10 +393,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1 >Emitted(98, 26) Source(18, 6) + SourceIndex(0)
|
||||
2 >Emitted(98, 29) Source(18, 9) + SourceIndex(0)
|
||||
3 >Emitted(98, 31) Source(19, 6) + SourceIndex(0)
|
||||
4 >Emitted(98, 34) Source(19, 9) + SourceIndex(0)
|
||||
1 >Emitted(102, 26) Source(18, 6) + SourceIndex(0)
|
||||
2 >Emitted(102, 29) Source(18, 9) + SourceIndex(0)
|
||||
3 >Emitted(102, 31) Source(19, 6) + SourceIndex(0)
|
||||
4 >Emitted(102, 34) Source(19, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _z_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -408,10 +412,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(99, 26) Source(22, 6) + SourceIndex(0)
|
||||
2 >Emitted(99, 29) Source(22, 9) + SourceIndex(0)
|
||||
3 >Emitted(99, 31) Source(23, 6) + SourceIndex(0)
|
||||
4 >Emitted(99, 34) Source(23, 9) + SourceIndex(0)
|
||||
1->Emitted(103, 26) Source(22, 6) + SourceIndex(0)
|
||||
2 >Emitted(103, 29) Source(22, 9) + SourceIndex(0)
|
||||
3 >Emitted(103, 31) Source(23, 6) + SourceIndex(0)
|
||||
4 >Emitted(103, 34) Source(23, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_method_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -427,10 +431,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(100, 46) Source(26, 6) + SourceIndex(0)
|
||||
2 >Emitted(100, 49) Source(26, 9) + SourceIndex(0)
|
||||
3 >Emitted(100, 51) Source(27, 6) + SourceIndex(0)
|
||||
4 >Emitted(100, 54) Source(27, 9) + SourceIndex(0)
|
||||
1->Emitted(104, 46) Source(26, 6) + SourceIndex(0)
|
||||
2 >Emitted(104, 49) Source(26, 9) + SourceIndex(0)
|
||||
3 >Emitted(104, 51) Source(27, 6) + SourceIndex(0)
|
||||
4 >Emitted(104, 54) Source(27, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_get_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -446,10 +450,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(101, 45) Source(30, 6) + SourceIndex(0)
|
||||
2 >Emitted(101, 48) Source(30, 9) + SourceIndex(0)
|
||||
3 >Emitted(101, 50) Source(31, 6) + SourceIndex(0)
|
||||
4 >Emitted(101, 53) Source(31, 9) + SourceIndex(0)
|
||||
1->Emitted(105, 45) Source(30, 6) + SourceIndex(0)
|
||||
2 >Emitted(105, 48) Source(30, 9) + SourceIndex(0)
|
||||
3 >Emitted(105, 50) Source(31, 6) + SourceIndex(0)
|
||||
4 >Emitted(105, 53) Source(31, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_set_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -464,10 +468,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(102, 45) Source(34, 6) + SourceIndex(0)
|
||||
2 >Emitted(102, 48) Source(34, 9) + SourceIndex(0)
|
||||
3 >Emitted(102, 50) Source(35, 6) + SourceIndex(0)
|
||||
4 >Emitted(102, 53) Source(35, 9) + SourceIndex(0)
|
||||
1->Emitted(106, 45) Source(34, 6) + SourceIndex(0)
|
||||
2 >Emitted(106, 48) Source(34, 9) + SourceIndex(0)
|
||||
3 >Emitted(106, 50) Source(35, 6) + SourceIndex(0)
|
||||
4 >Emitted(106, 53) Source(35, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_y_decorators = [dec, dec];
|
||||
1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -483,17 +487,17 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1 >Emitted(103, 41) Source(38, 6) + SourceIndex(0)
|
||||
2 >Emitted(103, 44) Source(38, 9) + SourceIndex(0)
|
||||
3 >Emitted(103, 46) Source(39, 6) + SourceIndex(0)
|
||||
4 >Emitted(103, 49) Source(39, 9) + SourceIndex(0)
|
||||
1 >Emitted(107, 41) Source(38, 6) + SourceIndex(0)
|
||||
2 >Emitted(107, 44) Source(38, 9) + SourceIndex(0)
|
||||
3 >Emitted(107, 46) Source(39, 6) + SourceIndex(0)
|
||||
4 >Emitted(107, 49) Source(39, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_z_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
2 > ^^^
|
||||
3 > ^^
|
||||
4 > ^^^
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
> static #y = 1;
|
||||
>
|
||||
|
@ -502,20 +506,19 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(104, 41) Source(42, 6) + SourceIndex(0)
|
||||
2 >Emitted(104, 44) Source(42, 9) + SourceIndex(0)
|
||||
3 >Emitted(104, 46) Source(43, 6) + SourceIndex(0)
|
||||
4 >Emitted(104, 49) Source(43, 9) + SourceIndex(0)
|
||||
1->Emitted(108, 41) Source(42, 6) + SourceIndex(0)
|
||||
2 >Emitted(108, 44) Source(42, 9) + SourceIndex(0)
|
||||
3 >Emitted(108, 46) Source(43, 6) + SourceIndex(0)
|
||||
4 >Emitted(108, 49) Source(43, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
>>> __esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
4 > ^^^^^^^^^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^^^^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
8 > ^^^^->
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
2 >
|
||||
3 >
|
||||
|
@ -523,16 +526,16 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
5 > }
|
||||
6 >
|
||||
7 >
|
||||
1->Emitted(105, 9) Source(28, 5) + SourceIndex(0)
|
||||
2 >Emitted(105, 72) Source(28, 5) + SourceIndex(0)
|
||||
3 >Emitted(105, 97) Source(28, 5) + SourceIndex(0)
|
||||
4 >Emitted(105, 111) Source(28, 23) + SourceIndex(0)
|
||||
5 >Emitted(105, 112) Source(28, 24) + SourceIndex(0)
|
||||
6 >Emitted(105, 124) Source(28, 24) + SourceIndex(0)
|
||||
7 >Emitted(105, 261) Source(28, 24) + SourceIndex(0)
|
||||
1->Emitted(109, 9) Source(28, 5) + SourceIndex(0)
|
||||
2 >Emitted(109, 72) Source(28, 5) + SourceIndex(0)
|
||||
3 >Emitted(109, 97) Source(28, 5) + SourceIndex(0)
|
||||
4 >Emitted(109, 111) Source(28, 23) + SourceIndex(0)
|
||||
5 >Emitted(109, 112) Source(28, 24) + SourceIndex(0)
|
||||
6 >Emitted(109, 124) Source(28, 24) + SourceIndex(0)
|
||||
7 >Emitted(109, 396) Source(28, 24) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
>>> __esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
4 > ^^^^^^^^^^^^^^
|
||||
|
@ -542,8 +545,9 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
8 > ^
|
||||
9 > ^
|
||||
10> ^^^^^^^^^^^^^^
|
||||
11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
12> ^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
|
@ -558,20 +562,20 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
9 > }
|
||||
10>
|
||||
11>
|
||||
1->Emitted(106, 9) Source(32, 5) + SourceIndex(0)
|
||||
2 >Emitted(106, 71) Source(32, 5) + SourceIndex(0)
|
||||
3 >Emitted(106, 94) Source(32, 5) + SourceIndex(0)
|
||||
4 >Emitted(106, 108) Source(32, 23) + SourceIndex(0)
|
||||
5 >Emitted(106, 115) Source(32, 30) + SourceIndex(0)
|
||||
6 >Emitted(106, 116) Source(32, 31) + SourceIndex(0)
|
||||
7 >Emitted(106, 117) Source(32, 32) + SourceIndex(0)
|
||||
8 >Emitted(106, 118) Source(32, 33) + SourceIndex(0)
|
||||
9 >Emitted(106, 119) Source(32, 34) + SourceIndex(0)
|
||||
10>Emitted(106, 133) Source(32, 34) + SourceIndex(0)
|
||||
11>Emitted(106, 264) Source(32, 34) + SourceIndex(0)
|
||||
1 >Emitted(110, 9) Source(32, 5) + SourceIndex(0)
|
||||
2 >Emitted(110, 71) Source(32, 5) + SourceIndex(0)
|
||||
3 >Emitted(110, 94) Source(32, 5) + SourceIndex(0)
|
||||
4 >Emitted(110, 108) Source(32, 23) + SourceIndex(0)
|
||||
5 >Emitted(110, 115) Source(32, 30) + SourceIndex(0)
|
||||
6 >Emitted(110, 116) Source(32, 31) + SourceIndex(0)
|
||||
7 >Emitted(110, 117) Source(32, 32) + SourceIndex(0)
|
||||
8 >Emitted(110, 118) Source(32, 33) + SourceIndex(0)
|
||||
9 >Emitted(110, 119) Source(32, 34) + SourceIndex(0)
|
||||
10>Emitted(110, 133) Source(32, 34) + SourceIndex(0)
|
||||
11>Emitted(110, 394) Source(32, 34) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
1 >^^^^^^^^
|
||||
>>> __esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
4 > ^^^^^^^^^^
|
||||
|
@ -579,9 +583,9 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
6 > ^^^^
|
||||
7 > ^
|
||||
8 > ^^^^^^^^^^^^^^
|
||||
9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
|
@ -594,17 +598,17 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
7 > }
|
||||
8 >
|
||||
9 >
|
||||
1 >Emitted(107, 9) Source(36, 5) + SourceIndex(0)
|
||||
2 >Emitted(107, 71) Source(36, 5) + SourceIndex(0)
|
||||
3 >Emitted(107, 94) Source(36, 5) + SourceIndex(0)
|
||||
4 >Emitted(107, 104) Source(36, 19) + SourceIndex(0)
|
||||
5 >Emitted(107, 109) Source(36, 32) + SourceIndex(0)
|
||||
6 >Emitted(107, 113) Source(36, 36) + SourceIndex(0)
|
||||
7 >Emitted(107, 114) Source(36, 37) + SourceIndex(0)
|
||||
8 >Emitted(107, 128) Source(36, 37) + SourceIndex(0)
|
||||
9 >Emitted(107, 259) Source(36, 37) + SourceIndex(0)
|
||||
1->Emitted(111, 9) Source(36, 5) + SourceIndex(0)
|
||||
2 >Emitted(111, 71) Source(36, 5) + SourceIndex(0)
|
||||
3 >Emitted(111, 94) Source(36, 5) + SourceIndex(0)
|
||||
4 >Emitted(111, 104) Source(36, 19) + SourceIndex(0)
|
||||
5 >Emitted(111, 109) Source(36, 32) + SourceIndex(0)
|
||||
6 >Emitted(111, 113) Source(36, 36) + SourceIndex(0)
|
||||
7 >Emitted(111, 114) Source(36, 37) + SourceIndex(0)
|
||||
8 >Emitted(111, 128) Source(36, 37) + SourceIndex(0)
|
||||
9 >Emitted(111, 410) Source(36, 37) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
>>> __esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -614,7 +618,7 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
7 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
9 > ^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
|
@ -633,55 +637,77 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
8 > static accessor #z = 1;
|
||||
9 >
|
||||
10>
|
||||
1->Emitted(108, 9) Source(44, 5) + SourceIndex(0)
|
||||
2 >Emitted(108, 67) Source(44, 5) + SourceIndex(0)
|
||||
3 >Emitted(108, 90) Source(44, 5) + SourceIndex(0)
|
||||
4 >Emitted(108, 186) Source(44, 28) + SourceIndex(0)
|
||||
5 >Emitted(108, 200) Source(44, 28) + SourceIndex(0)
|
||||
6 >Emitted(108, 202) Source(44, 5) + SourceIndex(0)
|
||||
7 >Emitted(108, 225) Source(44, 5) + SourceIndex(0)
|
||||
8 >Emitted(108, 326) Source(44, 28) + SourceIndex(0)
|
||||
9 >Emitted(108, 340) Source(44, 28) + SourceIndex(0)
|
||||
10>Emitted(108, 495) Source(44, 28) + SourceIndex(0)
|
||||
1->Emitted(112, 9) Source(44, 5) + SourceIndex(0)
|
||||
2 >Emitted(112, 67) Source(44, 5) + SourceIndex(0)
|
||||
3 >Emitted(112, 90) Source(44, 5) + SourceIndex(0)
|
||||
4 >Emitted(112, 186) Source(44, 28) + SourceIndex(0)
|
||||
5 >Emitted(112, 200) Source(44, 28) + SourceIndex(0)
|
||||
6 >Emitted(112, 202) Source(44, 5) + SourceIndex(0)
|
||||
7 >Emitted(112, 225) Source(44, 5) + SourceIndex(0)
|
||||
8 >Emitted(112, 326) Source(44, 28) + SourceIndex(0)
|
||||
9 >Emitted(112, 340) Source(44, 28) + SourceIndex(0)
|
||||
10>Emitted(112, 712) Source(44, 28) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
>>> __esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > method() {}
|
||||
1 >Emitted(109, 9) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(109, 161) Source(8, 16) + SourceIndex(0)
|
||||
2 >
|
||||
3 > method
|
||||
4 > () {}
|
||||
1 >Emitted(113, 9) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(113, 180) Source(8, 5) + SourceIndex(0)
|
||||
3 >Emitted(113, 186) Source(8, 11) + SourceIndex(0)
|
||||
4 >Emitted(113, 226) Source(8, 16) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
>>> __esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^->
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
>
|
||||
2 > get x() { return 1; }
|
||||
1 >Emitted(110, 9) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(110, 155) Source(12, 26) + SourceIndex(0)
|
||||
2 > get
|
||||
3 > x
|
||||
4 > () { return 1; }
|
||||
1 >Emitted(114, 9) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(114, 169) Source(12, 9) + SourceIndex(0)
|
||||
3 >Emitted(114, 170) Source(12, 10) + SourceIndex(0)
|
||||
4 >Emitted(114, 210) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
>>> __esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^->
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
>
|
||||
2 > set x(value: number) { }
|
||||
1->Emitted(111, 9) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(111, 155) Source(16, 29) + SourceIndex(0)
|
||||
2 > set
|
||||
3 > x
|
||||
4 > (value: number) { }
|
||||
1->Emitted(115, 9) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(115, 180) Source(16, 9) + SourceIndex(0)
|
||||
3 >Emitted(115, 181) Source(16, 10) + SourceIndex(0)
|
||||
4 >Emitted(115, 232) Source(16, 29) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
>>> __esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^->
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
|
@ -691,13 +717,21 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
> @dec
|
||||
> @dec
|
||||
>
|
||||
2 > accessor z = 1;
|
||||
1->Emitted(112, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(112, 164) Source(24, 20) + SourceIndex(0)
|
||||
2 > accessor
|
||||
3 > z
|
||||
4 >
|
||||
5 > z
|
||||
6 > = 1;
|
||||
1->Emitted(116, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(116, 167) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(116, 168) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(116, 197) Source(24, 14) + SourceIndex(0)
|
||||
5 >Emitted(116, 198) Source(24, 15) + SourceIndex(0)
|
||||
6 >Emitted(116, 260) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
>>> __esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
|
@ -716,22 +750,33 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
> @dec
|
||||
>
|
||||
2 > static #y = 1;
|
||||
1->Emitted(113, 9) Source(40, 5) + SourceIndex(0)
|
||||
2 >Emitted(113, 182) Source(40, 19) + SourceIndex(0)
|
||||
1->Emitted(117, 9) Source(40, 5) + SourceIndex(0)
|
||||
2 >Emitted(117, 391) Source(40, 19) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
>>> __esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^->
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > y = 1;
|
||||
1 >Emitted(114, 9) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(114, 155) Source(20, 11) + SourceIndex(0)
|
||||
2 >
|
||||
3 > y
|
||||
4 >
|
||||
5 > y
|
||||
6 > = 1;
|
||||
1 >Emitted(118, 9) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(118, 158) Source(20, 5) + SourceIndex(0)
|
||||
3 >Emitted(118, 159) Source(20, 6) + SourceIndex(0)
|
||||
4 >Emitted(118, 188) Source(20, 5) + SourceIndex(0)
|
||||
5 >Emitted(118, 189) Source(20, 6) + SourceIndex(0)
|
||||
6 >Emitted(118, 251) Source(20, 11) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
1 >^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
1 >
|
||||
2 > class C {
|
||||
> @dec
|
||||
> @dec
|
||||
|
@ -773,8 +818,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
> @dec
|
||||
> static accessor #z = 1;
|
||||
> }
|
||||
1->Emitted(115, 9) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(115, 161) Source(45, 2) + SourceIndex(0)
|
||||
1 >Emitted(119, 9) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(119, 161) Source(45, 2) + SourceIndex(0)
|
||||
---
|
||||
>>> C = _classThis = _classDescriptor.value;
|
||||
1 >^^^^^^^^
|
||||
|
@ -782,16 +827,16 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 > C
|
||||
1 >Emitted(116, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(116, 10) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(120, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(120, 10) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> __runInitializers(_classThis, _staticExtraInitializers);
|
||||
1->^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
2 > C
|
||||
1->Emitted(117, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(117, 65) Source(5, 8) + SourceIndex(0)
|
||||
1->Emitted(121, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(121, 65) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> })();
|
||||
>>> _y = { value: __runInitializers(_classThis, _static_private_y_initializers, 1) };
|
||||
|
@ -841,11 +886,11 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > 1
|
||||
4 >
|
||||
5 > = 1;
|
||||
1 >Emitted(119, 5) Source(40, 12) + SourceIndex(0)
|
||||
2 >Emitted(119, 81) Source(40, 17) + SourceIndex(0)
|
||||
3 >Emitted(119, 82) Source(40, 18) + SourceIndex(0)
|
||||
4 >Emitted(119, 85) Source(40, 14) + SourceIndex(0)
|
||||
5 >Emitted(119, 86) Source(40, 19) + SourceIndex(0)
|
||||
1 >Emitted(123, 5) Source(40, 12) + SourceIndex(0)
|
||||
2 >Emitted(123, 81) Source(40, 17) + SourceIndex(0)
|
||||
3 >Emitted(123, 82) Source(40, 18) + SourceIndex(0)
|
||||
4 >Emitted(123, 85) Source(40, 14) + SourceIndex(0)
|
||||
5 >Emitted(123, 86) Source(40, 19) + SourceIndex(0)
|
||||
---
|
||||
>>> _z_accessor_storage = { value: __runInitializers(_classThis, _static_private_z_initializers, 1) };
|
||||
1->^^^^
|
||||
|
@ -862,11 +907,11 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > 1
|
||||
4 >
|
||||
5 > = 1;
|
||||
1->Emitted(120, 5) Source(44, 21) + SourceIndex(0)
|
||||
2 >Emitted(120, 98) Source(44, 26) + SourceIndex(0)
|
||||
3 >Emitted(120, 99) Source(44, 27) + SourceIndex(0)
|
||||
4 >Emitted(120, 102) Source(44, 23) + SourceIndex(0)
|
||||
5 >Emitted(120, 103) Source(44, 28) + SourceIndex(0)
|
||||
1->Emitted(124, 5) Source(44, 21) + SourceIndex(0)
|
||||
2 >Emitted(124, 98) Source(44, 26) + SourceIndex(0)
|
||||
3 >Emitted(124, 99) Source(44, 27) + SourceIndex(0)
|
||||
4 >Emitted(124, 102) Source(44, 23) + SourceIndex(0)
|
||||
5 >Emitted(124, 103) Source(44, 28) + SourceIndex(0)
|
||||
---
|
||||
>>> (() => {
|
||||
>>> __runInitializers(_classThis, _classExtraInitializers);
|
||||
|
@ -874,8 +919,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > C
|
||||
1 >Emitted(122, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(122, 64) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(126, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(126, 64) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> })();
|
||||
>>> return C = _classThis;
|
||||
|
@ -883,8 +928,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > ^
|
||||
1 >
|
||||
2 > C
|
||||
1 >Emitted(124, 12) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(124, 13) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(128, 12) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(128, 13) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>>})();
|
||||
>>>//# sourceMappingURL=esDecorators-classDeclaration-sourceMap.js.map===================================================================
|
||||
|
|
|
@ -85,6 +85,10 @@ var __setFunctionName = (this && this.__setFunctionName) || function (f, name, p
|
|||
if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
||||
return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
||||
};
|
||||
var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
||||
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
||||
return typeof state === "function" ? receiver === state : state.has(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");
|
||||
|
@ -136,16 +140,16 @@ let C = (() => {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: this }, _classDecorators, { kind: "class", name: this.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -46,6 +46,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
>>> if (typeof name === "symbol") name = name.description ? "[".concat(name.description, "]") : "";
|
||||
>>> return Object.defineProperty(f, "name", { configurable: true, value: prefix ? "".concat(prefix, " ", name) : name });
|
||||
>>>};
|
||||
>>>var __classPrivateFieldIn = (this && this.__classPrivateFieldIn) || function(state, receiver) {
|
||||
>>> if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
||||
>>> return typeof state === "function" ? receiver === state : state.has(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");
|
||||
|
@ -67,8 +71,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
>@dec
|
||||
>class
|
||||
2 > C
|
||||
1 >Emitted(50, 5) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(50, 6) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(54, 5) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(54, 6) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> var _method_get, _x_get, _x_set, _y, _z_accessor_storage, _z_get, _z_set;
|
||||
>>> let _classDecorators = [dec, dec];
|
||||
|
@ -81,10 +85,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(52, 29) Source(3, 2) + SourceIndex(0)
|
||||
2 >Emitted(52, 32) Source(3, 5) + SourceIndex(0)
|
||||
3 >Emitted(52, 34) Source(4, 2) + SourceIndex(0)
|
||||
4 >Emitted(52, 37) Source(4, 5) + SourceIndex(0)
|
||||
1->Emitted(56, 29) Source(3, 2) + SourceIndex(0)
|
||||
2 >Emitted(56, 32) Source(3, 5) + SourceIndex(0)
|
||||
3 >Emitted(56, 34) Source(4, 2) + SourceIndex(0)
|
||||
4 >Emitted(56, 37) Source(4, 5) + SourceIndex(0)
|
||||
---
|
||||
>>> let _classDescriptor;
|
||||
>>> let _classExtraInitializers = [];
|
||||
|
@ -116,8 +120,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
1 >
|
||||
>class
|
||||
2 > C
|
||||
1 >Emitted(76, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(76, 10) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(80, 9) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(80, 10) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> static { __setFunctionName(this, "C"); }
|
||||
>>> static { _method_get = function _method_get() { return _static_private_method_descriptor.value; }, _x_get = function _x_get() { return _static_private_get_x_descriptor.get.call(this); }, _x_set = function _x_set(value) { return _static_private_set_x_descriptor.set.call(this, value); }, _z_get = function _z_get() { return _static_private_z_descriptor.get.call(this); }, _z_set = function _z_set(value) { return _static_private_z_descriptor.set.call(this, value); }; }
|
||||
|
@ -134,10 +138,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(80, 35) Source(6, 6) + SourceIndex(0)
|
||||
2 >Emitted(80, 38) Source(6, 9) + SourceIndex(0)
|
||||
3 >Emitted(80, 40) Source(7, 6) + SourceIndex(0)
|
||||
4 >Emitted(80, 43) Source(7, 9) + SourceIndex(0)
|
||||
1->Emitted(84, 35) Source(6, 6) + SourceIndex(0)
|
||||
2 >Emitted(84, 38) Source(6, 9) + SourceIndex(0)
|
||||
3 >Emitted(84, 40) Source(7, 6) + SourceIndex(0)
|
||||
4 >Emitted(84, 43) Source(7, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _get_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -153,10 +157,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(81, 34) Source(10, 6) + SourceIndex(0)
|
||||
2 >Emitted(81, 37) Source(10, 9) + SourceIndex(0)
|
||||
3 >Emitted(81, 39) Source(11, 6) + SourceIndex(0)
|
||||
4 >Emitted(81, 42) Source(11, 9) + SourceIndex(0)
|
||||
1->Emitted(85, 34) Source(10, 6) + SourceIndex(0)
|
||||
2 >Emitted(85, 37) Source(10, 9) + SourceIndex(0)
|
||||
3 >Emitted(85, 39) Source(11, 6) + SourceIndex(0)
|
||||
4 >Emitted(85, 42) Source(11, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _set_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -171,10 +175,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(82, 34) Source(14, 6) + SourceIndex(0)
|
||||
2 >Emitted(82, 37) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(82, 39) Source(15, 6) + SourceIndex(0)
|
||||
4 >Emitted(82, 42) Source(15, 9) + SourceIndex(0)
|
||||
1->Emitted(86, 34) Source(14, 6) + SourceIndex(0)
|
||||
2 >Emitted(86, 37) Source(14, 9) + SourceIndex(0)
|
||||
3 >Emitted(86, 39) Source(15, 6) + SourceIndex(0)
|
||||
4 >Emitted(86, 42) Source(15, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _y_decorators = [dec, dec];
|
||||
1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -190,10 +194,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1 >Emitted(83, 30) Source(18, 6) + SourceIndex(0)
|
||||
2 >Emitted(83, 33) Source(18, 9) + SourceIndex(0)
|
||||
3 >Emitted(83, 35) Source(19, 6) + SourceIndex(0)
|
||||
4 >Emitted(83, 38) Source(19, 9) + SourceIndex(0)
|
||||
1 >Emitted(87, 30) Source(18, 6) + SourceIndex(0)
|
||||
2 >Emitted(87, 33) Source(18, 9) + SourceIndex(0)
|
||||
3 >Emitted(87, 35) Source(19, 6) + SourceIndex(0)
|
||||
4 >Emitted(87, 38) Source(19, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _z_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -209,10 +213,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(84, 30) Source(22, 6) + SourceIndex(0)
|
||||
2 >Emitted(84, 33) Source(22, 9) + SourceIndex(0)
|
||||
3 >Emitted(84, 35) Source(23, 6) + SourceIndex(0)
|
||||
4 >Emitted(84, 38) Source(23, 9) + SourceIndex(0)
|
||||
1->Emitted(88, 30) Source(22, 6) + SourceIndex(0)
|
||||
2 >Emitted(88, 33) Source(22, 9) + SourceIndex(0)
|
||||
3 >Emitted(88, 35) Source(23, 6) + SourceIndex(0)
|
||||
4 >Emitted(88, 38) Source(23, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_method_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -228,10 +232,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(85, 50) Source(26, 6) + SourceIndex(0)
|
||||
2 >Emitted(85, 53) Source(26, 9) + SourceIndex(0)
|
||||
3 >Emitted(85, 55) Source(27, 6) + SourceIndex(0)
|
||||
4 >Emitted(85, 58) Source(27, 9) + SourceIndex(0)
|
||||
1->Emitted(89, 50) Source(26, 6) + SourceIndex(0)
|
||||
2 >Emitted(89, 53) Source(26, 9) + SourceIndex(0)
|
||||
3 >Emitted(89, 55) Source(27, 6) + SourceIndex(0)
|
||||
4 >Emitted(89, 58) Source(27, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_get_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -247,10 +251,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(86, 49) Source(30, 6) + SourceIndex(0)
|
||||
2 >Emitted(86, 52) Source(30, 9) + SourceIndex(0)
|
||||
3 >Emitted(86, 54) Source(31, 6) + SourceIndex(0)
|
||||
4 >Emitted(86, 57) Source(31, 9) + SourceIndex(0)
|
||||
1->Emitted(90, 49) Source(30, 6) + SourceIndex(0)
|
||||
2 >Emitted(90, 52) Source(30, 9) + SourceIndex(0)
|
||||
3 >Emitted(90, 54) Source(31, 6) + SourceIndex(0)
|
||||
4 >Emitted(90, 57) Source(31, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_set_x_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -265,10 +269,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(87, 49) Source(34, 6) + SourceIndex(0)
|
||||
2 >Emitted(87, 52) Source(34, 9) + SourceIndex(0)
|
||||
3 >Emitted(87, 54) Source(35, 6) + SourceIndex(0)
|
||||
4 >Emitted(87, 57) Source(35, 9) + SourceIndex(0)
|
||||
1->Emitted(91, 49) Source(34, 6) + SourceIndex(0)
|
||||
2 >Emitted(91, 52) Source(34, 9) + SourceIndex(0)
|
||||
3 >Emitted(91, 54) Source(35, 6) + SourceIndex(0)
|
||||
4 >Emitted(91, 57) Source(35, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_y_decorators = [dec, dec];
|
||||
1 >^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -284,17 +288,17 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1 >Emitted(88, 45) Source(38, 6) + SourceIndex(0)
|
||||
2 >Emitted(88, 48) Source(38, 9) + SourceIndex(0)
|
||||
3 >Emitted(88, 50) Source(39, 6) + SourceIndex(0)
|
||||
4 >Emitted(88, 53) Source(39, 9) + SourceIndex(0)
|
||||
1 >Emitted(92, 45) Source(38, 6) + SourceIndex(0)
|
||||
2 >Emitted(92, 48) Source(38, 9) + SourceIndex(0)
|
||||
3 >Emitted(92, 50) Source(39, 6) + SourceIndex(0)
|
||||
4 >Emitted(92, 53) Source(39, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> _static_private_z_decorators = [dec, dec];
|
||||
1->^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
2 > ^^^
|
||||
3 > ^^
|
||||
4 > ^^^
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
> static #y = 1;
|
||||
>
|
||||
|
@ -303,20 +307,19 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 >
|
||||
> @
|
||||
4 > dec
|
||||
1->Emitted(89, 45) Source(42, 6) + SourceIndex(0)
|
||||
2 >Emitted(89, 48) Source(42, 9) + SourceIndex(0)
|
||||
3 >Emitted(89, 50) Source(43, 6) + SourceIndex(0)
|
||||
4 >Emitted(89, 53) Source(43, 9) + SourceIndex(0)
|
||||
1->Emitted(93, 45) Source(42, 6) + SourceIndex(0)
|
||||
2 >Emitted(93, 48) Source(42, 9) + SourceIndex(0)
|
||||
3 >Emitted(93, 50) Source(43, 6) + SourceIndex(0)
|
||||
4 >Emitted(93, 53) Source(43, 9) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
>>> __esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
4 > ^^^^^^^^^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^^^^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
8 > ^^^^->
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
2 >
|
||||
3 >
|
||||
|
@ -324,16 +327,16 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
5 > }
|
||||
6 >
|
||||
7 >
|
||||
1->Emitted(90, 13) Source(28, 5) + SourceIndex(0)
|
||||
2 >Emitted(90, 70) Source(28, 5) + SourceIndex(0)
|
||||
3 >Emitted(90, 95) Source(28, 5) + SourceIndex(0)
|
||||
4 >Emitted(90, 109) Source(28, 23) + SourceIndex(0)
|
||||
5 >Emitted(90, 110) Source(28, 24) + SourceIndex(0)
|
||||
6 >Emitted(90, 122) Source(28, 24) + SourceIndex(0)
|
||||
7 >Emitted(90, 259) Source(28, 24) + SourceIndex(0)
|
||||
1->Emitted(94, 13) Source(28, 5) + SourceIndex(0)
|
||||
2 >Emitted(94, 70) Source(28, 5) + SourceIndex(0)
|
||||
3 >Emitted(94, 95) Source(28, 5) + SourceIndex(0)
|
||||
4 >Emitted(94, 109) Source(28, 23) + SourceIndex(0)
|
||||
5 >Emitted(94, 110) Source(28, 24) + SourceIndex(0)
|
||||
6 >Emitted(94, 122) Source(28, 24) + SourceIndex(0)
|
||||
7 >Emitted(94, 394) Source(28, 24) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
>>> __esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
1 >^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
4 > ^^^^^^^^^^^^^^
|
||||
|
@ -343,8 +346,9 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
8 > ^
|
||||
9 > ^
|
||||
10> ^^^^^^^^^^^^^^
|
||||
11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
11> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
12> ^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
|
@ -359,20 +363,20 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
9 > }
|
||||
10>
|
||||
11>
|
||||
1->Emitted(91, 13) Source(32, 5) + SourceIndex(0)
|
||||
2 >Emitted(91, 69) Source(32, 5) + SourceIndex(0)
|
||||
3 >Emitted(91, 92) Source(32, 5) + SourceIndex(0)
|
||||
4 >Emitted(91, 106) Source(32, 23) + SourceIndex(0)
|
||||
5 >Emitted(91, 113) Source(32, 30) + SourceIndex(0)
|
||||
6 >Emitted(91, 114) Source(32, 31) + SourceIndex(0)
|
||||
7 >Emitted(91, 115) Source(32, 32) + SourceIndex(0)
|
||||
8 >Emitted(91, 116) Source(32, 33) + SourceIndex(0)
|
||||
9 >Emitted(91, 117) Source(32, 34) + SourceIndex(0)
|
||||
10>Emitted(91, 131) Source(32, 34) + SourceIndex(0)
|
||||
11>Emitted(91, 262) Source(32, 34) + SourceIndex(0)
|
||||
1 >Emitted(95, 13) Source(32, 5) + SourceIndex(0)
|
||||
2 >Emitted(95, 69) Source(32, 5) + SourceIndex(0)
|
||||
3 >Emitted(95, 92) Source(32, 5) + SourceIndex(0)
|
||||
4 >Emitted(95, 106) Source(32, 23) + SourceIndex(0)
|
||||
5 >Emitted(95, 113) Source(32, 30) + SourceIndex(0)
|
||||
6 >Emitted(95, 114) Source(32, 31) + SourceIndex(0)
|
||||
7 >Emitted(95, 115) Source(32, 32) + SourceIndex(0)
|
||||
8 >Emitted(95, 116) Source(32, 33) + SourceIndex(0)
|
||||
9 >Emitted(95, 117) Source(32, 34) + SourceIndex(0)
|
||||
10>Emitted(95, 131) Source(32, 34) + SourceIndex(0)
|
||||
11>Emitted(95, 392) Source(32, 34) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
1 >^^^^^^^^^^^^
|
||||
>>> __esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
4 > ^^^^^^^^^^
|
||||
|
@ -380,9 +384,9 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
6 > ^^^^
|
||||
7 > ^
|
||||
8 > ^^^^^^^^^^^^^^
|
||||
9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
9 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
|
@ -395,17 +399,17 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
7 > }
|
||||
8 >
|
||||
9 >
|
||||
1 >Emitted(92, 13) Source(36, 5) + SourceIndex(0)
|
||||
2 >Emitted(92, 69) Source(36, 5) + SourceIndex(0)
|
||||
3 >Emitted(92, 92) Source(36, 5) + SourceIndex(0)
|
||||
4 >Emitted(92, 102) Source(36, 19) + SourceIndex(0)
|
||||
5 >Emitted(92, 107) Source(36, 32) + SourceIndex(0)
|
||||
6 >Emitted(92, 111) Source(36, 36) + SourceIndex(0)
|
||||
7 >Emitted(92, 112) Source(36, 37) + SourceIndex(0)
|
||||
8 >Emitted(92, 126) Source(36, 37) + SourceIndex(0)
|
||||
9 >Emitted(92, 257) Source(36, 37) + SourceIndex(0)
|
||||
1->Emitted(96, 13) Source(36, 5) + SourceIndex(0)
|
||||
2 >Emitted(96, 69) Source(36, 5) + SourceIndex(0)
|
||||
3 >Emitted(96, 92) Source(36, 5) + SourceIndex(0)
|
||||
4 >Emitted(96, 102) Source(36, 19) + SourceIndex(0)
|
||||
5 >Emitted(96, 107) Source(36, 32) + SourceIndex(0)
|
||||
6 >Emitted(96, 111) Source(36, 36) + SourceIndex(0)
|
||||
7 >Emitted(96, 112) Source(36, 37) + SourceIndex(0)
|
||||
8 >Emitted(96, 126) Source(36, 37) + SourceIndex(0)
|
||||
9 >Emitted(96, 408) Source(36, 37) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
>>> __esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
@ -415,7 +419,7 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
7 > ^^^^^^^^^^^^^^^^^^^^^^^
|
||||
8 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
9 > ^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
10> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
|
@ -434,55 +438,77 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
8 > static accessor #z = 1;
|
||||
9 >
|
||||
10>
|
||||
1->Emitted(93, 13) Source(44, 5) + SourceIndex(0)
|
||||
2 >Emitted(93, 65) Source(44, 5) + SourceIndex(0)
|
||||
3 >Emitted(93, 88) Source(44, 5) + SourceIndex(0)
|
||||
4 >Emitted(93, 178) Source(44, 28) + SourceIndex(0)
|
||||
5 >Emitted(93, 192) Source(44, 28) + SourceIndex(0)
|
||||
6 >Emitted(93, 194) Source(44, 5) + SourceIndex(0)
|
||||
7 >Emitted(93, 217) Source(44, 5) + SourceIndex(0)
|
||||
8 >Emitted(93, 312) Source(44, 28) + SourceIndex(0)
|
||||
9 >Emitted(93, 326) Source(44, 28) + SourceIndex(0)
|
||||
10>Emitted(93, 481) Source(44, 28) + SourceIndex(0)
|
||||
1->Emitted(97, 13) Source(44, 5) + SourceIndex(0)
|
||||
2 >Emitted(97, 65) Source(44, 5) + SourceIndex(0)
|
||||
3 >Emitted(97, 88) Source(44, 5) + SourceIndex(0)
|
||||
4 >Emitted(97, 178) Source(44, 28) + SourceIndex(0)
|
||||
5 >Emitted(97, 192) Source(44, 28) + SourceIndex(0)
|
||||
6 >Emitted(97, 194) Source(44, 5) + SourceIndex(0)
|
||||
7 >Emitted(97, 217) Source(44, 5) + SourceIndex(0)
|
||||
8 >Emitted(97, 312) Source(44, 28) + SourceIndex(0)
|
||||
9 >Emitted(97, 326) Source(44, 28) + SourceIndex(0)
|
||||
10>Emitted(97, 698) Source(44, 28) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
>>> __esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
1 >^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > method() {}
|
||||
1 >Emitted(94, 13) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(94, 159) Source(8, 16) + SourceIndex(0)
|
||||
2 >
|
||||
3 > method
|
||||
4 > () {}
|
||||
1 >Emitted(98, 13) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(98, 178) Source(8, 5) + SourceIndex(0)
|
||||
3 >Emitted(98, 184) Source(8, 11) + SourceIndex(0)
|
||||
4 >Emitted(98, 224) Source(8, 16) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
>>> __esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
1 >^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^->
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
>
|
||||
2 > get x() { return 1; }
|
||||
1 >Emitted(95, 13) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(95, 153) Source(12, 26) + SourceIndex(0)
|
||||
2 > get
|
||||
3 > x
|
||||
4 > () { return 1; }
|
||||
1 >Emitted(99, 13) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(99, 167) Source(12, 9) + SourceIndex(0)
|
||||
3 >Emitted(99, 168) Source(12, 10) + SourceIndex(0)
|
||||
4 >Emitted(99, 208) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
>>> __esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^->
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
> @dec
|
||||
>
|
||||
2 > set x(value: number) { }
|
||||
1->Emitted(96, 13) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(96, 153) Source(16, 29) + SourceIndex(0)
|
||||
2 > set
|
||||
3 > x
|
||||
4 > (value: number) { }
|
||||
1->Emitted(100, 13) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(100, 178) Source(16, 9) + SourceIndex(0)
|
||||
3 >Emitted(100, 179) Source(16, 10) + SourceIndex(0)
|
||||
4 >Emitted(100, 230) Source(16, 29) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
>>> __esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
7 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
|
@ -492,13 +518,21 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
> @dec
|
||||
> @dec
|
||||
>
|
||||
2 > accessor z = 1;
|
||||
1->Emitted(97, 13) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(97, 162) Source(24, 20) + SourceIndex(0)
|
||||
2 > accessor
|
||||
3 > z
|
||||
4 >
|
||||
5 > z
|
||||
6 > = 1;
|
||||
1->Emitted(101, 13) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(101, 165) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(101, 166) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(101, 195) Source(24, 14) + SourceIndex(0)
|
||||
5 >Emitted(101, 196) Source(24, 15) + SourceIndex(0)
|
||||
6 >Emitted(101, 258) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
>>> __esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
>
|
||||
> @dec
|
||||
|
@ -517,16 +551,28 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
> @dec
|
||||
>
|
||||
2 > static #y = 1;
|
||||
1->Emitted(98, 13) Source(40, 5) + SourceIndex(0)
|
||||
2 >Emitted(98, 186) Source(40, 19) + SourceIndex(0)
|
||||
1->Emitted(102, 13) Source(40, 5) + SourceIndex(0)
|
||||
2 >Emitted(102, 395) Source(40, 19) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
>>> __esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
1 >^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
3 > ^
|
||||
4 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
5 > ^
|
||||
6 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > y = 1;
|
||||
1 >Emitted(99, 13) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(99, 159) Source(20, 11) + SourceIndex(0)
|
||||
2 >
|
||||
3 > y
|
||||
4 >
|
||||
5 > y
|
||||
6 > = 1;
|
||||
1 >Emitted(103, 13) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(103, 162) Source(20, 5) + SourceIndex(0)
|
||||
3 >Emitted(103, 163) Source(20, 6) + SourceIndex(0)
|
||||
4 >Emitted(103, 192) Source(20, 5) + SourceIndex(0)
|
||||
5 >Emitted(103, 193) Source(20, 6) + SourceIndex(0)
|
||||
6 >Emitted(103, 255) Source(20, 11) + SourceIndex(0)
|
||||
---
|
||||
>>> __esDecorate(null, _classDescriptor = { value: this }, _classDecorators, { kind: "class", name: this.name }, null, _classExtraInitializers);
|
||||
1 >^^^^^^^^^^^^
|
||||
|
@ -573,8 +619,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
> @dec
|
||||
> static accessor #z = 1;
|
||||
> }
|
||||
1 >Emitted(100, 13) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(100, 153) Source(45, 2) + SourceIndex(0)
|
||||
1 >Emitted(104, 13) Source(5, 1) + SourceIndex(0)
|
||||
2 >Emitted(104, 153) Source(45, 2) + SourceIndex(0)
|
||||
---
|
||||
>>> C = _classThis = _classDescriptor.value;
|
||||
1 >^^^^^^^^^^^^
|
||||
|
@ -582,16 +628,16 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^->
|
||||
1 >
|
||||
2 > C
|
||||
1 >Emitted(101, 13) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(101, 14) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(105, 13) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(105, 14) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> __runInitializers(_classThis, _staticExtraInitializers);
|
||||
1->^^^^^^^^^^^^
|
||||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1->
|
||||
2 > C
|
||||
1->Emitted(102, 13) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(102, 69) Source(5, 8) + SourceIndex(0)
|
||||
1->Emitted(106, 13) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(106, 69) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>> method() { }
|
||||
|
@ -607,10 +653,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > method
|
||||
3 > () {
|
||||
4 > }
|
||||
1 >Emitted(104, 9) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(104, 15) Source(8, 11) + SourceIndex(0)
|
||||
3 >Emitted(104, 20) Source(8, 15) + SourceIndex(0)
|
||||
4 >Emitted(104, 21) Source(8, 16) + SourceIndex(0)
|
||||
1 >Emitted(108, 9) Source(8, 5) + SourceIndex(0)
|
||||
2 >Emitted(108, 15) Source(8, 11) + SourceIndex(0)
|
||||
3 >Emitted(108, 20) Source(8, 15) + SourceIndex(0)
|
||||
4 >Emitted(108, 21) Source(8, 16) + SourceIndex(0)
|
||||
---
|
||||
>>> get x() { return 1; }
|
||||
1->^^^^^^^^
|
||||
|
@ -635,15 +681,15 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
7 > ;
|
||||
8 >
|
||||
9 > }
|
||||
1->Emitted(105, 9) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(105, 13) Source(12, 9) + SourceIndex(0)
|
||||
3 >Emitted(105, 14) Source(12, 10) + SourceIndex(0)
|
||||
4 >Emitted(105, 19) Source(12, 15) + SourceIndex(0)
|
||||
5 >Emitted(105, 26) Source(12, 22) + SourceIndex(0)
|
||||
6 >Emitted(105, 27) Source(12, 23) + SourceIndex(0)
|
||||
7 >Emitted(105, 28) Source(12, 24) + SourceIndex(0)
|
||||
8 >Emitted(105, 29) Source(12, 25) + SourceIndex(0)
|
||||
9 >Emitted(105, 30) Source(12, 26) + SourceIndex(0)
|
||||
1->Emitted(109, 9) Source(12, 5) + SourceIndex(0)
|
||||
2 >Emitted(109, 13) Source(12, 9) + SourceIndex(0)
|
||||
3 >Emitted(109, 14) Source(12, 10) + SourceIndex(0)
|
||||
4 >Emitted(109, 19) Source(12, 15) + SourceIndex(0)
|
||||
5 >Emitted(109, 26) Source(12, 22) + SourceIndex(0)
|
||||
6 >Emitted(109, 27) Source(12, 23) + SourceIndex(0)
|
||||
7 >Emitted(109, 28) Source(12, 24) + SourceIndex(0)
|
||||
8 >Emitted(109, 29) Source(12, 25) + SourceIndex(0)
|
||||
9 >Emitted(109, 30) Source(12, 26) + SourceIndex(0)
|
||||
---
|
||||
>>> set x(value) { }
|
||||
1 >^^^^^^^^
|
||||
|
@ -665,13 +711,13 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
5 > value: number
|
||||
6 > ) {
|
||||
7 > }
|
||||
1 >Emitted(106, 9) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(106, 13) Source(16, 9) + SourceIndex(0)
|
||||
3 >Emitted(106, 14) Source(16, 10) + SourceIndex(0)
|
||||
4 >Emitted(106, 15) Source(16, 11) + SourceIndex(0)
|
||||
5 >Emitted(106, 20) Source(16, 24) + SourceIndex(0)
|
||||
6 >Emitted(106, 24) Source(16, 28) + SourceIndex(0)
|
||||
7 >Emitted(106, 25) Source(16, 29) + SourceIndex(0)
|
||||
1 >Emitted(110, 9) Source(16, 5) + SourceIndex(0)
|
||||
2 >Emitted(110, 13) Source(16, 9) + SourceIndex(0)
|
||||
3 >Emitted(110, 14) Source(16, 10) + SourceIndex(0)
|
||||
4 >Emitted(110, 15) Source(16, 11) + SourceIndex(0)
|
||||
5 >Emitted(110, 20) Source(16, 24) + SourceIndex(0)
|
||||
6 >Emitted(110, 24) Source(16, 28) + SourceIndex(0)
|
||||
7 >Emitted(110, 25) Source(16, 29) + SourceIndex(0)
|
||||
---
|
||||
>>> y = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _y_initializers, 1));
|
||||
1->^^^^^^^^
|
||||
|
@ -688,11 +734,11 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > =
|
||||
4 > 1
|
||||
5 > ;
|
||||
1->Emitted(107, 9) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(107, 10) Source(20, 6) + SourceIndex(0)
|
||||
3 >Emitted(107, 108) Source(20, 9) + SourceIndex(0)
|
||||
4 >Emitted(107, 109) Source(20, 10) + SourceIndex(0)
|
||||
5 >Emitted(107, 112) Source(20, 11) + SourceIndex(0)
|
||||
1->Emitted(111, 9) Source(20, 5) + SourceIndex(0)
|
||||
2 >Emitted(111, 10) Source(20, 6) + SourceIndex(0)
|
||||
3 >Emitted(111, 108) Source(20, 9) + SourceIndex(0)
|
||||
4 >Emitted(111, 109) Source(20, 10) + SourceIndex(0)
|
||||
5 >Emitted(111, 112) Source(20, 11) + SourceIndex(0)
|
||||
---
|
||||
>>> #z_accessor_storage = __runInitializers(this, _z_initializers, 1);
|
||||
1 >^^^^^^^^
|
||||
|
@ -707,10 +753,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > accessor z =
|
||||
3 > 1
|
||||
4 > ;
|
||||
1 >Emitted(108, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(108, 72) Source(24, 18) + SourceIndex(0)
|
||||
3 >Emitted(108, 73) Source(24, 19) + SourceIndex(0)
|
||||
4 >Emitted(108, 75) Source(24, 20) + SourceIndex(0)
|
||||
1 >Emitted(112, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(112, 72) Source(24, 18) + SourceIndex(0)
|
||||
3 >Emitted(112, 73) Source(24, 19) + SourceIndex(0)
|
||||
4 >Emitted(112, 75) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> get z() { return this.#z_accessor_storage; }
|
||||
1 >^^^^^^^^
|
||||
|
@ -722,10 +768,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > accessor
|
||||
3 > z
|
||||
4 > = 1;
|
||||
1 >Emitted(109, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(109, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(109, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(109, 53) Source(24, 20) + SourceIndex(0)
|
||||
1 >Emitted(113, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(113, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(113, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(113, 53) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> set z(value) { this.#z_accessor_storage = value; }
|
||||
1->^^^^^^^^
|
||||
|
@ -736,10 +782,10 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > accessor
|
||||
3 > z
|
||||
4 > = 1;
|
||||
1->Emitted(110, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(110, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(110, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(110, 59) Source(24, 20) + SourceIndex(0)
|
||||
1->Emitted(114, 9) Source(24, 5) + SourceIndex(0)
|
||||
2 >Emitted(114, 13) Source(24, 14) + SourceIndex(0)
|
||||
3 >Emitted(114, 14) Source(24, 15) + SourceIndex(0)
|
||||
4 >Emitted(114, 59) Source(24, 20) + SourceIndex(0)
|
||||
---
|
||||
>>> static {
|
||||
>>> _y = { value: __runInitializers(_classThis, _static_private_y_initializers, 1) };
|
||||
|
@ -769,11 +815,11 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > 1
|
||||
4 >
|
||||
5 > = 1;
|
||||
1 >Emitted(112, 13) Source(40, 12) + SourceIndex(0)
|
||||
2 >Emitted(112, 89) Source(40, 17) + SourceIndex(0)
|
||||
3 >Emitted(112, 90) Source(40, 18) + SourceIndex(0)
|
||||
4 >Emitted(112, 93) Source(40, 14) + SourceIndex(0)
|
||||
5 >Emitted(112, 94) Source(40, 19) + SourceIndex(0)
|
||||
1 >Emitted(116, 13) Source(40, 12) + SourceIndex(0)
|
||||
2 >Emitted(116, 89) Source(40, 17) + SourceIndex(0)
|
||||
3 >Emitted(116, 90) Source(40, 18) + SourceIndex(0)
|
||||
4 >Emitted(116, 93) Source(40, 14) + SourceIndex(0)
|
||||
5 >Emitted(116, 94) Source(40, 19) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>> static {
|
||||
|
@ -792,11 +838,11 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
3 > 1
|
||||
4 >
|
||||
5 > = 1;
|
||||
1 >Emitted(115, 13) Source(44, 21) + SourceIndex(0)
|
||||
2 >Emitted(115, 106) Source(44, 26) + SourceIndex(0)
|
||||
3 >Emitted(115, 107) Source(44, 27) + SourceIndex(0)
|
||||
4 >Emitted(115, 110) Source(44, 23) + SourceIndex(0)
|
||||
5 >Emitted(115, 111) Source(44, 28) + SourceIndex(0)
|
||||
1 >Emitted(119, 13) Source(44, 21) + SourceIndex(0)
|
||||
2 >Emitted(119, 106) Source(44, 26) + SourceIndex(0)
|
||||
3 >Emitted(119, 107) Source(44, 27) + SourceIndex(0)
|
||||
4 >Emitted(119, 110) Source(44, 23) + SourceIndex(0)
|
||||
5 >Emitted(119, 111) Source(44, 28) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>> static {
|
||||
|
@ -805,8 +851,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
1 >
|
||||
2 > C
|
||||
1 >Emitted(118, 13) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(118, 68) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(122, 13) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(122, 68) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>> }
|
||||
>>> };
|
||||
|
@ -815,8 +861,8 @@ sourceFile:esDecorators-classDeclaration-sourceMap.ts
|
|||
2 > ^
|
||||
1 >
|
||||
2 > C
|
||||
1 >Emitted(121, 12) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(121, 13) Source(5, 8) + SourceIndex(0)
|
||||
1 >Emitted(125, 12) Source(5, 7) + SourceIndex(0)
|
||||
2 >Emitted(125, 13) Source(5, 8) + SourceIndex(0)
|
||||
---
|
||||
>>>})();
|
||||
>>>//# sourceMappingURL=esDecorators-classDeclaration-sourceMap.js.map===================================================================
|
||||
|
|
|
@ -144,16 +144,16 @@ class C {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(_classThis, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(_classThis, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(_classThis, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(_classThis, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
|
@ -123,16 +123,16 @@ class C {
|
|||
_static_private_set_x_decorators = [dec, dec];
|
||||
_static_private_y_decorators = [dec, dec];
|
||||
_static_private_z_decorators = [dec, dec];
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(this, _static_private_method_descriptor = { value: __setFunctionName(function () { }, "#method") }, _static_private_method_decorators, { kind: "method", name: "#method", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _method_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_get_x_descriptor = { get: __setFunctionName(function () { return 1; }, "#x", "get") }, _static_private_get_x_decorators, { kind: "getter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _x_get) } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_set_x_descriptor = { set: __setFunctionName(function (value) { }, "#x", "set") }, _static_private_set_x_decorators, { kind: "setter", name: "#x", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _x_set); } } }, null, _staticExtraInitializers);
|
||||
__esDecorate(this, _static_private_z_descriptor = { get: __setFunctionName(function () { return __classPrivateFieldGet(this, _classThis, "f", _z_accessor_storage); }, "#z", "get"), set: __setFunctionName(function (value) { __classPrivateFieldSet(this, _classThis, value, "f", _z_accessor_storage); }, "#z", "set") }, _static_private_z_decorators, { kind: "accessor", name: "#z", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "a", _z_get), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "a", _z_set); } } }, _static_private_z_initializers, _staticExtraInitializers);
|
||||
__esDecorate(this, null, _method_decorators, { kind: "method", name: "method", static: false, private: false, access: { has: obj => "method" in obj, get: obj => obj.method } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _get_x_decorators, { kind: "getter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, get: obj => obj.x } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _set_x_decorators, { kind: "setter", name: "x", static: false, private: false, access: { has: obj => "x" in obj, set: (obj, value) => { obj.x = value; } } }, null, _instanceExtraInitializers);
|
||||
__esDecorate(this, null, _z_decorators, { kind: "accessor", name: "z", static: false, private: false, access: { has: obj => "z" in obj, get: obj => obj.z, set: (obj, value) => { obj.z = value; } } }, _z_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _static_private_y_decorators, { kind: "field", name: "#y", static: true, private: true, access: { has: obj => __classPrivateFieldIn(_classThis, obj), get: obj => __classPrivateFieldGet(obj, _classThis, "f", _y), set: (obj, value) => { __classPrivateFieldSet(obj, _classThis, value, "f", _y); } } }, _static_private_y_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, _classDescriptor = { value: this }, _classDecorators, { kind: "class", name: this.name }, null, _classExtraInitializers);
|
||||
C = _classThis = _classDescriptor.value;
|
||||
__runInitializers(_classThis, _staticExtraInitializers);
|
||||
|
|
|
@ -55,7 +55,7 @@ x = (() => {
|
|||
static {
|
||||
__setFunctionName(this, "x");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -85,7 +85,7 @@ x &&= (() => {
|
|||
static {
|
||||
__setFunctionName(this, "x");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_1);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_1), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -115,7 +115,7 @@ x ||= (() => {
|
|||
static {
|
||||
__setFunctionName(this, "x");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_2);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_2), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -145,7 +145,7 @@ x ??= (() => {
|
|||
static {
|
||||
__setFunctionName(this, "x");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_3);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_3);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_3), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
|
|
@ -200,7 +200,7 @@ var _a, _b;
|
|||
static {
|
||||
__setFunctionName(this, "x");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -217,7 +217,7 @@ var _a, _b;
|
|||
static {
|
||||
__setFunctionName(this, "x");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_1);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_1), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -234,7 +234,7 @@ var _a, _b;
|
|||
static {
|
||||
__setFunctionName(this, "0");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_2);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_2);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_2), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -251,7 +251,7 @@ var _a, _b;
|
|||
static {
|
||||
__setFunctionName(this, "x");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_3);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_3);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_3), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -268,7 +268,7 @@ var _a, _b;
|
|||
static {
|
||||
__setFunctionName(this, "0");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_4);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_4);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_4), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -306,7 +306,7 @@ var _a, _b;
|
|||
static {
|
||||
__setFunctionName(this, "__proto__");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_5);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_5);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_5), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -323,7 +323,7 @@ var _a, _b;
|
|||
static {
|
||||
__setFunctionName(this, "__proto__");
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_6);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_6);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_6), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -339,7 +339,7 @@ var _a, _b;
|
|||
return class C {
|
||||
static {
|
||||
_static_x_decorators = [dec];
|
||||
__esDecorate(null, null, _static_x_decorators, { kind: "field", name: "x", static: true, private: false }, _static_x_initializers, _staticExtraInitializers);
|
||||
__esDecorate(null, null, _static_x_decorators, { kind: "field", name: "x", static: true, private: false, access: { has: obj => "x" in obj, get: obj => obj.x, set: (obj, value) => { obj.x = value; } } }, _static_x_initializers, _staticExtraInitializers);
|
||||
__runInitializers(this, _staticExtraInitializers);
|
||||
}
|
||||
static x = __runInitializers(this, _static_x_initializers, (() => {
|
||||
|
|
|
@ -36,7 +36,7 @@ declare let dec: any;
|
|||
return class {
|
||||
static {
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
@ -63,7 +63,7 @@ declare let dec: any;
|
|||
return class C {
|
||||
static {
|
||||
_y_decorators = [dec];
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false }, _y_initializers, _instanceExtraInitializers_1);
|
||||
__esDecorate(null, null, _y_decorators, { kind: "field", name: "y", static: false, private: false, access: { has: obj => "y" in obj, get: obj => obj.y, set: (obj, value) => { obj.y = value; } } }, _y_initializers, _instanceExtraInitializers_1);
|
||||
}
|
||||
y = (__runInitializers(this, _instanceExtraInitializers_1), __runInitializers(this, _y_initializers, void 0));
|
||||
};
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче