_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
TypeScript/tests/cases/conformance/es6/destructuring/destructuringCatch.ts_0_341 | // @noImplicitAny: true
try {
throw [0, 1];
}
catch ([a, b]) {
a + b;
}
try {
throw { a: 0, b: 1 };
}
catch ({a, b}) {
a + b;
}
try {
throw [{ x: [0], z: 1 }];
}
catch ([{x: [y], z}]) {
y + z;
}
// Test of comment ranges. A fix to GH#11755 should update this.
try {
}
catch (/*Test comment ra... | {
"end_byte": 341,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringCatch.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5.ts_3_1346 | @target: es6
// If the parameter is a rest parameter, the parameter type is any[]
// A type annotation for a rest parameter must denote an array type.
// RestParameter:
// ... Identifier TypeAnnotation(opt)
type arrayString = Array<String>
type someArray = Array<String> | number[];
type stringOrNumArray = A... | {
"end_byte": 1346,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration3ES5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter04.ts_0_84 | // @declaration: true
function f({} = {a: 1, b: "2", c: true}) {
var x, y, z;
} | {
"end_byte": 84,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter04.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts_0_82 | //@target: ES6
const [[k1, v1], [k2, v2]] = new Map([["", true], ["hello", true]]) | {
"end_byte": 82,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern30.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration10.ts_0_602 | // @strict: true, false
// @noEmit: true
export function prepareConfig({
additionalFiles: {
json = []
} = {}
}: {
additionalFiles?: Partial<Record<"json" | "jsonc" | "json5", string[]>>;
} = {}) {
json // string[]
}
export function prepareConfigWithoutAnnotation({
additionalFiles: {
... | {
"end_byte": 602,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration10.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES6.ts_0_126 | // @target: es6
// @declaration: true
var a: any;
let x, y, z, a1, a2, a3;
({ x, y, z } = {} = a);
([ a1, a2, a3] = [] = a); | {
"end_byte": 126,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers02.ts_4_39 | r { while: while } = { while: 1 } | {
"end_byte": 39,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers02.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts_3_429 | pe ObjType1 = { x: number; y: string; z: boolean }
type TupleType1 = [ObjType1, number, string]
class C1 {
constructor(public [{ x1, x2, x3 }, y, z]: TupleType1) {
var foo: any = x1 || x2 || x3 || y || z;
var bar: any = this.x1 || this.x2 || this.x3 || this.y || this.z;
}
}
var a = new C1([{ x... | {
"end_byte": 429,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterProperties5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts_0_4111 | function f0() {
var [] = [1, "hello"];
var [x] = [1, "hello"];
var [x, y] = [1, "hello"];
var [x, y, z] = [1, "hello"];
var [,, x] = [0, 1, 2];
var x: number;
var y: string;
}
function f1() {
var a = [1, "hello"];
var [x] = a;
var [x, y] = a;
var [x, y, z] = a;
var x: nu... | {
"end_byte": 4111,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/optionalBindingParametersInOverloads1.ts_4_135 | nction foo([x, y, z] ?: [string, number, boolean]);
function foo(...rest: any[]) {
}
foo(["", 0, false]);
foo([false, 0, ""]); | {
"end_byte": 135,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/optionalBindingParametersInOverloads1.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/restElementWithAssignmentPattern5.ts_0_51 | var s: string, s2: string;
[...[s, s2]] = ["", ""]; | {
"end_byte": 51,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/restElementWithAssignmentPattern5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts_0_281 | //@target: ES6
class Bar { x }
class Foo extends Bar { y }
class FooIterator {
next() {
return {
value: new Foo,
done: false
};
}
[Symbol.iterator]() {
return this;
}
}
function fun([a, b]) { }
fun(new FooIterator); | {
"end_byte": 281,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern10.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts_3_3727 | A parameter declaration may specify either an identifier or a binding pattern.
// The identifiers specified in parameter declarations and binding patterns
// in a parameter list must be unique within that parameter list.
// If the declaration includes a type annotation, the parameter is of that type
function a1([a, b... | {
"end_byte": 3727,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration1ES5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/restPropertyWithBindingPattern.ts_0_67 | ({...{}} = {});
({...({})} = {});
({...[]} = {});
({...([])} = {}); | {
"end_byte": 67,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/restPropertyWithBindingPattern.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern2.ts_0_230 | //@target: ES6
class SymbolIterator {
next() {
return {
value: Symbol(),
done: false
};
}
[Symbol.iterator]() {
return this;
}
}
var [a, ...b] = new SymbolIterator; | {
"end_byte": 230,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern2.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts_0_61 | // @declaration: true
function f(a, []) {
var x, y, z;
} | {
"end_byte": 61,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter03.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern24.ts_0_75 | //@target: ES6
var a: string, b: boolean[];
[a, ...b] = { 0: "", 1: true }; | {
"end_byte": 75,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern24.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts_0_89 | // @target: es5
// @declaration: true
var a: any;
({} = a);
([] = a);
var [,] = [1,2]; | {
"end_byte": 89,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns01_ES5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts_0_155 | // #35497
// @target: es5
// @downlevelIteration: true
// @lib: es6
// @strict: true
declare const data: number[] | null;
const [value] = data; // Error
| {
"end_byte": 155,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment4.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers06.ts_4_30 | r { as: as } = { as: 1 } | {
"end_byte": 30,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers06.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts_3_630 | ass C1 {
constructor(public [x, y, z]: string[]) {
}
}
type TupleType1 = [string, number, boolean];
class C2 {
constructor(public [x, y, z]: TupleType1) {
}
}
type ObjType1 = { x: number; y: string; z: boolean }
class C3 {
constructor(public { x, y, z }: ObjType1) {
}
}
var c1 = new C1([]);... | {
"end_byte": 630,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterProperties1.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/arrayAssignmentPatternWithAny.ts_0_35 | var a: any;
var x: string;
[x] = a; | {
"end_byte": 35,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/arrayAssignmentPatternWithAny.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAssignment8.ts_0_170 | // @target: es5,esnext
const K = {
a: "a",
b: "b"
}
const { [K.a]: aVal, [K.b]: bVal } = (() => {
return { [K.a]: 1, [K.b]: 1 };
})();
console.log(aVal, bVal);
| {
"end_byte": 170,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringObjectBindingPatternAndAssignment8.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts_0_92 | var [a, b]; // Error, no initializer
var {c, d}; // Error, no initializer
| {
"end_byte": 92,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/declarationWithNoInitializer.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/restElementWithAssignmentPattern4.ts_0_95 | var a: string, b: number;
var tuple: [string, number] = ["", 1];
[...{ 0: a = "", b }] = tuple; | {
"end_byte": 95,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/restElementWithAssignmentPattern4.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts_0_300 | //@target: ES6
class Bar { x }
class Foo extends Bar { y }
class FooIterator {
next() {
return {
value: new Foo,
done: false
};
}
[Symbol.iterator]() {
return this;
}
}
function fun([a, b] = new FooIterator) { }
fun(new FooIterator);
| {
"end_byte": 300,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern11.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts_0_430 | // @declaration: true
interface a { a }
interface b { b }
interface c { c }
type T1 = ([a, b, c]);
type F1 = ([a, b, c]) => void;
type T2 = ({ a });
type F2 = ({ a }) => void;
type T3 = ([{ a: b }, { b: a }]);
type F3 = ([{ a: b }, { b: a }]) => void;
type T4 = ([{ a: [b, c] }]);
type F4 = ([{ a: [b, c] }]) => voi... | {
"end_byte": 430,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringInFunctionType.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts_0_280 | //@target: ES6
class Bar { x }
class Foo extends Bar { y }
class FooIterator {
next() {
return {
value: new Foo,
done: false
};
}
[Symbol.iterator]() {
return this;
}
}
var a: Bar, b: Bar;
[a, b] = new FooIterator; | {
"end_byte": 280,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern3.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/restElementWithBindingPattern2.ts_0_29 | var [...{0: a, b }] = [0, 1]; | {
"end_byte": 29,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/restElementWithBindingPattern2.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts_0_61 | // @declaration: true
function f(a, []) {
var x, y, z;
} | {
"end_byte": 61,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyArrayBindingPatternParameter02.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts_0_127 | //@target: ES6
function takeFirstTwoEntries(...[[k1, v1], [k2, v2]]) { }
takeFirstTwoEntries(new Map([["", 0], ["hello", 1]])); | {
"end_byte": 127,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern25.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/restElementWithInitializer2.ts_0_98 | var a: number[];
var x: number[];
[...x = a] = a; // Error, rest element cannot have initializer
| {
"end_byte": 98,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/restElementWithInitializer2.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter01.ts_0_58 | // @declaration: true
function f({}) {
var x, y, z;
} | {
"end_byte": 58,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyObjectBindingPatternParameter01.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration6.ts_3_491 | A parameter declaration may specify either an identifier or a binding pattern.
// Reserved words are not allowed to be used as an identifier in parameter declaration
"use strict"
// Error
function a({while}) { }
function a1({public}) { }
function a4([while, for, public]){ }
function a5(...while) { }
function a6(...p... | {
"end_byte": 491,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration6.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts_0_155 | // @target: es5
// @declaration: true
// @downlevelIteration: true
var a: any;
let x, y, z, a1, a2, a3;
({ x, y, z } = {} = a);
([ a1, a2, a3] = [] = a); | {
"end_byte": 155,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns04_ES5iterable.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts_0_64 | // @strictNullChecks: true
declare const v: void;
const {} = v;
| {
"end_byte": 64,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringVoidStrictNullChecks.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts_0_81 | // @target: es5
// @declaration: true
var a: any;
({} = {} = a);
([] = [] = a); | {
"end_byte": 81,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts_3_235 | @target: es5
interface ISomething {
foo: string,
bar: string
}
function foo({}, {foo, bar}: ISomething) {}
function baz([], {foo, bar}: ISomething) {}
function one([], {}) {}
function two([], [a, b, c]: number[]) {}
| {
"end_byte": 235,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration7ES5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts_3_2089 | AssignmentPattern:
* ObjectAssignmentPattern
* ArrayAssignmentPattern
* ArrayAssignmentPattern:
* [Elision<opt> AssignmentRestElementopt ]
* [AssignmentElementList]
* [AssignmentElementList, Elision<opt> AssignmentRestElementopt ]
* AssignmentElementList:
* Elision<opt> ... | {
"end_byte": 2089,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern21.ts_0_47 | //@target: ES6
var [a, b] = { 0: "", 1: true }; | {
"end_byte": 47,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern21.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts_0_294 | //@target: ES6
class Bar { x }
class Foo extends Bar { y }
class FooIterator {
next() {
return {
value: new Foo,
done: false
};
}
[Symbol.iterator]() {
return this;
}
}
function fun(...[a, b]: Bar[]) { }
fun(...new FooIterator); | {
"end_byte": 294,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern15.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts_0_176 | declare var [a, b]; // Error, destructuring declaration not allowed in ambient context
declare var {c, d}; // Error, destructuring declaration not allowed in ambient context
| {
"end_byte": 176,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/declarationInAmbientContext.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts_0_285 | //@target: ES6
class Bar { x }
class Foo extends Bar { y }
class FooIterator {
next() {
return {
value: new Foo,
done: false
};
}
[Symbol.iterator]() {
return this;
}
}
var a: Bar, b: string[];
[a, b] = new FooIterator; | {
"end_byte": 285,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/iterableArrayPattern7.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts_3_3104 | A parameter declaration may specify either an identifier or a binding pattern.
// The identifiers specified in parameter declarations and binding patterns
// in a parameter list must be unique within that parameter list.
// If the declaration includes a type annotation, the parameter is of that type
function a0([a, b... | {
"end_byte": 3104,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterDeclaration2.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5iterable.ts_3_2118 | @downlevelIteration: true
/* AssignmentPattern:
* ObjectAssignmentPattern
* ArrayAssignmentPattern
* ArrayAssignmentPattern:
* [Elision<opt> AssignmentRestElementopt ]
* [AssignmentElementList]
* [AssignmentElementList, Elision<opt> AssignmentRestElementopt ]
* AssignmentElement... | {
"end_byte": 2118,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5iterable.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers2.ts_0_857 | // @strict: true
function f00([x, y]) {}
function f01([x, y] = []) {}
function f02([x, y] = [1]) {}
function f03([x, y] = [1, 'foo']) {}
function f10([x = 0, y]) {}
function f11([x = 0, y] = []) {}
function f12([x = 0, y] = [1]) {}
function f13([x = 0, y] = [1, 'foo']) {}
function f20([x = 0, y = 'bar']) {}
function... | {
"end_byte": 857,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringWithLiteralInitializers2.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts_0_110 | // @target: es5
// @declaration: true
// @downlevelIteration: true
var a: any;
({} = {} = a);
([] = [] = a); | {
"end_byte": 110,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/emptyAssignmentPatterns03_ES5iterable.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts_3_549 | @target: es6
class C1<T, U, V> {
constructor(private k: T, protected [a, b, c]: [T,U,V]) {
if ((b === undefined && c === undefined) || (this.b === undefined && this.c === undefined)) {
this.a = a || k;
}
}
public getA() {
return this.a
}
public getB() {
... | {
"end_byte": 549,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/destructuringParameterProperties4.ts"
} |
TypeScript/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers03.ts_4_34 | r { "while" } = { while: 1 } | {
"end_byte": 34,
"start_byte": 4,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/destructuring/objectBindingPatternKeywordIdentifiers03.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass5.es6.ts_0_171 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
class C {
static x() { return C.y; }
static y = 1;
}
let c = new C(); | {
"end_byte": 171,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass5.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass7.es6.ts_0_186 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
export default class C {
static x() { return C.y; }
static y = 1;
}
let c = new C(); | {
"end_byte": 186,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass7.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass3.es6.ts_0_137 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
export default class C {
}
let c = new C(); | {
"end_byte": 137,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass3.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass1.es6.ts_0_122 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
class C {
}
let c = new C(); | {
"end_byte": 122,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass1.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass8.es6.ts_0_135 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
export default class {
static y = 1;
} | {
"end_byte": 135,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass8.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass4.es6.ts_0_117 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
export default class {
} | {
"end_byte": 117,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass4.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass6.es6.ts_0_178 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
export class C {
static x() { return C.y; }
static y = 1;
}
let c = new C(); | {
"end_byte": 178,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass6.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/decoratorOnClass2.es6.ts_0_129 | // @target:es6
// @experimentaldecorators: true
declare function dec<T>(target: T): T;
@dec
export class C {
}
let c = new C(); | {
"end_byte": 129,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/decoratorOnClass2.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts_0_173 | // @target: ES2015
// @module: ES2015
// @experimentaldecorators: true
declare function dec(target: any, propertyKey: string): void;
export default class {
@dec prop;
} | {
"end_byte": 173,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/property/decoratorOnClassProperty1.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/accessor/decoratorOnClassAccessor1.es6.ts_0_261 | // @target: ES2015
// @module: ES2015
// @experimentaldecorators: true
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
export default class {
@dec get accessor() { return 1; }
} | {
"end_byte": 261,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/accessor/decoratorOnClassAccessor1.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/method/decoratorOnClassMethod1.es6.ts_0_244 | // @target: ES2015
// @module: ES2015
// @experimentaldecorators: true
declare function dec<T>(target: any, propertyKey: string, descriptor: TypedPropertyDescriptor<T>): TypedPropertyDescriptor<T>;
export default class {
@dec method() {}
} | {
"end_byte": 244,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/method/decoratorOnClassMethod1.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/decorators/class/method/parameter/decoratorOnClassMethodParameter1.es6.ts_0_224 | // @target: ES2015
// @module: ES2015
// @experimentaldecorators: true
declare function dec(target: Object, propertyKey: string | symbol, parameterIndex: number): void;
export default class {
method(@dec p: number) {}
} | {
"end_byte": 224,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/decorators/class/method/parameter/decoratorOnClassMethodParameter1.es6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts_3_59 | @target: es5
var arguments;
var a = () => arguments; | {
"end_byte": 59,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts_3_106 | @target: es5
function f() {
var _arguments = 10;
var a = (arguments) => () => _arguments;
} | {
"end_byte": 106,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10_ES6.ts_3_96 | @target: es6
function f() {
var _arguments = 10;
var a = () => () => arguments;
} | {
"end_byte": 96,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments10_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts_0_1266 | var f1 = ()
=> { }
var f2 = (x: string, y: string) /*
*/ => { }
var f3 = (x: string, y: number, ...rest)
=> { }
var f4 = (x: string, y: number, ...rest) /*
*/ => { }
var f5 = (...rest)
=> { }
var f6 = (...rest) /*
*/ => { }
var f7 = (x: string, y: number, z = 10)
=> { }
var f8 = (x: string, y: ... | {
"end_byte": 1266,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/disallowLineTerminatorBeforeArrow.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02_ES6.ts_3_44 | @target: es6
var a = () => arguments; | {
"end_byte": 44,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts_3_89 | @target: es5
function f(arguments) {
var a = (arguments) => () => arguments;
} | {
"end_byte": 89,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments07.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts_3_94 | @target:ES5
var arrow1 = a => { };
var arrow2 = (a) => { };
var arrow3 = (a, b) => { }; | {
"end_byte": 94,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIs.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts_3_179 | @target: es5
function f() {
var { arguments } = { arguments: "hello" };
if (Math.random()) {
return () => arguments[0];
}
var arguments = "world";
} | {
"end_byte": 179,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12_ES6.ts_3_89 | @target: es6
class C {
f(arguments) {
var a = () => arguments;
}
} | {
"end_byte": 89,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts_3_80 | @target: es5
function f(arguments) {
var a = () => () => arguments;
} | {
"end_byte": 80,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts_3_160 | @target: es5
function f() {
var arguments = "hello";
if (Math.random()) {
return () => arguments[0];
}
var arguments = "world";
} | {
"end_byte": 160,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts_3_255 | @target:es5
var f1 = () => { }
var f2 = (x: string, y: string) => { }
var f3 = (x: string, y: number, ...rest) => { }
var f4 = (x: string, y: number, z = 10) => { }
function foo(func: () => boolean) { }
foo(() => true);
foo(() => { return false; }); | {
"end_byte": 255,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunction.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts_3_44 | @target: es5
var a = () => arguments; | {
"end_byte": 44,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments02.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts_3_89 | @target: es5
class C {
f(arguments) {
var a = () => arguments;
}
} | {
"end_byte": 89,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments12.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts_3_81 | @target: es5
function f(_arguments) {
var a = () => () => arguments;
} | {
"end_byte": 81,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08_ES6.ts_3_89 | @target: es6
function f(arguments) {
var a = () => (arguments) => arguments;
} | {
"end_byte": 89,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16_ES6.ts_3_160 | @target: es6
function f() {
var arguments = "hello";
if (Math.random()) {
return () => arguments[0];
}
var arguments = "world";
} | {
"end_byte": 160,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments16_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04_ES6.ts_3_84 | @target: es6
function f() {
var arguments;
var a = () => arguments;
} | {
"end_byte": 84,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments04_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts_3_445 | @target: es5
function f() {
function g() {
var _arguments = 10; // No capture in 'g', so no conflict.
function h() {
var capture = () => arguments; // Should trigger an '_arguments' capture into function 'h'
foo(_arguments); // Error as this d... | {
"end_byte": 445,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments19.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts_3_89 | @target: es5
function f(arguments) {
var a = () => (arguments) => arguments;
} | {
"end_byte": 89,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments08.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionES6.ts_3_594 | @target:es6
var f1 = () => { }
var f2 = (x: string, y: string) => { }
var f3 = (x: string, y: number, ...rest) => { }
var f4 = (x: string, y: number, z=10) => { }
function foo(func: () => boolean) { }
foo(() => true);
foo(() => { return false; });
// Binding patterns in arrow functions
var p1 = ([a]) => { };
var p2 =... | {
"end_byte": 594,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06_ES6.ts_3_80 | @target: es6
function f(arguments) {
var a = () => () => arguments;
} | {
"end_byte": 80,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments06_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18_ES6.ts_3_144 | @target: es6
function f() {
var { arguments: args } = { arguments };
if (Math.random()) {
return () => arguments;
}
} | {
"end_byte": 144,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14_ES6.ts_3_128 | @target: es6
function f() {
if (Math.random()) {
let arguments = 100;
return () => arguments;
}
} | {
"end_byte": 128,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments14_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts_3_144 | @target: es5
function f() {
var { arguments: args } = { arguments };
if (Math.random()) {
return () => arguments;
}
} | {
"end_byte": 144,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments18.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11_ES6.ts_3_105 | @target: es6
function f(arguments) {
var _arguments = 10;
var a = () => () => arguments;
} | {
"end_byte": 105,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03_ES6.ts_3_59 | @target: es6
var arguments;
var a = () => arguments; | {
"end_byte": 59,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments03_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts_3_94 | @target:ES5
var arrow1 = a => { };
var arrow2 = (a) => { };
var arrow3 = (a, b) => { }; | {
"end_byte": 94,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIs.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIsES6.ts_3_95 | @target:ES6
var arrow1 = a => { };
var arrow2 = (a) => { };
var arrow3 = (a, b) => { }; | {
"end_byte": 95,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionAsIsES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01_ES6.ts_3_453 | @target: es6
var a = () => {
var arg = arguments[0]; // error
}
var b = function () {
var a = () => {
var arg = arguments[0]; // error
}
}
function baz() {
() => {
var arg = arguments[0];
}
}
function foo(inputFunc: () => void) { }
foo(() => {
var arg = arguments[0]; // error
});
fun... | {
"end_byte": 453,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13_ES6.ts_3_106 | @target: es6
function f() {
var _arguments = 10;
var a = (arguments) => () => _arguments;
} | {
"end_byte": 106,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments13_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts_3_74 | @target: es5
function f(arguments) {
var a = () => arguments;
} | {
"end_byte": 74,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts_3_159 | @target: es5
function f() {
var arguments = "hello";
if (Math.random()) {
const arguments = 100;
return () => arguments;
}
} | {
"end_byte": 159,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments15.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIsES6.ts_3_95 | @target:ES6
var arrow1 = a => { };
var arrow2 = (a) => { };
var arrow3 = (a, b) => { }; | {
"end_byte": 95,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionsAsIsES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17_ES6.ts_3_179 | @target: es6
function f() {
var { arguments } = { arguments: "hello" };
if (Math.random()) {
return () => arguments[0];
}
var arguments = "world";
} | {
"end_byte": 179,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments17_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09_ES6.ts_3_81 | @target: es6
function f(_arguments) {
var a = () => () => arguments;
} | {
"end_byte": 81,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments09_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts_3_453 | @target: es5
var a = () => {
var arg = arguments[0]; // error
}
var b = function () {
var a = () => {
var arg = arguments[0]; // error
}
}
function baz() {
() => {
var arg = arguments[0];
}
}
function foo(inputFunc: () => void) { }
foo(() => {
var arg = arguments[0]; // error
});
fun... | {
"end_byte": 453,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments01.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05_ES6.ts_3_74 | @target: es6
function f(arguments) {
var a = () => arguments;
} | {
"end_byte": 74,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments05_ES6.ts"
} |
TypeScript/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts_3_105 | @target: es5
function f(arguments) {
var _arguments = 10;
var a = () => () => arguments;
} | {
"end_byte": 105,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/es6/arrowFunction/emitArrowFunctionWhenUsingArguments11.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.