_id stringlengths 21 254 | text stringlengths 1 93.7k | metadata dict |
|---|---|---|
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_3.ts_0_15 | var v = /[\]/]/ | {
"end_byte": 15,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_2.ts_0_15 | var v = /[^]/]/ | {
"end_byte": 15,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645086_2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parserTernaryAndCommaOperators1.ts_0_23 | b.src ? 1 : 2, c && d;
| {
"end_byte": 23,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parserTernaryAndCommaOperators1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509668.ts_0_89 | class Foo3 {
// Doesn't work, but should
constructor (public ...args: string[]) { }
} | {
"end_byte": 89,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509668.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts_0_37 | export class Logger {
public
}
| {
"end_byte": 37,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509546_1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser536727.ts_0_143 | function foo(f: (x: string) => string) {
return f("");
}
var g = (x: string) => x + "blah";
var x = () => g;
foo(g);
foo(() => g);
foo(x);
| {
"end_byte": 143,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser536727.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509677.ts_0_21 | var n: { y: string }; | {
"end_byte": 21,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509677.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser566700.ts_0_15 | var v = ()({}); | {
"end_byte": 15,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser566700.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509667.ts_0_76 | class Foo {
f1() {
if (this.
}
f2() {
}
f3() {
}
} | {
"end_byte": 76,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509667.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645484.ts_0_28 | var c : {
new?(): any;
} | {
"end_byte": 28,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser645484.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser585151.ts_0_45 | class Foo2 {
var icecream = "chocolate";
}
| {
"end_byte": 45,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser585151.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts_0_57 | import rect = module("rect"); var bar = new rect.Rect();
| {
"end_byte": 57,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser519458.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts_0_293 | "use strict";
var config = require("../config");
module.exports.route = function (server) {
// General Login Page
server.get(config.env.siteRoot + "/auth/login", function (req, res, next) {
// TODO Should render login page that shows auth options
req.redirect("/auth/live");
});
}
| {
"end_byte": 293,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RegressionTests/parser509534.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts_0_24 | interface I {
[...a]
} | {
"end_byte": 24,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts_0_74 | interface I {
[a] // Used to be indexer, now it is a computed property
} | {
"end_byte": 74,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts_0_78 | interface I {
[a = 0] // Used to be indexer, now it is a computed property
} | {
"end_byte": 78,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature7.ts_0_28 | interface I {
[a:string]
} | {
"end_byte": 28,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts_0_22 | interface I {
[a?]
} | {
"end_byte": 22,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts_0_28 | interface I {
[public a]
} | {
"end_byte": 28,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature6.ts_0_29 | interface I {
[a:boolean]
} | {
"end_byte": 29,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature6.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature9.ts_0_29 | interface I {
[]: number
} | {
"end_byte": 29,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature9.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts_0_137 | interface I {
[p]; // Used to be indexer, now it is a computed property
[p1: string];
[p2: string, p3: number];
} | {
"end_byte": 137,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature8.ts_0_108 | var foo: { [index: any]; }; // expect an error here
var foo2: { [index: RegExp]; }; // expect an error here
| {
"end_byte": 108,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts_0_33 | interface I {
[a, b]: number
} | {
"end_byte": 33,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexSignatures/parserIndexSignature10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts_0_160 | export class Game {
private position = new DisplayPosition([), 3, 3, 3, 3, 3, 0, 3, 3, 3, 3, 3, 3, 0], NoMove, 0);
private prevConfig: SeedCoords[][];
} | {
"end_byte": 160,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Fuzz/parser0_004152.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Fuzz/parser768531.ts_0_39 | // @allowUnusedLabels: true
{a: 3}
/x/ | {
"end_byte": 39,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Fuzz/parser768531.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment2.ts_0_20 | var v = { 0() { } }; | {
"end_byte": 20,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment3.ts_0_24 | var v = { "foo"() { } }; | {
"end_byte": 24,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment4.ts_0_23 | var v = { 0<T>() { } }; | {
"end_byte": 23,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment1.ts_0_22 | var v = { foo() { } }; | {
"end_byte": 22,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/PropertyAssignments/parserFunctionPropertyAssignment1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode14.ts_0_26 | "use strict";
with (a) {
} | {
"end_byte": 26,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode14.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts_0_34 | "use strict";
function f(eval) {
} | {
"end_byte": 34,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode4.ts_0_28 | "use strict";
arguments = 1; | {
"end_byte": 28,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts_0_43 | "use strict";
var v = function f(eval) {
}; | {
"end_byte": 43,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode5.ts_0_24 | "use strict";
eval += 1; | {
"end_byte": 24,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode15.ts_0_23 | "use strict";
delete a; | {
"end_byte": 23,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode15.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode1.ts_0_33 | foo1();
foo1();
foo1();
static(); | {
"end_byte": 33,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode6-negative.ts_0_7 | eval++; | {
"end_byte": 7,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode6-negative.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode3-negative.ts_0_9 | eval = 1; | {
"end_byte": 9,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode3-negative.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode15-negative.ts_0_26 | "use strict";
delete a[b]; | {
"end_byte": 26,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode15-negative.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode8.ts_0_64 | // @skipDefaultLibCheck: false
"use strict";
function eval() {
} | {
"end_byte": 64,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode9.ts_0_42 | "use strict";
var v = function eval() {
}; | {
"end_byte": 42,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode9.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts_0_59 | // @target: ES5
"use strict";
var v = { set foo(eval) { } } | {
"end_byte": 59,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode12.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode6.ts_0_21 | "use strict";
eval++; | {
"end_byte": 21,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode6.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode16.ts_0_61 | "use strict";
delete this;
delete 1;
delete null;
delete "a"; | {
"end_byte": 61,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode16.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts_0_47 | "use strict";
foo1();
foo1();
foo1();
static(); | {
"end_byte": 47,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/octalLiteralInStrictModeES3.ts_3_20 | se strict";
03; | {
"end_byte": 20,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/octalLiteralInStrictModeES3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode3.ts_0_23 | "use strict";
eval = 1; | {
"end_byte": 23,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode13.ts_0_37 | "use strict";
try {
}
catch(eval) {
} | {
"end_byte": 37,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode13.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode7.ts_0_21 | "use strict";
++eval; | {
"end_byte": 21,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/StrictMode/parserStrictMode7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Protected/Protected5.ts_0_38 | class C {
protected static m() { }
} | {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Protected/Protected5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts_0_38 | class C {
protected public m() { }
} | {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Protected/Protected4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts_0_39 | class C {
protected private m() { }
} | {
"end_byte": 39,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Protected/Protected7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts_0_41 | class C {
protected constructor() { }
} | {
"end_byte": 41,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Protected/Protected3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts_0_38 | class C {
static protected m() { }
} | {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Protected/Protected6.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts_0_43 | class C {
constructor(protected p) { }
} | {
"end_byte": 43,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Protected/Protected9.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts_0_33 | interface I {
protected
p
} | {
"end_byte": 33,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/Protected/Protected8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts_0_39 | //@target: ES5
class C {
[e]: Type
} | {
"end_byte": 39,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName9.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts_0_38 | //@target: ES5
var v: { [e]: number }; | {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts_0_37 | //@target: ES5
var v = { [e]() { } }; | {
"end_byte": 37,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts_0_33 | //@target: ES5
class C {
[e]
} | {
"end_byte": 33,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts_0_35 | //@target: ES5
enum E {
[e] = 1
} | {
"end_byte": 35,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName6.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts_0_34 | //@target: ES5
var v = { [e]: 1 }; | {
"end_byte": 34,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts_0_47 | //@target: ES5
interface I {
[e]: number
} | {
"end_byte": 47,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts_0_51 | //@target: ES5
declare class C {
[e]: number
} | {
"end_byte": 51,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts_0_41 | //@target: ES5
var v = { get [e]() { } }; | {
"end_byte": 41,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts_0_36 | //@target: ES5
class C {
[e]();
} | {
"end_byte": 36,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts_0_37 | //@target: ES5
class C {
[e] = 1
} | {
"end_byte": 37,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/ComputedPropertyNames/parserES5ComputedPropertyName10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration8.ts_0_43 | class C {
private [x: string]: string;
} | {
"end_byte": 43,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration8.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration9.ts_0_42 | class C {
export [x: string]: string;
} | {
"end_byte": 42,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration9.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration2.ts_0_54 | class C {
[a: string]: number
public v: number
} | {
"end_byte": 54,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration6.ts_0_42 | class C {
static [x: string]: string;
} | {
"end_byte": 42,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration6.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration7.ts_0_42 | class C {
public [x: string]: string;
} | {
"end_byte": 42,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration3.ts_0_55 | class C {
[a: string]: number;
public v: number
} | {
"end_byte": 55,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration4.ts_0_52 | class C {
[a: string]: number; public v: number
} | {
"end_byte": 52,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts_0_49 | class C {
static static [x: string]: string;
} | {
"end_byte": 49,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration1.ts_0_34 | class C {
[a: string]: number
} | {
"end_byte": 34,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration5.ts_0_51 | class C {
[a: string]: number public v: number
} | {
"end_byte": 51,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/IndexMemberDeclarations/parserIndexMemberDeclaration5.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration1.ts_3_69 | var selection = a,
position = b,
model = c,
support = d; | {
"end_byte": 69,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration1.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts_0_38 | declare module M {
declare var v;
} | {
"end_byte": 38,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration3.ts_0_244 | function runTests() {
var outfile = new Harness.Compiler.WriterAggregator()
, outerr = new Harness.Compiler.WriterAggregator()
, compiler = <TypeScript.TypeScriptCompiler>new TypeScript.TypeScriptCompiler(outerr)
, code;
} | {
"end_byte": 244,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration3.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration7.ts_0_7 | var a,b | {
"end_byte": 7,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration7.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration10.ts_0_7 | var a,; | {
"end_byte": 7,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration10.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration11.ts_0_8 | var a,b; | {
"end_byte": 8,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration11.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration2.ts_0_135 | (function() {
var check = function () {
}
var checkNot = function () {
}
MUnit.test(a);
})(); | {
"end_byte": 135,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration2.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.d.ts_0_14 | declare var v; | {
"end_byte": 14,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration4.d.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration9.ts_0_6 | var a; | {
"end_byte": 6,
"start_byte": 0,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/VariableDeclarations/parserVariableDeclaration9.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts_3_9490 |
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by a... | {
"end_byte": 9490,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts_9500_18909 | ate GetSpecialCaseIndentation(token: TokenSpan, node: ParseNode): IndentationInfo {
var indentationInfo: IndentationInfo = null;
switch (token.Token) {
case AuthorTokenKind.atkLCurly: // { is not part of the tree
indentationInfo = this.GetSpecialCaseIndentati... | {
"end_byte": 18909,
"start_byte": 9500,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts_18919_27405 | ate GetIndentEdit(indentInfo: IndentationInfo, tokenStartPosition: number, sameLineIndent: boolean): TextEditInfo {
var indentText = this.ApplyIndentationLevel(indentInfo.Prefix, indentInfo.Level);
if (sameLineIndent) {
return new TextEditInfo(tokenStartPosition, 0, indentText);... | {
"end_byte": 27405,
"start_byte": 18919,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts_27415_35497 | ate FillInheritedIndentation(tree: ParseTree): void
{
var offset = -1;
var indentNode: ParseNode = null;
if (tree.StartNodeSelf != null) {
if (!this.smartIndent && tree.StartNodePreviousSibling !== null && tree.StartNodeSelf.AuthorNode.Label == 0 && tree.Star... | {
"end_byte": 35497,
"start_byte": 27415,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserindenter.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_3_1875 | @lib: es5
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless ... | {
"end_byte": 1875,
"start_byte": 3,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_1877_9619 | le Harness {
// Settings
export var userSpecifiedroot = "";
var global = <any>Function("return this").call(null);
export var usePull = false;
export interface ITestMetadata {
id: string;
desc: string;
pass: boolean;
perfResults: {
mean: number;
... | {
"end_byte": 9619,
"start_byte": 1877,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_9624_16760 | rt class Runnable {
constructor(public description: string, public block: any) { }
// The current stack of Runnable objects
static currentStack: Runnable[] = [];
// The error, if any, that occurred when running 'block'
public error: Error = null;
// Whether or not this... | {
"end_byte": 16760,
"start_byte": 9624,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_16765_27125 | rt module Perf {
export module Clock {
export var now: () => number;
export var resolution: number;
declare module WScript {
export function InitializeProjection();
}
declare module TestUtilities {
export function Quer... | {
"end_byte": 27125,
"start_byte": 16765,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_27134_32851 | rt class Type {
constructor(public type, public code, public identifier) { }
public normalizeToArray(arg: any) {
if ((Array.isArray && Array.isArray(arg)) || arg instanceof Array)
return arg;
return [arg];
}
public co... | {
"end_byte": 32851,
"start_byte": 27134,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_32861_44265 | rt class TypeFactory {
public any: Type;
public number: Type;
public string: Type;
public boolean: Type;
constructor() {
this.any = this.get('var x : any', 'x');
this.number = this.get('var x : number', 'x');
th... | {
"end_byte": 44265,
"start_byte": 32861,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_44274_53679 | rt class CompilerResult {
public code: string;
public errors: CompilerError[];
/** @param fileResults an array of strings for the filename and an ITextWriter with its code */
constructor(public fileResults: { filename: string; file: WriterAggregator; }[], errorLines: str... | {
"end_byte": 53679,
"start_byte": 44274,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_53688_63354 | rt function defineCompilationContextForTest(filename: string, dependencies: TestCaseParser.TestUnitData[]): CompilationContext {
// if the given file has no dependencies, there is no context to return, it can be compiled without additional work
if (dependencies.length == 0) {
ret... | {
"end_byte": 63354,
"start_byte": 53688,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
TypeScript/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts_63360_73197 | rt class TypeScriptLS implements Services.ILanguageServiceShimHost {
private ls: Services.ILanguageServiceShim = null;
public scripts: ScriptInfo[] = [];
public maxScriptVersions = 100;
public addDefaultLibrary() {
this.addScript("lib.d.ts", Harness.Compiler.libText, true);... | {
"end_byte": 73197,
"start_byte": 63360,
"url": "https://github.com/microsoft/TypeScript/blob/main/tests/cases/conformance/parser/ecmascript5/RealWorld/parserharness.ts"
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.