_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts_0_198
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true class C { static { await using x = null; { await using y = null; } } }
{ "end_byte": 198, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.14.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts_0_255
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec class C { } export { C };
{ "end_byte": 255, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.5.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.6.ts_0_127
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { await using {a} = null; } export {};
{ "end_byte": 127, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.6.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.6.ts_0_109
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { using {a} = null; }
{ "end_byte": 109, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.6.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts_0_254
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec class C { } export { C };
{ "end_byte": 254, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.5.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts_0_108
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true for (using {} of []) { }
{ "end_byte": 108, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.3.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts_0_188
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true // @noUnusedLocals: true async function f() { await using _ = { async [Symbol.asyncDispose]() {} }; }
{ "end_byte": 188, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.15.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts_0_254
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec export default class { }
{ "end_byte": 254, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.4.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts_0_259
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec class C { } export { C as D }; using after = null;
{ "end_byte": 259, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.12.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts_0_166
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { await using a = null, {b} = null, c = null; }
{ "end_byte": 166, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.7.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts_0_148
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { using a = null, {b} = null, c = null; }
{ "end_byte": 148, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.7.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts_0_167
// @target: es2022 // @module: esnext // @lib: esnext // @importHelpers: true // @noTypesAndSymbols: true export {}; async function f() { await using a = null; }
{ "end_byte": 167, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsWithImportHelpers.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts_0_253
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec export default class { }
{ "end_byte": 253, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.4.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts_0_141
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true export await using x = null; declare await using y: null;
{ "end_byte": 141, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.11.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsTopLevelOfModule.3.ts_0_256
// @target: es2022 // @lib: esnext,dom // @module: commonjs,system,esnext,amd // @noTypesAndSymbols: true // @noEmitHelpers: true export { y }; using z = { [Symbol.dispose]() {} }; if (false) { var y = 1; } function f() { console.log(y, z); }
{ "end_byte": 256, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsTopLevelOfModule.3.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts_0_253
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec export default class { } using after = null;
{ "end_byte": 253, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.10.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts_0_289
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { await using d1 = { async [Symbol.asyncDispose]() {} }, d2 = null, d3 = undefined, d4 = { [Symbol.dispose]() {} }; } export {};
{ "end_byte": 289, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.3.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts_0_243
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { using d1 = { [Symbol.dispose]() {} }, d2 = null, d3 = undefined, d4 = { [Symbol.dispose]() {} }; }
{ "end_byte": 243, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.3.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts_0_241
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec class C { } using after = null;
{ "end_byte": 241, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.7.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts_0_254
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec class C { } export { C }; using after = null;
{ "end_byte": 254, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.11.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts_0_257
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true async function main() { for await (await using d1 of [{ async [Symbol.asyncDispose]() {} }, { [Symbol.dispose]() {} }, null, undefined]) { } }
{ "end_byte": 257, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsTopLevelOfModule.1.ts_0_287
// @target: es2022 // @lib: esnext,dom // @module: system,esnext // @noTypesAndSymbols: true // @noEmitHelpers: true export const x = 1; export { y }; await using z = { async [Symbol.asyncDispose]() {} }; const y = 2; export const w = 3; export default 4; console.log(w, x, y, z);
{ "end_byte": 287, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsTopLevelOfModule.1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.4.ts_0_108
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { using [a] = null; }
{ "end_byte": 108, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.4.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.4.ts_0_126
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { await using [a] = null; } export {};
{ "end_byte": 126, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.4.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts_0_239
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec class C { } using after = null;
{ "end_byte": 239, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.7.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts_0_129
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true async function f() { await using x = {}; }
{ "end_byte": 129, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.12.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts_0_264
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec export default class C { } void C;
{ "end_byte": 264, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.3.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts_0_255
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec export default class C { }
{ "end_byte": 255, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.3.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsTopLevelOfModule.1.ts_0_283
// @target: es2022 // @lib: esnext,dom // @module: commonjs,system,esnext,amd // @noTypesAndSymbols: true // @noEmitHelpers: true export const x = 1; export { y }; using z = { [Symbol.dispose]() {} }; const y = 2; export const w = 3; export default 4; console.log(w, x, y, z);
{ "end_byte": 283, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsTopLevelOfModule.1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts_0_148
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true await using x = null; function f() { await using x = null; }
{ "end_byte": 148, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.13.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts_0_248
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec export class C { }
{ "end_byte": 248, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.2.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts_0_247
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec export class C { }
{ "end_byte": 247, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.2.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsDeclarationEmit.1.ts_0_213
// @target: esnext // @module: esnext // @declaration: true // @noTypesAndSymbols: true using r1 = { [Symbol.dispose]() {} }; export { r1 }; await using r2 = { async [Symbol.asyncDispose]() {} }; export { r2 };
{ "end_byte": 213, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsDeclarationEmit.1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts_0_2520
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true using d1 = { [Symbol.dispose]() {} }; function f() { using d2 = { [Symbol.dispose]() {} }; } async function af() { using d3 = { [Symbol.dispose]() {} }; await null; } function * g() { using d4 ...
{ "end_byte": 2520, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts_0_107
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true for (using x in {}) { }
{ "end_byte": 107, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForIn.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts_0_2018
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true await using d1 = { async [Symbol.asyncDispose]() {} }; async function af() { await using d3 = { async [Symbol.asyncDispose]() {} }; await null; } async function * ag() { await using d5 = { async [Sy...
{ "end_byte": 2018, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts_0_260
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec class C { } export { C as D }; using after = null;
{ "end_byte": 260, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.12.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts_0_175
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true for (using d1 of [{ [Symbol.dispose]() {} }, null, undefined]) { }
{ "end_byte": 175, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsInForOf.1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts_0_260
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec class C { } export { C as D };
{ "end_byte": 260, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.6.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts_0_252
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec export default class { } using after = null;
{ "end_byte": 252, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.10.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts_0_149
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { using a = null, [b] = null, c = null; }
{ "end_byte": 149, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.5.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts_0_178
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true { await using a = null, [b] = null, c = null; } export {};
{ "end_byte": 178, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarations.5.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts_0_259
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; using before = null; @dec class C { } export { C as D };
{ "end_byte": 259, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.6.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts_0_325
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true async function main() { for (await using d1 = { [Symbol.dispose]() {} }, d2 = { async [Symbol.asyncDispose]() {} }, d3 = null, d4 = undefined;;) { ...
{ "end_byte": 325, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInFor.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts_0_253
// @target: esnext,es2022,es2017,es2015,es5 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true async function main() { for (await using d1 of [{ async [Symbol.asyncDispose]() {} }, { [Symbol.dispose]() {} }, null, undefined]) { } }
{ "end_byte": 253, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts_0_205
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/55555 async function test() { for await (await using of of of) {}; }
{ "end_byte": 205, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.2.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts_0_274
// @target: es5,esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/pull/55558#issuecomment-1817595357 declare const x: any[] for (await using of x); export async function test() { for (await using of x); }
{ "end_byte": 274, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.5.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts_0_254
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec export default class C { } using after = null;
{ "end_byte": 254, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.9.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts_0_273
// @target: es2018 // @module: esnext // @lib: esnext // @noTypesAndSymbols: true // @useDefineForClassFields: * class C1 { constructor() {} } class C2 extends C1 { y = 1; constructor() { super(); using d17 = { [Symbol.dispose]() {} }; } }
{ "end_byte": 273, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.12.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts_0_265
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec export default class C { } void C; using after = null;
{ "end_byte": 265, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.9.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts_0_177
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/55555 { for (await using of of of) {}; }
{ "end_byte": 177, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForOf.4.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts_0_246
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: true // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec export class C { } using after = null;
{ "end_byte": 246, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithLegacyClassDecorators.8.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts_0_129
// @target: esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true export using x = null; declare using y: null;
{ "end_byte": 129, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarations.13.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts_0_247
// @target: esnext,es2015,es5 // @module: commonjs,system,esnext // @lib: esnext // @experimentalDecorators: false // @noTypesAndSymbols: true // @noEmitHelpers: true export {}; declare var dec: any; @dec export class C { } using after = null;
{ "end_byte": 247, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithESClassDecorators.8.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithObjectLiterals1.ts_0_745
// @strict: true // @target: esnext // @module: esnext // @lib: esnext // @noEmit: true interface MyDisposable { value: number; [Symbol.dispose](): void; } { using _ = { [Symbol.dispose]() {} }; } { using _ = { [Symbol.dispose]() {}, value: 1 }; } { using _: MyDisposable = { [Symbol.dispose]() {}, value: ...
{ "end_byte": 745, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/usingDeclarationsWithObjectLiterals1.ts" }
TypeScript/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts_0_286
// @target: es5,esnext // @module: esnext // @lib: esnext // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/pull/55558#issuecomment-1817595357 declare const x: any[] for await (await using of x); export async function test() { for await (await using of x); }
{ "end_byte": 286, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/VariableStatements/usingDeclarations/awaitUsingDeclarationsInForAwaitOf.3.ts" }
TypeScript/tests/cases/conformance/statements/switchStatements/switchStatements.ts_0_978
module M { export function fn(x: number) { return ''; } } var x: any; switch (x) { case '': case 12: case true: case null: case undefined: case new Date(12): case new Object(): case /[a-z]/: case[]: case {}: case { id: 12 }: case['a']: case typeof x: ...
{ "end_byte": 978, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/switchStatements/switchStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts_0_474
// @allowUnusedLabels: true // @allowUnreachableCode: true // All errors // naked break not allowed break; // non-existent label ONE: for(;;) break TWO; // break from inside function TWO: for(;;) { var x = () => { break TWO; } } THREE: for(;;) { var fn = function () { break THREE; }...
{ "end_byte": 474, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/invalidForBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/doWhileBreakStatements.ts_0_463
// @allowUnusedLabels: true // @allowUnreachableCode: true do { break; } while(true) ONE: do { break ONE; } while (true) TWO: THREE: do { break THREE; }while (true) FOUR: do { FIVE: do { break FOUR; }while (true) }while (true) do { SIX: do break SIX; while(true) }while (true...
{ "end_byte": 463, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/doWhileBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/whileBreakStatements.ts_0_471
// @allowUnusedLabels: true // @allowUnreachableCode: true while(true) { break; } ONE: while (true) { break ONE; } TWO: THREE: while (true) { break THREE; } FOUR: while (true) { FIVE: while (true) { break FOUR; } } while (true) { SIX: while (true) break SIX; } SEV...
{ "end_byte": 471, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/whileBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts_0_924
// @allowUnusedLabels: true // @allowUnreachableCode: true switch ('') { case 'a': break; } ONE: switch ('') { case 'a': break ONE; } TWO: THREE: switch ('') { case 'a': break THREE; } FOUR: switch ('') { case 'a': FIVE: switch ('') { case 'a': ...
{ "end_byte": 924, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/switchBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts_0_517
// @allowUnusedLabels: true // @allowUnreachableCode: true // All errors // naked break not allowed break; // non-existent label ONE: do break TWO; while (true) // break from inside function TWO: do { var x = () => { break TWO; } }while (true) THREE: do { var fn = function () { break TH...
{ "end_byte": 517, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/invalidDoWhileBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts_0_454
// @allowUnusedLabels: true for(var x in {}) { break; } ONE: for(var x in {}) { break ONE; } TWO: THREE: for(var x in {}) { break THREE; } FOUR: for(var x in {}) { FIVE: for(var x in {}) { break FOUR; } } for(var x in {}) { SIX: for(var x in {}) break SIX; } SEVEN: for (var...
{ "end_byte": 454, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/forInBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/invalidSwitchBreakStatement.ts_0_90
// break is not allowed in a switch statement switch (12) { case 5: break; }
{ "end_byte": 90, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/invalidSwitchBreakStatement.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts_0_534
// @allowUnusedLabels: true // @allowUnreachableCode: true // All errors // naked break not allowed break; // non-existent label ONE: for (var x in {}) break TWO; // break from inside function TWO: for (var x in {}) { var fn = () => { break TWO; } } THREE: for (var x in {}) { var fn = function ...
{ "end_byte": 534, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/invalidForInBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.ts_0_442
// All errors // naked break not allowed break; // non-existent label ONE: while (true) break TWO; // break from inside function TWO: while (true){ var x = () => { break TWO; } } THREE: while (true) { var fn = function () { break THREE; } } // break forward while (true) { break ...
{ "end_byte": 442, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/invalidWhileBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/breakStatements/forBreakStatements.ts_0_405
// @allowUnusedLabels: true // @allowUnreachableCode: true for (; ;) { break; } ONE: for (; ;) { break ONE; } TWO: THREE: for (; ;) { break THREE; } FOUR: for (; ;) { FIVE: for (; ;) { break FOUR; } } for (; ;) { SIX: for (; ;) break SIX; } SEVEN: for (; ;) for (; ;) for (;...
{ "end_byte": 405, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/breakStatements/forBreakStatements.ts" }
TypeScript/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts_0_558
// @allowUnreachableCode: true function fn(x) { throw x; } <T>(x: T) => { throw x; } var y: string; switch (y) { case 'a': throw y; default: throw y; } var z = 0; while (z < 10) { throw z; } for (var i = 0; ;) { throw i; } for (var idx in {}) { throw idx; } do { throw null; }while...
{ "end_byte": 558, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/throwStatements/throwInEnclosingStatements.ts" }
TypeScript/tests/cases/conformance/statements/throwStatements/invalidThrowStatement.ts_0_60
// @allowUnreachableCode: true throw; export throw null;
{ "end_byte": 60, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/throwStatements/invalidThrowStatement.ts" }
TypeScript/tests/cases/conformance/statements/throwStatements/throwStatements.ts_0_1452
// @allowUnreachableCode: true // all legal interface I { id: number; } class C implements I { id: number; } class D<T>{ source: T; recurse: D<T>; wrapped: D<D<T>> } function F(x: string): number { return 42; } module M { export class A { name: string; } export function F2...
{ "end_byte": 1452, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/throwStatements/throwStatements.ts" }
TypeScript/tests/cases/conformance/statements/returnStatements/returnStatementNoAsiAfterTransform.ts_0_856
// @target: es5,esnext // @noTypesAndSymbols: true declare var a: any; function t1() { return ( // comment a as any ); } function t2() { return ( // comment a as any ) + 1; } function t3() { return ( // comment a as any ) ? 0 : 1; } function t4() ...
{ "end_byte": 856, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/returnStatements/returnStatementNoAsiAfterTransform.ts" }
TypeScript/tests/cases/conformance/statements/returnStatements/invalidReturnStatements.ts_0_419
// all the following should be error function fn1(): number { } function fn2(): string { } function fn3(): boolean { } function fn4(): Date { } function fn7(): any { } // should be valid: any includes void interface I { id: number } class C implements I { id: number; dispose() {} } class D extends C { n...
{ "end_byte": 419, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/returnStatements/invalidReturnStatements.ts" }
TypeScript/tests/cases/conformance/statements/returnStatements/returnStatements.ts_0_661
// all the following should be valid function fn1(): number { return 1; } function fn2(): string { return ''; } function fn3(): void { return undefined; } function fn4(): void { return; } function fn5(): boolean { return true; } function fn6(): Date { return new Date(12); } function fn7(): any { return null; } function...
{ "end_byte": 661, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/returnStatements/returnStatements.ts" }
TypeScript/tests/cases/conformance/statements/forStatements/forStatementsMultipleValidDecl.ts_0_1123
// @allowUnreachableCode: true // all expected to be valid for (var x: number; ;) { } for (var x = 2; ;) { } for (var x = <number>undefined; ;) { } // new declaration space, making redeclaring x as a string valid function declSpace() { for (var x = 'this is a string'; ;) { } } interface Point { x: number; y: num...
{ "end_byte": 1123, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/forStatements/forStatementsMultipleValidDecl.ts" }
TypeScript/tests/cases/conformance/statements/forStatements/forStatementsMultipleInvalidDecl.ts_0_970
// @allowUnreachableCode: true interface I { id: number; } class C implements I { id: number; valid: boolean; } class C2 extends C { name: string; } class D<T>{ source: T; recurse: D<T>; wrapped: D<D<T>> } function F(x: string): number { return 42; } module M { export class A { ...
{ "end_byte": 970, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/forStatements/forStatementsMultipleInvalidDecl.ts" }
TypeScript/tests/cases/conformance/statements/forStatements/forStatements.ts_0_1156
// @allowUnreachableCode: true interface I { id: number; } class C implements I { id: number; } class D<T>{ source: T; recurse: D<T>; wrapped: D<D<T>> } function F(x: string): number { return 42; } module M { export class A { name: string; } export function F2(x: number): s...
{ "end_byte": 1156, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/forStatements/forStatements.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementWithLabel_strict.ts_0_293
// @target: es2015 "use strict" label: function fn() { } label: function* gen() { } label: async function gen1() { } label: enum E {} label: interface I {} label: class C { } label: var a = 1; label: let b = 1; label: const c = 1; label: module M { } label: namespace N {} label: type T = {}
{ "end_byte": 293, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementWithLabel_strict.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementWithLabel_es2015.ts_0_281
// @target: es2015 label: function fn() { } label: function* gen() { } label: async function gen1() { } label: enum E {} label: interface I {} label: class C { } label: var a = 1; label: let b = 1; label: const c = 1; label: module M { } label: namespace N {} label: type T = {}
{ "end_byte": 281, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementWithLabel_es2015.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts_0_145
// @strict: true // @target: es5 // @noTypesAndSymbols: true for (let x of []) { var v0 = x; foo: var y; (function() { return x + v0}); }
{ "end_byte": 145, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash2.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementWithLabel.ts_0_278
// @lib: es2015 label: function fn() { } label: function* gen() { } label: async function gen1() { } label: enum E {} label: interface I {} label: class C { } label: var a = 1; label: let b = 1; label: const c = 1; label: module M { } label: namespace N {} label: type T = {}
{ "end_byte": 278, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementWithLabel.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash3.ts_0_681
// @strict: true // @target: es5 // @noTypesAndSymbols: true // https://github.com/microsoft/TypeScript/issues/59345 export class ParseThemeData { parseButton(button: any) { const {type, size} = button; for (let item of type) { const fontType = item.type; const style = (state: string) => `color:...
{ "end_byte": 681, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash3.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementExportDeclarationNoCrash1.ts_0_174
// @strict: true // @module: esnext, commonjs, system // https://github.com/microsoft/TypeScript/issues/59372 export const box: string subTitle: export const title: string
{ "end_byte": 174, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementExportDeclarationNoCrash1.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash4.ts_0_594
// @strict: true // @target: es5 // @noTypesAndSymbols: true export class ParseThemeData { parseButton(button: any) { const {type, size} = button; for (let item of type) { const fontType = item.type; const style = (state: string) => `color: var(--button-${fontType}-${state}-font-color)`; th...
{ "end_byte": 594, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash4.ts" }
TypeScript/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash1.ts_0_143
// @strict: true // @target: es5 // @noTypesAndSymbols: true for (let x of []) { var v0 = x; foo: var; (function() { return x + v0}); }
{ "end_byte": 143, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/labeledStatements/labeledStatementDeclarationListInLoopNoCrash1.ts" }
TypeScript/tests/cases/conformance/statements/for-await-ofStatements/forAwaitPerIterationBindingDownlevel.ts_0_691
// @target: es5 // @lib: esnext, dom // @downlevelIteration: true // @noTypesAndSymbols: true const sleep = (tm: number) => new Promise(resolve => setTimeout(resolve, tm)); async function* gen() { yield 1; await sleep(1000); yield 2; } const log = console.log; (async () => { for await (const outer o...
{ "end_byte": 691, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-await-ofStatements/forAwaitPerIterationBindingDownlevel.ts" }
TypeScript/tests/cases/conformance/statements/for-await-ofStatements/emitter.forAwait.ts_0_1019
// @target: es2018,es2017,es2015,es5 // @lib: esnext // @filename: file1.ts async function f1() { let y: any; for await (const x of y) { } } // @filename: file2.ts async function f2() { let x: any, y: any; for await (x of y) { } } // @filename: file3.ts async function* f3() { let y: any; ...
{ "end_byte": 1019, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-await-ofStatements/emitter.forAwait.ts" }
TypeScript/tests/cases/conformance/statements/ifDoWhileStatements/ifDoWhileStatements.ts_0_2188
// @allowUnreachableCode: true interface I { id: number; } class C implements I { id: number; name: string; } class C2 extends C { valid: boolean; } class D<T>{ source: T; recurse: D<T>; wrapped: D<D<T>> } function F(x: string): number { return 42; } function F2(x: number): boolean { re...
{ "end_byte": 2188, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/ifDoWhileStatements/ifDoWhileStatements.ts" }
TypeScript/tests/cases/conformance/statements/withStatements/withStatements.ts_0_56
var x = 12; with (x) { name = 'twelve' id = 12 }
{ "end_byte": 56, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/withStatements/withStatements.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of37.ts_0_429
// @downlevelIteration: true // https://github.com/microsoft/TypeScript/issues/30083 for (const i of [0, 1, 2, 3, 4]) { try { // Ensure catch binding for the following loop is reset per iteration: for (const j of [1, 2, 3]) { if (i === 2) { throw new Error('ERR'); ...
{ "end_byte": 429, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of37.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts_0_134
//@target: ES5 //@lib: ES6 const strSet: Set<string> = new Set() strSet.add('Hello') strSet.add('World') for (const str of strSet) { }
{ "end_byte": 134, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck13.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts_0_100
//@target: ES5 var union: string | string[]| number[]| symbol[]; var v: symbol; for (v of union) { }
{ "end_byte": 100, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-ofTypeCheck8.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of13.ts_0_68
//@sourcemap: true for (let v of ['a', 'b', 'c']) { var x = v; }
{ "end_byte": 68, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of13.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts_0_58
for (var {x: a = 0, y: b = 1} of [2, 3]) { a; b; }
{ "end_byte": 58, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of27.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts_0_43
for (var v of []) var x = v; var y = v;
{ "end_byte": 43, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of4.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of33.ts_0_101
//@sourcemap: true //@downlevelIteration: true for (var v of ['a', 'b', 'c']) { console.log(v); }
{ "end_byte": 101, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of33.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts_0_64
for (var x of [1, 2, 3]) { var _a = 0; console.log(x); }
{ "end_byte": 64, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of23.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts_0_91
for (let v of []) { v; for (let v of [v]) { var x = v; v++; } }
{ "end_byte": 91, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of17.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts_0_149
//@target: ES5 var array = [1,2,3]; var sum = 0; for (let num of array) { if (sum === 0) { array = [4,5,6] } sum += num; }
{ "end_byte": 149, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5for-of32.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts_0_71
//@target: ES5 var union: string[] | number[]; for (var v of union) { }
{ "end_byte": 71, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck6.ts" }
TypeScript/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts_0_64
for (var x of [1, 2, 3]) { let _a = 0; console.log(x); }
{ "end_byte": 64, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/statements/for-ofStatements/ES5For-of22.ts" }