_id
stringlengths
21
254
text
stringlengths
1
93.7k
metadata
dict
TypeScript/tests/cases/conformance/salsa/jsdocConstructorFunctionTypeReference.ts_0_332
// @noEmit: true // @allowJs: true // @checkJs: true // @noImplicitAny: true // @Filename: jsdocConstructorFunctionTypeReference.js var Validator = function VFunc() { this.flags = "gim" }; Validator.prototype.num = 12 /** * @param {Validator} state */ var validateRegExpFlags = function(state) { return stat...
{ "end_byte": 332, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/jsdocConstructorFunctionTypeReference.ts" }
TypeScript/tests/cases/conformance/salsa/moduleExportAssignment.ts_0_396
// @noEmit: true // @allowJs: true // @checkJs: true // @Filename: npmlog.js class EE { /** @param {string} s */ on(s) { } } var npmlog = module.exports = new EE() npmlog.on('hi') // both references should see EE.on module.exports.on('hi') // here too npmlog.x = 1 module.exports.y = 2 npmlog.y module.exports....
{ "end_byte": 396, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/moduleExportAssignment.ts" }
TypeScript/tests/cases/conformance/salsa/nestedDestructuringOfRequire.ts_0_243
// @allowJs: true // @checkJs: true // @outDir: out // @declaration: true // @filename: mod1.js const chalk = { grey: {} }; module.exports.chalk = chalk // @filename: main.js const { chalk: { grey } } = require('./mod1'); grey chalk
{ "end_byte": 243, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/nestedDestructuringOfRequire.ts" }
TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts_0_2022
// @declaration: true function ExpandoDecl(n: number) { return n.toString(); } ExpandoDecl.prop = 2 ExpandoDecl.m = function(n: number) { return n + 1; } var n = ExpandoDecl.prop + ExpandoDecl.m(12) + ExpandoDecl(101).length const ExpandoExpr = function (n: number) { return n.toString(); } ExpandoExpr.prop...
{ "end_byte": 2022, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/typeFromPropertyAssignment29.ts" }
TypeScript/tests/cases/conformance/salsa/lateBoundClassMemberAssignmentJS2.ts_0_357
// @allowJs: true // @checkJs: true // @emitDeclarationOnly: true // @strict: true // @target: es6 // @declaration: true // @filename: lateBoundClassMemberAssignmentJS2.js const _sym = "my-fake-sym"; export class MyClass { constructor() { this[_sym] = "ok"; } method() { this[_sym] = "yep"; ...
{ "end_byte": 357, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/lateBoundClassMemberAssignmentJS2.ts" }
TypeScript/tests/cases/conformance/salsa/varRequireFromTypescript.ts_0_453
// @allowJs: true // @checkJs: true // @strict: true // @noEmit: true // @Filename: ex.d.ts export type Greatest = { day: 1 } export class Crunch { n: number m(): number constructor(n: number) } // @Filename: use.js var ex = require('./ex') // values work var crunch = new ex.Crunch(1); crunch.n // types...
{ "end_byte": 453, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/varRequireFromTypescript.ts" }
TypeScript/tests/cases/conformance/salsa/moduleExportsAliasLoop2.ts_0_134
// @noEmit: true // @allowJs: true // @checkJs: true // @filename: x.js const Foo = { min: 3 }; exports.fn1(); exports.fn2 = Foo.min;
{ "end_byte": 134, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/moduleExportsAliasLoop2.ts" }
TypeScript/tests/cases/conformance/salsa/inferingFromAny.ts_0_1333
// @allowJs: true // @noEmit: true // @fileName: a.ts var a: any; var t: [any, any]; declare function f1<T>(t: T): T declare function f2<T>(t: T[]): T; declare function f3<T, U>(t: [T, U]): [T, U]; declare function f4<T>(x: { bar: T; baz: T }): T; declare function f5<T>(x: (a: T) => void): T; declare function f6<T>(x:...
{ "end_byte": 1333, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/inferingFromAny.ts" }
TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts_0_483
// @noEmit: true // @allowJs: true // @checkJs: true // @target: esnext // @lib: es6,dom // @Filename: a.js var my = my ?? {}; my.app = my.app ?? {}; my.app.Application = (function () { var Application = function () { //... }; return Application; })(); my.app.Application() // @Filename: b.js var min = window.min ...
{ "end_byte": 483, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/typeFromPropertyAssignment8_1.ts" }
TypeScript/tests/cases/conformance/salsa/constructorFunctions.ts_0_969
// @allowJs: true // @checkJs: true // @noEmit: true // @filename: index.js function C1() { if (!(this instanceof C1)) return new C1(); this.x = 1; } const c1_v1 = C1(); const c1_v2 = new C1(); var C2 = function () { if (!(this instanceof C2)) return new C2(); this.x = 1; }; const c2_v1 = C2(); cons...
{ "end_byte": 969, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/constructorFunctions.ts" }
TypeScript/tests/cases/conformance/salsa/moduleExportAliasExports.ts_0_232
// @noEmit: true // @allowJs: true // @checkJs: true // @Filename: Eloquent.js // bug #27365, crashes from github.com/marijnh/Eloquent-JavaScript (function() { exports.bigOak = 1 exports.everywhere = 2 module.exports = exports })()
{ "end_byte": 232, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/moduleExportAliasExports.ts" }
TypeScript/tests/cases/conformance/salsa/importAliasModuleExports.ts_0_388
// @allowJs: true // @checkJs: true // @noEmit: true // @esModuleInterop: true // @filename: mod1.js class Alias { bar() { return 1 } } module.exports = Alias; // @filename: main.js import A from './mod1' A.prototype.foo = 0 A.prototype.func = function() { this._func = 0; } Object.defineProperty(A.prototype, "def"...
{ "end_byte": 388, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/importAliasModuleExports.ts" }
TypeScript/tests/cases/conformance/salsa/topLevelThisAssignment.ts_0_133
// @outFile: output.js // @allowJs: true // @checkJs: true // @Filename: a.js this.a = 10; this.a; a; // @Filename: b.js this.a; a;
{ "end_byte": 133, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/topLevelThisAssignment.ts" }
TypeScript/tests/cases/conformance/salsa/methodsReturningThis.ts_0_847
// @filename: input.js // @outFile: output.js // @allowJs: true function Class() { } // error: 'Class' doesn't have property 'notPresent' Class.prototype.containsError = function () { return this.notPresent; }; // lots of methods that return this, which caused out-of-memory in #9527 Class.prototype.m1 = function (a, ...
{ "end_byte": 847, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/methodsReturningThis.ts" }
TypeScript/tests/cases/conformance/salsa/moduleExportDuplicateAlias3.ts_0_421
// @checkJs: true // @strict: true // @declaration: true // @filename: moduleExportAliasDuplicateAlias.js // @outdir: out exports.apply = undefined; exports.apply = undefined; function a() { } exports.apply = a; exports.apply() exports.apply = 'ok' var OK = exports.apply.toUpperCase() exports.apply = 1 // @filename: t...
{ "end_byte": 421, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/moduleExportDuplicateAlias3.ts" }
TypeScript/tests/cases/conformance/salsa/typeFromJSInitializer3.ts_0_288
// @allowJs: true // @checkJs: true // @noEmit: true // @strictNullChecks: false // @noImplicitAny: true // @Filename: a.js /** @type {() => undefined} */ function f1() { return undefined; } const a = f1() /** @type {() => null} */ function f2() { return null; } const b = f2()
{ "end_byte": 288, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/typeFromJSInitializer3.ts" }
TypeScript/tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport7.ts_0_429
// @allowJs: true // @checkJs: true // @noEmit: true // @strict: true // @target: es6 // @filename: lateBoundAssignmentDeclarationSupport7.js const _sym = Symbol(); const _str = "my-fake-sym"; function F() { } F[_sym] = "ok"; F[_str] = "ok"; module.exports.F = F; module.exports.S = _sym; // @filename: usage.js const x...
{ "end_byte": 429, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport7.ts" }
TypeScript/tests/cases/conformance/salsa/inferringClassStaticMembersFromAssignments.ts_0_675
// @noEmit: true // @allowJs: true // @filename: a.js export class C1 { } C1.staticProp = 0; export function F1() { } F1.staticProp = 0; export var C2 = class { }; C2.staticProp = 0; export let F2 = function () { }; F2.staticProp = 0; //@filename: global.js class C3 { } C3.staticProp = 0; function F3() { } F3.sta...
{ "end_byte": 675, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/inferringClassStaticMembersFromAssignments.ts" }
TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment39.ts_0_182
// @allowJs: true // @checkJs: true // @strict: true // @emitDeclarationOnly: true // @declaration: true // @Filename: a.js const foo = {}; foo["baz"] = {}; foo["baz"]["blah"] = 3;
{ "end_byte": 182, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/typeFromPropertyAssignment39.ts" }
TypeScript/tests/cases/conformance/salsa/jsContainerMergeTsDeclaration3.ts_0_138
// @noEmit: true // @allowJs: true // @checkJs: true // @Filename: a.d.ts declare class A {} // @Filename: b.js const A = { }; A.d = { };
{ "end_byte": 138, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/jsContainerMergeTsDeclaration3.ts" }
TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts_0_375
// @allowJs: true // @checkJs: true // @noEmit: true // @Filename: types.d.ts declare var require: any; declare var module: any; // @Filename: semver.js /// <reference path='./types.d.ts'/> exports = module.exports = C C.f = n => n + 1 function C() { this.p = 1 } // @filename: index.js /// <reference path='./types....
{ "end_byte": 375, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/typeFromPropertyAssignment19.ts" }
TypeScript/tests/cases/conformance/salsa/constructorFunctions3.ts_0_573
// @noEmit: true // @allowJs: true // @checkJs: true // @noImplicitAny: true // @Filename: a.js function Instance() { this.i = 'simple' } var i = new Instance(); Instance; i; function StaticToo() { this.i = 'more complex' } StaticToo.property = 'yep' var s = new StaticToo(); s; StaticToo; // Both! function A ...
{ "end_byte": 573, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/constructorFunctions3.ts" }
TypeScript/tests/cases/conformance/salsa/exportNestedNamespaces.ts_0_423
// @allowJs: true // @checkJs: true // @noEmit: true // @Filename: mod.js exports.n = {}; exports.n.K = function () { this.x = 10; } exports.Classic = class { constructor() { this.p = 1 } } // @Filename: use.js import * as s from './mod' var k = new s.n.K() k.x var classic = new s.Classic() /**...
{ "end_byte": 423, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/exportNestedNamespaces.ts" }
TypeScript/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts_0_228
// @noEmit: true // @allowJs: true // @checkJs: true // @Filename: a.js var Outer = class O { m(x, y) { } } Outer.Inner = class I { n(a, b) { } } /** @type {Outer} */ var si si.m /** @type {Outer.Inner} */ var oi oi.n
{ "end_byte": 228, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/typeFromPropertyAssignment.ts" }
TypeScript/tests/cases/conformance/salsa/spellingUncheckedJS.ts_0_983
// @noEmit: true // @allowJs: true // @filename: spellingUncheckedJS.js export var inModule = 1 inmodule.toFixed() function f() { var locals = 2 + true locale.toFixed() // @ts-expect-error localf.toExponential() // @ts-expect-error "this is fine" } class Classe { non = 'oui' methode() {...
{ "end_byte": 983, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/spellingUncheckedJS.ts" }
TypeScript/tests/cases/conformance/salsa/exportNestedNamespaces2.ts_0_445
// @allowJs: true // @checkJs: true // @noEmit: true // @Filename: mod.js // Based on a pattern from adonis exports.formatters = {} // @Filename: first.js exports = require('./mod') exports.formatters.j = function (v) { return v } // @Filename: second.js exports = require('./mod') exports.formatters.o = function (...
{ "end_byte": 445, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/exportNestedNamespaces2.ts" }
TypeScript/tests/cases/conformance/salsa/moduleExportAliasImported.ts_0_229
// @allowJs: true // @noEmit: true // @checkJs: true // @target: esnext // @module: esnext // @Filename: bug28014.js exports.version = 1 function alias() { } module.exports = alias // @Filename: importer.js import('./bug28014')
{ "end_byte": 229, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/moduleExportAliasImported.ts" }
TypeScript/tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport3.ts_0_503
// @allowJs: true // @checkJs: true // @noEmit: true // @strict: true // @target: es6 // @filename: lateBoundAssignmentDeclarationSupport3.js // currently unsupported const _sym = Symbol(); const _str = "my-fake-sym"; Object.defineProperty(module.exports, _sym, { value: "ok" }); Object.defineProperty(module.exports, _...
{ "end_byte": 503, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/lateBoundAssignmentDeclarationSupport3.ts" }
TypeScript/tests/cases/conformance/salsa/privateIdentifierExpando.ts_0_162
// @allowJs: true // @checkJs: true // @declaration: true // @emitDeclarationOnly: true // @Filename: privateIdentifierExpando.js const x = {}; x.#bar.baz = 20;
{ "end_byte": 162, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/salsa/privateIdentifierExpando.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment2.ts_0_18
var v = { class };
{ "end_byte": 18, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment2.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment3.ts_0_15
var v = { "" };
{ "end_byte": 15, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment3.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment4.ts_0_14
var v = { 0 };
{ "end_byte": 14, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment4.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment5.ts_0_43
var greet = "hello"; var obj = { greet? };
{ "end_byte": 43, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment5.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment1.ts_0_109
// @lib: es5 function foo(obj: { name?: string; id: number }) { } var name:any, id: any; foo({ name?, id? });
{ "end_byte": 109, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ShorthandPropertyAssignment/parserShorthandPropertyAssignment1.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty3.ts_0_70
//@target: ES6 declare class C { [Symbol.unscopables](): string; }
{ "end_byte": 70, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty3.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty7.ts_0_63
//@target: ES6 class C { [Symbol.toStringTag](): void { } }
{ "end_byte": 63, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty7.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty6.ts_0_65
//@target: ES6 class C { [Symbol.toStringTag]: string = ""; }
{ "end_byte": 65, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty6.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty2.ts_0_66
//@target: ES6 interface I { [Symbol.unscopables](): string; }
{ "end_byte": 66, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty2.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty9.ts_0_58
//@target: ES6 var x: { [Symbol.toPrimitive]: string }
{ "end_byte": 58, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty9.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer2.ts_0_51
//@target: ES6 class C { [s: symbol]: string; }
{ "end_byte": 51, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer2.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer3.ts_0_58
//@target: ES6 class C { static [s: symbol]: string; }
{ "end_byte": 58, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer3.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty8.ts_0_60
//@target: ES6 var x: { [Symbol.toPrimitive](): string }
{ "end_byte": 60, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty8.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer4.ts_0_50
//@target: ES6 var x: { [s: symbol]: string; }
{ "end_byte": 50, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer4.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer5.ts_0_46
//@target: ES6 var x = { [s: symbol]: "" }
{ "end_byte": 46, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer5.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer1.ts_0_55
//@target: ES6 interface I { [s: symbol]: string; }
{ "end_byte": 55, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolIndexer1.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty5.ts_0_60
//@target: ES6 class C { [Symbol.toPrimitive]: string; }
{ "end_byte": 60, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty5.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty1.ts_0_61
//@target: ES6 interface I { [Symbol.iterator]: string; }
{ "end_byte": 61, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty1.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty4.ts_0_68
//@target: ES6 declare class C { [Symbol.toPrimitive]: string; }
{ "end_byte": 68, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Symbols/parserSymbolProperty4.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName23.ts_0_57
//@target: ES6 declare class C { get [e](): number }
{ "end_byte": 57, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName23.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts_0_41
//@target: ES6 var v = { set [e](v) { } }
{ "end_byte": 41, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName17.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts_0_67
//@target: ES6 class C { // No ASI [e] = 0 [e2]() { } }
{ "end_byte": 67, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName33.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName13.ts_0_38
//@target: ES6 var v: { [e]: number };
{ "end_byte": 38, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName13.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts_0_77
//@target: ES6 class C { // No ASI [e]: number = 0 [e2]: number }
{ "end_byte": 77, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName27.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName37.ts_0_43
//@target: ES6 var v = { [public]: 0 };
{ "end_byte": 43, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName37.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName9.ts_0_39
//@target: ES6 class C { [e]: Type }
{ "end_byte": 39, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName9.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName12.ts_0_39
//@target: ES6 class C { [e]() { } }
{ "end_byte": 39, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName12.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts_0_64
//@target: ES6 enum E { // No ASI [e] = 0 [e2] = 1 }
{ "end_byte": 64, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName26.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts_0_49
//@target: ES6 class C { [public ]: string; }
{ "end_byte": 49, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName36.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts_0_40
//@target: ES6 class C { public [e] }
{ "end_byte": 40, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName8.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName22.ts_0_51
//@target: ES6 declare class C { [e]: number }
{ "end_byte": 51, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName22.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName16.ts_0_35
//@target: ES6 enum E { [e] = 1 }
{ "end_byte": 35, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName16.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName32.ts_0_53
//@target: ES6 declare class C { [e](): number }
{ "end_byte": 53, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName32.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName29.ts_0_73
//@target: ES6 class C { // yes ASI [e] = id++ [e2]: number }
{ "end_byte": 73, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName29.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts_0_33
//@target: ES6 class C { [e] }
{ "end_byte": 33, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName7.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts_0_59
//@target: ES6 "use strict"; class C { [public]() { } }
{ "end_byte": 59, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName39.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts_0_31
//@target: ES6 var v: { [e]? };
{ "end_byte": 31, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName19.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName3.ts_0_37
//@target: ES6 var v = { [e]() { } };
{ "end_byte": 37, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName3.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName18.ts_0_41
//@target: ES6 var v: { [e]?(): number };
{ "end_byte": 41, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName18.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName2.ts_0_34
//@target: ES6 var v = { [e]: 1 };
{ "end_byte": 34, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName2.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts_0_64
//@target: ES6 class C { [e]: number = 0; [e2]: number }
{ "end_byte": 64, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName28.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName6.ts_0_46
//@target: ES6 var v = { [e]: 1, [e + e]: 2 };
{ "end_byte": 46, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName6.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts_0_45
//@target: ES6 class C { [public]() { } }
{ "end_byte": 45, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName38.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName1.ts_0_31
//@target: ES6 var v = { [e] };
{ "end_byte": 31, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName1.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName5.ts_0_48
//@target: ES6 var v = { public get [e]() { } };
{ "end_byte": 48, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName5.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName4.ts_0_41
//@target: ES6 var v = { get [e]() { } };
{ "end_byte": 41, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName4.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts_0_36
//@target: ES6 class C { [e](); }
{ "end_byte": 36, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName11.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName40.ts_0_49
//@target: ES6 class C { [a ? "" : ""]() {} }
{ "end_byte": 49, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName40.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts_0_65
//@target: ES6 class C { // No ASI [e] = 0 [e2] = 1 }
{ "end_byte": 65, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName25.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName35.ts_0_42
//@target: ES6 var x = { [0, 1]: { } }
{ "end_byte": 42, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName35.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName21.ts_0_47
//@target: ES6 interface I { [e]: number }
{ "end_byte": 47, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName21.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName15.ts_0_59
//@target: ES6 var v: { [e: number]: string; [e]: number };
{ "end_byte": 59, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName15.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName31.ts_0_74
//@target: ES6 class C { // yes ASI [e]: number [e2]: number }
{ "end_byte": 74, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName31.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName20.ts_0_49
//@target: ES6 interface I { [e](): number }
{ "end_byte": 49, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName20.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName14.ts_0_40
//@target: ES6 var v: { [e](): number };
{ "end_byte": 40, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName14.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts_0_83
//@target: ES6 enum E { // no ASI, comma expected [e] = id++ [e2] = 1 }
{ "end_byte": 83, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName30.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName10.ts_0_37
//@target: ES6 class C { [e] = 1 }
{ "end_byte": 37, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName10.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName41.ts_0_46
//@target: ES6 var v = { [0 in []]: true }
{ "end_byte": 46, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName41.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts_0_45
//@target: ES6 class C { set [e](v) { } }
{ "end_byte": 45, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName24.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName34.ts_0_84
//@target: ES6 enum E { // no ASI, comma expected [e] = id++, [e2] = 1 }
{ "end_byte": 84, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/ComputedPropertyNames/parserComputedPropertyName34.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement8.ts_0_35
//@target: ES6 for (var v of X) { }
{ "end_byte": 35, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement8.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement1.d.ts_0_35
//@target: ES6 for (var i of e) { }
{ "end_byte": 35, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement1.d.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement9.ts_0_35
//@target: ES6 for (let v of X) { }
{ "end_byte": 35, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement9.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement2.ts_0_33
//@target: ES6 for (var of X) { }
{ "end_byte": 33, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement2.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement10.ts_0_37
//@target: ES6 for (const v of X) { }
{ "end_byte": 37, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement10.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement24.ts_0_56
// @target: esnext var async; for ((async) of [1, 2]);
{ "end_byte": 56, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement24.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement6.ts_0_46
//@target: ES6 for (var a = 1, b = 2 of X) { }
{ "end_byte": 46, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement6.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts_0_41
//@target: ES6 for (var of = 0 in of) { }
{ "end_byte": 41, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement20.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement14.ts_0_40
//@target: ES6 for (let [a, b] of X) { }
{ "end_byte": 40, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement14.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement7.ts_0_63
//@target: ES6 for (var a: number = 1, b: string = "" of X) { }
{ "end_byte": 63, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement7.ts" }
TypeScript/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement21.ts_0_34
//@target: ES6 for (var of of) { }
{ "end_byte": 34, "start_byte": 0, "url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript6/Iterators/parserForOfStatement21.ts" }