_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
TypeScript/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction6_es2017.ts_0_93
// @target: es2017 // @noEmitHelpers: true var foo = async (a = await): Promise<void> => { }
{ "end_byte": 93, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es2017/asyncArrowFunction/asyncArrowFunction6_es2017.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncConstructor_es6.ts_0_85
// @target: ES6 // @noEmitHelpers: true class C { async constructor() { } }
{ "end_byte": 85, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncConstructor_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/await_unaryExpression_es6_2.ts_3_160
@target: es6 async function bar1() { delete await 42; } async function bar2() { delete await 42; } async function bar3() { void await 42; }
{ "end_byte": 160, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/await_unaryExpression_es6_2.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts_0_118
// @target: ES6 // @noEmitHelpers: true type PromiseAlias<T> = Promise<T>; async function f(): PromiseAlias<void> { }
{ "end_byte": 118, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncAliasReturnType_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncUseStrict_es6.ts_0_181
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; async function func(): Promise<void> { "use strict"; var b = await p || a; }
{ "end_byte": 181, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncUseStrict_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/await_unaryExpression_es6_3.ts_3_312
@target: es6 async function bar1() { ++await 42; // Error } async function bar2() { --await 42; // Error } async function bar3() { var x = 42; await x++; // OK but shouldn't need parenthesis } async function bar4() { var x = 42; await x--; // OK but shouldn't need parenthesis }
{ "end_byte": 312, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/await_unaryExpression_es6_3.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncDeclare_es6.ts_0_84
// @target: ES6 // @noEmitHelpers: true declare async function foo(): Promise<void>;
{ "end_byte": 84, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncDeclare_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitUnion_es6.ts_0_416
// @target: ES6 // @noEmitHelpers: true declare let a: number | string; declare let b: PromiseLike<number> | PromiseLike<string>; declare let c: PromiseLike<number | string>; declare let d: number | PromiseLike<string>; declare let e: number | PromiseLike<number | string>; async function f() { let await_a = await a; ...
{ "end_byte": 416, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitUnion_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncInterface_es6.ts_0_63
// @target: ES6 // @noEmitHelpers: true async interface I { }
{ "end_byte": 63, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncInterface_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncSetter_es6.ts_0_80
// @target: ES6 // @noEmitHelpers: true class C { async set foo(value) { } }
{ "end_byte": 80, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncSetter_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncEnum_es6.ts_0_66
// @target: ES6 // @noEmitHelpers: true async enum E { Value }
{ "end_byte": 66, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncEnum_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncImportedPromise_es6.ts_0_215
// @target: es6 // @module: commonjs // @filename: task.ts export class Task<T> extends Promise<T> { } // @filename: test.ts import { Task } from "./task"; class Test { async example<T>(): Task<T> { return; } }
{ "end_byte": 215, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncImportedPromise_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncClass_es6.ts_0_59
// @target: ES6 // @noEmitHelpers: true async class C { }
{ "end_byte": 59, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncClass_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/await_unaryExpression_es6.ts_3_209
@target: es6 async function bar() { !await 42; // OK } async function bar1() { +await 42; // OK } async function bar3() { -await 42; // OK } async function bar4() { ~await 42; // OK }
{ "end_byte": 209, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/await_unaryExpression_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts_0_960
// @target: ES6 // @isolatedModules: true import { MyPromise } from "missing"; declare var p: Promise<number>; declare var mp: MyPromise<number>; async function f0() { } async function f1(): Promise<void> { } async function f3(): MyPromise<void> { } let f4 = async function() { } let f5 = async function(): Promise<vo...
{ "end_byte": 960, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncAwaitIsolatedModules_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncMethodWithSuper_es6.ts_0_5298
// @target: ES6 // @lib: esnext // @noEmitHelpers: true class A { x() { } y() { } } class B extends A { // async method with only call/get on 'super' does not require a binding async simple() { // call with property access super.x(); // call additional property. ...
{ "end_byte": 5298, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncMethodWithSuper_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncQualifiedReturnType_es6.ts_0_155
// @target: ES6 // @noEmitHelpers: true namespace X { export class MyPromise<T> extends Promise<T> { } } async function f(): X.MyPromise<void> { }
{ "end_byte": 155, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncQualifiedReturnType_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncAwait_es6.ts_0_1049
// @target: ES6 type MyPromise<T> = Promise<T>; declare var MyPromise: typeof Promise; declare var p: Promise<number>; declare var mp: MyPromise<number>; async function f0() { } async function f1(): Promise<void> { } async function f3(): MyPromise<void> { } let f4 = async function() { } let f5 = async function(): Pro...
{ "end_byte": 1049, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncAwait_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts_0_2505
// @target: es2015 // @noEmitHelpers: true // https://github.com/Microsoft/TypeScript/issues/20461 declare const y: any; async function fn1(x) { var x; } async function fn2(x) { var x, z; } async function fn3(x) { var z; } async function fn4(x) { var x = y; } async function fn5(x) { var { x } =...
{ "end_byte": 2505, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncWithVarShadowing_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncGetter_es6.ts_0_75
// @target: ES6 // @noEmitHelpers: true class C { async get foo() { } }
{ "end_byte": 75, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncGetter_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncMultiFile_es6.ts_0_92
// @target: es6 // @filename: a.ts async function f() {} // @filename: b.ts function g() { }
{ "end_byte": 92, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncMultiFile_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncModule_es6.ts_0_61
// @target: ES6 // @noEmitHelpers: true async module M { }
{ "end_byte": 61, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncModule_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitClassExpression_es6.ts_0_173
// @target: ES6 // @noEmitHelpers: true declare class C { } declare var p: Promise<typeof C>; async function func(): Promise<void> { class D extends (await p) { } }
{ "end_byte": 173, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitClassExpression_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/await_unaryExpression_es6_1.ts_3_261
@target: es6 async function bar() { !await 42; // OK } async function bar1() { delete await 42; // OK } async function bar2() { delete await 42; // OK } async function bar3() { void await 42; } async function bar4() { +await 42; }
{ "end_byte": 261, "start_byte": 3, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/await_unaryExpression_es6_1.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression5_es6.ts_0_276
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function before(): void; declare function after(): void; async function func(): Promise<void> { before(); var o: { a: boolean; }; o.a = await p; after(); }
{ "end_byte": 276, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression5_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression3_es6.ts_0_252
// @target: ES6 // @noEmitHelpers: true declare var a: number; declare var p: Promise<number>; declare function before(): void; declare function after(): void; async function func(): Promise<void> { before(); var b = await p + a; after(); }
{ "end_byte": 252, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression3_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression1_es6.ts_0_255
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function before(): void; declare function after(): void; async function func(): Promise<void> { before(); var b = await p || a; after(); }
{ "end_byte": 255, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression1_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression4_es6.ts_0_255
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function before(): void; declare function after(): void; async function func(): Promise<void> { before(); var b = (await p, a); after(); }
{ "end_byte": 255, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression4_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression2_es6.ts_0_255
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function before(): void; declare function after(): void; async function func(): Promise<void> { before(); var b = await p && a; after(); }
{ "end_byte": 255, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitBinaryExpression/awaitBinaryExpression2_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration8_es6.ts_0_64
// @target: ES6 // @noEmitHelpers: true var v = { [await]: foo }
{ "end_byte": 64, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration8_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration4_es6.ts_0_60
// @target: ES6 // @noEmitHelpers: true function await() { }
{ "end_byte": 60, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration4_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts_0_97
// @target: ES6 // @noEmitHelpers: true async function foo(a = await => await): Promise<void> { }
{ "end_byte": 97, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration10_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration12_es6.ts_0_89
// @target: ES6 // @noEmitHelpers: true var v = async function await(): Promise<void> { }
{ "end_byte": 89, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration12_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration6_es6.ts_0_88
// @target: ES6 // @noEmitHelpers: true async function foo(a = await): Promise<void> { }
{ "end_byte": 88, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration6_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts_0_61
// @target: ES6 // @noEmitHelpers: true function f(await) { }
{ "end_byte": 61, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration2_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration14_es6.ts_0_89
// @target: ES6 // @noEmitHelpers: true async function foo(): Promise<void> { return; }
{ "end_byte": 89, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration14_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration9_es6.ts_0_106
// @target: ES6 // @noEmitHelpers: true async function foo(): Promise<void> { var v = { [await]: foo } }
{ "end_byte": 106, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration9_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts_0_84
// @target: ES6 // @noEmitHelpers: true async function foo(await): Promise<void> { }
{ "end_byte": 84, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration5_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration11_es6.ts_0_81
// @target: ES6 // @noEmitHelpers: true async function await(): Promise<void> { }
{ "end_byte": 81, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration11_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration13_es6.ts_0_143
// @target: ES6 // @noEmitHelpers: true async function foo(): Promise<void> { // Legal to use 'await' in a type context. var v: await; }
{ "end_byte": 143, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration13_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration7_es6.ts_0_196
// @target: ES6 // @noEmitHelpers: true async function bar(): Promise<void> { // 'await' here is an identifier, and not a yield expression. async function foo(a = await): Promise<void> { } }
{ "end_byte": 196, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration7_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts_0_69
// @target: ES6 // @noEmitHelpers: true function f(await = await) { }
{ "end_byte": 69, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration3_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncOrYieldAsBindingIdentifier1.ts_0_564
// @target: esnext function f_let () { let await = 1 } function f1_var () { var await = 1 } function f1_const () { const await = 1 } async function f2_let () { let await = 1 } async function f2_var () { var await = 1 } async function f2_const () { const await = 1 } function f3_let () { ...
{ "end_byte": 564, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncOrYieldAsBindingIdentifier1.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration1_es6.ts_0_79
// @target: ES6 // @noEmitHelpers: true async function foo(): Promise<void> { }
{ "end_byte": 79, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration1_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts_0_1226
// @target: ES6 // @noEmitHelpers: true declare class Thenable { then(): void; } declare let a: any; declare let obj: { then: string; }; declare let thenable: Thenable; async function fn1() { } // valid: Promise<void> async function fn2(): { } { } // error async function fn3(): any { } // error async function fn4(): nu...
{ "end_byte": 1226, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/functionDeclarations/asyncFunctionDeclaration15_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression3_es6.ts_0_576
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 576, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression3_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression1_es6.ts_0_570
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 570, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression1_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression5_es6.ts_0_572
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 572, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression5_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression7_es6.ts_0_578
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 578, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression7_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression2_es6.ts_0_576
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 576, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression2_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression4_es6.ts_0_579
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 579, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression4_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression8_es6.ts_0_581
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 581, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression8_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression6_es6.ts_0_578
// @target: ES6 // @noEmitHelpers: true declare var a: boolean; declare var p: Promise<boolean>; declare function fn(arg0: boolean, arg1: boolean, arg2: boolean): void; declare var o: { fn(arg0: boolean, arg1: boolean, arg2: boolean): void; }; declare var pfn: Promise<{ (arg0: boolean, arg1: boolean, arg2: boolean): vo...
{ "end_byte": 578, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/awaitCallExpression/awaitCallExpression6_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts_0_199
// @target: ES6 // @noEmitHelpers: true declare function someOtherFunction(i: any): Promise<void>; const x = async i => await someOtherFunction(i) const x1 = async (i) => await someOtherFunction(i);
{ "end_byte": 199, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncUnParenthesizedArrowFunction_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts_0_62
// @target: ES6 // @noEmitHelpers: true var f = (await) => { }
{ "end_byte": 62, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction2_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts_0_66
// @target: ES5 // @noEmitHelpers: true const x = async => async;
{ "end_byte": 66, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/arrowFunctionWithParameterNameAsync_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction6_es6.ts_0_90
// @target: ES6 // @noEmitHelpers: true var foo = async (a = await): Promise<void> => { }
{ "end_byte": 90, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction6_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction4_es6.ts_0_61
// @target: ES6 // @noEmitHelpers: true var await = () => { }
{ "end_byte": 61, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction4_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction8_es6.ts_0_108
// @target: ES6 // @noEmitHelpers: true var foo = async (): Promise<void> => { var v = { [await]: foo } }
{ "end_byte": 108, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction8_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction10_es6.ts_0_145
// @target: ES6 // @noEmitHelpers: true var foo = async (): Promise<void> => { // Legal to use 'await' in a type context. var v: await; }
{ "end_byte": 145, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction10_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction1_es6.ts_0_82
// @target: ES6 // @noEmitHelpers: true var foo = async (): Promise<void> => { };
{ "end_byte": 82, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction1_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts_0_69
// @target: ES6 // @noEmitHelpers: true function f(await = await) { }
{ "end_byte": 69, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction3_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunctionCapturesThis_es6.ts_0_116
// @target: ES6 // @noEmitHelpers: true class C { method() { var fn = async () => await this; } }
{ "end_byte": 116, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunctionCapturesThis_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction7_es6.ts_0_200
// @target: ES6 // @noEmitHelpers: true var bar = async (): Promise<void> => { // 'await' here is an identifier, and not an await expression. var foo = async (a = await): Promise<void> => { } }
{ "end_byte": 200, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction7_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts_0_86
// @target: ES6 // @noEmitHelpers: true var foo = async (await): Promise<void> => { }
{ "end_byte": 86, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction5_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts_0_98
// @target: ES6 // @noEmitHelpers: true var foo = async (a = await => await): Promise<void> => { }
{ "end_byte": 98, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunction9_es6.ts" }
TypeScript/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es6.ts_0_229
// @target: ES6 // @noEmitHelpers: true class C { method() { function other() {} var fn = async () => await other.apply(this, arguments); } } function f() { return async () => async () => arguments.length; }
{ "end_byte": 229, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/async/es6/asyncArrowFunction/asyncArrowFunctionCapturesArguments_es6.ts" }
TypeScript/tests/cases/conformance/enums/awaitAndYield.ts_0_156
// @target: ES2019 // @noTypesAndSymbols: true async function* test(x: Promise<number>) { enum E { foo = await x, baz = yield 1, } }
{ "end_byte": 156, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/awaitAndYield.ts" }
TypeScript/tests/cases/conformance/enums/enumConstantMembers.ts_0_559
// Constant members allow negatives, but not decimals. Also hex literals are allowed enum E1 { a = 1, b } enum E2 { a = - 1, b } enum E3 { a = 0.1, b // Error because 0.1 is not a constant } declare enum E4 { a = 1, b = -1, c = 0.1 // Not a constant } enum E5 { a = 1 / 0, b...
{ "end_byte": 559, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumConstantMembers.ts" }
TypeScript/tests/cases/conformance/enums/enumShadowedInfinityNaN.ts_0_164
// https://github.com/microsoft/TypeScript/issues/54981 { let Infinity = {}; enum En { X = Infinity } } { let NaN = {}; enum En { X = NaN } }
{ "end_byte": 164, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumShadowedInfinityNaN.ts" }
TypeScript/tests/cases/conformance/enums/enumExportMergingES6.ts_0_126
// @target: es6 export enum Animals { Cat = 1 } export enum Animals { Dog = 2 } export enum Animals { CatDog = Cat | Dog }
{ "end_byte": 126, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumExportMergingES6.ts" }
TypeScript/tests/cases/conformance/enums/enumConstantMemberWithTemplateLiteralsEmitDeclaration.ts_0_428
// @declaration: true enum T1 { a = `1` } enum T2 { a = `1`, b = "2", c = 3 } enum T3 { a = `1` + `1` } enum T4 { a = `1`, b = `1` + `1`, c = `1` + "2", d = "2" + `1`, e = "2" + `1` + `1` } enum T5 { a = `1`, b = `1` + `2`, c = `1` + `2` + `3`, d = 1 } enum T...
{ "end_byte": 428, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumConstantMemberWithTemplateLiteralsEmitDeclaration.ts" }
TypeScript/tests/cases/conformance/enums/enumConstantMemberWithString.ts_0_326
enum T1 { a = "1", b = "1" + "2", c = "1" + "2" + "3", d = "a" - "a", e = "a" + 1 } enum T2 { a = "1", b = "1" + "2" } enum T3 { a = "1", b = "1" + "2", c = 1, d = 1 + 2 } enum T4 { a = "1" } enum T5 { a = "1" + "2" } declare enum T6 { a = "1", b = "1" + ...
{ "end_byte": 326, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumConstantMemberWithString.ts" }
TypeScript/tests/cases/conformance/enums/enumConstantMemberWithStringEmitDeclaration.ts_0_286
// @declaration: true enum T1 { a = "1", b = "1" + "2", c = "1" + "2" + "3" } enum T2 { a = "1", b = "1" + "2" } enum T3 { a = "1", b = "1" + "2" } enum T4 { a = "1" } enum T5 { a = "1" + "2" } declare enum T6 { a = "1", b = "1" + "2" }
{ "end_byte": 286, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumConstantMemberWithStringEmitDeclaration.ts" }
TypeScript/tests/cases/conformance/enums/enumErrors.ts_0_903
// Enum named with PredefinedTypes enum any { } enum number { } enum string { } enum boolean { } // Enum with computed member initializer of type Number enum E5 { C = new Number(30) } enum E9 { A, B = A } //Enum with computed member intializer of different enum type // Bug 707850: This should be allowed ...
{ "end_byte": 903, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumErrors.ts" }
TypeScript/tests/cases/conformance/enums/enumClassification.ts_0_1070
// @declaration: true // An enum type where each member has no initializer or an initializer that specififes // a numeric literal, a string literal, or a single identifier naming another member in // the enum type is classified as a literal enum type. An enum type that doesn't adhere // to this pattern is classified a...
{ "end_byte": 1070, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumClassification.ts" }
TypeScript/tests/cases/conformance/enums/enumConstantMemberWithTemplateLiterals.ts_0_482
enum T1 { a = `1` } enum T2 { a = `1`, b = "2", c = 3 } enum T3 { a = `1` + `1` } enum T4 { a = `1`, b = `1` + `1`, c = `1` + "2", d = "2" + `1`, e = "2" + `1` + `1` } enum T5 { a = `1`, b = `1` + `2`, c = `1` + `2` + `3`, d = 1, e = `1` - `1`, f = `1`...
{ "end_byte": 482, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumConstantMemberWithTemplateLiterals.ts" }
TypeScript/tests/cases/conformance/enums/enumMergingErrors.ts_0_877
// Enum with constant, computed, constant members split across 3 declarations with the same root module module M { export enum E1 { A = 0 } export enum E2 { C } export enum E3 { A = 0 } } module M { export enum E1 { B = 'foo'.length } export enum E2 { B = 'foo'.length } export enum E3 { C } } mo...
{ "end_byte": 877, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumMergingErrors.ts" }
TypeScript/tests/cases/conformance/enums/enumMerging.ts_0_1402
// Enum with only constant members across 2 declarations with the same root module // Enum with initializer in all declarations with constant members with the same root module module M1 { enum EImpl1 { A, B, C } enum EImpl1 { D = 1, E, F } export enum EConst1 { A = 3, B = 2...
{ "end_byte": 1402, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumMerging.ts" }
TypeScript/tests/cases/conformance/enums/enumErrorOnConstantBindingWithInitializer.ts_0_153
// @strict: true type Thing = { value?: string | number; }; declare const thing: Thing; const { value = "123" } = thing; enum E { test = value, }
{ "end_byte": 153, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumErrorOnConstantBindingWithInitializer.ts" }
TypeScript/tests/cases/conformance/enums/enumBasics.ts_0_1480
// Enum without initializers have first member = 0 and successive members = N + 1 enum E1 { A, B, C } // Enum type is a subtype of Number var x: number = E1.A; // Enum object type is anonymous with properties of the enum type and numeric indexer var e = E1; var e: { readonly A: E1.A; readonly B: E...
{ "end_byte": 1480, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/enums/enumBasics.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-emitDecoratorMetadata.ts_0_663
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @emitDecoratorMetadata: true // @noTypesAndSymbols: true declare let dec: any; @dec class C { constructor(x: number) {} @dec method(x: number) {} @dec set x(x: number) {} @dec y: number; @dec static method(x: nu...
{ "end_byte": 663, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-emitDecoratorMetadata.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-preservesThis.ts_0_725
// @target: es2022 // https://github.com/microsoft/TypeScript/issues/53752 declare class DecoratorProvider { decorate<T>(this: DecoratorProvider, v: T, ctx: DecoratorContext): T; } declare const instance: DecoratorProvider; // preserve `this` for access class C { @instance.decorate method1() { } @(i...
{ "end_byte": 725, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-preservesThis.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-decoratorExpression.3.ts_0_219
// @target: esnext // @experimentalDecorators: * // @noEmitHelpers: true // @noTypesAndSymbols: true declare let g: <T>(...args: any) => any; // existing errors { @g<number> class C {} } { @g()<number> class C {} }
{ "end_byte": 219, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-decoratorExpression.3.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-decoratorExpression.2.ts_0_978
// @target: esnext // @experimentalDecorators: * // @noEmitHelpers: true // @noTypesAndSymbols: true declare let x: any; declare let g: <T>(...args: any) => any; declare let h: () => <T>(...args: any) => any; { @x! class C {} } { @x.y! class C {} } { @x!.y class C {} } { @g<number>() class C {} } { @(g<number>) c...
{ "end_byte": 978, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-decoratorExpression.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-arguments.ts_0_168
// @target: esnext @(() => {}) @((a: any) => {}) @((a: any, b: any) => {}) @((a: any, b: any, c: any) => {}) @((a: any, b: any, c: any, ...d: any[]) => {}) class C1 {}
{ "end_byte": 168, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-arguments.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-contextualTypes.ts_0_923
// @target: esnext @((t, c) => { }) class C { @((t, c) => { }) static f() {} @((t, c) => { }) static #f() {} @((t, c) => { }) static get x() { return 1; } @((t, c) => { }) static set x(value) { } @((t, c) => { }) static get #x() { return 1; } @((t, c) => { }) static...
{ "end_byte": 923, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-contextualTypes.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts_0_346
// @target: esnext // @noEmitHelpers: true declare let dec: any; @dec(x => x.#foo) // error class A { #foo = 3; @dec(this, (x: A) => x.#foo) // ok m() {} } @dec((x: B) => x.#foo) // error class B { #foo = 3; } class C { #foo = 2; m() { @dec(() => this.#foo) // ok class D {} ...
{ "end_byte": 346, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-privateFieldAccess.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-decoratorExpression.1.ts_0_726
// @target: esnext // @experimentalDecorators: * // @noEmitHelpers: true // @noTypesAndSymbols: true declare let x: any; { @x().y class C {} } { @new x class C {} } { @x().y() class C {} } { @x?.y class C {} } { @x?.y() class C {} } { @x?.["y"] class C {} } { @x?.() class C {} } { @x`` class C {} } { @x``() c...
{ "end_byte": 726, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-decoratorExpression.1.ts" }
TypeScript/tests/cases/conformance/esDecorators/esDecorators-contextualTypes.2.ts_0_953
// @target: esnext // @module: esnext class C { @boundMethodLogger("Yadda", /*bound*/ true) foo() { this.fooHelper(); } fooHelper() { console.log("Behold! The actual method implementation!") } }; export { C }; function boundMethodLogger<This, Args extends any[], Return>(source: st...
{ "end_byte": 953, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/esDecorators-contextualTypes.2.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-multipleDecorators.ts_0_152
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec1: any, dec2: any; @dec1 @dec2 class C { }
{ "end_byte": 152, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-multipleDecorators.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-commentPreservation.ts_0_1243
// @target: esnext, es2022, es2015 // @module: esnext, commonjs // @noEmitHelpers: true // @noTypesAndSymbols: true // @filename: file1.ts declare var dec: any; /*1*/ @dec /*2*/ @dec /*3*/ class C { /*4*/ @dec /*5*/ @dec /*6*/ method() {} /*7*/ @dec /*8*/ @dec /*9*/ g...
{ "end_byte": 1243, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-commentPreservation.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-commonjs-classNamespaceMerge.ts_0_185
// @target: es2022 // @module: commonjs declare var deco: any; @deco export class Example { static foo() {} } export namespace Example { export const x = 1; } Example.foo();
{ "end_byte": 185, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-commonjs-classNamespaceMerge.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateMethod.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 class C { @dec 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-staticPrivateMethod.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.ts_0_325
// @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]: any; } // @filename: tslib.d.ts expor...
{ "end_byte": 325, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedField.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-commonjs.ts_0_131
// @target: es2022 // @module: commonjs declare var deco: any; @deco export class Example { static foo() {} } Example.foo();
{ "end_byte": 131, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-commonjs.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.ts_0_314
// @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 accessor #x: any; } // @filename: tslib.d.ts export {}
{ "end_byte": 314, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-nonStaticPrivateAutoAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.ts_0_293
// @target: es2022 // @importHelpers: true // @module: commonjs // @moduleResolution: classic // @noTypesAndSymbols: true // @filename: main.ts export {} declare var dec: any; // needs: __esDecorate, __runInitializers class C { @dec static #x: any; } // @filename: tslib.d.ts export {}
{ "end_byte": 293, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticPrivateField.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.ts_0_334
// @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 accessor [x]: any; } // @filename: tslib.d...
{ "end_byte": 334, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-missingEmitHelpers-staticComputedAutoAccessor.ts" }
TypeScript/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-parameterDecorators.ts_0_447
// @target: esnext, es2022, es2015, es5 // @noEmitHelpers: true // @noTypesAndSymbols: true declare let dec: any; class C { constructor(@dec x: any) {} method(@dec x: any) {} set x(@dec x: any) {} static method(@dec x: any) {} static set x(@dec x: any) {} } (class C { constructor(@dec x: any)...
{ "end_byte": 447, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/esDecorators/classDeclaration/esDecorators-classDeclaration-parameterDecorators.ts" }