_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.ts_0_331
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName class C { @dec static set #foo(value: number) { } } // @filename: tslib.d.ts...
{ "end_byte": 331, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateSetter.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.ts_0_561
// @target: esnext // @module: esnext // @allowJs: true // @noEmit: true // @filename: global.js /** @type {*} */ var dec; // @filename: file1.js // ok @dec export class C1 { } // @filename: file2.js // ok @dec export default class C2 {} // @filename: file3.js // error export @dec default class C3 {} // @filena...
{ "end_byte": 561, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-setFunctionName.ts_0_374
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true // @filename: a.ts declare let dec: any; @dec class C {} export {} // @filename: b.ts declare let dec: any; @dec export class C {} // @filename: c.ts declare let dec: any; @dec export default class C {} // @filename: c.t...
{ "end_byte": 374, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-setFunctionName.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.ts_0_272
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers @dec class C {} // @filename: tslib.d.ts export {}
{ "end_byte": 272, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.1.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.ts_0_328
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName class C { @dec static get #foo() { return 1; } } // @filename: tslib.d.ts ex...
{ "end_byte": 328, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateGetter.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-simpleTransformation.ts_0_133
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; @dec class C { }
{ "end_byte": 133, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-simpleTransformation.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-sourceMap.ts_0_600
// @target: esnext, es2022, es2015 // @module: esnext // @sourceMap: true // @declaration: true // @declarationMap: true declare var dec: any; @dec @dec class C { @dec @dec method() {} @dec @dec get x() { return 1; } @dec @dec set x(value: number) { } @dec @dec y = 1...
{ "end_byte": 600, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-sourceMap.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-parameterProperties.ts_0_233
// @target: esnext, es2022, es2015, es5 // @useDefineForClassFields: * // @noEmitHelpers: true // @noTypesAndSymbols: true declare var bound: any; class C { constructor(private message: string) {} @bound speak() { } }
{ "end_byte": 233, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-parameterProperties.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts_0_1069
// @target: esnext // @module: esnext // @filename: global.ts /** @type {*} */ var dec; // @filename: file1.ts // ok @dec export class C1 { } // @filename: file2.ts // ok @dec export default class C2 {} // @filename: file3.ts // error export @dec default class C3 {} // @filename: file4.ts // ok export @dec cla...
{ "end_byte": 1069, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-exportModifier.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.ts_0_304
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName export default @dec class {} // @filename: tslib.d.ts export {}
{ "end_byte": 304, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.ts_0_324
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName class C { @dec set #foo(value: number) { } } // @filename: tslib.d.ts export...
{ "end_byte": 324, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateSetter.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.ts_0_313
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName @dec class C { static #foo() {} } // @filename: tslib.d.ts export {}
{ "end_byte": 313, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-classDecorator.3.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.ts_0_321
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName class C { @dec get #foo() { return 1; } } // @filename: tslib.d.ts export {}...
{ "end_byte": 321, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateGetter.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.ts_0_321
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName class C { @dec static accessor #x: any; } // @filename: tslib.d.ts export {}...
{ "end_byte": 321, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateAutoAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.ts_0_324
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; declare var x: any; // needs: __esDecorate, __runInitializers, __propKey class C { @dec static [x]() {} } // @filename: tslib.d.ts export...
{ "end_byte": 324, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedMethod.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.ts_0_339
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; declare var x: any; // needs: __esDecorate, __runInitializers, __propKey class C { @dec static get [x]() { return 1; } } // @filename: ts...
{ "end_byte": 339, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedGetter.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.ts_0_286
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers class C { @dec #x: any; } // @filename: tslib.d.ts export {}
{ "end_byte": 286, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateField.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.ts_0_306
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers, __setFunctionName class C { @dec #foo() {} } // @filename: tslib.d.ts export {}
{ "end_byte": 306, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateMethod.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-outerThisReference.ts_0_679
// @target: esnext, es2022, es2021, es2015 // @noEmitHelpers: true declare let dec: any; declare let f: any; // `this` should point to the outer `this` in both cases. @dec(this) class A { @dec(this) b = 2; } // `this` should point to the outer `this`, and maintain the correct evaluation order with respect t...
{ "end_byte": 679, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-outerThisReference.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.ts_0_342
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; declare var x: any; // needs: __esDecorate, __runInitializers, __propKey class C { @dec static set [x](value: number) { } } // @filename:...
{ "end_byte": 342, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedSetter.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-nonStaticPrivate.ts_0_146
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec #method1() {} }
{ "end_byte": 146, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-nonStaticPrivate.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-static.ts_0_258
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const method3 = "method3"; class C { @dec(1) static method1() {} @dec(2) static ["method2"]() {} @dec(3) static [method3]() {} }
{ "end_byte": 258, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-static.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-nonStaticAbstract.ts_0_285
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const method3 = "method3"; abstract class C { @dec(1) abstract method1(): void; @dec(2) abstract ["method2"](): void; @dec(3) abstract [method3](): void; }
{ "end_byte": 285, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-nonStaticAbstract.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-nonStatic.ts_0_237
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const method3 = "method3"; class C { @dec(1) method1() {} @dec(2) ["method2"]() {} @dec(3) [method3]() {} }
{ "end_byte": 237, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-nonStatic.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-staticPrivate.ts_0_196
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec static #method1() {} } @dec class D { static #method1() {} }
{ "end_byte": 196, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/methods/esDecorators-classDeclaration-methods-staticPrivate.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-nonStatic.ts_0_396
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const method3 = "method3"; class C { @dec(11) get method1() { return 0; } @dec(12) set method1(value) {} @dec(21) get ["method2"]() { return 0; } @dec(22) set ["method2"](value) {} @d...
{ "end_byte": 396, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-nonStatic.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-static.ts_0_438
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const method3 = "method3"; class C { @dec(11) static get method1() { return 0; } @dec(12) static set method1(value) {} @dec(21) static get ["method2"]() { return 0; } @dec(22) static set ...
{ "end_byte": 438, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-static.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-nonStaticAbstract.ts_0_438
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const method3 = "method3"; abstract class C { @dec(11) abstract get method1(): number; @dec(12) abstract set method1(value); @dec(21) abstract get ["method2"](): number; @dec(22) abstract...
{ "end_byte": 438, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-nonStaticAbstract.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-staticPrivate.ts_0_374
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec(1) static get #method1() { return 0; } @dec(2) static set #method1(value) {} } @dec class D { static get #method1() { return 0; } static set #method1(value) {} static { ...
{ "end_byte": 374, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-staticPrivate.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-nonStaticPrivate.ts_0_199
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec(1) get #method1() { return 0; } @dec(2) set #method1(value) {} }
{ "end_byte": 199, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/accessors/esDecorators-classDeclaration-accessors-nonStaticPrivate.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.es5.ts_0_217
// @target: es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; @dec class C { static { this; } static x: any = this; static m() { this; } static get g() { return this; } }
{ "end_byte": 217, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.es5.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.ts_0_271
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; @dec class C { static { this; } static x: any = this; static accessor a: any = this; static m() { this; } static get g() { return this; } }
{ "end_byte": 271, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classThisReference/esDecorators-classDeclaration-classThisReference.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticPrivate.ts_0_145
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec #field1 = 0; }
{ "end_byte": 145, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticPrivate.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-static.ts_0_284
// @target: esnext, es2022, es2015, es5 // @useDefineForClassFields: * // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; class C { @dec(1) static field1 = 1; @dec(2) static ["field2"] = 2; @dec(3) static [field3] = 3; }
{ "end_byte": 284, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-static.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAbstract.ts_0_280
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; abstract class C { @dec(1) abstract field1: number; @dec(2) abstract ["field2"]: number; @dec(3) abstract [field3]: number; }
{ "end_byte": 280, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAbstract.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAccessor.ts_0_254
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; class C { @dec(1) accessor field1 = 1; @dec(2) accessor ["field2"] = 2; @dec(3) accessor [field3] = 3; }
{ "end_byte": 254, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticAccessor.ts_0_389
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; class C { @dec(1) static accessor field1 = 1; @dec(2) static accessor ["field2"] = 2; @dec(3) static accessor [field3] = 3; } @dec class D { static accessor field1 = ...
{ "end_byte": 389, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticAmbient.ts_0_277
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; class C { @dec(1) static declare field1 = 1; @dec(2) static declare ["field2"] = 2; @dec(3) static declare [field3] = 3; }
{ "end_byte": 277, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticAmbient.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStatic.ts_0_263
// @target: esnext, es2022, es2015, es5 // @useDefineForClassFields: * // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; class C { @dec(1) field1 = 1; @dec(2) ["field2"] = 2; @dec(3) [field3] = 3; }
{ "end_byte": 263, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStatic.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAmbient.ts_0_268
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; class C { @dec(1) declare field1: number; @dec(2) declare ["field2"]: number; @dec(3) declare [field3]: number; }
{ "end_byte": 268, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAmbient.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAbstractAccessor.ts_0_302
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; const field3 = "field3"; abstract class C { @dec(1) abstract accessor field1: number; @dec(2) abstract accessor ["field2"]: number; @dec(3) abstract accessor [field3]: number; }
{ "end_byte": 302, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticAbstractAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticPrivateAccessor.ts_0_154
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec accessor #field1 = 0; }
{ "end_byte": 154, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-nonStaticPrivateAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticPrivateAccessor.ts_0_279
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec static accessor #field1 = 0; } @dec class D { static accessor #field1 = 0; static { this.#field1; this.#field1 = 1; } }
{ "end_byte": 279, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticPrivateAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticPrivate.ts_0_261
// @target: esnext, es2022, es2015 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { @dec static #field1 = 0; } @dec class D { static #field1 = 0; static { this.#field1; this.#field1 = 1; } }
{ "end_byte": 261, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/fields/esDecorators-classDeclaration-fields-staticPrivate.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.4.ts_0_412
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static method(...args: any[]): number; } const method = "method"; @dec class C extends Base { static a = super.method(); static b = super["method"](); static c = super[method](); sta...
{ "end_byte": 412, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.4.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.1.ts_0_388
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static method(...args: any[]): void; } const method = "method"; @dec class C extends Base { static { super.method(); super["method"](); super[method](); super.me...
{ "end_byte": 388, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.1.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.5.ts_0_1071
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static x: number; } const x = "x"; @dec class C1 extends Base { static a = super.x; static b = super.x = 1; static c = super.x += 1; static d = super.x++; static e = super.x--; ...
{ "end_byte": 1071, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.5.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.2.ts_0_535
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; // class expression in extends should not get an assigned name @dec class C1 extends class { } { static { super.name; } } // function expression in extends should not get an assigned name @dec class C2 extend...
{ "end_byte": 535, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.6.ts_0_616
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static method(...args: any[]): number; method(...args: any[]): number; } // none of the following should result in caching `super` @dec class C extends Base { static m() { super.method(); } ...
{ "end_byte": 616, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.6.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.7.ts_0_604
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true class A {} class B extends A { public constructor() { 'inject'; super(); const a = 1; const b = 1; } @foo public m(): void {} } function foo(method: any, _context: any): any { return function (this: any) { method.call(this); }; } ...
{ "end_byte": 604, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.7.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.3.ts_0_838
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static x: number; } const x = "x"; @dec class C extends Base { static { super.x; super.x = 1; super.x += 1; super.x++; super.x--; ++super.x; ...
{ "end_byte": 838, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/classSuper/esDecorators-classDeclaration-classSuper.3.ts" }
TypeScript/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts_0_334
// @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext // @filename: /foo.ts function meta(key: string, value: string) { return (_, context) => { context.metadata[key] = value; }; } @meta('a', 'x') class C { @meta('b', 'y') m() { } } C[Symbol.metadata].a; // 'x' C[Symbol.metada...
{ "end_byte": 334, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata1.ts" }
TypeScript/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata5.ts_0_130
// @target: es2022 // @noTypesAndSymbols: true // @filename: /foo.ts declare var metadata: any; class C { @metadata m() {} }
{ "end_byte": 130, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata5.ts" }
TypeScript/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts_0_600
// @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext // @filename: /foo.ts const PRIVATE_METADATA = new WeakMap(); function meta(key: string, value: string) { return (_, context) => { let metadata = PRIVATE_METADATA.get(context.metadata); if (!metadata) { metadata = {...
{ "end_byte": 600, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata4.ts" }
TypeScript/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts_0_437
// @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext // @filename: /foo.ts function appendMeta(key: string, value: string) { return (_, context) => { const existing = context.metadata[key] ?? []; context.metadata[key] = [...existing, value]; }; } @appendMeta('a', 'x') class C ...
{ "end_byte": 437, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata3.ts" }
TypeScript/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts_0_446
// @target: es2022,es2015 // @noTypesAndSymbols: true // @lib: esnext // @filename: /foo.ts function meta(key: string, value: string) { return (_, context) => { context.metadata[key] = value; }; } @meta('a', 'x') class C { @meta('b', 'y') m() {} } C[Symbol.metadata].a; // 'x' C[Symbol.metadat...
{ "end_byte": 446, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/metadata/esDecoratorsMetadata2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.ts_0_300
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName C = @dec class {}; // @filename: tslib.d.ts export {}
{ "end_byte": 300, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.4.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.ts_0_307
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName [C = @dec class {}] = []; // @filename: tslib.d.ts export {}
{ "end_byte": 307, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.5.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.ts_0_296
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts declare var dec: any; // uses: __esDecorate, __runInitializers, __setFunctionName export const C = @dec class {}; // @filename: tslib.d.ts export {}
{ "end_byte": 296, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.1.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.ts_0_302
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName C ??= @dec class {}; // @filename: tslib.d.ts export {}
{ "end_byte": 302, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.11.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.ts_0_303
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; // uses __esDecorate, __runInitializers, __setFunctionName class C { D = @dec class {} } // @filename: tslib.d.ts export {}
{ "end_byte": 303, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.15.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.ts_0_330
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; declare var x: any; // uses __esDecorate, __runInitializers, __setFunctionName, __propKey ({ [x]: @dec class {} }); // @filename: tslib.d.ts ...
{ "end_byte": 330, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.14.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.ts_0_302
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName C &&= @dec class {}; // @filename: tslib.d.ts export {}
{ "end_byte": 302, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.10.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.ts_0_347
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; declare var x: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName, __propKey ({ [x]: C = @dec class {} } = {}); // @file...
{ "end_byte": 347, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.17.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.ts_0_299
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts declare var dec: any; // uses __esDecorate, __runInitializers, __setFunctionName export const C = ((@dec class {})); // @filename: tslib.d.ts export {}
{ "end_byte": 299, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.13.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.ts_0_311
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName ({ C = @dec class {} } = {}); // @filename: tslib.d.ts export {}
{ "end_byte": 311, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.8.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.ts_0_306
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; // uses __esDecorate, __runInitializers, __setFunctionName function f(C = @dec class {}) {} // @filename: tslib.d.ts export {}
{ "end_byte": 306, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.12.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.ts_0_302
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName C ||= @dec class {}; // @filename: tslib.d.ts export {}
{ "end_byte": 302, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.9.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.ts_0_336
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; declare var x: any; // uses __esDecorate, __runInitializers, __setFunctionName, __propKey class C { [x] = @dec class {} } // @filename: tslib...
{ "end_byte": 336, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.16.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.ts_0_297
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; // uses __esDecorate, __runInitializers, __setFunctionName ({ C: @dec class {} }); // @filename: tslib.d.ts export {}
{ "end_byte": 297, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.6.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.ts_0_279
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts declare var dec: any; // uses: __esDecorate, __runInitializers export const C = @dec class C {}; // @filename: tslib.d.ts export {}
{ "end_byte": 279, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.ts_0_295
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts declare var dec: any; // uses __esDecorate, __runInitializers, __setFunctionName export default (@dec class {}); // @filename: tslib.d.ts export {}
{ "end_byte": 295, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.3.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.ts_0_314
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {}; declare var dec: any; var C; // uses __esDecorate, __runInitializers, __setFunctionName ({ C: C = @dec class {} } = {}); // @filename: tslib.d.ts export {}
{ "end_byte": 314, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-missingEmitHelpers-classDecorator.7.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-commentPreservation.ts_0_939
// @target: esnext, es2022, es2015 // @module: esnext // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; /*1*/ ( /*2*/ @dec /*3*/ @dec /*4*/ class C { /*5*/ @dec /*6*/ @dec /*7*/ method() {} /*8*/ @dec /*9*/ @dec /*10*/ get x() { return 1; } ...
{ "end_byte": 939, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/esDecorators-classExpression-commentPreservation.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.10.ts_0_1207
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any, f: any; // 10.2.1.3 RS: EvaluateBody // Initializer : `=` AssignmentExpression { class C { static x = @dec class {}; } } { class C { static "x" = @dec class {}; } } { class C { static 0 = @dec class {}; } } { class C { sta...
{ "end_byte": 1207, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.10.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.9.ts_0_234
// @target: es2022 // @module: commonjs // @noEmitHelpers: true // @noTypesAndSymbols: true // @filename: a.ts declare let dec: any; export = @dec class { }; // @filename: b.ts declare let dec: any; export = class { @dec y: any };
{ "end_byte": 234, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.9.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.11.ts_0_257
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; // No NamedEvaluation, no class name (@dec class {}); (class { @dec y: any }); // No NamedEvaluation, class name (@dec class C {}); (class C { @dec y: any });
{ "end_byte": 257, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.11.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.8.ts_0_425
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true // @filename: a.ts declare let dec: any; // 16.2.3.7 RS: Evaluation // ExportDeclaration : `export` `default` AssignmentExpression `;` export default (@dec class { }); // @filename: b.ts declare let dec: any; // 16.2.3.7 RS: Evaluation // ...
{ "end_byte": 425, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.8.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.7.ts_0_301
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any, obj: any, x: any; // 13.15.5.6 RS: KeyedDestructuringAssignmentEvaluation // AssignmentElement : DestructuringAssignmentTarget Initializer? [x = @dec class { }] = obj; [x = class { @dec y: any; }] = obj;
{ "end_byte": 301, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.7.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.3.ts_0_459
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; // 14.3.1.2 RS: Evaluation // LexicalBinding : BindingIdentifier Initializer { let x = @dec class { }; } { let x = class { @dec y: any; }; } { const x = @dec class { }; } { const x = class { @dec y: any; }; } // 14.3.2.1 ...
{ "end_byte": 459, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.3.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.2.ts_0_833
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; let x: any, f: any; // 13.2.5.5 RS: PropertyDefinitionEvaluation // PropertyAssignment : PropertyName `:` AssignmentExpression ({ x: @dec class { } }); ({ x: class { @dec y: any; } }); ({ "x": @dec class { } }); ({ "x": cl...
{ "end_byte": 833, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.6.ts_0_315
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any, obj: any, x: any; // 13.15.5.6 RS: KeyedDestructuringAssignmentEvaluation // AssignmentElement : DestructuringAssignmentTarget Initializer? ({ y: x = @dec class { } } = obj); ({ y: x = class { @dec y: any; } } = obj);
{ "end_byte": 315, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.6.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.1.ts_0_728
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; let x: any; // 13.15.2 RS: Evaluation // AssignmentExpression : LeftHandSideExpression `=` AssignmentExpression x = @dec class { }; x = class { @dec y: any; }; // 13.15.2 RS: Evaluation // AssignmentExpression : LeftHandS...
{ "end_byte": 728, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.1.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.5.ts_0_303
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any, obj: any, x: any; // 13.15.5.3 RS: PropertyDestructuringAssignmentEvaluation // AssignmentProperty : IdentifierReference Initializer? ({ x = @dec class { } } = obj); ({ x = class { @dec y: any; } } = obj);
{ "end_byte": 303, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.5.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.4.ts_0_571
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any, obj: any; // 8.6.3 RS: IteratorBindingInitialization // SingleNameBinding : BindingIdentifier Initializer? { const [x = @dec class { }] = obj; } { const [x = class { @dec y: any; }] = obj; } // 14.3.3.3 RS: KeyedBindingInit...
{ "end_byte": 571, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/namedEvaluation/esDecorators-classExpression-namedEvaluation.4.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.3.ts_0_841
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static x: number; } const x = "x"; (@dec class C extends Base { static { super.x; super.x = 1; super.x += 1; super.x++; super.x--; ++super.x; ...
{ "end_byte": 841, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.3.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.6.ts_0_619
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static method(...args: any[]): number; method(...args: any[]): number; } // none of the following should result in caching `super` (@dec class C extends Base { static m() { super.method(); } ...
{ "end_byte": 619, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.6.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.2.ts_0_544
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; // class expression in extends should not get an assigned name (@dec class C1 extends class { } { static { super.name; } }); // function expression in extends should not get an assigned name (@dec class C2 ex...
{ "end_byte": 544, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.5.ts_0_1080
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static x: number; } const x = "x"; (@dec class C1 extends Base { static a = super.x; static b = super.x = 1; static c = super.x += 1; static d = super.x++; static e = super.x--; ...
{ "end_byte": 1080, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.5.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.1.ts_0_390
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static method(...args: any[]): void; } const method = "method"; (@dec class C extends Base { static { super.method(); super["method"](); super[method](); super.m...
{ "end_byte": 390, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.1.ts" }
TypeScript/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.4.ts_0_415
// @target: es2022 // @noEmitHelpers: true // @noTypesAndSymbols: true declare var dec: any; declare class Base { static method(...args: any[]): number; } const method = "method"; (@dec class C extends Base { static a = super.method(); static b = super["method"](); static c = super[method](); st...
{ "end_byte": 415, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classExpression/classSuper/esDecorators-classExpression-classSuper.4.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisUnknown.ts_0_245
declare let win: Window & typeof globalThis; // this access should be an error win.hi // these two should be fine, with type any this.hi globalThis.hi // element access is always ok without noImplicitAny win['hi'] this['hi'] globalThis['hi']
{ "end_byte": 245, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisUnknown.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisUnknownNoImplicitAny.ts_0_171
// @noImplicitAny: true declare let win: Window & typeof globalThis; // all accesses should be errors win.hi this.hi globalThis.hi win['hi'] this['hi'] globalThis['hi']
{ "end_byte": 171, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisUnknownNoImplicitAny.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisAmbientModules.ts_0_424
declare module "ambientModule" { export type typ = 1 export var val: typ } namespace valueModule { export var val = 1 } namespace namespaceModule { export type typ = 1 } // should error type GlobalBad1 = (typeof globalThis)["\"ambientModule\""] type GlobalOk1 = (typeof globalThis)["valueModule"] type GlobalOk2 ...
{ "end_byte": 424, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisAmbientModules.ts" }
TypeScript/tests/cases/conformance/es2019/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.ts_0_777
// Strings containing unescaped line / paragraph separators // Using both single quotes, double quotes and template literals var stringContainingUnescapedLineSeparator1 = "
STRING_CONTENT
"; var stringContainingUnescapedParagraphSeparator1 = "
STRING_CONTENT
"; var stringContainingUnescapedLineSeparator2 = '
STRING_...
{ "end_byte": 777, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/allowUnescapedParagraphAndLineSeparatorsInStringLiteral.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisCollision.ts_0_105
// @allowJs: true // @checkJs: true // @noEmit: true // @filename: globalThisCollision.js var globalThis;
{ "end_byte": 105, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisCollision.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisTypeIndexAccess.ts_1_54
declare const w_e: (typeof globalThis)["globalThis"]
{ "end_byte": 54, "start_byte": 1, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisTypeIndexAccess.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisBlockscopedProperties.ts_0_545
// @noImplicitAny: true var x = 1 const y = 2 let z = 3 globalThis.x // ok globalThis.y // should error, no property 'y' globalThis.z // should error, no property 'z' globalThis['x'] // ok globalThis['y'] // should error, no property 'y' globalThis['z'] // should error, no property 'z' globalThis.Float64Array // ok glo...
{ "end_byte": 545, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisBlockscopedProperties.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisReadonlyProperties.ts_0_121
globalThis.globalThis = 1 as any // should error var x = 1 const y = 2 globalThis.x = 3 globalThis.y = 4 // should error
{ "end_byte": 121, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisReadonlyProperties.ts" }
TypeScript/tests/cases/conformance/es2019/globalThisGlobalExportAsGlobal.ts_0_111
// https://github.com/microsoft/TypeScript/issues/33754 declare global { export { globalThis as global } }
{ "end_byte": 111, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es2019/globalThisGlobalExportAsGlobal.ts" }